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
461 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|
2023-03-04 22:38:38 +05:30
integration.api_field_names.index_with do |name|
integration.public_send(name) # rubocop:disable GitlabSecurity/PublicSend
2021-09-30 23:02:18 +05:30
end
end
end
end
end