Welcome to mirror list, hosted at ThFree Co, Russian Federation.

job_artifact.rb « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8276c0f40733e4269be3a33ae81ef8437ce21b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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