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 RegionInstanceGroupManagers 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:
@@ -760,9 +760,9 @@ module Google
760
760
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/abandonInstances",
761
761
  body: "region_instance_group_managers_abandon_instances_request_resource",
762
762
  matches: [
763
- ["project", %r{[^/]+}, false],
764
- ["region", %r{[^/]+}, false],
765
- ["instance_group_manager", %r{[^/]+}, false]
763
+ ["project", %r{^[^/]+/?$}, false],
764
+ ["region", %r{^[^/]+/?$}, false],
765
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
766
766
  ]
767
767
  )
768
768
  transcoder.transcode request_pb
@@ -784,9 +784,9 @@ module Google
784
784
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/applyUpdatesToInstances",
785
785
  body: "region_instance_group_managers_apply_updates_request_resource",
786
786
  matches: [
787
- ["project", %r{[^/]+}, false],
788
- ["region", %r{[^/]+}, false],
789
- ["instance_group_manager", %r{[^/]+}, false]
787
+ ["project", %r{^[^/]+/?$}, false],
788
+ ["region", %r{^[^/]+/?$}, false],
789
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
790
790
  ]
791
791
  )
792
792
  transcoder.transcode request_pb
@@ -808,9 +808,9 @@ module Google
808
808
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/createInstances",
809
809
  body: "region_instance_group_managers_create_instances_request_resource",
810
810
  matches: [
811
- ["project", %r{[^/]+}, false],
812
- ["region", %r{[^/]+}, false],
813
- ["instance_group_manager", %r{[^/]+}, false]
811
+ ["project", %r{^[^/]+/?$}, false],
812
+ ["region", %r{^[^/]+/?$}, false],
813
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
814
814
  ]
815
815
  )
816
816
  transcoder.transcode request_pb
@@ -831,9 +831,9 @@ module Google
831
831
  uri_method: :delete,
832
832
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
833
833
  matches: [
834
- ["project", %r{[^/]+}, false],
835
- ["region", %r{[^/]+}, false],
836
- ["instance_group_manager", %r{[^/]+}, false]
834
+ ["project", %r{^[^/]+/?$}, false],
835
+ ["region", %r{^[^/]+/?$}, false],
836
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
837
837
  ]
838
838
  )
839
839
  transcoder.transcode request_pb
@@ -855,9 +855,9 @@ module Google
855
855
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/deleteInstances",
856
856
  body: "region_instance_group_managers_delete_instances_request_resource",
857
857
  matches: [
858
- ["project", %r{[^/]+}, false],
859
- ["region", %r{[^/]+}, false],
860
- ["instance_group_manager", %r{[^/]+}, false]
858
+ ["project", %r{^[^/]+/?$}, false],
859
+ ["region", %r{^[^/]+/?$}, false],
860
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
861
861
  ]
862
862
  )
863
863
  transcoder.transcode request_pb
@@ -879,9 +879,9 @@ module Google
879
879
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/deletePerInstanceConfigs",
880
880
  body: "region_instance_group_manager_delete_instance_config_req_resource",
881
881
  matches: [
882
- ["project", %r{[^/]+}, false],
883
- ["region", %r{[^/]+}, false],
884
- ["instance_group_manager", %r{[^/]+}, false]
882
+ ["project", %r{^[^/]+/?$}, false],
883
+ ["region", %r{^[^/]+/?$}, false],
884
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
885
885
  ]
886
886
  )
887
887
  transcoder.transcode request_pb
@@ -902,9 +902,9 @@ module Google
902
902
  uri_method: :get,
903
903
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
904
904
  matches: [
905
- ["project", %r{[^/]+}, false],
906
- ["region", %r{[^/]+}, false],
907
- ["instance_group_manager", %r{[^/]+}, false]
905
+ ["project", %r{^[^/]+/?$}, false],
906
+ ["region", %r{^[^/]+/?$}, false],
907
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
908
908
  ]
909
909
  )
910
910
  transcoder.transcode request_pb
@@ -926,8 +926,8 @@ module Google
926
926
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers",
927
927
  body: "instance_group_manager_resource",
928
928
  matches: [
929
- ["project", %r{[^/]+}, false],
930
- ["region", %r{[^/]+}, false]
929
+ ["project", %r{^[^/]+/?$}, false],
930
+ ["region", %r{^[^/]+/?$}, false]
931
931
  ]
932
932
  )
933
933
  transcoder.transcode request_pb
@@ -948,8 +948,8 @@ module Google
948
948
  uri_method: :get,
949
949
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers",
950
950
  matches: [
951
- ["project", %r{[^/]+}, false],
952
- ["region", %r{[^/]+}, false]
951
+ ["project", %r{^[^/]+/?$}, false],
952
+ ["region", %r{^[^/]+/?$}, false]
953
953
  ]
954
954
  )
955
955
  transcoder.transcode request_pb
@@ -970,9 +970,9 @@ module Google
970
970
  uri_method: :get,
971
971
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listErrors",
972
972
  matches: [
973
- ["project", %r{[^/]+}, false],
974
- ["region", %r{[^/]+}, false],
975
- ["instance_group_manager", %r{[^/]+}, false]
973
+ ["project", %r{^[^/]+/?$}, false],
974
+ ["region", %r{^[^/]+/?$}, false],
975
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
976
976
  ]
977
977
  )
978
978
  transcoder.transcode request_pb
@@ -993,9 +993,9 @@ module Google
993
993
  uri_method: :post,
994
994
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listManagedInstances",
995
995
  matches: [
996
- ["project", %r{[^/]+}, false],
997
- ["region", %r{[^/]+}, false],
998
- ["instance_group_manager", %r{[^/]+}, false]
996
+ ["project", %r{^[^/]+/?$}, false],
997
+ ["region", %r{^[^/]+/?$}, false],
998
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
999
999
  ]
1000
1000
  )
1001
1001
  transcoder.transcode request_pb
@@ -1016,9 +1016,9 @@ module Google
1016
1016
  uri_method: :post,
1017
1017
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs",
1018
1018
  matches: [
1019
- ["project", %r{[^/]+}, false],
1020
- ["region", %r{[^/]+}, false],
1021
- ["instance_group_manager", %r{[^/]+}, false]
1019
+ ["project", %r{^[^/]+/?$}, false],
1020
+ ["region", %r{^[^/]+/?$}, false],
1021
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1022
1022
  ]
1023
1023
  )
1024
1024
  transcoder.transcode request_pb
@@ -1040,9 +1040,9 @@ module Google
1040
1040
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}",
1041
1041
  body: "instance_group_manager_resource",
1042
1042
  matches: [
1043
- ["project", %r{[^/]+}, false],
1044
- ["region", %r{[^/]+}, false],
1045
- ["instance_group_manager", %r{[^/]+}, false]
1043
+ ["project", %r{^[^/]+/?$}, false],
1044
+ ["region", %r{^[^/]+/?$}, false],
1045
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1046
1046
  ]
1047
1047
  )
1048
1048
  transcoder.transcode request_pb
@@ -1064,9 +1064,9 @@ module Google
1064
1064
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/patchPerInstanceConfigs",
1065
1065
  body: "region_instance_group_manager_patch_instance_config_req_resource",
1066
1066
  matches: [
1067
- ["project", %r{[^/]+}, false],
1068
- ["region", %r{[^/]+}, false],
1069
- ["instance_group_manager", %r{[^/]+}, false]
1067
+ ["project", %r{^[^/]+/?$}, false],
1068
+ ["region", %r{^[^/]+/?$}, false],
1069
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1070
1070
  ]
1071
1071
  )
1072
1072
  transcoder.transcode request_pb
@@ -1088,9 +1088,9 @@ module Google
1088
1088
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/recreateInstances",
1089
1089
  body: "region_instance_group_managers_recreate_request_resource",
1090
1090
  matches: [
1091
- ["project", %r{[^/]+}, false],
1092
- ["region", %r{[^/]+}, false],
1093
- ["instance_group_manager", %r{[^/]+}, false]
1091
+ ["project", %r{^[^/]+/?$}, false],
1092
+ ["region", %r{^[^/]+/?$}, false],
1093
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1094
1094
  ]
1095
1095
  )
1096
1096
  transcoder.transcode request_pb
@@ -1111,9 +1111,9 @@ module Google
1111
1111
  uri_method: :post,
1112
1112
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resize",
1113
1113
  matches: [
1114
- ["project", %r{[^/]+}, false],
1115
- ["region", %r{[^/]+}, false],
1116
- ["instance_group_manager", %r{[^/]+}, false]
1114
+ ["project", %r{^[^/]+/?$}, false],
1115
+ ["region", %r{^[^/]+/?$}, false],
1116
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1117
1117
  ]
1118
1118
  )
1119
1119
  transcoder.transcode request_pb
@@ -1135,9 +1135,9 @@ module Google
1135
1135
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/setInstanceTemplate",
1136
1136
  body: "region_instance_group_managers_set_template_request_resource",
1137
1137
  matches: [
1138
- ["project", %r{[^/]+}, false],
1139
- ["region", %r{[^/]+}, false],
1140
- ["instance_group_manager", %r{[^/]+}, false]
1138
+ ["project", %r{^[^/]+/?$}, false],
1139
+ ["region", %r{^[^/]+/?$}, false],
1140
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1141
1141
  ]
1142
1142
  )
1143
1143
  transcoder.transcode request_pb
@@ -1159,9 +1159,9 @@ module Google
1159
1159
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/setTargetPools",
1160
1160
  body: "region_instance_group_managers_set_target_pools_request_resource",
1161
1161
  matches: [
1162
- ["project", %r{[^/]+}, false],
1163
- ["region", %r{[^/]+}, false],
1164
- ["instance_group_manager", %r{[^/]+}, false]
1162
+ ["project", %r{^[^/]+/?$}, false],
1163
+ ["region", %r{^[^/]+/?$}, false],
1164
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1165
1165
  ]
1166
1166
  )
1167
1167
  transcoder.transcode request_pb
@@ -1183,9 +1183,9 @@ module Google
1183
1183
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/updatePerInstanceConfigs",
1184
1184
  body: "region_instance_group_manager_update_instance_config_req_resource",
1185
1185
  matches: [
1186
- ["project", %r{[^/]+}, false],
1187
- ["region", %r{[^/]+}, false],
1188
- ["instance_group_manager", %r{[^/]+}, false]
1186
+ ["project", %r{^[^/]+/?$}, false],
1187
+ ["region", %r{^[^/]+/?$}, false],
1188
+ ["instance_group_manager", %r{^[^/]+/?$}, false]
1189
1189
  ]
1190
1190
  )
1191
1191
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionInstanceGroups 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:
@@ -204,9 +204,9 @@ module Google
204
204
  uri_method: :get,
205
205
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instance_group}",
206
206
  matches: [
207
- ["project", %r{[^/]+}, false],
208
- ["region", %r{[^/]+}, false],
209
- ["instance_group", %r{[^/]+}, false]
207
+ ["project", %r{^[^/]+/?$}, false],
208
+ ["region", %r{^[^/]+/?$}, false],
209
+ ["instance_group", %r{^[^/]+/?$}, false]
210
210
  ]
211
211
  )
212
212
  transcoder.transcode request_pb
@@ -227,8 +227,8 @@ module Google
227
227
  uri_method: :get,
228
228
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroups",
229
229
  matches: [
230
- ["project", %r{[^/]+}, false],
231
- ["region", %r{[^/]+}, false]
230
+ ["project", %r{^[^/]+/?$}, false],
231
+ ["region", %r{^[^/]+/?$}, false]
232
232
  ]
233
233
  )
234
234
  transcoder.transcode request_pb
@@ -250,9 +250,9 @@ module Google
250
250
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instance_group}/listInstances",
251
251
  body: "region_instance_groups_list_instances_request_resource",
252
252
  matches: [
253
- ["project", %r{[^/]+}, false],
254
- ["region", %r{[^/]+}, false],
255
- ["instance_group", %r{[^/]+}, false]
253
+ ["project", %r{^[^/]+/?$}, false],
254
+ ["region", %r{^[^/]+/?$}, false],
255
+ ["instance_group", %r{^[^/]+/?$}, false]
256
256
  ]
257
257
  )
258
258
  transcoder.transcode request_pb
@@ -274,9 +274,9 @@ module Google
274
274
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instance_group}/setNamedPorts",
275
275
  body: "region_instance_groups_set_named_ports_request_resource",
276
276
  matches: [
277
- ["project", %r{[^/]+}, false],
278
- ["region", %r{[^/]+}, false],
279
- ["instance_group", %r{[^/]+}, false]
277
+ ["project", %r{^[^/]+/?$}, false],
278
+ ["region", %r{^[^/]+/?$}, false],
279
+ ["instance_group", %r{^[^/]+/?$}, false]
280
280
  ]
281
281
  )
282
282
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionInstances 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:
@@ -94,8 +94,8 @@ module Google
94
94
  uri_template: "/compute/v1/projects/{project}/regions/{region}/instances/bulkInsert",
95
95
  body: "bulk_insert_instance_resource_resource",
96
96
  matches: [
97
- ["project", %r{[^/]+}, false],
98
- ["region", %r{[^/]+}, false]
97
+ ["project", %r{^[^/]+/?$}, false],
98
+ ["region", %r{^[^/]+/?$}, false]
99
99
  ]
100
100
  )
101
101
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionNetworkEndpointGroups 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:
@@ -204,9 +204,9 @@ module Google
204
204
  uri_method: :delete,
205
205
  uri_template: "/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{network_endpoint_group}",
206
206
  matches: [
207
- ["project", %r{[^/]+}, false],
208
- ["region", %r{[^/]+}, false],
209
- ["network_endpoint_group", %r{[^/]+}, false]
207
+ ["project", %r{^[^/]+/?$}, false],
208
+ ["region", %r{^[^/]+/?$}, false],
209
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
210
210
  ]
211
211
  )
212
212
  transcoder.transcode request_pb
@@ -227,9 +227,9 @@ module Google
227
227
  uri_method: :get,
228
228
  uri_template: "/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{network_endpoint_group}",
229
229
  matches: [
230
- ["project", %r{[^/]+}, false],
231
- ["region", %r{[^/]+}, false],
232
- ["network_endpoint_group", %r{[^/]+}, false]
230
+ ["project", %r{^[^/]+/?$}, false],
231
+ ["region", %r{^[^/]+/?$}, false],
232
+ ["network_endpoint_group", %r{^[^/]+/?$}, false]
233
233
  ]
234
234
  )
235
235
  transcoder.transcode request_pb
@@ -251,8 +251,8 @@ module Google
251
251
  uri_template: "/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups",
252
252
  body: "network_endpoint_group_resource",
253
253
  matches: [
254
- ["project", %r{[^/]+}, false],
255
- ["region", %r{[^/]+}, false]
254
+ ["project", %r{^[^/]+/?$}, false],
255
+ ["region", %r{^[^/]+/?$}, false]
256
256
  ]
257
257
  )
258
258
  transcoder.transcode request_pb
@@ -273,8 +273,8 @@ module Google
273
273
  uri_method: :get,
274
274
  uri_template: "/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups",
275
275
  matches: [
276
- ["project", %r{[^/]+}, false],
277
- ["region", %r{[^/]+}, false]
276
+ ["project", %r{^[^/]+/?$}, false],
277
+ ["region", %r{^[^/]+/?$}, false]
278
278
  ]
279
279
  )
280
280
  transcoder.transcode request_pb