debian-mirror-gitlab/lib/api/entities/ci/job_artifact.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
568 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
module API
module Entities
module Ci
class JobArtifact < Grape::Entity
2023-01-13 00:05:48 +05:30
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' }
2020-10-24 23:57:45 +05:30
end
end
end
end