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

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

19 lines
847 B
Ruby
Raw Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
module API
module Entities
module Ci
class SecureFile < Grape::Entity
2023-03-04 22:38:38 +05:30
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" } }
2022-04-04 11:22:00 +05:30
end
end
end
end