lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module Subnetworks
module Rest
##
# REST service stub for the Subnetworks 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.
@@ -498,11 +498,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/subnetworks",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -519,13 +519,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["subnetwork", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["subnetwork", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -543,13 +543,13 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange",
body: "subnetworks_expand_ip_cidr_range_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["subnetwork", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["subnetwork", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -566,13 +566,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["subnetwork", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["subnetwork", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -589,13 +589,13 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -613,12 +613,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks",
body: "subnetwork_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -635,12 +635,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -657,11 +657,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/aggregated/subnetworks/listUsable",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -679,13 +679,13 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}",
body: "subnetwork_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["subnetwork", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["subnetwork", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -703,13 +703,13 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy",
body: "region_set_policy_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
@@ -727,13 +727,13 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess",
body: "subnetworks_set_private_ip_google_access_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["region", %r{[^/]+}, false],
- ["subnetwork", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["region", %r{^[^/]+/?$}, false],
+ ["subnetwork", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -751,12 +751,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/regions/{region}/subnetworks/{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