google-cloud-compute-v1 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
  3. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +13 -13
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
  6. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +23 -23
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +129 -0
  8. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
  9. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
  12. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +8 -8
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
  17. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
  18. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
  19. data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
  20. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
  21. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
  22. data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
  23. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
  24. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
  25. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
  26. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
  30. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
  31. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
  33. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +16 -16
  34. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
  35. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +12 -12
  36. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
  37. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
  38. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
  39. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
  41. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
  42. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
  43. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
  44. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
  45. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
  46. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
  47. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
  48. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
  49. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
  50. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
  51. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
  52. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -21
  53. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
  54. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
  55. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
  56. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
  57. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
  58. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
  60. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
  61. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
  65. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
  66. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
  67. data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
  68. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
  69. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
  70. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
  71. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
  73. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
  74. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
  75. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
  76. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
  77. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
  78. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +20 -20
  79. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
  80. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
  81. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
  82. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +11 -11
  83. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
  84. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
  85. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
  86. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
  87. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
  88. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
  89. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
  90. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
  91. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +13 -13
  92. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
  93. data/lib/google/cloud/compute/v1/version.rb +1 -1
  94. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
  95. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +13 -13
  96. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
  97. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
  98. data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
  99. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
  100. data/proto_docs/google/cloud/compute/v1/compute.rb +331 -13
  101. metadata +2 -2
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the Images 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:
@@ -463,8 +463,8 @@ module Google
463
463
  uri_method: :delete,
464
464
  uri_template: "/compute/v1/projects/{project}/global/images/{image}",
465
465
  matches: [
466
- ["project", %r{[^/]+}, false],
467
- ["image", %r{[^/]+}, false]
466
+ ["project", %r{^[^/]+/?$}, false],
467
+ ["image", %r{^[^/]+/?$}, false]
468
468
  ]
469
469
  )
470
470
  transcoder.transcode request_pb
@@ -486,8 +486,8 @@ module Google
486
486
  uri_template: "/compute/v1/projects/{project}/global/images/{image}/deprecate",
487
487
  body: "deprecation_status_resource",
488
488
  matches: [
489
- ["project", %r{[^/]+}, false],
490
- ["image", %r{[^/]+}, false]
489
+ ["project", %r{^[^/]+/?$}, false],
490
+ ["image", %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/images/{image}",
510
510
  matches: [
511
- ["project", %r{[^/]+}, false],
512
- ["image", %r{[^/]+}, false]
511
+ ["project", %r{^[^/]+/?$}, false],
512
+ ["image", %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/images/family/{family}",
532
532
  matches: [
533
- ["project", %r{[^/]+}, false],
534
- ["family", %r{[^/]+}, false]
533
+ ["project", %r{^[^/]+/?$}, false],
534
+ ["family", %r{^[^/]+/?$}, false]
535
535
  ]
536
536
  )
537
537
  transcoder.transcode request_pb
@@ -552,8 +552,8 @@ module Google
552
552
  uri_method: :get,
553
553
  uri_template: "/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy",
554
554
  matches: [
555
- ["project", %r{[^/]+}, false],
556
- ["resource", %r{[^/]+}, false]
555
+ ["project", %r{^[^/]+/?$}, false],
556
+ ["resource", %r{^[^/]+/?$}, false]
557
557
  ]
558
558
  )
559
559
  transcoder.transcode request_pb
@@ -575,7 +575,7 @@ module Google
575
575
  uri_template: "/compute/v1/projects/{project}/global/images",
576
576
  body: "image_resource",
577
577
  matches: [
578
- ["project", %r{[^/]+}, false]
578
+ ["project", %r{^[^/]+/?$}, false]
579
579
  ]
580
580
  )
581
581
  transcoder.transcode request_pb
@@ -596,7 +596,7 @@ module Google
596
596
  uri_method: :get,
597
597
  uri_template: "/compute/v1/projects/{project}/global/images",
598
598
  matches: [
599
- ["project", %r{[^/]+}, false]
599
+ ["project", %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/images/{image}",
619
619
  body: "image_resource",
620
620
  matches: [
621
- ["project", %r{[^/]+}, false],
622
- ["image", %r{[^/]+}, false]
621
+ ["project", %r{^[^/]+/?$}, false],
622
+ ["image", %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/images/{resource}/setIamPolicy",
642
642
  body: "global_set_policy_request_resource",
643
643
  matches: [
644
- ["project", %r{[^/]+}, false],
645
- ["resource", %r{[^/]+}, false]
644
+ ["project", %r{^[^/]+/?$}, false],
645
+ ["resource", %r{^[^/]+/?$}, false]
646
646
  ]
647
647
  )
648
648
  transcoder.transcode request_pb
@@ -664,8 +664,8 @@ module Google
664
664
  uri_template: "/compute/v1/projects/{project}/global/images/{resource}/setLabels",
665
665
  body: "global_set_labels_request_resource",
666
666
  matches: [
667
- ["project", %r{[^/]+}, false],
668
- ["resource", %r{[^/]+}, false]
667
+ ["project", %r{^[^/]+/?$}, false],
668
+ ["resource", %r{^[^/]+/?$}, false]
669
669
  ]
670
670
  )
671
671
  transcoder.transcode request_pb
@@ -687,8 +687,8 @@ module Google
687
687
  uri_template: "/compute/v1/projects/{project}/global/images/{resource}/testIamPermissions",
688
688
  body: "test_permissions_request_resource",
689
689
  matches: [
690
- ["project", %r{[^/]+}, false],
691
- ["resource", %r{[^/]+}, false]
690
+ ["project", %r{^[^/]+/?$}, false],
691
+ ["resource", %r{^[^/]+/?$}, false]
692
692
  ]
693
693
  )
694
694
  transcoder.transcode request_pb
@@ -1018,7 +1018,7 @@ module Google
1018
1018
  end
1019
1019
 
1020
1020
  ##
1021
- # Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported.
1021
+ # Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
1022
1022
  #
1023
1023
  # @overload list_managed_instances(request, options = nil)
1024
1024
  # Pass arguments to `list_managed_instances` via a request object, either of type
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the InstanceGroupManagers 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:
@@ -797,9 +797,9 @@ module Google
797
797
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/abandonInstances",
798
798
  body: "instance_group_managers_abandon_instances_request_resource",
799
799
  matches: [
800
- ["project", %r{[^/]+}, false],
801
- ["zone", %r{[^/]+}, false],
802
- ["instance_group_manager", %r{[^/]+}, false]
800
+ ["project", %r{^[^/]+/?$}, false],
801
+ ["zone", %r{^[^/]+/?$}, false],
802
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
803
803
  ]
804
804
  )
805
805
  transcoder.transcode request_pb
@@ -820,7 +820,7 @@ module Google
820
820
  uri_method: :get,
821
821
  uri_template: "/compute/v1/projects/{project}/aggregated/instanceGroupManagers",
822
822
  matches: [
823
- ["project", %r{[^/]+}, false]
823
+ ["project", %r{^[^/]+/?$}, false]
824
824
  ]
825
825
  )
826
826
  transcoder.transcode request_pb
@@ -842,9 +842,9 @@ module Google
842
842
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/applyUpdatesToInstances",
843
843
  body: "instance_group_managers_apply_updates_request_resource",
844
844
  matches: [
845
- ["project", %r{[^/]+}, false],
846
- ["zone", %r{[^/]+}, false],
847
- ["instance_group_manager", %r{[^/]+}, false]
845
+ ["project", %r{^[^/]+/?$}, false],
846
+ ["zone", %r{^[^/]+/?$}, false],
847
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
848
848
  ]
849
849
  )
850
850
  transcoder.transcode request_pb
@@ -866,9 +866,9 @@ module Google
866
866
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/createInstances",
867
867
  body: "instance_group_managers_create_instances_request_resource",
868
868
  matches: [
869
- ["project", %r{[^/]+}, false],
870
- ["zone", %r{[^/]+}, false],
871
- ["instance_group_manager", %r{[^/]+}, false]
869
+ ["project", %r{^[^/]+/?$}, false],
870
+ ["zone", %r{^[^/]+/?$}, false],
871
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
872
872
  ]
873
873
  )
874
874
  transcoder.transcode request_pb
@@ -889,9 +889,9 @@ module Google
889
889
  uri_method: :delete,
890
890
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
891
891
  matches: [
892
- ["project", %r{[^/]+}, false],
893
- ["zone", %r{[^/]+}, false],
894
- ["instance_group_manager", %r{[^/]+}, false]
892
+ ["project", %r{^[^/]+/?$}, false],
893
+ ["zone", %r{^[^/]+/?$}, false],
894
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
895
895
  ]
896
896
  )
897
897
  transcoder.transcode request_pb
@@ -913,9 +913,9 @@ module Google
913
913
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/deleteInstances",
914
914
  body: "instance_group_managers_delete_instances_request_resource",
915
915
  matches: [
916
- ["project", %r{[^/]+}, false],
917
- ["zone", %r{[^/]+}, false],
918
- ["instance_group_manager", %r{[^/]+}, false]
916
+ ["project", %r{^[^/]+/?$}, false],
917
+ ["zone", %r{^[^/]+/?$}, false],
918
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
919
919
  ]
920
920
  )
921
921
  transcoder.transcode request_pb
@@ -937,9 +937,9 @@ module Google
937
937
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/deletePerInstanceConfigs",
938
938
  body: "instance_group_managers_delete_per_instance_configs_req_resource",
939
939
  matches: [
940
- ["project", %r{[^/]+}, false],
941
- ["zone", %r{[^/]+}, false],
942
- ["instance_group_manager", %r{[^/]+}, false]
940
+ ["project", %r{^[^/]+/?$}, false],
941
+ ["zone", %r{^[^/]+/?$}, false],
942
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
943
943
  ]
944
944
  )
945
945
  transcoder.transcode request_pb
@@ -960,9 +960,9 @@ module Google
960
960
  uri_method: :get,
961
961
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
962
962
  matches: [
963
- ["project", %r{[^/]+}, false],
964
- ["zone", %r{[^/]+}, false],
965
- ["instance_group_manager", %r{[^/]+}, false]
963
+ ["project", %r{^[^/]+/?$}, false],
964
+ ["zone", %r{^[^/]+/?$}, false],
965
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
966
966
  ]
967
967
  )
968
968
  transcoder.transcode request_pb
@@ -984,8 +984,8 @@ module Google
984
984
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers",
985
985
  body: "instance_group_manager_resource",
986
986
  matches: [
987
- ["project", %r{[^/]+}, false],
988
- ["zone", %r{[^/]+}, false]
987
+ ["project", %r{^[^/]+/?$}, false],
988
+ ["zone", %r{^[^/]+/?$}, false]
989
989
  ]
990
990
  )
991
991
  transcoder.transcode request_pb
@@ -1006,8 +1006,8 @@ module Google
1006
1006
  uri_method: :get,
1007
1007
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers",
1008
1008
  matches: [
1009
- ["project", %r{[^/]+}, false],
1010
- ["zone", %r{[^/]+}, false]
1009
+ ["project", %r{^[^/]+/?$}, false],
1010
+ ["zone", %r{^[^/]+/?$}, false]
1011
1011
  ]
1012
1012
  )
1013
1013
  transcoder.transcode request_pb
@@ -1028,9 +1028,9 @@ module Google
1028
1028
  uri_method: :get,
1029
1029
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listErrors",
1030
1030
  matches: [
1031
- ["project", %r{[^/]+}, false],
1032
- ["zone", %r{[^/]+}, false],
1033
- ["instance_group_manager", %r{[^/]+}, false]
1031
+ ["project", %r{^[^/]+/?$}, false],
1032
+ ["zone", %r{^[^/]+/?$}, false],
1033
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1034
1034
  ]
1035
1035
  )
1036
1036
  transcoder.transcode request_pb
@@ -1051,9 +1051,9 @@ module Google
1051
1051
  uri_method: :post,
1052
1052
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listManagedInstances",
1053
1053
  matches: [
1054
- ["project", %r{[^/]+}, false],
1055
- ["zone", %r{[^/]+}, false],
1056
- ["instance_group_manager", %r{[^/]+}, false]
1054
+ ["project", %r{^[^/]+/?$}, false],
1055
+ ["zone", %r{^[^/]+/?$}, false],
1056
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1057
1057
  ]
1058
1058
  )
1059
1059
  transcoder.transcode request_pb
@@ -1074,9 +1074,9 @@ module Google
1074
1074
  uri_method: :post,
1075
1075
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs",
1076
1076
  matches: [
1077
- ["project", %r{[^/]+}, false],
1078
- ["zone", %r{[^/]+}, false],
1079
- ["instance_group_manager", %r{[^/]+}, false]
1077
+ ["project", %r{^[^/]+/?$}, false],
1078
+ ["zone", %r{^[^/]+/?$}, false],
1079
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1080
1080
  ]
1081
1081
  )
1082
1082
  transcoder.transcode request_pb
@@ -1098,9 +1098,9 @@ module Google
1098
1098
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
1099
1099
  body: "instance_group_manager_resource",
1100
1100
  matches: [
1101
- ["project", %r{[^/]+}, false],
1102
- ["zone", %r{[^/]+}, false],
1103
- ["instance_group_manager", %r{[^/]+}, false]
1101
+ ["project", %r{^[^/]+/?$}, false],
1102
+ ["zone", %r{^[^/]+/?$}, false],
1103
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1104
1104
  ]
1105
1105
  )
1106
1106
  transcoder.transcode request_pb
@@ -1122,9 +1122,9 @@ module Google
1122
1122
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/patchPerInstanceConfigs",
1123
1123
  body: "instance_group_managers_patch_per_instance_configs_req_resource",
1124
1124
  matches: [
1125
- ["project", %r{[^/]+}, false],
1126
- ["zone", %r{[^/]+}, false],
1127
- ["instance_group_manager", %r{[^/]+}, false]
1125
+ ["project", %r{^[^/]+/?$}, false],
1126
+ ["zone", %r{^[^/]+/?$}, false],
1127
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1128
1128
  ]
1129
1129
  )
1130
1130
  transcoder.transcode request_pb
@@ -1146,9 +1146,9 @@ module Google
1146
1146
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/recreateInstances",
1147
1147
  body: "instance_group_managers_recreate_instances_request_resource",
1148
1148
  matches: [
1149
- ["project", %r{[^/]+}, false],
1150
- ["zone", %r{[^/]+}, false],
1151
- ["instance_group_manager", %r{[^/]+}, false]
1149
+ ["project", %r{^[^/]+/?$}, false],
1150
+ ["zone", %r{^[^/]+/?$}, false],
1151
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1152
1152
  ]
1153
1153
  )
1154
1154
  transcoder.transcode request_pb
@@ -1169,9 +1169,9 @@ module Google
1169
1169
  uri_method: :post,
1170
1170
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resize",
1171
1171
  matches: [
1172
- ["project", %r{[^/]+}, false],
1173
- ["zone", %r{[^/]+}, false],
1174
- ["instance_group_manager", %r{[^/]+}, false]
1172
+ ["project", %r{^[^/]+/?$}, false],
1173
+ ["zone", %r{^[^/]+/?$}, false],
1174
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1175
1175
  ]
1176
1176
  )
1177
1177
  transcoder.transcode request_pb
@@ -1193,9 +1193,9 @@ module Google
1193
1193
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/setInstanceTemplate",
1194
1194
  body: "instance_group_managers_set_instance_template_request_resource",
1195
1195
  matches: [
1196
- ["project", %r{[^/]+}, false],
1197
- ["zone", %r{[^/]+}, false],
1198
- ["instance_group_manager", %r{[^/]+}, false]
1196
+ ["project", %r{^[^/]+/?$}, false],
1197
+ ["zone", %r{^[^/]+/?$}, false],
1198
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1199
1199
  ]
1200
1200
  )
1201
1201
  transcoder.transcode request_pb
@@ -1217,9 +1217,9 @@ module Google
1217
1217
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/setTargetPools",
1218
1218
  body: "instance_group_managers_set_target_pools_request_resource",
1219
1219
  matches: [
1220
- ["project", %r{[^/]+}, false],
1221
- ["zone", %r{[^/]+}, false],
1222
- ["instance_group_manager", %r{[^/]+}, false]
1220
+ ["project", %r{^[^/]+/?$}, false],
1221
+ ["zone", %r{^[^/]+/?$}, false],
1222
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1223
1223
  ]
1224
1224
  )
1225
1225
  transcoder.transcode request_pb
@@ -1241,9 +1241,9 @@ module Google
1241
1241
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/updatePerInstanceConfigs",
1242
1242
  body: "instance_group_managers_update_per_instance_configs_req_resource",
1243
1243
  matches: [
1244
- ["project", %r{[^/]+}, false],
1245
- ["zone", %r{[^/]+}, false],
1246
- ["instance_group_manager", %r{[^/]+}, false]
1244
+ ["project", %r{^[^/]+/?$}, false],
1245
+ ["zone", %r{^[^/]+/?$}, false],
1246
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1247
1247
  ]
1248
1248
  )
1249
1249
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the InstanceGroups service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -390,9 +390,9 @@ module Google
390
390
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/addInstances",
391
391
  body: "instance_groups_add_instances_request_resource",
392
392
  matches: [
393
- ["project", %r{[^/]+}, false],
394
- ["zone", %r{[^/]+}, false],
395
- ["instance_group", %r{[^/]+}, false]
393
+ ["project", %r{^[^/]+/?$}, false],
394
+ ["zone", %r{^[^/]+/?$}, false],
395
+ ["instance_group", %r{^[^/]+/?$}, false]
396
396
  ]
397
397
  )
398
398
  transcoder.transcode request_pb
@@ -413,7 +413,7 @@ module Google
413
413
  uri_method: :get,
414
414
  uri_template: "/compute/v1/projects/{project}/aggregated/instanceGroups",
415
415
  matches: [
416
- ["project", %r{[^/]+}, false]
416
+ ["project", %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}/instanceGroups/{instance_group}",
436
436
  matches: [
437
- ["project", %r{[^/]+}, false],
438
- ["zone", %r{[^/]+}, false],
439
- ["instance_group", %r{[^/]+}, false]
437
+ ["project", %r{^[^/]+/?$}, false],
438
+ ["zone", %r{^[^/]+/?$}, false],
439
+ ["instance_group", %r{^[^/]+/?$}, false]
440
440
  ]
441
441
  )
442
442
  transcoder.transcode request_pb
@@ -457,9 +457,9 @@ module Google
457
457
  uri_method: :get,
458
458
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}",
459
459
  matches: [
460
- ["project", %r{[^/]+}, false],
461
- ["zone", %r{[^/]+}, false],
462
- ["instance_group", %r{[^/]+}, false]
460
+ ["project", %r{^[^/]+/?$}, false],
461
+ ["zone", %r{^[^/]+/?$}, false],
462
+ ["instance_group", %r{^[^/]+/?$}, false]
463
463
  ]
464
464
  )
465
465
  transcoder.transcode request_pb
@@ -481,8 +481,8 @@ module Google
481
481
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups",
482
482
  body: "instance_group_resource",
483
483
  matches: [
484
- ["project", %r{[^/]+}, false],
485
- ["zone", %r{[^/]+}, false]
484
+ ["project", %r{^[^/]+/?$}, false],
485
+ ["zone", %r{^[^/]+/?$}, false]
486
486
  ]
487
487
  )
488
488
  transcoder.transcode request_pb
@@ -503,8 +503,8 @@ module Google
503
503
  uri_method: :get,
504
504
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups",
505
505
  matches: [
506
- ["project", %r{[^/]+}, false],
507
- ["zone", %r{[^/]+}, false]
506
+ ["project", %r{^[^/]+/?$}, false],
507
+ ["zone", %r{^[^/]+/?$}, false]
508
508
  ]
509
509
  )
510
510
  transcoder.transcode request_pb
@@ -526,9 +526,9 @@ module Google
526
526
  uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/listInstances",
527
527
  body: "instance_groups_list_instances_request_resource",
528
528
  matches: [
529
- ["project", %r{[^/]+}, false],
530
- ["zone", %r{[^/]+}, false],
531
- ["instance_group", %r{[^/]+}, false]
529
+ ["project", %r{^[^/]+/?$}, false],
530
+ ["zone", %r{^[^/]+/?$}, false],
531
+ ["instance_group", %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}/instanceGroups/{instance_group}/removeInstances",
551
551
  body: "instance_groups_remove_instances_request_resource",
552
552
  matches: [
553
- ["project", %r{[^/]+}, false],
554
- ["zone", %r{[^/]+}, false],
555
- ["instance_group", %r{[^/]+}, false]
553
+ ["project", %r{^[^/]+/?$}, false],
554
+ ["zone", %r{^[^/]+/?$}, false],
555
+ ["instance_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}/instanceGroups/{instance_group}/setNamedPorts",
575
575
  body: "instance_groups_set_named_ports_request_resource",
576
576
  matches: [
577
- ["project", %r{[^/]+}, false],
578
- ["zone", %r{[^/]+}, false],
579
- ["instance_group", %r{[^/]+}, false]
577
+ ["project", %r{^[^/]+/?$}, false],
578
+ ["zone", %r{^[^/]+/?$}, false],
579
+ ["instance_group", %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 InstanceTemplates 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/instanceTemplates/{instance_template}",
317
317
  matches: [
318
- ["project", %r{[^/]+}, false],
319
- ["instance_template", %r{[^/]+}, false]
318
+ ["project", %r{^[^/]+/?$}, false],
319
+ ["instance_template", %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/instanceTemplates/{instance_template}",
339
339
  matches: [
340
- ["project", %r{[^/]+}, false],
341
- ["instance_template", %r{[^/]+}, false]
340
+ ["project", %r{^[^/]+/?$}, false],
341
+ ["instance_template", %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/instanceTemplates/{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/instanceTemplates",
383
383
  body: "instance_template_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/instanceTemplates",
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/instanceTemplates/{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/instanceTemplates/{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