debian-mirror-gitlab/lib/api/entities/ci/job_artifact.rb
2023-01-12 18:35:48 +00:00

17 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