def self.configure
Other tags:
def self.configure
@configure ||= begin
namespace = ["Google", "Cloud", "Dataplex"]
parent_config = while namespace.any?
parent_name = namespace.join "::"
parent_const = const_get parent_name
break parent_const.configure if parent_const.respond_to? :configure
namespace.pop
end
default_config = Configuration.new parent_config
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{name}",
matches: [
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
],
body: nil
)
]
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{name}/locations",
matches: [
["name", %r{^projects/[^/]+/?$}, false]
],
body: nil
)
]
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryTypes/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/aspectTypes/[^/]+/?$}, false]
],
body: nil
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{resource}:getIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
],
body: nil
)
]
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryTypes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/aspectTypes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:setIamPolicy",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
],
body: "*"
)
]
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryTypes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/aspectTypes/[^/]+/?$}, false]
],
body: "*"
),
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :post,
uri_template: "/v1/{resource}:testIamPermissions",
matches: [
["resource", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
],
body: "*"
)
]
default_config
end
yield @configure if block_given?
@configure
end