lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module FirewallPolicies
module Rest
##
# REST service stub for the FirewallPolicies service.
- # service stub contains baseline method implementations
- # including transcoding, making the REST call and deserialing the response
+ # Service stub contains baseline method implementations
+ # including transcoding, making the REST call, and deserialing the response.
#
class ServiceStub
def initialize endpoint:, credentials:
# These require statements are intentionally placed here to initialize
# the REST modules only when it's required.
@@ -721,11 +721,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/addAssociation",
body: "firewall_policy_association_resource",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -743,11 +743,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/addRule",
body: "firewall_policy_rule_resource",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -764,11 +764,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/cloneRules",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -785,11 +785,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -806,11 +806,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -827,11 +827,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/getAssociation",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -848,11 +848,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/locations/global/firewallPolicies/{resource}/getIamPolicy",
matches: [
- ["resource", %r{[^/]+}, false]
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -869,11 +869,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/getRule",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -948,11 +948,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/move",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -970,11 +970,11 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}",
body: "firewall_policy_resource",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -992,11 +992,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/patchRule",
body: "firewall_policy_rule_resource",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -1013,11 +1013,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/removeAssociation",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -1034,11 +1034,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/removeRule",
matches: [
- ["firewall_policy", %r{[^/]+}, false]
+ ["firewall_policy", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -1056,11 +1056,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{resource}/setIamPolicy",
body: "global_organization_set_policy_request_resource",
matches: [
- ["resource", %r{[^/]+}, false]
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -1078,10 +1078,10 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/locations/global/firewallPolicies/{resource}/testIamPermissions",
body: "test_permissions_request_resource",
matches: [
- ["resource", %r{[^/]+}, false]
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end