lib/google/cloud/compute/v1/licenses/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/licenses/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module Licenses
module Rest
##
# REST service stub for the Licenses 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,12 +313,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/global/licenses/{license}",
matches: [
- ["project", %r{[^/]+}, false],
- ["license", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["license", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -335,12 +335,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/licenses/{license}",
matches: [
- ["project", %r{[^/]+}, false],
- ["license", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["license", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -357,12 +357,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy",
matches: [
- ["project", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -380,11 +380,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/global/licenses",
body: "license_resource",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -401,11 +401,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/licenses",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -423,12 +423,12 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy",
body: "global_set_policy_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -446,11 +446,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions",
body: "test_permissions_request_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["resource", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["resource", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end