lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module ForwardingRules
module Rest
##
# REST service stub for the ForwardingRules 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.
@@ -350,11 +350,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/forwardingRules",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -371,13 +371,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["forwarding_rule", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["forwarding_rule", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -394,13 +394,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["forwarding_rule", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["forwarding_rule", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -418,12 +418,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules",
body: "forwarding_rule_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -440,12 +440,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -463,13 +463,13 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}",
body: "forwarding_rule_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["forwarding_rule", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["forwarding_rule", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -487,13 +487,13 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels",
body: "region_set_labels_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -511,12 +511,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}/setTarget",
body: "target_reference_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["forwarding_rule", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["forwarding_rule", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end