google-cloud-compute-v1 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the TargetPools 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:
@@ -464,9 +464,9 @@ module Google
464
464
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addHealthCheck",
465
465
  body: "target_pools_add_health_check_request_resource",
466
466
  matches: [
467
- ["project", %r{[^/]+}, false],
468
- ["region", %r{[^/]+}, false],
469
- ["target_pool", %r{[^/]+}, false]
467
+ ["project", %r{^[^/]+/?$}, false],
468
+ ["region", %r{^[^/]+/?$}, false],
469
+ ["target_pool", %r{^[^/]+/?$}, false]
470
470
  ]
471
471
  )
472
472
  transcoder.transcode request_pb
@@ -488,9 +488,9 @@ module Google
488
488
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addInstance",
489
489
  body: "target_pools_add_instance_request_resource",
490
490
  matches: [
491
- ["project", %r{[^/]+}, false],
492
- ["region", %r{[^/]+}, false],
493
- ["target_pool", %r{[^/]+}, false]
491
+ ["project", %r{^[^/]+/?$}, false],
492
+ ["region", %r{^[^/]+/?$}, false],
493
+ ["target_pool", %r{^[^/]+/?$}, false]
494
494
  ]
495
495
  )
496
496
  transcoder.transcode request_pb
@@ -511,7 +511,7 @@ module Google
511
511
  uri_method: :get,
512
512
  uri_template: "/compute/v1/projects/{project}/aggregated/targetPools",
513
513
  matches: [
514
- ["project", %r{[^/]+}, false]
514
+ ["project", %r{^[^/]+/?$}, false]
515
515
  ]
516
516
  )
517
517
  transcoder.transcode request_pb
@@ -532,9 +532,9 @@ module Google
532
532
  uri_method: :delete,
533
533
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
534
534
  matches: [
535
- ["project", %r{[^/]+}, false],
536
- ["region", %r{[^/]+}, false],
537
- ["target_pool", %r{[^/]+}, false]
535
+ ["project", %r{^[^/]+/?$}, false],
536
+ ["region", %r{^[^/]+/?$}, false],
537
+ ["target_pool", %r{^[^/]+/?$}, false]
538
538
  ]
539
539
  )
540
540
  transcoder.transcode request_pb
@@ -555,9 +555,9 @@ module Google
555
555
  uri_method: :get,
556
556
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
557
557
  matches: [
558
- ["project", %r{[^/]+}, false],
559
- ["region", %r{[^/]+}, false],
560
- ["target_pool", %r{[^/]+}, false]
558
+ ["project", %r{^[^/]+/?$}, false],
559
+ ["region", %r{^[^/]+/?$}, false],
560
+ ["target_pool", %r{^[^/]+/?$}, false]
561
561
  ]
562
562
  )
563
563
  transcoder.transcode request_pb
@@ -579,9 +579,9 @@ module Google
579
579
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/getHealth",
580
580
  body: "instance_reference_resource",
581
581
  matches: [
582
- ["project", %r{[^/]+}, false],
583
- ["region", %r{[^/]+}, false],
584
- ["target_pool", %r{[^/]+}, false]
582
+ ["project", %r{^[^/]+/?$}, false],
583
+ ["region", %r{^[^/]+/?$}, false],
584
+ ["target_pool", %r{^[^/]+/?$}, false]
585
585
  ]
586
586
  )
587
587
  transcoder.transcode request_pb
@@ -603,8 +603,8 @@ module Google
603
603
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
604
604
  body: "target_pool_resource",
605
605
  matches: [
606
- ["project", %r{[^/]+}, false],
607
- ["region", %r{[^/]+}, false]
606
+ ["project", %r{^[^/]+/?$}, false],
607
+ ["region", %r{^[^/]+/?$}, false]
608
608
  ]
609
609
  )
610
610
  transcoder.transcode request_pb
@@ -625,8 +625,8 @@ module Google
625
625
  uri_method: :get,
626
626
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
627
627
  matches: [
628
- ["project", %r{[^/]+}, false],
629
- ["region", %r{[^/]+}, false]
628
+ ["project", %r{^[^/]+/?$}, false],
629
+ ["region", %r{^[^/]+/?$}, false]
630
630
  ]
631
631
  )
632
632
  transcoder.transcode request_pb
@@ -648,9 +648,9 @@ module Google
648
648
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeHealthCheck",
649
649
  body: "target_pools_remove_health_check_request_resource",
650
650
  matches: [
651
- ["project", %r{[^/]+}, false],
652
- ["region", %r{[^/]+}, false],
653
- ["target_pool", %r{[^/]+}, false]
651
+ ["project", %r{^[^/]+/?$}, false],
652
+ ["region", %r{^[^/]+/?$}, false],
653
+ ["target_pool", %r{^[^/]+/?$}, false]
654
654
  ]
655
655
  )
656
656
  transcoder.transcode request_pb
@@ -672,9 +672,9 @@ module Google
672
672
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeInstance",
673
673
  body: "target_pools_remove_instance_request_resource",
674
674
  matches: [
675
- ["project", %r{[^/]+}, false],
676
- ["region", %r{[^/]+}, false],
677
- ["target_pool", %r{[^/]+}, false]
675
+ ["project", %r{^[^/]+/?$}, false],
676
+ ["region", %r{^[^/]+/?$}, false],
677
+ ["target_pool", %r{^[^/]+/?$}, false]
678
678
  ]
679
679
  )
680
680
  transcoder.transcode request_pb
@@ -696,9 +696,9 @@ module Google
696
696
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/setBackup",
697
697
  body: "target_reference_resource",
698
698
  matches: [
699
- ["project", %r{[^/]+}, false],
700
- ["region", %r{[^/]+}, false],
701
- ["target_pool", %r{[^/]+}, false]
699
+ ["project", %r{^[^/]+/?$}, false],
700
+ ["region", %r{^[^/]+/?$}, false],
701
+ ["target_pool", %r{^[^/]+/?$}, false]
702
702
  ]
703
703
  )
704
704
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the TargetSslProxies 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,8 +389,8 @@ module Google
389
389
  uri_method: :delete,
390
390
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}",
391
391
  matches: [
392
- ["project", %r{[^/]+}, false],
393
- ["target_ssl_proxy", %r{[^/]+}, false]
392
+ ["project", %r{^[^/]+/?$}, false],
393
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
394
394
  ]
395
395
  )
396
396
  transcoder.transcode request_pb
@@ -411,8 +411,8 @@ module Google
411
411
  uri_method: :get,
412
412
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}",
413
413
  matches: [
414
- ["project", %r{[^/]+}, false],
415
- ["target_ssl_proxy", %r{[^/]+}, false]
414
+ ["project", %r{^[^/]+/?$}, false],
415
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
416
416
  ]
417
417
  )
418
418
  transcoder.transcode request_pb
@@ -434,7 +434,7 @@ module Google
434
434
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies",
435
435
  body: "target_ssl_proxy_resource",
436
436
  matches: [
437
- ["project", %r{[^/]+}, false]
437
+ ["project", %r{^[^/]+/?$}, false]
438
438
  ]
439
439
  )
440
440
  transcoder.transcode request_pb
@@ -455,7 +455,7 @@ module Google
455
455
  uri_method: :get,
456
456
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies",
457
457
  matches: [
458
- ["project", %r{[^/]+}, false]
458
+ ["project", %r{^[^/]+/?$}, false]
459
459
  ]
460
460
  )
461
461
  transcoder.transcode request_pb
@@ -477,8 +477,8 @@ module Google
477
477
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setBackendService",
478
478
  body: "target_ssl_proxies_set_backend_service_request_resource",
479
479
  matches: [
480
- ["project", %r{[^/]+}, false],
481
- ["target_ssl_proxy", %r{[^/]+}, false]
480
+ ["project", %r{^[^/]+/?$}, false],
481
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
482
482
  ]
483
483
  )
484
484
  transcoder.transcode request_pb
@@ -500,8 +500,8 @@ module Google
500
500
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setCertificateMap",
501
501
  body: "target_ssl_proxies_set_certificate_map_request_resource",
502
502
  matches: [
503
- ["project", %r{[^/]+}, false],
504
- ["target_ssl_proxy", %r{[^/]+}, false]
503
+ ["project", %r{^[^/]+/?$}, false],
504
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
505
505
  ]
506
506
  )
507
507
  transcoder.transcode request_pb
@@ -523,8 +523,8 @@ module Google
523
523
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setProxyHeader",
524
524
  body: "target_ssl_proxies_set_proxy_header_request_resource",
525
525
  matches: [
526
- ["project", %r{[^/]+}, false],
527
- ["target_ssl_proxy", %r{[^/]+}, false]
526
+ ["project", %r{^[^/]+/?$}, false],
527
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
528
528
  ]
529
529
  )
530
530
  transcoder.transcode request_pb
@@ -546,8 +546,8 @@ module Google
546
546
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setSslCertificates",
547
547
  body: "target_ssl_proxies_set_ssl_certificates_request_resource",
548
548
  matches: [
549
- ["project", %r{[^/]+}, false],
550
- ["target_ssl_proxy", %r{[^/]+}, false]
549
+ ["project", %r{^[^/]+/?$}, false],
550
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
551
551
  ]
552
552
  )
553
553
  transcoder.transcode request_pb
@@ -569,8 +569,8 @@ module Google
569
569
  uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setSslPolicy",
570
570
  body: "ssl_policy_reference_resource",
571
571
  matches: [
572
- ["project", %r{[^/]+}, false],
573
- ["target_ssl_proxy", %r{[^/]+}, false]
572
+ ["project", %r{^[^/]+/?$}, false],
573
+ ["target_ssl_proxy", %r{^[^/]+/?$}, false]
574
574
  ]
575
575
  )
576
576
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the TargetTcpProxies 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:
@@ -278,8 +278,8 @@ module Google
278
278
  uri_method: :delete,
279
279
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}",
280
280
  matches: [
281
- ["project", %r{[^/]+}, false],
282
- ["target_tcp_proxy", %r{[^/]+}, false]
281
+ ["project", %r{^[^/]+/?$}, false],
282
+ ["target_tcp_proxy", %r{^[^/]+/?$}, false]
283
283
  ]
284
284
  )
285
285
  transcoder.transcode request_pb
@@ -300,8 +300,8 @@ module Google
300
300
  uri_method: :get,
301
301
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}",
302
302
  matches: [
303
- ["project", %r{[^/]+}, false],
304
- ["target_tcp_proxy", %r{[^/]+}, false]
303
+ ["project", %r{^[^/]+/?$}, false],
304
+ ["target_tcp_proxy", %r{^[^/]+/?$}, false]
305
305
  ]
306
306
  )
307
307
  transcoder.transcode request_pb
@@ -323,7 +323,7 @@ module Google
323
323
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies",
324
324
  body: "target_tcp_proxy_resource",
325
325
  matches: [
326
- ["project", %r{[^/]+}, false]
326
+ ["project", %r{^[^/]+/?$}, false]
327
327
  ]
328
328
  )
329
329
  transcoder.transcode request_pb
@@ -344,7 +344,7 @@ module Google
344
344
  uri_method: :get,
345
345
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies",
346
346
  matches: [
347
- ["project", %r{[^/]+}, false]
347
+ ["project", %r{^[^/]+/?$}, false]
348
348
  ]
349
349
  )
350
350
  transcoder.transcode request_pb
@@ -366,8 +366,8 @@ module Google
366
366
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}/setBackendService",
367
367
  body: "target_tcp_proxies_set_backend_service_request_resource",
368
368
  matches: [
369
- ["project", %r{[^/]+}, false],
370
- ["target_tcp_proxy", %r{[^/]+}, false]
369
+ ["project", %r{^[^/]+/?$}, false],
370
+ ["target_tcp_proxy", %r{^[^/]+/?$}, false]
371
371
  ]
372
372
  )
373
373
  transcoder.transcode request_pb
@@ -389,8 +389,8 @@ module Google
389
389
  uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}/setProxyHeader",
390
390
  body: "target_tcp_proxies_set_proxy_header_request_resource",
391
391
  matches: [
392
- ["project", %r{[^/]+}, false],
393
- ["target_tcp_proxy", %r{[^/]+}, false]
392
+ ["project", %r{^[^/]+/?$}, false],
393
+ ["target_tcp_proxy", %r{^[^/]+/?$}, false]
394
394
  ]
395
395
  )
396
396
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the TargetVpnGateways 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/targetVpnGateways",
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}/targetVpnGateways/{target_vpn_gateway}",
264
264
  matches: [
265
- ["project", %r{[^/]+}, false],
266
- ["region", %r{[^/]+}, false],
267
- ["target_vpn_gateway", %r{[^/]+}, false]
265
+ ["project", %r{^[^/]+/?$}, false],
266
+ ["region", %r{^[^/]+/?$}, false],
267
+ ["target_vpn_gateway", %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}/targetVpnGateways/{target_vpn_gateway}",
287
287
  matches: [
288
- ["project", %r{[^/]+}, false],
289
- ["region", %r{[^/]+}, false],
290
- ["target_vpn_gateway", %r{[^/]+}, false]
288
+ ["project", %r{^[^/]+/?$}, false],
289
+ ["region", %r{^[^/]+/?$}, false],
290
+ ["target_vpn_gateway", %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}/targetVpnGateways",
310
310
  body: "target_vpn_gateway_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}/targetVpnGateways",
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 UrlMaps 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/urlMaps",
391
391
  matches: [
392
- ["project", %r{[^/]+}, false]
392
+ ["project", %r{^[^/]+/?$}, false]
393
393
  ]
394
394
  )
395
395
  transcoder.transcode request_pb
@@ -410,8 +410,8 @@ module Google
410
410
  uri_method: :delete,
411
411
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}",
412
412
  matches: [
413
- ["project", %r{[^/]+}, false],
414
- ["url_map", %r{[^/]+}, false]
413
+ ["project", %r{^[^/]+/?$}, false],
414
+ ["url_map", %r{^[^/]+/?$}, false]
415
415
  ]
416
416
  )
417
417
  transcoder.transcode request_pb
@@ -432,8 +432,8 @@ module Google
432
432
  uri_method: :get,
433
433
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}",
434
434
  matches: [
435
- ["project", %r{[^/]+}, false],
436
- ["url_map", %r{[^/]+}, false]
435
+ ["project", %r{^[^/]+/?$}, false],
436
+ ["url_map", %r{^[^/]+/?$}, false]
437
437
  ]
438
438
  )
439
439
  transcoder.transcode request_pb
@@ -455,7 +455,7 @@ module Google
455
455
  uri_template: "/compute/v1/projects/{project}/global/urlMaps",
456
456
  body: "url_map_resource",
457
457
  matches: [
458
- ["project", %r{[^/]+}, false]
458
+ ["project", %r{^[^/]+/?$}, false]
459
459
  ]
460
460
  )
461
461
  transcoder.transcode request_pb
@@ -477,8 +477,8 @@ module Google
477
477
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}/invalidateCache",
478
478
  body: "cache_invalidation_rule_resource",
479
479
  matches: [
480
- ["project", %r{[^/]+}, false],
481
- ["url_map", %r{[^/]+}, false]
480
+ ["project", %r{^[^/]+/?$}, false],
481
+ ["url_map", %r{^[^/]+/?$}, false]
482
482
  ]
483
483
  )
484
484
  transcoder.transcode request_pb
@@ -499,7 +499,7 @@ module Google
499
499
  uri_method: :get,
500
500
  uri_template: "/compute/v1/projects/{project}/global/urlMaps",
501
501
  matches: [
502
- ["project", %r{[^/]+}, false]
502
+ ["project", %r{^[^/]+/?$}, false]
503
503
  ]
504
504
  )
505
505
  transcoder.transcode request_pb
@@ -521,8 +521,8 @@ module Google
521
521
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}",
522
522
  body: "url_map_resource",
523
523
  matches: [
524
- ["project", %r{[^/]+}, false],
525
- ["url_map", %r{[^/]+}, false]
524
+ ["project", %r{^[^/]+/?$}, false],
525
+ ["url_map", %r{^[^/]+/?$}, false]
526
526
  ]
527
527
  )
528
528
  transcoder.transcode request_pb
@@ -544,8 +544,8 @@ module Google
544
544
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}",
545
545
  body: "url_map_resource",
546
546
  matches: [
547
- ["project", %r{[^/]+}, false],
548
- ["url_map", %r{[^/]+}, false]
547
+ ["project", %r{^[^/]+/?$}, false],
548
+ ["url_map", %r{^[^/]+/?$}, false]
549
549
  ]
550
550
  )
551
551
  transcoder.transcode request_pb
@@ -567,8 +567,8 @@ module Google
567
567
  uri_template: "/compute/v1/projects/{project}/global/urlMaps/{url_map}/validate",
568
568
  body: "url_maps_validate_request_resource",
569
569
  matches: [
570
- ["project", %r{[^/]+}, false],
571
- ["url_map", %r{[^/]+}, false]
570
+ ["project", %r{^[^/]+/?$}, false],
571
+ ["url_map", %r{^[^/]+/?$}, false]
572
572
  ]
573
573
  )
574
574
  transcoder.transcode request_pb
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the VpnGateways 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:
@@ -352,7 +352,7 @@ module Google
352
352
  uri_method: :get,
353
353
  uri_template: "/compute/v1/projects/{project}/aggregated/vpnGateways",
354
354
  matches: [
355
- ["project", %r{[^/]+}, false]
355
+ ["project", %r{^[^/]+/?$}, false]
356
356
  ]
357
357
  )
358
358
  transcoder.transcode request_pb
@@ -373,9 +373,9 @@ module Google
373
373
  uri_method: :delete,
374
374
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpn_gateway}",
375
375
  matches: [
376
- ["project", %r{[^/]+}, false],
377
- ["region", %r{[^/]+}, false],
378
- ["vpn_gateway", %r{[^/]+}, false]
376
+ ["project", %r{^[^/]+/?$}, false],
377
+ ["region", %r{^[^/]+/?$}, false],
378
+ ["vpn_gateway", %r{^[^/]+/?$}, false]
379
379
  ]
380
380
  )
381
381
  transcoder.transcode request_pb
@@ -396,9 +396,9 @@ module Google
396
396
  uri_method: :get,
397
397
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpn_gateway}",
398
398
  matches: [
399
- ["project", %r{[^/]+}, false],
400
- ["region", %r{[^/]+}, false],
401
- ["vpn_gateway", %r{[^/]+}, false]
399
+ ["project", %r{^[^/]+/?$}, false],
400
+ ["region", %r{^[^/]+/?$}, false],
401
+ ["vpn_gateway", %r{^[^/]+/?$}, false]
402
402
  ]
403
403
  )
404
404
  transcoder.transcode request_pb
@@ -419,9 +419,9 @@ module Google
419
419
  uri_method: :get,
420
420
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpn_gateway}/getStatus",
421
421
  matches: [
422
- ["project", %r{[^/]+}, false],
423
- ["region", %r{[^/]+}, false],
424
- ["vpn_gateway", %r{[^/]+}, false]
422
+ ["project", %r{^[^/]+/?$}, false],
423
+ ["region", %r{^[^/]+/?$}, false],
424
+ ["vpn_gateway", %r{^[^/]+/?$}, false]
425
425
  ]
426
426
  )
427
427
  transcoder.transcode request_pb
@@ -443,8 +443,8 @@ module Google
443
443
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways",
444
444
  body: "vpn_gateway_resource",
445
445
  matches: [
446
- ["project", %r{[^/]+}, false],
447
- ["region", %r{[^/]+}, false]
446
+ ["project", %r{^[^/]+/?$}, false],
447
+ ["region", %r{^[^/]+/?$}, false]
448
448
  ]
449
449
  )
450
450
  transcoder.transcode request_pb
@@ -465,8 +465,8 @@ module Google
465
465
  uri_method: :get,
466
466
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways",
467
467
  matches: [
468
- ["project", %r{[^/]+}, false],
469
- ["region", %r{[^/]+}, false]
468
+ ["project", %r{^[^/]+/?$}, false],
469
+ ["region", %r{^[^/]+/?$}, false]
470
470
  ]
471
471
  )
472
472
  transcoder.transcode request_pb
@@ -488,9 +488,9 @@ module Google
488
488
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels",
489
489
  body: "region_set_labels_request_resource",
490
490
  matches: [
491
- ["project", %r{[^/]+}, false],
492
- ["region", %r{[^/]+}, false],
493
- ["resource", %r{[^/]+}, false]
491
+ ["project", %r{^[^/]+/?$}, false],
492
+ ["region", %r{^[^/]+/?$}, false],
493
+ ["resource", %r{^[^/]+/?$}, false]
494
494
  ]
495
495
  )
496
496
  transcoder.transcode request_pb
@@ -512,9 +512,9 @@ module Google
512
512
  uri_template: "/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions",
513
513
  body: "test_permissions_request_resource",
514
514
  matches: [
515
- ["project", %r{[^/]+}, false],
516
- ["region", %r{[^/]+}, false],
517
- ["resource", %r{[^/]+}, false]
515
+ ["project", %r{^[^/]+/?$}, false],
516
+ ["region", %r{^[^/]+/?$}, false],
517
+ ["resource", %r{^[^/]+/?$}, false]
518
518
  ]
519
519
  )
520
520
  transcoder.transcode request_pb