google-cloud-compute-v1 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
  3. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +13 -13
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
  6. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +23 -23
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +129 -0
  8. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
  9. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
  12. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +8 -8
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
  17. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
  18. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
  19. data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
  20. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
  21. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
  22. data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
  23. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
  24. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
  25. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
  26. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
  30. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
  31. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
  33. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +16 -16
  34. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
  35. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +12 -12
  36. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
  37. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
  38. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
  39. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
  41. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
  42. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
  43. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
  44. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
  45. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
  46. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
  47. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
  48. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
  49. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
  50. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
  51. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
  52. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -21
  53. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
  54. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
  55. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
  56. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
  57. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
  58. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
  60. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
  61. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
  65. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
  66. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
  67. data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
  68. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
  69. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
  70. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
  71. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
  73. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
  74. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
  75. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
  76. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
  77. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
  78. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +20 -20
  79. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
  80. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
  81. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
  82. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +11 -11
  83. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
  84. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
  85. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
  86. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
  87. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
  88. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
  89. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
  90. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
  91. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +13 -13
  92. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
  93. data/lib/google/cloud/compute/v1/version.rb +1 -1
  94. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
  95. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +13 -13
  96. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
  97. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
  98. data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
  99. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
  100. data/proto_docs/google/cloud/compute/v1/compute.rb +331 -13
  101. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c58d6b847e995a168df8eb6bed384cbf828ab64e23d952806f40b67912159996
4
- data.tar.gz: 22c0d911080be8b78af8a7c7027acf545b9a41187ec078b7d241905dd31ff3c1
3
+ metadata.gz: 9ea56f9dd35946267157d69bc6aad4d2011ef0d032c2692f0fc8585f20f9e77d
4
+ data.tar.gz: 24d4246582ba7d9f897457fe5a3a09a2295b7888205c48146c71223662d287c8
5
5
  SHA512:
6
- metadata.gz: 8fb8fb60e9a2f10c8aad860658efe9a2accc187611d7b1c0d4819f3a2df0825cfff0280aa3af8dbbf9cc131ebff52ea7d0bc5b04571ead1f76f7849601c90bd0
7
- data.tar.gz: 5705b22256eb1a3fcf8f4084b0a2b18d54d147b04820a5a511e309d8f410417c9702869c4736b56176c5d5b3a7ff6112472b5582f4c4d33ece6bae7d4b86f355
6
+ metadata.gz: 12780f1e3231db163be3bf498700a34939ce9fef3c4545c353e111f1ab33f8871792ca48c9d74a8e1fe783a7c2a30cbd4da2fd1d10c6a82b9d0e277be2cf607b
7
+ data.tar.gz: e867f79215fd5932d6be2df27884a4570b1ff2595554124249b1b9c6cc93d4e8a9804b24c465535b7846c8dd01a451218abeeb3ceb2b0ea91859f45c8eafb2a6
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the AcceleratorTypes service.
29
- # service stub contains baseline method implementations
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:
@@ -167,7 +167,7 @@ module Google
167
167
  uri_method: :get,
168
168
  uri_template: "/compute/v1/projects/{project}/aggregated/acceleratorTypes",
169
169
  matches: [
170
- ["project", %r{[^/]+}, false]
170
+ ["project", %r{^[^/]+/?$}, false]
171
171
  ]
172
172
  )
173
173
  transcoder.transcode request_pb
@@ -188,9 +188,9 @@ module Google
188
188
  uri_method: :get,
189
189
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}",
190
190
  matches: [
191
- ["project", %r{[^/]+}, false],
192
- ["zone", %r{[^/]+}, false],
193
- ["accelerator_type", %r{[^/]+}, false]
191
+ ["project", %r{^[^/]+/?$}, false],
192
+ ["zone", %r{^[^/]+/?$}, false],
193
+ ["accelerator_type", %r{^[^/]+/?$}, false]
194
194
  ]
195
195
  )
196
196
  transcoder.transcode request_pb
@@ -211,8 +211,8 @@ module Google
211
211
  uri_method: :get,
212
212
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes",
213
213
  matches: [
214
- ["project", %r{[^/]+}, false],
215
- ["zone", %r{[^/]+}, false]
214
+ ["project", %r{^[^/]+/?$}, false],
215
+ ["zone", %r{^[^/]+/?$}, false]
216
216
  ]
217
217
  )
218
218
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the Addresses service.
29
- # service stub contains baseline method implementations
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/addresses",
243
243
  matches: [
244
- ["project", %r{[^/]+}, false]
244
+ ["project", %r{^[^/]+/?$}, false]
245
245
  ]
246
246
  )
247
247
  transcoder.transcode request_pb
@@ -262,9 +262,9 @@ module Google
262
262
  uri_method: :delete,
263
263
  uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses/{address}",
264
264
  matches: [
265
- ["project", %r{[^/]+}, false],
266
- ["region", %r{[^/]+}, false],
267
- ["address", %r{[^/]+}, false]
265
+ ["project", %r{^[^/]+/?$}, false],
266
+ ["region", %r{^[^/]+/?$}, false],
267
+ ["address", %r{^[^/]+/?$}, false]
268
268
  ]
269
269
  )
270
270
  transcoder.transcode request_pb
@@ -285,9 +285,9 @@ module Google
285
285
  uri_method: :get,
286
286
  uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses/{address}",
287
287
  matches: [
288
- ["project", %r{[^/]+}, false],
289
- ["region", %r{[^/]+}, false],
290
- ["address", %r{[^/]+}, false]
288
+ ["project", %r{^[^/]+/?$}, false],
289
+ ["region", %r{^[^/]+/?$}, false],
290
+ ["address", %r{^[^/]+/?$}, false]
291
291
  ]
292
292
  )
293
293
  transcoder.transcode request_pb
@@ -309,8 +309,8 @@ module Google
309
309
  uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses",
310
310
  body: "address_resource",
311
311
  matches: [
312
- ["project", %r{[^/]+}, false],
313
- ["region", %r{[^/]+}, false]
312
+ ["project", %r{^[^/]+/?$}, false],
313
+ ["region", %r{^[^/]+/?$}, false]
314
314
  ]
315
315
  )
316
316
  transcoder.transcode request_pb
@@ -331,8 +331,8 @@ module Google
331
331
  uri_method: :get,
332
332
  uri_template: "/compute/v1/projects/{project}/regions/{region}/addresses",
333
333
  matches: [
334
- ["project", %r{[^/]+}, false],
335
- ["region", %r{[^/]+}, false]
334
+ ["project", %r{^[^/]+/?$}, false],
335
+ ["region", %r{^[^/]+/?$}, false]
336
336
  ]
337
337
  )
338
338
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the Autoscalers service.
29
- # service stub contains baseline method implementations
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:
@@ -315,7 +315,7 @@ module Google
315
315
  uri_method: :get,
316
316
  uri_template: "/compute/v1/projects/{project}/aggregated/autoscalers",
317
317
  matches: [
318
- ["project", %r{[^/]+}, false]
318
+ ["project", %r{^[^/]+/?$}, false]
319
319
  ]
320
320
  )
321
321
  transcoder.transcode request_pb
@@ -336,9 +336,9 @@ module Google
336
336
  uri_method: :delete,
337
337
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
338
338
  matches: [
339
- ["project", %r{[^/]+}, false],
340
- ["zone", %r{[^/]+}, false],
341
- ["autoscaler", %r{[^/]+}, false]
339
+ ["project", %r{^[^/]+/?$}, false],
340
+ ["zone", %r{^[^/]+/?$}, false],
341
+ ["autoscaler", %r{^[^/]+/?$}, false]
342
342
  ]
343
343
  )
344
344
  transcoder.transcode request_pb
@@ -359,9 +359,9 @@ module Google
359
359
  uri_method: :get,
360
360
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}",
361
361
  matches: [
362
- ["project", %r{[^/]+}, false],
363
- ["zone", %r{[^/]+}, false],
364
- ["autoscaler", %r{[^/]+}, false]
362
+ ["project", %r{^[^/]+/?$}, false],
363
+ ["zone", %r{^[^/]+/?$}, false],
364
+ ["autoscaler", %r{^[^/]+/?$}, false]
365
365
  ]
366
366
  )
367
367
  transcoder.transcode request_pb
@@ -383,8 +383,8 @@ module Google
383
383
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers",
384
384
  body: "autoscaler_resource",
385
385
  matches: [
386
- ["project", %r{[^/]+}, false],
387
- ["zone", %r{[^/]+}, false]
386
+ ["project", %r{^[^/]+/?$}, false],
387
+ ["zone", %r{^[^/]+/?$}, false]
388
388
  ]
389
389
  )
390
390
  transcoder.transcode request_pb
@@ -405,8 +405,8 @@ module Google
405
405
  uri_method: :get,
406
406
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers",
407
407
  matches: [
408
- ["project", %r{[^/]+}, false],
409
- ["zone", %r{[^/]+}, false]
408
+ ["project", %r{^[^/]+/?$}, false],
409
+ ["zone", %r{^[^/]+/?$}, false]
410
410
  ]
411
411
  )
412
412
  transcoder.transcode request_pb
@@ -428,8 +428,8 @@ module Google
428
428
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers",
429
429
  body: "autoscaler_resource",
430
430
  matches: [
431
- ["project", %r{[^/]+}, false],
432
- ["zone", %r{[^/]+}, false]
431
+ ["project", %r{^[^/]+/?$}, false],
432
+ ["zone", %r{^[^/]+/?$}, false]
433
433
  ]
434
434
  )
435
435
  transcoder.transcode request_pb
@@ -451,8 +451,8 @@ module Google
451
451
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/autoscalers",
452
452
  body: "autoscaler_resource",
453
453
  matches: [
454
- ["project", %r{[^/]+}, false],
455
- ["zone", %r{[^/]+}, false]
454
+ ["project", %r{^[^/]+/?$}, false],
455
+ ["zone", %r{^[^/]+/?$}, false]
456
456
  ]
457
457
  )
458
458
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the BackendBuckets service.
29
- # service stub contains baseline method implementations
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:
@@ -390,8 +390,8 @@ module Google
390
390
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/addSignedUrlKey",
391
391
  body: "signed_url_key_resource",
392
392
  matches: [
393
- ["project", %r{[^/]+}, false],
394
- ["backend_bucket", %r{[^/]+}, false]
393
+ ["project", %r{^[^/]+/?$}, false],
394
+ ["backend_bucket", %r{^[^/]+/?$}, false]
395
395
  ]
396
396
  )
397
397
  transcoder.transcode request_pb
@@ -412,8 +412,8 @@ module Google
412
412
  uri_method: :delete,
413
413
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}",
414
414
  matches: [
415
- ["project", %r{[^/]+}, false],
416
- ["backend_bucket", %r{[^/]+}, false]
415
+ ["project", %r{^[^/]+/?$}, false],
416
+ ["backend_bucket", %r{^[^/]+/?$}, false]
417
417
  ]
418
418
  )
419
419
  transcoder.transcode request_pb
@@ -434,8 +434,8 @@ module Google
434
434
  uri_method: :post,
435
435
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/deleteSignedUrlKey",
436
436
  matches: [
437
- ["project", %r{[^/]+}, false],
438
- ["backend_bucket", %r{[^/]+}, false]
437
+ ["project", %r{^[^/]+/?$}, false],
438
+ ["backend_bucket", %r{^[^/]+/?$}, false]
439
439
  ]
440
440
  )
441
441
  transcoder.transcode request_pb
@@ -456,8 +456,8 @@ module Google
456
456
  uri_method: :get,
457
457
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}",
458
458
  matches: [
459
- ["project", %r{[^/]+}, false],
460
- ["backend_bucket", %r{[^/]+}, false]
459
+ ["project", %r{^[^/]+/?$}, false],
460
+ ["backend_bucket", %r{^[^/]+/?$}, false]
461
461
  ]
462
462
  )
463
463
  transcoder.transcode request_pb
@@ -479,7 +479,7 @@ module Google
479
479
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets",
480
480
  body: "backend_bucket_resource",
481
481
  matches: [
482
- ["project", %r{[^/]+}, false]
482
+ ["project", %r{^[^/]+/?$}, false]
483
483
  ]
484
484
  )
485
485
  transcoder.transcode request_pb
@@ -500,7 +500,7 @@ module Google
500
500
  uri_method: :get,
501
501
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets",
502
502
  matches: [
503
- ["project", %r{[^/]+}, false]
503
+ ["project", %r{^[^/]+/?$}, false]
504
504
  ]
505
505
  )
506
506
  transcoder.transcode request_pb
@@ -522,8 +522,8 @@ module Google
522
522
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}",
523
523
  body: "backend_bucket_resource",
524
524
  matches: [
525
- ["project", %r{[^/]+}, false],
526
- ["backend_bucket", %r{[^/]+}, false]
525
+ ["project", %r{^[^/]+/?$}, false],
526
+ ["backend_bucket", %r{^[^/]+/?$}, false]
527
527
  ]
528
528
  )
529
529
  transcoder.transcode request_pb
@@ -545,8 +545,8 @@ module Google
545
545
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/setEdgeSecurityPolicy",
546
546
  body: "security_policy_reference_resource",
547
547
  matches: [
548
- ["project", %r{[^/]+}, false],
549
- ["backend_bucket", %r{[^/]+}, false]
548
+ ["project", %r{^[^/]+/?$}, false],
549
+ ["backend_bucket", %r{^[^/]+/?$}, false]
550
550
  ]
551
551
  )
552
552
  transcoder.transcode request_pb
@@ -568,8 +568,8 @@ module Google
568
568
  uri_template: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}",
569
569
  body: "backend_bucket_resource",
570
570
  matches: [
571
- ["project", %r{[^/]+}, false],
572
- ["backend_bucket", %r{[^/]+}, false]
571
+ ["project", %r{^[^/]+/?$}, false],
572
+ ["backend_bucket", %r{^[^/]+/?$}, false]
573
573
  ]
574
574
  )
575
575
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the BackendServices service.
29
- # service stub contains baseline method implementations
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,8 +501,8 @@ module Google
501
501
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/addSignedUrlKey",
502
502
  body: "signed_url_key_resource",
503
503
  matches: [
504
- ["project", %r{[^/]+}, false],
505
- ["backend_service", %r{[^/]+}, false]
504
+ ["project", %r{^[^/]+/?$}, false],
505
+ ["backend_service", %r{^[^/]+/?$}, false]
506
506
  ]
507
507
  )
508
508
  transcoder.transcode request_pb
@@ -523,7 +523,7 @@ module Google
523
523
  uri_method: :get,
524
524
  uri_template: "/compute/v1/projects/{project}/aggregated/backendServices",
525
525
  matches: [
526
- ["project", %r{[^/]+}, false]
526
+ ["project", %r{^[^/]+/?$}, false]
527
527
  ]
528
528
  )
529
529
  transcoder.transcode request_pb
@@ -544,8 +544,8 @@ module Google
544
544
  uri_method: :delete,
545
545
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
546
546
  matches: [
547
- ["project", %r{[^/]+}, false],
548
- ["backend_service", %r{[^/]+}, false]
547
+ ["project", %r{^[^/]+/?$}, false],
548
+ ["backend_service", %r{^[^/]+/?$}, false]
549
549
  ]
550
550
  )
551
551
  transcoder.transcode request_pb
@@ -566,8 +566,8 @@ module Google
566
566
  uri_method: :post,
567
567
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/deleteSignedUrlKey",
568
568
  matches: [
569
- ["project", %r{[^/]+}, false],
570
- ["backend_service", %r{[^/]+}, false]
569
+ ["project", %r{^[^/]+/?$}, false],
570
+ ["backend_service", %r{^[^/]+/?$}, false]
571
571
  ]
572
572
  )
573
573
  transcoder.transcode request_pb
@@ -588,8 +588,8 @@ module Google
588
588
  uri_method: :get,
589
589
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
590
590
  matches: [
591
- ["project", %r{[^/]+}, false],
592
- ["backend_service", %r{[^/]+}, false]
591
+ ["project", %r{^[^/]+/?$}, false],
592
+ ["backend_service", %r{^[^/]+/?$}, false]
593
593
  ]
594
594
  )
595
595
  transcoder.transcode request_pb
@@ -611,8 +611,8 @@ module Google
611
611
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/getHealth",
612
612
  body: "resource_group_reference_resource",
613
613
  matches: [
614
- ["project", %r{[^/]+}, false],
615
- ["backend_service", %r{[^/]+}, false]
614
+ ["project", %r{^[^/]+/?$}, false],
615
+ ["backend_service", %r{^[^/]+/?$}, false]
616
616
  ]
617
617
  )
618
618
  transcoder.transcode request_pb
@@ -634,7 +634,7 @@ module Google
634
634
  uri_template: "/compute/v1/projects/{project}/global/backendServices",
635
635
  body: "backend_service_resource",
636
636
  matches: [
637
- ["project", %r{[^/]+}, false]
637
+ ["project", %r{^[^/]+/?$}, false]
638
638
  ]
639
639
  )
640
640
  transcoder.transcode request_pb
@@ -655,7 +655,7 @@ module Google
655
655
  uri_method: :get,
656
656
  uri_template: "/compute/v1/projects/{project}/global/backendServices",
657
657
  matches: [
658
- ["project", %r{[^/]+}, false]
658
+ ["project", %r{^[^/]+/?$}, false]
659
659
  ]
660
660
  )
661
661
  transcoder.transcode request_pb
@@ -677,8 +677,8 @@ module Google
677
677
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
678
678
  body: "backend_service_resource",
679
679
  matches: [
680
- ["project", %r{[^/]+}, false],
681
- ["backend_service", %r{[^/]+}, false]
680
+ ["project", %r{^[^/]+/?$}, false],
681
+ ["backend_service", %r{^[^/]+/?$}, false]
682
682
  ]
683
683
  )
684
684
  transcoder.transcode request_pb
@@ -700,8 +700,8 @@ module Google
700
700
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setEdgeSecurityPolicy",
701
701
  body: "security_policy_reference_resource",
702
702
  matches: [
703
- ["project", %r{[^/]+}, false],
704
- ["backend_service", %r{[^/]+}, false]
703
+ ["project", %r{^[^/]+/?$}, false],
704
+ ["backend_service", %r{^[^/]+/?$}, false]
705
705
  ]
706
706
  )
707
707
  transcoder.transcode request_pb
@@ -723,8 +723,8 @@ module Google
723
723
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setSecurityPolicy",
724
724
  body: "security_policy_reference_resource",
725
725
  matches: [
726
- ["project", %r{[^/]+}, false],
727
- ["backend_service", %r{[^/]+}, false]
726
+ ["project", %r{^[^/]+/?$}, false],
727
+ ["backend_service", %r{^[^/]+/?$}, false]
728
728
  ]
729
729
  )
730
730
  transcoder.transcode request_pb
@@ -746,8 +746,8 @@ module Google
746
746
  uri_template: "/compute/v1/projects/{project}/global/backendServices/{backend_service}",
747
747
  body: "backend_service_resource",
748
748
  matches: [
749
- ["project", %r{[^/]+}, false],
750
- ["backend_service", %r{[^/]+}, false]
749
+ ["project", %r{^[^/]+/?$}, false],
750
+ ["backend_service", %r{^[^/]+/?$}, false]
751
751
  ]
752
752
  )
753
753
  transcoder.transcode request_pb