lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module GlobalOperations
module Rest
##
# REST service stub for the GlobalOperations 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.
@@ -239,11 +239,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/operations",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -260,12 +260,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/global/operations/{operation}",
matches: [
- ["project", %r{[^/]+}, false],
- ["operation", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["operation", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -282,12 +282,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/operations/{operation}",
matches: [
- ["project", %r{[^/]+}, false],
- ["operation", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["operation", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -304,11 +304,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/operations",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -325,11 +325,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/global/operations/{operation}/wait",
matches: [
- ["project", %r{[^/]+}, false],
- ["operation", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["operation", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end