# 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