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.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +87 -0
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +74 -13
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
  7. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
  8. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +151 -0
  9. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -23
  10. data/lib/google/cloud/compute/v1/compute_pb.rb +357 -0
  11. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
  12. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
  13. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
  14. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
  15. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
  16. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
  17. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +82 -0
  18. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +68 -8
  19. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
  20. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
  21. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
  22. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
  23. data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
  24. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
  25. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
  26. data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
  27. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
  28. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
  29. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
  30. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
  31. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
  33. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  36. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
  37. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +87 -0
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +77 -16
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
  40. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +82 -0
  41. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +72 -12
  42. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
  43. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
  44. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
  45. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
  46. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
  47. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
  48. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
  49. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
  50. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
  51. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
  52. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
  53. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
  54. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
  55. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
  56. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
  57. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
  58. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +155 -0
  59. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +142 -21
  60. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
  61. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
  62. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
  63. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
  64. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
  65. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
  68. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
  69. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
  70. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
  71. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
  72. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
  73. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
  74. data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
  78. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +759 -0
  79. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
  80. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
  81. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
  82. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
  83. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
  84. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
  85. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +587 -0
  86. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
  87. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
  88. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
  89. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
  90. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
  91. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
  92. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
  93. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
  94. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
  95. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +82 -0
  96. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +80 -20
  97. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
  98. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
  99. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
  100. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +86 -0
  101. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +69 -11
  102. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
  103. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
  104. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
  105. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
  106. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
  107. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
  108. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
  109. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
  110. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +87 -0
  111. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +74 -13
  112. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
  113. data/lib/google/cloud/compute/v1/version.rb +1 -1
  114. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
  115. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +87 -0
  116. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +74 -13
  117. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
  118. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
  119. data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
  120. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
  121. data/lib/google/cloud/compute/v1.rb +2 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +968 -39
  123. metadata +12 -2
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the Licenses 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,8 +315,8 @@ module Google
315
315
  uri_method: :delete,
316
316
  uri_template: "/compute/v1/projects/{project}/global/licenses/{license}",
317
317
  matches: [
318
- ["project", %r{[^/]+}, false],
319
- ["license", %r{[^/]+}, false]
318
+ ["project", %r{^[^/]+/?$}, false],
319
+ ["license", %r{^[^/]+/?$}, false]
320
320
  ]
321
321
  )
322
322
  transcoder.transcode request_pb
@@ -337,8 +337,8 @@ module Google
337
337
  uri_method: :get,
338
338
  uri_template: "/compute/v1/projects/{project}/global/licenses/{license}",
339
339
  matches: [
340
- ["project", %r{[^/]+}, false],
341
- ["license", %r{[^/]+}, false]
340
+ ["project", %r{^[^/]+/?$}, false],
341
+ ["license", %r{^[^/]+/?$}, false]
342
342
  ]
343
343
  )
344
344
  transcoder.transcode request_pb
@@ -359,8 +359,8 @@ module Google
359
359
  uri_method: :get,
360
360
  uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy",
361
361
  matches: [
362
- ["project", %r{[^/]+}, false],
363
- ["resource", %r{[^/]+}, false]
362
+ ["project", %r{^[^/]+/?$}, false],
363
+ ["resource", %r{^[^/]+/?$}, false]
364
364
  ]
365
365
  )
366
366
  transcoder.transcode request_pb
@@ -382,7 +382,7 @@ module Google
382
382
  uri_template: "/compute/v1/projects/{project}/global/licenses",
383
383
  body: "license_resource",
384
384
  matches: [
385
- ["project", %r{[^/]+}, false]
385
+ ["project", %r{^[^/]+/?$}, false]
386
386
  ]
387
387
  )
388
388
  transcoder.transcode request_pb
@@ -403,7 +403,7 @@ module Google
403
403
  uri_method: :get,
404
404
  uri_template: "/compute/v1/projects/{project}/global/licenses",
405
405
  matches: [
406
- ["project", %r{[^/]+}, false]
406
+ ["project", %r{^[^/]+/?$}, false]
407
407
  ]
408
408
  )
409
409
  transcoder.transcode request_pb
@@ -425,8 +425,8 @@ module Google
425
425
  uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy",
426
426
  body: "global_set_policy_request_resource",
427
427
  matches: [
428
- ["project", %r{[^/]+}, false],
429
- ["resource", %r{[^/]+}, false]
428
+ ["project", %r{^[^/]+/?$}, false],
429
+ ["resource", %r{^[^/]+/?$}, false]
430
430
  ]
431
431
  )
432
432
  transcoder.transcode request_pb
@@ -448,8 +448,8 @@ module Google
448
448
  uri_template: "/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions",
449
449
  body: "test_permissions_request_resource",
450
450
  matches: [
451
- ["project", %r{[^/]+}, false],
452
- ["resource", %r{[^/]+}, false]
451
+ ["project", %r{^[^/]+/?$}, false],
452
+ ["resource", %r{^[^/]+/?$}, false]
453
453
  ]
454
454
  )
455
455
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the MachineImages 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,8 +315,8 @@ module Google
315
315
  uri_method: :delete,
316
316
  uri_template: "/compute/v1/projects/{project}/global/machineImages/{machine_image}",
317
317
  matches: [
318
- ["project", %r{[^/]+}, false],
319
- ["machine_image", %r{[^/]+}, false]
318
+ ["project", %r{^[^/]+/?$}, false],
319
+ ["machine_image", %r{^[^/]+/?$}, false]
320
320
  ]
321
321
  )
322
322
  transcoder.transcode request_pb
@@ -337,8 +337,8 @@ module Google
337
337
  uri_method: :get,
338
338
  uri_template: "/compute/v1/projects/{project}/global/machineImages/{machine_image}",
339
339
  matches: [
340
- ["project", %r{[^/]+}, false],
341
- ["machine_image", %r{[^/]+}, false]
340
+ ["project", %r{^[^/]+/?$}, false],
341
+ ["machine_image", %r{^[^/]+/?$}, false]
342
342
  ]
343
343
  )
344
344
  transcoder.transcode request_pb
@@ -359,8 +359,8 @@ module Google
359
359
  uri_method: :get,
360
360
  uri_template: "/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy",
361
361
  matches: [
362
- ["project", %r{[^/]+}, false],
363
- ["resource", %r{[^/]+}, false]
362
+ ["project", %r{^[^/]+/?$}, false],
363
+ ["resource", %r{^[^/]+/?$}, false]
364
364
  ]
365
365
  )
366
366
  transcoder.transcode request_pb
@@ -382,7 +382,7 @@ module Google
382
382
  uri_template: "/compute/v1/projects/{project}/global/machineImages",
383
383
  body: "machine_image_resource",
384
384
  matches: [
385
- ["project", %r{[^/]+}, false]
385
+ ["project", %r{^[^/]+/?$}, false]
386
386
  ]
387
387
  )
388
388
  transcoder.transcode request_pb
@@ -403,7 +403,7 @@ module Google
403
403
  uri_method: :get,
404
404
  uri_template: "/compute/v1/projects/{project}/global/machineImages",
405
405
  matches: [
406
- ["project", %r{[^/]+}, false]
406
+ ["project", %r{^[^/]+/?$}, false]
407
407
  ]
408
408
  )
409
409
  transcoder.transcode request_pb
@@ -425,8 +425,8 @@ module Google
425
425
  uri_template: "/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy",
426
426
  body: "global_set_policy_request_resource",
427
427
  matches: [
428
- ["project", %r{[^/]+}, false],
429
- ["resource", %r{[^/]+}, false]
428
+ ["project", %r{^[^/]+/?$}, false],
429
+ ["resource", %r{^[^/]+/?$}, false]
430
430
  ]
431
431
  )
432
432
  transcoder.transcode request_pb
@@ -448,8 +448,8 @@ module Google
448
448
  uri_template: "/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions",
449
449
  body: "test_permissions_request_resource",
450
450
  matches: [
451
- ["project", %r{[^/]+}, false],
452
- ["resource", %r{[^/]+}, false]
451
+ ["project", %r{^[^/]+/?$}, false],
452
+ ["resource", %r{^[^/]+/?$}, false]
453
453
  ]
454
454
  )
455
455
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the MachineTypes 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/machineTypes",
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}/machineTypes/{machine_type}",
190
190
  matches: [
191
- ["project", %r{[^/]+}, false],
192
- ["zone", %r{[^/]+}, false],
193
- ["machine_type", %r{[^/]+}, false]
191
+ ["project", %r{^[^/]+/?$}, false],
192
+ ["zone", %r{^[^/]+/?$}, false],
193
+ ["machine_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}/machineTypes",
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 NetworkEdgeSecurityServices 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/networkEdgeSecurityServices",
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}/networkEdgeSecurityServices/{network_edge_security_service}",
264
264
  matches: [
265
- ["project", %r{[^/]+}, false],
266
- ["region", %r{[^/]+}, false],
267
- ["network_edge_security_service", %r{[^/]+}, false]
265
+ ["project", %r{^[^/]+/?$}, false],
266
+ ["region", %r{^[^/]+/?$}, false],
267
+ ["network_edge_security_service", %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}/networkEdgeSecurityServices/{network_edge_security_service}",
287
287
  matches: [
288
- ["project", %r{[^/]+}, false],
289
- ["region", %r{[^/]+}, false],
290
- ["network_edge_security_service", %r{[^/]+}, false]
288
+ ["project", %r{^[^/]+/?$}, false],
289
+ ["region", %r{^[^/]+/?$}, false],
290
+ ["network_edge_security_service", %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}/networkEdgeSecurityServices",
310
310
  body: "network_edge_security_service_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
@@ -332,9 +332,9 @@ module Google
332
332
  uri_template: "/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{network_edge_security_service}",
333
333
  body: "network_edge_security_service_resource",
334
334
  matches: [
335
- ["project", %r{[^/]+}, false],
336
- ["region", %r{[^/]+}, false],
337
- ["network_edge_security_service", %r{[^/]+}, false]
335
+ ["project", %r{^[^/]+/?$}, false],
336
+ ["region", %r{^[^/]+/?$}, false],
337
+ ["network_edge_security_service", %r{^[^/]+/?$}, false]
338
338
  ]
339
339
  )
340
340
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the NetworkEndpointGroups 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:
@@ -389,7 +389,7 @@ module Google
389
389
  uri_method: :get,
390
390
  uri_template: "/compute/v1/projects/{project}/aggregated/networkEndpointGroups",
391
391
  matches: [
392
- ["project", %r{[^/]+}, false]
392
+ ["project", %r{^[^/]+/?$}, false]
393
393
  ]
394
394
  )
395
395
  transcoder.transcode request_pb
@@ -411,9 +411,9 @@ module Google
411
411
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}/attachNetworkEndpoints",
412
412
  body: "network_endpoint_groups_attach_endpoints_request_resource",
413
413
  matches: [
414
- ["project", %r{[^/]+}, false],
415
- ["zone", %r{[^/]+}, false],
416
- ["network_endpoint_group", %r{[^/]+}, false]
414
+ ["project", %r{^[^/]+/?$}, false],
415
+ ["zone", %r{^[^/]+/?$}, false],
416
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
417
417
  ]
418
418
  )
419
419
  transcoder.transcode request_pb
@@ -434,9 +434,9 @@ module Google
434
434
  uri_method: :delete,
435
435
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}",
436
436
  matches: [
437
- ["project", %r{[^/]+}, false],
438
- ["zone", %r{[^/]+}, false],
439
- ["network_endpoint_group", %r{[^/]+}, false]
437
+ ["project", %r{^[^/]+/?$}, false],
438
+ ["zone", %r{^[^/]+/?$}, false],
439
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
440
440
  ]
441
441
  )
442
442
  transcoder.transcode request_pb
@@ -458,9 +458,9 @@ module Google
458
458
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}/detachNetworkEndpoints",
459
459
  body: "network_endpoint_groups_detach_endpoints_request_resource",
460
460
  matches: [
461
- ["project", %r{[^/]+}, false],
462
- ["zone", %r{[^/]+}, false],
463
- ["network_endpoint_group", %r{[^/]+}, false]
461
+ ["project", %r{^[^/]+/?$}, false],
462
+ ["zone", %r{^[^/]+/?$}, false],
463
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
464
464
  ]
465
465
  )
466
466
  transcoder.transcode request_pb
@@ -481,9 +481,9 @@ module Google
481
481
  uri_method: :get,
482
482
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}",
483
483
  matches: [
484
- ["project", %r{[^/]+}, false],
485
- ["zone", %r{[^/]+}, false],
486
- ["network_endpoint_group", %r{[^/]+}, false]
484
+ ["project", %r{^[^/]+/?$}, false],
485
+ ["zone", %r{^[^/]+/?$}, false],
486
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
487
487
  ]
488
488
  )
489
489
  transcoder.transcode request_pb
@@ -505,8 +505,8 @@ module Google
505
505
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups",
506
506
  body: "network_endpoint_group_resource",
507
507
  matches: [
508
- ["project", %r{[^/]+}, false],
509
- ["zone", %r{[^/]+}, false]
508
+ ["project", %r{^[^/]+/?$}, false],
509
+ ["zone", %r{^[^/]+/?$}, false]
510
510
  ]
511
511
  )
512
512
  transcoder.transcode request_pb
@@ -527,8 +527,8 @@ module Google
527
527
  uri_method: :get,
528
528
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups",
529
529
  matches: [
530
- ["project", %r{[^/]+}, false],
531
- ["zone", %r{[^/]+}, false]
530
+ ["project", %r{^[^/]+/?$}, false],
531
+ ["zone", %r{^[^/]+/?$}, false]
532
532
  ]
533
533
  )
534
534
  transcoder.transcode request_pb
@@ -550,9 +550,9 @@ module Google
550
550
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}/listNetworkEndpoints",
551
551
  body: "network_endpoint_groups_list_endpoints_request_resource",
552
552
  matches: [
553
- ["project", %r{[^/]+}, false],
554
- ["zone", %r{[^/]+}, false],
555
- ["network_endpoint_group", %r{[^/]+}, false]
553
+ ["project", %r{^[^/]+/?$}, false],
554
+ ["zone", %r{^[^/]+/?$}, false],
555
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
556
556
  ]
557
557
  )
558
558
  transcoder.transcode request_pb
@@ -574,9 +574,9 @@ module Google
574
574
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions",
575
575
  body: "test_permissions_request_resource",
576
576
  matches: [
577
- ["project", %r{[^/]+}, false],
578
- ["zone", %r{[^/]+}, false],
579
- ["resource", %r{[^/]+}, false]
577
+ ["project", %r{^[^/]+/?$}, false],
578
+ ["zone", %r{^[^/]+/?$}, false],
579
+ ["resource", %r{^[^/]+/?$}, false]
580
580
  ]
581
581
  )
582
582
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the NetworkFirewallPolicies 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:
@@ -649,8 +649,8 @@ module Google
649
649
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/addAssociation",
650
650
  body: "firewall_policy_association_resource",
651
651
  matches: [
652
- ["project", %r{[^/]+}, false],
653
- ["firewall_policy", %r{[^/]+}, false]
652
+ ["project", %r{^[^/]+/?$}, false],
653
+ ["firewall_policy", %r{^[^/]+/?$}, false]
654
654
  ]
655
655
  )
656
656
  transcoder.transcode request_pb
@@ -672,8 +672,8 @@ module Google
672
672
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/addRule",
673
673
  body: "firewall_policy_rule_resource",
674
674
  matches: [
675
- ["project", %r{[^/]+}, false],
676
- ["firewall_policy", %r{[^/]+}, false]
675
+ ["project", %r{^[^/]+/?$}, false],
676
+ ["firewall_policy", %r{^[^/]+/?$}, false]
677
677
  ]
678
678
  )
679
679
  transcoder.transcode request_pb
@@ -694,8 +694,8 @@ module Google
694
694
  uri_method: :post,
695
695
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/cloneRules",
696
696
  matches: [
697
- ["project", %r{[^/]+}, false],
698
- ["firewall_policy", %r{[^/]+}, false]
697
+ ["project", %r{^[^/]+/?$}, false],
698
+ ["firewall_policy", %r{^[^/]+/?$}, false]
699
699
  ]
700
700
  )
701
701
  transcoder.transcode request_pb
@@ -716,8 +716,8 @@ module Google
716
716
  uri_method: :delete,
717
717
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}",
718
718
  matches: [
719
- ["project", %r{[^/]+}, false],
720
- ["firewall_policy", %r{[^/]+}, false]
719
+ ["project", %r{^[^/]+/?$}, false],
720
+ ["firewall_policy", %r{^[^/]+/?$}, false]
721
721
  ]
722
722
  )
723
723
  transcoder.transcode request_pb
@@ -738,8 +738,8 @@ module Google
738
738
  uri_method: :get,
739
739
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}",
740
740
  matches: [
741
- ["project", %r{[^/]+}, false],
742
- ["firewall_policy", %r{[^/]+}, false]
741
+ ["project", %r{^[^/]+/?$}, false],
742
+ ["firewall_policy", %r{^[^/]+/?$}, false]
743
743
  ]
744
744
  )
745
745
  transcoder.transcode request_pb
@@ -760,8 +760,8 @@ module Google
760
760
  uri_method: :get,
761
761
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/getAssociation",
762
762
  matches: [
763
- ["project", %r{[^/]+}, false],
764
- ["firewall_policy", %r{[^/]+}, false]
763
+ ["project", %r{^[^/]+/?$}, false],
764
+ ["firewall_policy", %r{^[^/]+/?$}, false]
765
765
  ]
766
766
  )
767
767
  transcoder.transcode request_pb
@@ -782,8 +782,8 @@ module Google
782
782
  uri_method: :get,
783
783
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy",
784
784
  matches: [
785
- ["project", %r{[^/]+}, false],
786
- ["resource", %r{[^/]+}, false]
785
+ ["project", %r{^[^/]+/?$}, false],
786
+ ["resource", %r{^[^/]+/?$}, false]
787
787
  ]
788
788
  )
789
789
  transcoder.transcode request_pb
@@ -804,8 +804,8 @@ module Google
804
804
  uri_method: :get,
805
805
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/getRule",
806
806
  matches: [
807
- ["project", %r{[^/]+}, false],
808
- ["firewall_policy", %r{[^/]+}, false]
807
+ ["project", %r{^[^/]+/?$}, false],
808
+ ["firewall_policy", %r{^[^/]+/?$}, false]
809
809
  ]
810
810
  )
811
811
  transcoder.transcode request_pb
@@ -827,7 +827,7 @@ module Google
827
827
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies",
828
828
  body: "firewall_policy_resource",
829
829
  matches: [
830
- ["project", %r{[^/]+}, false]
830
+ ["project", %r{^[^/]+/?$}, false]
831
831
  ]
832
832
  )
833
833
  transcoder.transcode request_pb
@@ -848,7 +848,7 @@ module Google
848
848
  uri_method: :get,
849
849
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies",
850
850
  matches: [
851
- ["project", %r{[^/]+}, false]
851
+ ["project", %r{^[^/]+/?$}, false]
852
852
  ]
853
853
  )
854
854
  transcoder.transcode request_pb
@@ -870,8 +870,8 @@ module Google
870
870
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}",
871
871
  body: "firewall_policy_resource",
872
872
  matches: [
873
- ["project", %r{[^/]+}, false],
874
- ["firewall_policy", %r{[^/]+}, false]
873
+ ["project", %r{^[^/]+/?$}, false],
874
+ ["firewall_policy", %r{^[^/]+/?$}, false]
875
875
  ]
876
876
  )
877
877
  transcoder.transcode request_pb
@@ -893,8 +893,8 @@ module Google
893
893
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/patchRule",
894
894
  body: "firewall_policy_rule_resource",
895
895
  matches: [
896
- ["project", %r{[^/]+}, false],
897
- ["firewall_policy", %r{[^/]+}, false]
896
+ ["project", %r{^[^/]+/?$}, false],
897
+ ["firewall_policy", %r{^[^/]+/?$}, false]
898
898
  ]
899
899
  )
900
900
  transcoder.transcode request_pb
@@ -915,8 +915,8 @@ module Google
915
915
  uri_method: :post,
916
916
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/removeAssociation",
917
917
  matches: [
918
- ["project", %r{[^/]+}, false],
919
- ["firewall_policy", %r{[^/]+}, false]
918
+ ["project", %r{^[^/]+/?$}, false],
919
+ ["firewall_policy", %r{^[^/]+/?$}, false]
920
920
  ]
921
921
  )
922
922
  transcoder.transcode request_pb
@@ -937,8 +937,8 @@ module Google
937
937
  uri_method: :post,
938
938
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{firewall_policy}/removeRule",
939
939
  matches: [
940
- ["project", %r{[^/]+}, false],
941
- ["firewall_policy", %r{[^/]+}, false]
940
+ ["project", %r{^[^/]+/?$}, false],
941
+ ["firewall_policy", %r{^[^/]+/?$}, false]
942
942
  ]
943
943
  )
944
944
  transcoder.transcode request_pb
@@ -960,8 +960,8 @@ module Google
960
960
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy",
961
961
  body: "global_set_policy_request_resource",
962
962
  matches: [
963
- ["project", %r{[^/]+}, false],
964
- ["resource", %r{[^/]+}, false]
963
+ ["project", %r{^[^/]+/?$}, false],
964
+ ["resource", %r{^[^/]+/?$}, false]
965
965
  ]
966
966
  )
967
967
  transcoder.transcode request_pb
@@ -983,8 +983,8 @@ module Google
983
983
  uri_template: "/compute/v1/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions",
984
984
  body: "test_permissions_request_resource",
985
985
  matches: [
986
- ["project", %r{[^/]+}, false],
987
- ["resource", %r{[^/]+}, false]
986
+ ["project", %r{^[^/]+/?$}, false],
987
+ ["resource", %r{^[^/]+/?$}, false]
988
988
  ]
989
989
  )
990
990
  transcoder.transcode request_pb