debian-mirror-gitlab/lib/api/entities/project_integration.rb

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

15 lines
463 B
Ruby
Raw Normal View History

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