summaryrefslogtreecommitdiff
path: root/lib/api/entities/ci/secure_file.rb
blob: a234ada6f826eedbc8beccae86430b475c6ff33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module API
  module Entities
    module Ci
      class SecureFile < Grape::Entity
        expose :id, documentation: { type: 'integer', example: 123 }
        expose :name, documentation: { type: 'string', example: 'upload-keystore.jks' }
        expose :checksum,
documentation: { type: 'string', example: '16630b189ab34b2e3504f4758e1054d2e478deda510b2b08cc0ef38d12e80aac' }
        expose :checksum_algorithm, documentation: { type: 'string', example: 'sha256' }
        expose :created_at, documentation: { type: 'dateTime', example: '2022-02-22T22:22:22.222Z' }
        expose :expires_at, documentation: { type: 'dateTime', example: '2022-09-21T14:56:00.000Z' }
        expose :metadata, documentation: { type: 'Hash', example: { "id" => "75949910542696343243264405377658443914" } }
      end
    end
  end
end