2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectIntegration < Entities::ProjectIntegrationBasic
|
|
|
|
# Expose serialized properties
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :properties, documentation: { type: 'Hash', example: { "token" => "secr3t" } } do |integration, options|
|
2022-05-07 20:08:51 +05:30
|
|
|
integration.api_field_names.to_h do |name|
|
|
|
|
[name, integration.public_send(name)] # rubocop:disable GitlabSecurity/PublicSend
|
2021-09-30 23:02:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|