lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module InterconnectAttachments
module Rest
##
# REST service stub for the InterconnectAttachments 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.
@@ -276,11 +276,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/interconnectAttachments",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -297,13 +297,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnect_attachment}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["interconnect_attachment", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["interconnect_attachment", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -320,13 +320,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnect_attachment}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["interconnect_attachment", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["interconnect_attachment", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -344,12 +344,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/interconnectAttachments",
body: "interconnect_attachment_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -366,12 +366,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/interconnectAttachments",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -389,12 +389,12 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnect_attachment}",
body: "interconnect_attachment_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["interconnect_attachment", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["interconnect_attachment", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end