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

- old
+ new

@@ -24,12 +24,12 @@ module V1 module UrlMaps module Rest ## # REST service stub for the UrlMaps 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. @@ -387,11 +387,11 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/aggregated/urlMaps", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -408,12 +408,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -430,12 +430,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -453,11 +453,11 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/urlMaps", body: "url_map_resource", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -475,12 +475,12 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}/invalidateCache", body: "cache_invalidation_rule_resource", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -497,11 +497,11 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/urlMaps", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -519,12 +519,12 @@ .with_bindings( uri_method: :patch, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}", body: "url_map_resource", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -542,12 +542,12 @@ .with_bindings( uri_method: :put, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}", body: "url_map_resource", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -565,11 +565,11 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}/validate", body: "url_maps_validate_request_resource", matches: [ - ["project", %r{[^/]+}, false], - ["url_map", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["url_map", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end end