debian-mirror-gitlab/lib/api/entities/ci/job_artifact.rb
2023-01-13 15:02:22 +05:30

16 lines
568 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ci
class JobArtifact < Grape::Entity
expose :file_type,
documentation: { type: 'string', values: ::Ci::JobArtifact.file_types.keys, example: 'archive' }
expose :size, documentation: { type: 'integer', example: 1000 }
expose :filename, documentation: { type: 'string', example: 'artifacts.zip' }
expose :file_format,
documentation: { type: 'string', values: ::Ci::JobArtifact.file_formats.keys, example: 'zip' }
end
end
end
end