google-cloud-compute-v1 1.5.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +151 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -23
- data/lib/google/cloud/compute/v1/compute_pb.rb +357 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +68 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +77 -16
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +72 -12
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +155 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +142 -21
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +759 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +587 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +80 -20
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +86 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +69 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1.rb +2 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +968 -39
- metadata +12 -2
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionBackendServices service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -149,6 +149,43 @@ module Google
|
|
149
149
|
result
|
150
150
|
end
|
151
151
|
|
152
|
+
##
|
153
|
+
# Baseline implementation for the get_iam_policy REST call
|
154
|
+
#
|
155
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest]
|
156
|
+
# A request object representing the call parameters. Required.
|
157
|
+
# @param options [::Gapic::CallOptions]
|
158
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
159
|
+
#
|
160
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
161
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
162
|
+
# @yieldparam response [::Faraday::Response]
|
163
|
+
#
|
164
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
165
|
+
# A result object deserialized from the server's reply
|
166
|
+
def get_iam_policy request_pb, options = nil
|
167
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
168
|
+
|
169
|
+
verb, uri, query_string_params, body = transcode_get_iam_policy_request request_pb
|
170
|
+
query_string_params = if query_string_params.any?
|
171
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
172
|
+
else
|
173
|
+
{}
|
174
|
+
end
|
175
|
+
|
176
|
+
response = @client_stub.make_http_request(
|
177
|
+
verb,
|
178
|
+
uri: uri,
|
179
|
+
body: body || "",
|
180
|
+
params: query_string_params,
|
181
|
+
options: options
|
182
|
+
)
|
183
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
184
|
+
|
185
|
+
yield result, response if block_given?
|
186
|
+
result
|
187
|
+
end
|
188
|
+
|
152
189
|
##
|
153
190
|
# Baseline implementation for the insert REST call
|
154
191
|
#
|
@@ -260,6 +297,43 @@ module Google
|
|
260
297
|
result
|
261
298
|
end
|
262
299
|
|
300
|
+
##
|
301
|
+
# Baseline implementation for the set_iam_policy REST call
|
302
|
+
#
|
303
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest]
|
304
|
+
# A request object representing the call parameters. Required.
|
305
|
+
# @param options [::Gapic::CallOptions]
|
306
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
307
|
+
#
|
308
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
309
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
310
|
+
# @yieldparam response [::Faraday::Response]
|
311
|
+
#
|
312
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
313
|
+
# A result object deserialized from the server's reply
|
314
|
+
def set_iam_policy request_pb, options = nil
|
315
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
316
|
+
|
317
|
+
verb, uri, query_string_params, body = transcode_set_iam_policy_request request_pb
|
318
|
+
query_string_params = if query_string_params.any?
|
319
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
320
|
+
else
|
321
|
+
{}
|
322
|
+
end
|
323
|
+
|
324
|
+
response = @client_stub.make_http_request(
|
325
|
+
verb,
|
326
|
+
uri: uri,
|
327
|
+
body: body || "",
|
328
|
+
params: query_string_params,
|
329
|
+
options: options
|
330
|
+
)
|
331
|
+
result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
332
|
+
|
333
|
+
yield result, response if block_given?
|
334
|
+
result
|
335
|
+
end
|
336
|
+
|
263
337
|
##
|
264
338
|
# Baseline implementation for the update REST call
|
265
339
|
#
|
@@ -315,9 +389,9 @@ module Google
|
|
315
389
|
uri_method: :delete,
|
316
390
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{backend_service}",
|
317
391
|
matches: [
|
318
|
-
["project", %r{[^/]
|
319
|
-
["region", %r{[^/]
|
320
|
-
["backend_service", %r{[^/]
|
392
|
+
["project", %r{^[^/]+/?$}, false],
|
393
|
+
["region", %r{^[^/]+/?$}, false],
|
394
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
321
395
|
]
|
322
396
|
)
|
323
397
|
transcoder.transcode request_pb
|
@@ -338,9 +412,9 @@ module Google
|
|
338
412
|
uri_method: :get,
|
339
413
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{backend_service}",
|
340
414
|
matches: [
|
341
|
-
["project", %r{[^/]
|
342
|
-
["region", %r{[^/]
|
343
|
-
["backend_service", %r{[^/]
|
415
|
+
["project", %r{^[^/]+/?$}, false],
|
416
|
+
["region", %r{^[^/]+/?$}, false],
|
417
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
344
418
|
]
|
345
419
|
)
|
346
420
|
transcoder.transcode request_pb
|
@@ -362,9 +436,32 @@ module Google
|
|
362
436
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{backend_service}/getHealth",
|
363
437
|
body: "resource_group_reference_resource",
|
364
438
|
matches: [
|
365
|
-
["project", %r{[^/]
|
366
|
-
["region", %r{[^/]
|
367
|
-
["backend_service", %r{[^/]
|
439
|
+
["project", %r{^[^/]+/?$}, false],
|
440
|
+
["region", %r{^[^/]+/?$}, false],
|
441
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
442
|
+
]
|
443
|
+
)
|
444
|
+
transcoder.transcode request_pb
|
445
|
+
end
|
446
|
+
|
447
|
+
##
|
448
|
+
# @private
|
449
|
+
#
|
450
|
+
# GRPC transcoding helper method for the get_iam_policy REST call
|
451
|
+
#
|
452
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest]
|
453
|
+
# A request object representing the call parameters. Required.
|
454
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
455
|
+
# Uri, Body, Query string parameters
|
456
|
+
def transcode_get_iam_policy_request request_pb
|
457
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
458
|
+
.with_bindings(
|
459
|
+
uri_method: :get,
|
460
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy",
|
461
|
+
matches: [
|
462
|
+
["project", %r{^[^/]+/?$}, false],
|
463
|
+
["region", %r{^[^/]+/?$}, false],
|
464
|
+
["resource", %r{^[^/]+/?$}, false]
|
368
465
|
]
|
369
466
|
)
|
370
467
|
transcoder.transcode request_pb
|
@@ -386,8 +483,8 @@ module Google
|
|
386
483
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices",
|
387
484
|
body: "backend_service_resource",
|
388
485
|
matches: [
|
389
|
-
["project", %r{[^/]
|
390
|
-
["region", %r{[^/]
|
486
|
+
["project", %r{^[^/]+/?$}, false],
|
487
|
+
["region", %r{^[^/]+/?$}, false]
|
391
488
|
]
|
392
489
|
)
|
393
490
|
transcoder.transcode request_pb
|
@@ -408,8 +505,8 @@ module Google
|
|
408
505
|
uri_method: :get,
|
409
506
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices",
|
410
507
|
matches: [
|
411
|
-
["project", %r{[^/]
|
412
|
-
["region", %r{[^/]
|
508
|
+
["project", %r{^[^/]+/?$}, false],
|
509
|
+
["region", %r{^[^/]+/?$}, false]
|
413
510
|
]
|
414
511
|
)
|
415
512
|
transcoder.transcode request_pb
|
@@ -431,9 +528,33 @@ module Google
|
|
431
528
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{backend_service}",
|
432
529
|
body: "backend_service_resource",
|
433
530
|
matches: [
|
434
|
-
["project", %r{[^/]
|
435
|
-
["region", %r{[^/]
|
436
|
-
["backend_service", %r{[^/]
|
531
|
+
["project", %r{^[^/]+/?$}, false],
|
532
|
+
["region", %r{^[^/]+/?$}, false],
|
533
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
534
|
+
]
|
535
|
+
)
|
536
|
+
transcoder.transcode request_pb
|
537
|
+
end
|
538
|
+
|
539
|
+
##
|
540
|
+
# @private
|
541
|
+
#
|
542
|
+
# GRPC transcoding helper method for the set_iam_policy REST call
|
543
|
+
#
|
544
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest]
|
545
|
+
# A request object representing the call parameters. Required.
|
546
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
547
|
+
# Uri, Body, Query string parameters
|
548
|
+
def transcode_set_iam_policy_request request_pb
|
549
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
550
|
+
.with_bindings(
|
551
|
+
uri_method: :post,
|
552
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy",
|
553
|
+
body: "region_set_policy_request_resource",
|
554
|
+
matches: [
|
555
|
+
["project", %r{^[^/]+/?$}, false],
|
556
|
+
["region", %r{^[^/]+/?$}, false],
|
557
|
+
["resource", %r{^[^/]+/?$}, false]
|
437
558
|
]
|
438
559
|
)
|
439
560
|
transcoder.transcode request_pb
|
@@ -455,9 +576,9 @@ module Google
|
|
455
576
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/backendServices/{backend_service}",
|
456
577
|
body: "backend_service_resource",
|
457
578
|
matches: [
|
458
|
-
["project", %r{[^/]
|
459
|
-
["region", %r{[^/]
|
460
|
-
["backend_service", %r{[^/]
|
579
|
+
["project", %r{^[^/]+/?$}, false],
|
580
|
+
["region", %r{^[^/]+/?$}, false],
|
581
|
+
["backend_service", %r{^[^/]+/?$}, false]
|
461
582
|
]
|
462
583
|
)
|
463
584
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionCommitments service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -241,7 +241,7 @@ module Google
|
|
241
241
|
uri_method: :get,
|
242
242
|
uri_template: "/compute/v1/projects/{project}/aggregated/commitments",
|
243
243
|
matches: [
|
244
|
-
["project", %r{[^/]
|
244
|
+
["project", %r{^[^/]+/?$}, false]
|
245
245
|
]
|
246
246
|
)
|
247
247
|
transcoder.transcode request_pb
|
@@ -262,9 +262,9 @@ module Google
|
|
262
262
|
uri_method: :get,
|
263
263
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}",
|
264
264
|
matches: [
|
265
|
-
["project", %r{[^/]
|
266
|
-
["region", %r{[^/]
|
267
|
-
["commitment", %r{[^/]
|
265
|
+
["project", %r{^[^/]+/?$}, false],
|
266
|
+
["region", %r{^[^/]+/?$}, false],
|
267
|
+
["commitment", %r{^[^/]+/?$}, false]
|
268
268
|
]
|
269
269
|
)
|
270
270
|
transcoder.transcode request_pb
|
@@ -286,8 +286,8 @@ module Google
|
|
286
286
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/commitments",
|
287
287
|
body: "commitment_resource",
|
288
288
|
matches: [
|
289
|
-
["project", %r{[^/]
|
290
|
-
["region", %r{[^/]
|
289
|
+
["project", %r{^[^/]+/?$}, false],
|
290
|
+
["region", %r{^[^/]+/?$}, false]
|
291
291
|
]
|
292
292
|
)
|
293
293
|
transcoder.transcode request_pb
|
@@ -308,8 +308,8 @@ module Google
|
|
308
308
|
uri_method: :get,
|
309
309
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/commitments",
|
310
310
|
matches: [
|
311
|
-
["project", %r{[^/]
|
312
|
-
["region", %r{[^/]
|
311
|
+
["project", %r{^[^/]+/?$}, false],
|
312
|
+
["region", %r{^[^/]+/?$}, false]
|
313
313
|
]
|
314
314
|
)
|
315
315
|
transcoder.transcode request_pb
|
@@ -331,9 +331,9 @@ module Google
|
|
331
331
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}",
|
332
332
|
body: "commitment_resource",
|
333
333
|
matches: [
|
334
|
-
["project", %r{[^/]
|
335
|
-
["region", %r{[^/]
|
336
|
-
["commitment", %r{[^/]
|
334
|
+
["project", %r{^[^/]+/?$}, false],
|
335
|
+
["region", %r{^[^/]+/?$}, false],
|
336
|
+
["commitment", %r{^[^/]+/?$}, false]
|
337
337
|
]
|
338
338
|
)
|
339
339
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionDiskTypes service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -130,9 +130,9 @@ module Google
|
|
130
130
|
uri_method: :get,
|
131
131
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/diskTypes/{disk_type}",
|
132
132
|
matches: [
|
133
|
-
["project", %r{[^/]
|
134
|
-
["region", %r{[^/]
|
135
|
-
["disk_type", %r{[^/]
|
133
|
+
["project", %r{^[^/]+/?$}, false],
|
134
|
+
["region", %r{^[^/]+/?$}, false],
|
135
|
+
["disk_type", %r{^[^/]+/?$}, false]
|
136
136
|
]
|
137
137
|
)
|
138
138
|
transcoder.transcode request_pb
|
@@ -153,8 +153,8 @@ module Google
|
|
153
153
|
uri_method: :get,
|
154
154
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/diskTypes",
|
155
155
|
matches: [
|
156
|
-
["project", %r{[^/]
|
157
|
-
["region", %r{[^/]
|
156
|
+
["project", %r{^[^/]+/?$}, false],
|
157
|
+
["region", %r{^[^/]+/?$}, false]
|
158
158
|
]
|
159
159
|
)
|
160
160
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionDisks service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -501,9 +501,9 @@ module Google
|
|
501
501
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies",
|
502
502
|
body: "region_disks_add_resource_policies_request_resource",
|
503
503
|
matches: [
|
504
|
-
["project", %r{[^/]
|
505
|
-
["region", %r{[^/]
|
506
|
-
["disk", %r{[^/]
|
504
|
+
["project", %r{^[^/]+/?$}, false],
|
505
|
+
["region", %r{^[^/]+/?$}, false],
|
506
|
+
["disk", %r{^[^/]+/?$}, false]
|
507
507
|
]
|
508
508
|
)
|
509
509
|
transcoder.transcode request_pb
|
@@ -525,9 +525,9 @@ module Google
|
|
525
525
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot",
|
526
526
|
body: "snapshot_resource",
|
527
527
|
matches: [
|
528
|
-
["project", %r{[^/]
|
529
|
-
["region", %r{[^/]
|
530
|
-
["disk", %r{[^/]
|
528
|
+
["project", %r{^[^/]+/?$}, false],
|
529
|
+
["region", %r{^[^/]+/?$}, false],
|
530
|
+
["disk", %r{^[^/]+/?$}, false]
|
531
531
|
]
|
532
532
|
)
|
533
533
|
transcoder.transcode request_pb
|
@@ -548,9 +548,9 @@ module Google
|
|
548
548
|
uri_method: :delete,
|
549
549
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}",
|
550
550
|
matches: [
|
551
|
-
["project", %r{[^/]
|
552
|
-
["region", %r{[^/]
|
553
|
-
["disk", %r{[^/]
|
551
|
+
["project", %r{^[^/]+/?$}, false],
|
552
|
+
["region", %r{^[^/]+/?$}, false],
|
553
|
+
["disk", %r{^[^/]+/?$}, false]
|
554
554
|
]
|
555
555
|
)
|
556
556
|
transcoder.transcode request_pb
|
@@ -571,9 +571,9 @@ module Google
|
|
571
571
|
uri_method: :get,
|
572
572
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}",
|
573
573
|
matches: [
|
574
|
-
["project", %r{[^/]
|
575
|
-
["region", %r{[^/]
|
576
|
-
["disk", %r{[^/]
|
574
|
+
["project", %r{^[^/]+/?$}, false],
|
575
|
+
["region", %r{^[^/]+/?$}, false],
|
576
|
+
["disk", %r{^[^/]+/?$}, false]
|
577
577
|
]
|
578
578
|
)
|
579
579
|
transcoder.transcode request_pb
|
@@ -594,9 +594,9 @@ module Google
|
|
594
594
|
uri_method: :get,
|
595
595
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy",
|
596
596
|
matches: [
|
597
|
-
["project", %r{[^/]
|
598
|
-
["region", %r{[^/]
|
599
|
-
["resource", %r{[^/]
|
597
|
+
["project", %r{^[^/]+/?$}, false],
|
598
|
+
["region", %r{^[^/]+/?$}, false],
|
599
|
+
["resource", %r{^[^/]+/?$}, false]
|
600
600
|
]
|
601
601
|
)
|
602
602
|
transcoder.transcode request_pb
|
@@ -618,8 +618,8 @@ module Google
|
|
618
618
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks",
|
619
619
|
body: "disk_resource",
|
620
620
|
matches: [
|
621
|
-
["project", %r{[^/]
|
622
|
-
["region", %r{[^/]
|
621
|
+
["project", %r{^[^/]+/?$}, false],
|
622
|
+
["region", %r{^[^/]+/?$}, false]
|
623
623
|
]
|
624
624
|
)
|
625
625
|
transcoder.transcode request_pb
|
@@ -640,8 +640,8 @@ module Google
|
|
640
640
|
uri_method: :get,
|
641
641
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks",
|
642
642
|
matches: [
|
643
|
-
["project", %r{[^/]
|
644
|
-
["region", %r{[^/]
|
643
|
+
["project", %r{^[^/]+/?$}, false],
|
644
|
+
["region", %r{^[^/]+/?$}, false]
|
645
645
|
]
|
646
646
|
)
|
647
647
|
transcoder.transcode request_pb
|
@@ -663,9 +663,9 @@ module Google
|
|
663
663
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies",
|
664
664
|
body: "region_disks_remove_resource_policies_request_resource",
|
665
665
|
matches: [
|
666
|
-
["project", %r{[^/]
|
667
|
-
["region", %r{[^/]
|
668
|
-
["disk", %r{[^/]
|
666
|
+
["project", %r{^[^/]+/?$}, false],
|
667
|
+
["region", %r{^[^/]+/?$}, false],
|
668
|
+
["disk", %r{^[^/]+/?$}, false]
|
669
669
|
]
|
670
670
|
)
|
671
671
|
transcoder.transcode request_pb
|
@@ -687,9 +687,9 @@ module Google
|
|
687
687
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize",
|
688
688
|
body: "region_disks_resize_request_resource",
|
689
689
|
matches: [
|
690
|
-
["project", %r{[^/]
|
691
|
-
["region", %r{[^/]
|
692
|
-
["disk", %r{[^/]
|
690
|
+
["project", %r{^[^/]+/?$}, false],
|
691
|
+
["region", %r{^[^/]+/?$}, false],
|
692
|
+
["disk", %r{^[^/]+/?$}, false]
|
693
693
|
]
|
694
694
|
)
|
695
695
|
transcoder.transcode request_pb
|
@@ -711,9 +711,9 @@ module Google
|
|
711
711
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy",
|
712
712
|
body: "region_set_policy_request_resource",
|
713
713
|
matches: [
|
714
|
-
["project", %r{[^/]
|
715
|
-
["region", %r{[^/]
|
716
|
-
["resource", %r{[^/]
|
714
|
+
["project", %r{^[^/]+/?$}, false],
|
715
|
+
["region", %r{^[^/]+/?$}, false],
|
716
|
+
["resource", %r{^[^/]+/?$}, false]
|
717
717
|
]
|
718
718
|
)
|
719
719
|
transcoder.transcode request_pb
|
@@ -735,9 +735,9 @@ module Google
|
|
735
735
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels",
|
736
736
|
body: "region_set_labels_request_resource",
|
737
737
|
matches: [
|
738
|
-
["project", %r{[^/]
|
739
|
-
["region", %r{[^/]
|
740
|
-
["resource", %r{[^/]
|
738
|
+
["project", %r{^[^/]+/?$}, false],
|
739
|
+
["region", %r{^[^/]+/?$}, false],
|
740
|
+
["resource", %r{^[^/]+/?$}, false]
|
741
741
|
]
|
742
742
|
)
|
743
743
|
transcoder.transcode request_pb
|
@@ -759,9 +759,9 @@ module Google
|
|
759
759
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions",
|
760
760
|
body: "test_permissions_request_resource",
|
761
761
|
matches: [
|
762
|
-
["project", %r{[^/]
|
763
|
-
["region", %r{[^/]
|
764
|
-
["resource", %r{[^/]
|
762
|
+
["project", %r{^[^/]+/?$}, false],
|
763
|
+
["region", %r{^[^/]+/?$}, false],
|
764
|
+
["resource", %r{^[^/]+/?$}, false]
|
765
765
|
]
|
766
766
|
)
|
767
767
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionHealthCheckServices service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -241,9 +241,9 @@ module Google
|
|
241
241
|
uri_method: :delete,
|
242
242
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{health_check_service}",
|
243
243
|
matches: [
|
244
|
-
["project", %r{[^/]
|
245
|
-
["region", %r{[^/]
|
246
|
-
["health_check_service", %r{[^/]
|
244
|
+
["project", %r{^[^/]+/?$}, false],
|
245
|
+
["region", %r{^[^/]+/?$}, false],
|
246
|
+
["health_check_service", %r{^[^/]+/?$}, false]
|
247
247
|
]
|
248
248
|
)
|
249
249
|
transcoder.transcode request_pb
|
@@ -264,9 +264,9 @@ module Google
|
|
264
264
|
uri_method: :get,
|
265
265
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{health_check_service}",
|
266
266
|
matches: [
|
267
|
-
["project", %r{[^/]
|
268
|
-
["region", %r{[^/]
|
269
|
-
["health_check_service", %r{[^/]
|
267
|
+
["project", %r{^[^/]+/?$}, false],
|
268
|
+
["region", %r{^[^/]+/?$}, false],
|
269
|
+
["health_check_service", %r{^[^/]+/?$}, false]
|
270
270
|
]
|
271
271
|
)
|
272
272
|
transcoder.transcode request_pb
|
@@ -288,8 +288,8 @@ module Google
|
|
288
288
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices",
|
289
289
|
body: "health_check_service_resource",
|
290
290
|
matches: [
|
291
|
-
["project", %r{[^/]
|
292
|
-
["region", %r{[^/]
|
291
|
+
["project", %r{^[^/]+/?$}, false],
|
292
|
+
["region", %r{^[^/]+/?$}, false]
|
293
293
|
]
|
294
294
|
)
|
295
295
|
transcoder.transcode request_pb
|
@@ -310,8 +310,8 @@ module Google
|
|
310
310
|
uri_method: :get,
|
311
311
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices",
|
312
312
|
matches: [
|
313
|
-
["project", %r{[^/]
|
314
|
-
["region", %r{[^/]
|
313
|
+
["project", %r{^[^/]+/?$}, false],
|
314
|
+
["region", %r{^[^/]+/?$}, false]
|
315
315
|
]
|
316
316
|
)
|
317
317
|
transcoder.transcode request_pb
|
@@ -333,9 +333,9 @@ module Google
|
|
333
333
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{health_check_service}",
|
334
334
|
body: "health_check_service_resource",
|
335
335
|
matches: [
|
336
|
-
["project", %r{[^/]
|
337
|
-
["region", %r{[^/]
|
338
|
-
["health_check_service", %r{[^/]
|
336
|
+
["project", %r{^[^/]+/?$}, false],
|
337
|
+
["region", %r{^[^/]+/?$}, false],
|
338
|
+
["health_check_service", %r{^[^/]+/?$}, false]
|
339
339
|
]
|
340
340
|
)
|
341
341
|
transcoder.transcode request_pb
|