lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb in google-cloud-compute-v1-1.6.0

- old
+ new

@@ -24,12 +24,12 @@ module V1 module BackendBuckets module Rest ## # REST service stub for the BackendBuckets 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. @@ -388,12 +388,12 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/addSignedUrlKey", body: "signed_url_key_resource", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -410,12 +410,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -432,12 +432,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/deleteSignedUrlKey", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -454,12 +454,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -477,11 +477,11 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/backendBuckets", body: "backend_bucket_resource", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -498,11 +498,11 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/backendBuckets", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -520,12 +520,12 @@ .with_bindings( uri_method: :patch, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}", body: "backend_bucket_resource", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -543,12 +543,12 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/setEdgeSecurityPolicy", body: "security_policy_reference_resource", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -566,11 +566,11 @@ .with_bindings( uri_method: :put, uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}", body: "backend_bucket_resource", matches: [ - ["project", %r{[^/]+}, false], - ["backend_bucket", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["backend_bucket", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end end