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

- old
+ new

@@ -24,12 +24,12 @@ module V1 module Firewalls module Rest ## # REST service stub for the Firewalls 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,12 +276,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/compute/v1/projects/{project}/global/firewalls/{firewall}", matches: [ - ["project", %r{[^/]+}, false], - ["firewall", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["firewall", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -298,12 +298,12 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/firewalls/{firewall}", matches: [ - ["project", %r{[^/]+}, false], - ["firewall", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["firewall", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -321,11 +321,11 @@ .with_bindings( uri_method: :post, uri_template: "/compute/v1/projects/{project}/global/firewalls", body: "firewall_resource", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -342,11 +342,11 @@ transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/compute/v1/projects/{project}/global/firewalls", matches: [ - ["project", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -364,12 +364,12 @@ .with_bindings( uri_method: :patch, uri_template: "/compute/v1/projects/{project}/global/firewalls/{firewall}", body: "firewall_resource", matches: [ - ["project", %r{[^/]+}, false], - ["firewall", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["firewall", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end @@ -387,11 +387,11 @@ .with_bindings( uri_method: :put, uri_template: "/compute/v1/projects/{project}/global/firewalls/{firewall}", body: "firewall_resource", matches: [ - ["project", %r{[^/]+}, false], - ["firewall", %r{[^/]+}, false] + ["project", %r{^[^/]+/?$}, false], + ["firewall", %r{^[^/]+/?$}, false] ] ) transcoder.transcode request_pb end end