lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module VpnTunnels
module Rest
##
# REST service stub for the VpnTunnels 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/vpnTunnels",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -260,13 +260,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpn_tunnel}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["vpn_tunnel", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["vpn_tunnel", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -283,13 +283,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpn_tunnel}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["vpn_tunnel", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["vpn_tunnel", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -307,12 +307,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnTunnels",
body: "vpn_tunnel_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -329,11 +329,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnTunnels",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end