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 Networks 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,8 +464,8 @@ module Google
464
464
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/addPeering",
465
465
  body: "networks_add_peering_request_resource",
466
466
  matches: [
467
- ["project", %r{[^/]+}, false],
468
- ["network", %r{[^/]+}, false]
467
+ ["project", %r{^[^/]+/?$}, false],
468
+ ["network", %r{^[^/]+/?$}, false]
469
469
  ]
470
470
  )
471
471
  transcoder.transcode request_pb
@@ -486,8 +486,8 @@ module Google
486
486
  uri_method: :delete,
487
487
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}",
488
488
  matches: [
489
- ["project", %r{[^/]+}, false],
490
- ["network", %r{[^/]+}, false]
489
+ ["project", %r{^[^/]+/?$}, false],
490
+ ["network", %r{^[^/]+/?$}, false]
491
491
  ]
492
492
  )
493
493
  transcoder.transcode request_pb
@@ -508,8 +508,8 @@ module Google
508
508
  uri_method: :get,
509
509
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}",
510
510
  matches: [
511
- ["project", %r{[^/]+}, false],
512
- ["network", %r{[^/]+}, false]
511
+ ["project", %r{^[^/]+/?$}, false],
512
+ ["network", %r{^[^/]+/?$}, false]
513
513
  ]
514
514
  )
515
515
  transcoder.transcode request_pb
@@ -530,8 +530,8 @@ module Google
530
530
  uri_method: :get,
531
531
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/getEffectiveFirewalls",
532
532
  matches: [
533
- ["project", %r{[^/]+}, false],
534
- ["network", %r{[^/]+}, false]
533
+ ["project", %r{^[^/]+/?$}, false],
534
+ ["network", %r{^[^/]+/?$}, false]
535
535
  ]
536
536
  )
537
537
  transcoder.transcode request_pb
@@ -553,7 +553,7 @@ module Google
553
553
  uri_template: "/compute/v1/projects/{project}/global/networks",
554
554
  body: "network_resource",
555
555
  matches: [
556
- ["project", %r{[^/]+}, false]
556
+ ["project", %r{^[^/]+/?$}, false]
557
557
  ]
558
558
  )
559
559
  transcoder.transcode request_pb
@@ -574,7 +574,7 @@ module Google
574
574
  uri_method: :get,
575
575
  uri_template: "/compute/v1/projects/{project}/global/networks",
576
576
  matches: [
577
- ["project", %r{[^/]+}, false]
577
+ ["project", %r{^[^/]+/?$}, false]
578
578
  ]
579
579
  )
580
580
  transcoder.transcode request_pb
@@ -595,8 +595,8 @@ module Google
595
595
  uri_method: :get,
596
596
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes",
597
597
  matches: [
598
- ["project", %r{[^/]+}, false],
599
- ["network", %r{[^/]+}, false]
598
+ ["project", %r{^[^/]+/?$}, false],
599
+ ["network", %r{^[^/]+/?$}, false]
600
600
  ]
601
601
  )
602
602
  transcoder.transcode request_pb
@@ -618,8 +618,8 @@ module Google
618
618
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}",
619
619
  body: "network_resource",
620
620
  matches: [
621
- ["project", %r{[^/]+}, false],
622
- ["network", %r{[^/]+}, false]
621
+ ["project", %r{^[^/]+/?$}, false],
622
+ ["network", %r{^[^/]+/?$}, false]
623
623
  ]
624
624
  )
625
625
  transcoder.transcode request_pb
@@ -641,8 +641,8 @@ module Google
641
641
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/removePeering",
642
642
  body: "networks_remove_peering_request_resource",
643
643
  matches: [
644
- ["project", %r{[^/]+}, false],
645
- ["network", %r{[^/]+}, false]
644
+ ["project", %r{^[^/]+/?$}, false],
645
+ ["network", %r{^[^/]+/?$}, false]
646
646
  ]
647
647
  )
648
648
  transcoder.transcode request_pb
@@ -663,8 +663,8 @@ module Google
663
663
  uri_method: :post,
664
664
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode",
665
665
  matches: [
666
- ["project", %r{[^/]+}, false],
667
- ["network", %r{[^/]+}, false]
666
+ ["project", %r{^[^/]+/?$}, false],
667
+ ["network", %r{^[^/]+/?$}, false]
668
668
  ]
669
669
  )
670
670
  transcoder.transcode request_pb
@@ -686,8 +686,8 @@ module Google
686
686
  uri_template: "/compute/v1/projects/{project}/global/networks/{network}/updatePeering",
687
687
  body: "networks_update_peering_request_resource",
688
688
  matches: [
689
- ["project", %r{[^/]+}, false],
690
- ["network", %r{[^/]+}, false]
689
+ ["project", %r{^[^/]+/?$}, false],
690
+ ["network", %r{^[^/]+/?$}, false]
691
691
  ]
692
692
  )
693
693
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the NodeGroups 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:
@@ -538,9 +538,9 @@ module Google
538
538
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/addNodes",
539
539
  body: "node_groups_add_nodes_request_resource",
540
540
  matches: [
541
- ["project", %r{[^/]+}, false],
542
- ["zone", %r{[^/]+}, false],
543
- ["node_group", %r{[^/]+}, false]
541
+ ["project", %r{^[^/]+/?$}, false],
542
+ ["zone", %r{^[^/]+/?$}, false],
543
+ ["node_group", %r{^[^/]+/?$}, false]
544
544
  ]
545
545
  )
546
546
  transcoder.transcode request_pb
@@ -561,7 +561,7 @@ module Google
561
561
  uri_method: :get,
562
562
  uri_template: "/compute/v1/projects/{project}/aggregated/nodeGroups",
563
563
  matches: [
564
- ["project", %r{[^/]+}, false]
564
+ ["project", %r{^[^/]+/?$}, false]
565
565
  ]
566
566
  )
567
567
  transcoder.transcode request_pb
@@ -582,9 +582,9 @@ module Google
582
582
  uri_method: :delete,
583
583
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}",
584
584
  matches: [
585
- ["project", %r{[^/]+}, false],
586
- ["zone", %r{[^/]+}, false],
587
- ["node_group", %r{[^/]+}, false]
585
+ ["project", %r{^[^/]+/?$}, false],
586
+ ["zone", %r{^[^/]+/?$}, false],
587
+ ["node_group", %r{^[^/]+/?$}, false]
588
588
  ]
589
589
  )
590
590
  transcoder.transcode request_pb
@@ -606,9 +606,9 @@ module Google
606
606
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/deleteNodes",
607
607
  body: "node_groups_delete_nodes_request_resource",
608
608
  matches: [
609
- ["project", %r{[^/]+}, false],
610
- ["zone", %r{[^/]+}, false],
611
- ["node_group", %r{[^/]+}, false]
609
+ ["project", %r{^[^/]+/?$}, false],
610
+ ["zone", %r{^[^/]+/?$}, false],
611
+ ["node_group", %r{^[^/]+/?$}, false]
612
612
  ]
613
613
  )
614
614
  transcoder.transcode request_pb
@@ -629,9 +629,9 @@ module Google
629
629
  uri_method: :get,
630
630
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}",
631
631
  matches: [
632
- ["project", %r{[^/]+}, false],
633
- ["zone", %r{[^/]+}, false],
634
- ["node_group", %r{[^/]+}, false]
632
+ ["project", %r{^[^/]+/?$}, false],
633
+ ["zone", %r{^[^/]+/?$}, false],
634
+ ["node_group", %r{^[^/]+/?$}, false]
635
635
  ]
636
636
  )
637
637
  transcoder.transcode request_pb
@@ -652,9 +652,9 @@ module Google
652
652
  uri_method: :get,
653
653
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy",
654
654
  matches: [
655
- ["project", %r{[^/]+}, false],
656
- ["zone", %r{[^/]+}, false],
657
- ["resource", %r{[^/]+}, false]
655
+ ["project", %r{^[^/]+/?$}, false],
656
+ ["zone", %r{^[^/]+/?$}, false],
657
+ ["resource", %r{^[^/]+/?$}, false]
658
658
  ]
659
659
  )
660
660
  transcoder.transcode request_pb
@@ -676,8 +676,8 @@ module Google
676
676
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups",
677
677
  body: "node_group_resource",
678
678
  matches: [
679
- ["project", %r{[^/]+}, false],
680
- ["zone", %r{[^/]+}, false]
679
+ ["project", %r{^[^/]+/?$}, false],
680
+ ["zone", %r{^[^/]+/?$}, false]
681
681
  ]
682
682
  )
683
683
  transcoder.transcode request_pb
@@ -698,8 +698,8 @@ module Google
698
698
  uri_method: :get,
699
699
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups",
700
700
  matches: [
701
- ["project", %r{[^/]+}, false],
702
- ["zone", %r{[^/]+}, false]
701
+ ["project", %r{^[^/]+/?$}, false],
702
+ ["zone", %r{^[^/]+/?$}, false]
703
703
  ]
704
704
  )
705
705
  transcoder.transcode request_pb
@@ -720,9 +720,9 @@ module Google
720
720
  uri_method: :post,
721
721
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/listNodes",
722
722
  matches: [
723
- ["project", %r{[^/]+}, false],
724
- ["zone", %r{[^/]+}, false],
725
- ["node_group", %r{[^/]+}, false]
723
+ ["project", %r{^[^/]+/?$}, false],
724
+ ["zone", %r{^[^/]+/?$}, false],
725
+ ["node_group", %r{^[^/]+/?$}, false]
726
726
  ]
727
727
  )
728
728
  transcoder.transcode request_pb
@@ -744,9 +744,9 @@ module Google
744
744
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}",
745
745
  body: "node_group_resource",
746
746
  matches: [
747
- ["project", %r{[^/]+}, false],
748
- ["zone", %r{[^/]+}, false],
749
- ["node_group", %r{[^/]+}, false]
747
+ ["project", %r{^[^/]+/?$}, false],
748
+ ["zone", %r{^[^/]+/?$}, false],
749
+ ["node_group", %r{^[^/]+/?$}, false]
750
750
  ]
751
751
  )
752
752
  transcoder.transcode request_pb
@@ -768,9 +768,9 @@ module Google
768
768
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy",
769
769
  body: "zone_set_policy_request_resource",
770
770
  matches: [
771
- ["project", %r{[^/]+}, false],
772
- ["zone", %r{[^/]+}, false],
773
- ["resource", %r{[^/]+}, false]
771
+ ["project", %r{^[^/]+/?$}, false],
772
+ ["zone", %r{^[^/]+/?$}, false],
773
+ ["resource", %r{^[^/]+/?$}, false]
774
774
  ]
775
775
  )
776
776
  transcoder.transcode request_pb
@@ -792,9 +792,9 @@ module Google
792
792
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/setNodeTemplate",
793
793
  body: "node_groups_set_node_template_request_resource",
794
794
  matches: [
795
- ["project", %r{[^/]+}, false],
796
- ["zone", %r{[^/]+}, false],
797
- ["node_group", %r{[^/]+}, false]
795
+ ["project", %r{^[^/]+/?$}, false],
796
+ ["zone", %r{^[^/]+/?$}, false],
797
+ ["node_group", %r{^[^/]+/?$}, false]
798
798
  ]
799
799
  )
800
800
  transcoder.transcode request_pb
@@ -816,9 +816,9 @@ module Google
816
816
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions",
817
817
  body: "test_permissions_request_resource",
818
818
  matches: [
819
- ["project", %r{[^/]+}, false],
820
- ["zone", %r{[^/]+}, false],
821
- ["resource", %r{[^/]+}, false]
819
+ ["project", %r{^[^/]+/?$}, false],
820
+ ["zone", %r{^[^/]+/?$}, false],
821
+ ["resource", %r{^[^/]+/?$}, false]
822
822
  ]
823
823
  )
824
824
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the NodeTemplates 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/nodeTemplates",
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}/nodeTemplates/{node_template}",
375
375
  matches: [
376
- ["project", %r{[^/]+}, false],
377
- ["region", %r{[^/]+}, false],
378
- ["node_template", %r{[^/]+}, false]
376
+ ["project", %r{^[^/]+/?$}, false],
377
+ ["region", %r{^[^/]+/?$}, false],
378
+ ["node_template", %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}/nodeTemplates/{node_template}",
398
398
  matches: [
399
- ["project", %r{[^/]+}, false],
400
- ["region", %r{[^/]+}, false],
401
- ["node_template", %r{[^/]+}, false]
399
+ ["project", %r{^[^/]+/?$}, false],
400
+ ["region", %r{^[^/]+/?$}, false],
401
+ ["node_template", %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}/nodeTemplates/{resource}/getIamPolicy",
421
421
  matches: [
422
- ["project", %r{[^/]+}, false],
423
- ["region", %r{[^/]+}, false],
424
- ["resource", %r{[^/]+}, false]
422
+ ["project", %r{^[^/]+/?$}, false],
423
+ ["region", %r{^[^/]+/?$}, false],
424
+ ["resource", %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}/nodeTemplates",
444
444
  body: "node_template_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}/nodeTemplates",
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}/nodeTemplates/{resource}/setIamPolicy",
489
489
  body: "region_set_policy_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}/nodeTemplates/{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
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the NodeTypes 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/nodeTypes",
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}/nodeTypes/{node_type}",
190
190
  matches: [
191
- ["project", %r{[^/]+}, false],
192
- ["zone", %r{[^/]+}, false],
193
- ["node_type", %r{[^/]+}, false]
191
+ ["project", %r{^[^/]+/?$}, false],
192
+ ["zone", %r{^[^/]+/?$}, false],
193
+ ["node_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}/nodeTypes",
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 PacketMirrorings 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/packetMirrorings",
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}/regions/{region}/packetMirrorings/{packet_mirroring}",
338
338
  matches: [
339
- ["project", %r{[^/]+}, false],
340
- ["region", %r{[^/]+}, false],
341
- ["packet_mirroring", %r{[^/]+}, false]
339
+ ["project", %r{^[^/]+/?$}, false],
340
+ ["region", %r{^[^/]+/?$}, false],
341
+ ["packet_mirroring", %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}/regions/{region}/packetMirrorings/{packet_mirroring}",
361
361
  matches: [
362
- ["project", %r{[^/]+}, false],
363
- ["region", %r{[^/]+}, false],
364
- ["packet_mirroring", %r{[^/]+}, false]
362
+ ["project", %r{^[^/]+/?$}, false],
363
+ ["region", %r{^[^/]+/?$}, false],
364
+ ["packet_mirroring", %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}/regions/{region}/packetMirrorings",
384
384
  body: "packet_mirroring_resource",
385
385
  matches: [
386
- ["project", %r{[^/]+}, false],
387
- ["region", %r{[^/]+}, false]
386
+ ["project", %r{^[^/]+/?$}, false],
387
+ ["region", %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}/regions/{region}/packetMirrorings",
407
407
  matches: [
408
- ["project", %r{[^/]+}, false],
409
- ["region", %r{[^/]+}, false]
408
+ ["project", %r{^[^/]+/?$}, false],
409
+ ["region", %r{^[^/]+/?$}, false]
410
410
  ]
411
411
  )
412
412
  transcoder.transcode request_pb
@@ -428,9 +428,9 @@ module Google
428
428
  uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packet_mirroring}",
429
429
  body: "packet_mirroring_resource",
430
430
  matches: [
431
- ["project", %r{[^/]+}, false],
432
- ["region", %r{[^/]+}, false],
433
- ["packet_mirroring", %r{[^/]+}, false]
431
+ ["project", %r{^[^/]+/?$}, false],
432
+ ["region", %r{^[^/]+/?$}, false],
433
+ ["packet_mirroring", %r{^[^/]+/?$}, false]
434
434
  ]
435
435
  )
436
436
  transcoder.transcode request_pb
@@ -452,9 +452,9 @@ module Google
452
452
  uri_template: "/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions",
453
453
  body: "test_permissions_request_resource",
454
454
  matches: [
455
- ["project", %r{[^/]+}, false],
456
- ["region", %r{[^/]+}, false],
457
- ["resource", %r{[^/]+}, false]
455
+ ["project", %r{^[^/]+/?$}, false],
456
+ ["region", %r{^[^/]+/?$}, false],
457
+ ["resource", %r{^[^/]+/?$}, false]
458
458
  ]
459
459
  )
460
460
  transcoder.transcode request_pb