lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module PacketMirrorings
module Rest
##
# REST service stub for the PacketMirrorings 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.
@@ -313,11 +313,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/packetMirrorings",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -334,13 +334,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packet_mirroring}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["packet_mirroring", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["packet_mirroring", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -357,13 +357,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packet_mirroring}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["packet_mirroring", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["packet_mirroring", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -381,12 +381,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings",
body: "packet_mirroring_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -403,12 +403,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -426,13 +426,13 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packet_mirroring}",
body: "packet_mirroring_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["packet_mirroring", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["packet_mirroring", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -450,12 +450,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions",
body: "test_permissions_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end