2020-07-01 16:08:20 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class DeployKey < Entities::SSHKey
|
|
|
|
expose :key
|
2022-08-13 15:12:31 +05:30
|
|
|
expose :fingerprint, if: ->(key, _) { key.fingerprint.present? }
|
|
|
|
expose :fingerprint_sha256
|
2021-12-11 22:18:48 +05:30
|
|
|
|
|
|
|
expose :projects_with_write_access, using: Entities::ProjectIdentity, if: -> (_, options) { options[:include_projects_with_write_access] }
|
2020-07-01 16:08:20 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|