lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb in google-cloud-compute-v1-1.5.0 vs lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb in google-cloud-compute-v1-1.6.0
- old
+ new
@@ -24,12 +24,12 @@
module V1
module HealthChecks
module Rest
##
# REST service stub for the HealthChecks 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/healthChecks",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -334,12 +334,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :delete,
uri_template: "/compute/v1/projects/{project}/global/healthChecks/{health_check}",
matches: [
- ["project", %r{[^/]+}, false],
- ["health_check", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["health_check", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -356,12 +356,12 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/healthChecks/{health_check}",
matches: [
- ["project", %r{[^/]+}, false],
- ["health_check", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["health_check", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -379,11 +379,11 @@
.with_bindings(
uri_method: :post,
uri_template: "/compute/v1/projects/{project}/global/healthChecks",
body: "health_check_resource",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -400,11 +400,11 @@
transcoder = Gapic::Rest::GrpcTranscoder.new
.with_bindings(
uri_method: :get,
uri_template: "/compute/v1/projects/{project}/global/healthChecks",
matches: [
- ["project", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -422,12 +422,12 @@
.with_bindings(
uri_method: :patch,
uri_template: "/compute/v1/projects/{project}/global/healthChecks/{health_check}",
body: "health_check_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["health_check", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["health_check", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
@@ -445,11 +445,11 @@
.with_bindings(
uri_method: :put,
uri_template: "/compute/v1/projects/{project}/global/healthChecks/{health_check}",
body: "health_check_resource",
matches: [
- ["project", %r{[^/]+}, false],
- ["health_check", %r{[^/]+}, false]
+ ["project", %r{^[^/]+/?$}, false],
+ ["health_check", %r{^[^/]+/?$}, false]
]
)
transcoder.transcode request_pb
end
end