2020-06-22 14:08:47 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class DeployKey < Entities::SSHKey
|
|
|
|
expose :key
|
2022-07-04 08:09:33 -04:00
|
|
|
expose :fingerprint, if: ->(key, _) { key.fingerprint.present? }
|
|
|
|
expose :fingerprint_sha256
|
2021-11-02 02:10:00 -04:00
|
|
|
|
|
|
|
expose :projects_with_write_access, using: Entities::ProjectIdentity, if: -> (_, options) { options[:include_projects_with_write_access] }
|
2020-06-22 14:08:47 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|