google-cloud-compute-v1 1.2.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
  4. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +90 -52
  5. data/lib/google/cloud/compute/v1/accelerator_types.rb +5 -0
  6. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +2 -2
  7. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +156 -89
  8. data/lib/google/cloud/compute/v1/addresses.rb +3 -0
  9. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +2 -2
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +222 -129
  11. data/lib/google/cloud/compute/v1/autoscalers.rb +3 -0
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  13. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +285 -161
  14. data/lib/google/cloud/compute/v1/backend_buckets.rb +3 -0
  15. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +2 -2
  16. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +383 -221
  17. data/lib/google/cloud/compute/v1/backend_services.rb +3 -0
  18. data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
  19. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
  20. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +90 -52
  21. data/lib/google/cloud/compute/v1/disk_types.rb +3 -0
  22. data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
  23. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +429 -240
  24. data/lib/google/cloud/compute/v1/disks.rb +3 -0
  25. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  26. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +189 -102
  27. data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +3 -0
  28. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  29. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +555 -330
  30. data/lib/google/cloud/compute/v1/firewall_policies.rb +3 -0
  31. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +187 -104
  33. data/lib/google/cloud/compute/v1/firewalls.rb +3 -0
  34. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +2 -2
  35. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +258 -146
  36. data/lib/google/cloud/compute/v1/forwarding_rules.rb +3 -0
  37. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  38. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +121 -66
  39. data/lib/google/cloud/compute/v1/global_addresses.rb +3 -0
  40. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  41. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +221 -122
  42. data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +3 -0
  43. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
  44. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +219 -126
  45. data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +3 -0
  46. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
  47. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +154 -86
  48. data/lib/google/cloud/compute/v1/global_operations.rb +3 -0
  49. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  50. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +84 -49
  51. data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -0
  52. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  53. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +154 -85
  54. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +3 -0
  55. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +2 -2
  56. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +218 -127
  57. data/lib/google/cloud/compute/v1/health_checks.rb +3 -0
  58. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +27 -7
  59. data/lib/google/cloud/compute/v1/image_family_views.rb +3 -0
  60. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +354 -194
  62. data/lib/google/cloud/compute/v1/images.rb +3 -0
  63. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +10 -10
  64. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +664 -381
  65. data/lib/google/cloud/compute/v1/instance_group_managers.rb +3 -0
  66. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
  67. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +292 -169
  68. data/lib/google/cloud/compute/v1/instance_groups.rb +3 -0
  69. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
  70. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +221 -120
  71. data/lib/google/cloud/compute/v1/instance_templates.rb +3 -0
  72. data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -5
  73. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1503 -845
  74. data/lib/google/cloud/compute/v1/instances.rb +3 -0
  75. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +2 -2
  76. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +190 -109
  77. data/lib/google/cloud/compute/v1/interconnect_attachments.rb +3 -0
  78. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  79. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +57 -29
  80. data/lib/google/cloud/compute/v1/interconnect_locations.rb +3 -0
  81. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  82. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +187 -102
  83. data/lib/google/cloud/compute/v1/interconnects.rb +3 -0
  84. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +60 -25
  85. data/lib/google/cloud/compute/v1/license_codes.rb +3 -0
  86. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  87. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +221 -120
  88. data/lib/google/cloud/compute/v1/licenses.rb +3 -0
  89. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
  90. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +221 -121
  91. data/lib/google/cloud/compute/v1/machine_images.rb +3 -0
  92. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
  93. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +90 -52
  94. data/lib/google/cloud/compute/v1/machine_types.rb +3 -0
  95. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
  96. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
  97. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +348 -0
  98. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
  99. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +47 -0
  100. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +3 -3
  101. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +293 -168
  102. data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -0
  103. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
  104. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
  105. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +998 -0
  106. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
  107. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +47 -0
  108. data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
  109. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +350 -202
  110. data/lib/google/cloud/compute/v1/networks.rb +3 -0
  111. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +3 -3
  112. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +428 -242
  113. data/lib/google/cloud/compute/v1/node_groups.rb +3 -0
  114. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +2 -2
  115. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +259 -143
  116. data/lib/google/cloud/compute/v1/node_templates.rb +3 -0
  117. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
  118. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +90 -52
  119. data/lib/google/cloud/compute/v1/node_types.rb +3 -0
  120. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +2 -2
  121. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +225 -126
  122. data/lib/google/cloud/compute/v1/packet_mirrorings.rb +3 -0
  123. data/lib/google/cloud/compute/v1/projects/rest/client.rb +2 -2
  124. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +406 -238
  125. data/lib/google/cloud/compute/v1/projects.rb +3 -0
  126. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  127. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +154 -85
  128. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +3 -0
  129. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +2 -2
  130. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +190 -108
  131. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +3 -0
  132. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  133. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +191 -106
  134. data/lib/google/cloud/compute/v1/region_autoscalers.rb +3 -0
  135. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
  136. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +228 -122
  137. data/lib/google/cloud/compute/v1/region_backend_services.rb +3 -0
  138. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +2 -2
  139. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +157 -92
  140. data/lib/google/cloud/compute/v1/region_commitments.rb +3 -0
  141. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  142. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +59 -29
  143. data/lib/google/cloud/compute/v1/region_disk_types.rb +3 -0
  144. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  145. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +398 -216
  146. data/lib/google/cloud/compute/v1/region_disks.rb +3 -0
  147. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  148. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +159 -85
  149. data/lib/google/cloud/compute/v1/region_health_check_services.rb +3 -0
  150. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  151. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +193 -104
  152. data/lib/google/cloud/compute/v1/region_health_checks.rb +3 -0
  153. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +9 -9
  154. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +633 -358
  155. data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +3 -0
  156. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
  157. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +127 -71
  158. data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -0
  159. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +26 -9
  160. data/lib/google/cloud/compute/v1/region_instances.rb +3 -0
  161. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
  162. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +125 -66
  163. data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -0
  164. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
  165. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
  166. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1073 -0
  167. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
  168. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +47 -0
  169. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  170. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -66
  171. data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +3 -0
  172. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  173. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +127 -63
  174. data/lib/google/cloud/compute/v1/region_operations.rb +3 -0
  175. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
  176. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
  177. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +349 -0
  178. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
  179. data/lib/google/cloud/compute/v1/region_security_policies.rb +47 -0
  180. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  181. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +125 -66
  182. data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +3 -0
  183. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  184. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +159 -85
  185. data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +3 -0
  186. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +88 -1
  187. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +249 -99
  188. data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +3 -0
  189. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  190. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +228 -122
  191. data/lib/google/cloud/compute/v1/region_url_maps.rb +3 -0
  192. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  193. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +57 -29
  194. data/lib/google/cloud/compute/v1/regions.rb +3 -0
  195. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +2 -2
  196. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +327 -183
  197. data/lib/google/cloud/compute/v1/reservations.rb +3 -0
  198. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +2 -2
  199. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +259 -143
  200. data/lib/google/cloud/compute/v1/resource_policies.rb +3 -0
  201. data/lib/google/cloud/compute/v1/routers/rest/client.rb +3 -3
  202. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +326 -184
  203. data/lib/google/cloud/compute/v1/routers.rb +3 -0
  204. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  205. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +121 -66
  206. data/lib/google/cloud/compute/v1/routes.rb +3 -0
  207. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +97 -5
  208. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +368 -174
  209. data/lib/google/cloud/compute/v1/security_policies.rb +3 -0
  210. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +2 -2
  211. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +293 -162
  212. data/lib/google/cloud/compute/v1/service_attachments.rb +3 -0
  213. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  214. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +255 -138
  215. data/lib/google/cloud/compute/v1/snapshots.rb +3 -0
  216. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +2 -2
  217. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +152 -89
  218. data/lib/google/cloud/compute/v1/ssl_certificates.rb +3 -0
  219. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +2 -2
  220. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +185 -107
  221. data/lib/google/cloud/compute/v1/ssl_policies.rb +3 -0
  222. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +3 -3
  223. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +392 -223
  224. data/lib/google/cloud/compute/v1/subnetworks.rb +3 -0
  225. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  226. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +154 -85
  227. data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +3 -0
  228. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +2 -2
  229. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +218 -127
  230. data/lib/google/cloud/compute/v1/target_http_proxies.rb +3 -0
  231. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -2
  232. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +371 -178
  233. data/lib/google/cloud/compute/v1/target_https_proxies.rb +3 -0
  234. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +2 -2
  235. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +156 -89
  236. data/lib/google/cloud/compute/v1/target_instances.rb +3 -0
  237. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +2 -2
  238. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +361 -203
  239. data/lib/google/cloud/compute/v1/target_pools.rb +3 -0
  240. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +85 -1
  241. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +307 -136
  242. data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +3 -0
  243. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
  244. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +187 -104
  245. data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +3 -0
  246. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +2 -2
  247. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +156 -89
  248. data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +3 -0
  249. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +2 -2
  250. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +285 -164
  251. data/lib/google/cloud/compute/v1/url_maps.rb +3 -0
  252. data/lib/google/cloud/compute/v1/version.rb +1 -1
  253. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +2 -2
  254. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +259 -143
  255. data/lib/google/cloud/compute/v1/vpn_gateways.rb +3 -0
  256. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +2 -2
  257. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +156 -89
  258. data/lib/google/cloud/compute/v1/vpn_tunnels.rb +3 -0
  259. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  260. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +127 -63
  261. data/lib/google/cloud/compute/v1/zone_operations.rb +3 -0
  262. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  263. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +57 -29
  264. data/lib/google/cloud/compute/v1/zones.rb +3 -0
  265. data/lib/google/cloud/compute/v1.rb +4 -0
  266. data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
  267. metadata +32 -12
@@ -55,10 +55,17 @@ module Google
55
55
  def abandon_instances request_pb, options = nil
56
56
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
57
57
 
58
- uri, body, query_string_params = transcode_abandon_instances_request request_pb
59
- response = @client_stub.make_post_request(
58
+ verb, uri, query_string_params, body = transcode_abandon_instances_request request_pb
59
+ query_string_params = if query_string_params.any?
60
+ query_string_params.to_h { |p| p.split("=", 2) }
61
+ else
62
+ {}
63
+ end
64
+
65
+ response = @client_stub.make_http_request(
66
+ verb,
60
67
  uri: uri,
61
- body: body,
68
+ body: body || "",
62
69
  params: query_string_params,
63
70
  options: options
64
71
  )
@@ -68,22 +75,6 @@ module Google
68
75
  result
69
76
  end
70
77
 
71
- ##
72
- # GRPC transcoding helper method for the abandon_instances REST call
73
- #
74
- # @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest]
75
- # A request object representing the call parameters. Required.
76
- # @return [Array(String, [String, nil], Hash{String => String})]
77
- # Uri, Body, Query string parameters
78
- def transcode_abandon_instances_request request_pb
79
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/abandonInstances"
80
- body = request_pb.instance_group_managers_abandon_instances_request_resource.to_json
81
- query_string_params = {}
82
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
83
-
84
- [uri, body, query_string_params]
85
- end
86
-
87
78
  ##
88
79
  # Baseline implementation for the aggregated_list REST call
89
80
  #
@@ -101,9 +92,17 @@ module Google
101
92
  def aggregated_list request_pb, options = nil
102
93
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
103
94
 
104
- uri, _body, query_string_params = transcode_aggregated_list_request request_pb
105
- response = @client_stub.make_get_request(
95
+ verb, uri, query_string_params, body = transcode_aggregated_list_request request_pb
96
+ query_string_params = if query_string_params.any?
97
+ query_string_params.to_h { |p| p.split("=", 2) }
98
+ else
99
+ {}
100
+ end
101
+
102
+ response = @client_stub.make_http_request(
103
+ verb,
106
104
  uri: uri,
105
+ body: body || "",
107
106
  params: query_string_params,
108
107
  options: options
109
108
  )
@@ -113,27 +112,6 @@ module Google
113
112
  result
114
113
  end
115
114
 
116
- ##
117
- # GRPC transcoding helper method for the aggregated_list REST call
118
- #
119
- # @param request_pb [::Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest]
120
- # A request object representing the call parameters. Required.
121
- # @return [Array(String, [String, nil], Hash{String => String})]
122
- # Uri, Body, Query string parameters
123
- def transcode_aggregated_list_request request_pb
124
- uri = "/compute/v1/projects/#{request_pb.project}/aggregated/instanceGroupManagers"
125
- body = nil
126
- query_string_params = {}
127
- query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
128
- query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
129
- query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
130
- query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
131
- query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
132
- query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
133
-
134
- [uri, body, query_string_params]
135
- end
136
-
137
115
  ##
138
116
  # Baseline implementation for the apply_updates_to_instances REST call
139
117
  #
@@ -151,10 +129,18 @@ module Google
151
129
  def apply_updates_to_instances request_pb, options = nil
152
130
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
153
131
 
154
- uri, body, _query_string_params = transcode_apply_updates_to_instances_request request_pb
155
- response = @client_stub.make_post_request(
132
+ verb, uri, query_string_params, body = transcode_apply_updates_to_instances_request request_pb
133
+ query_string_params = if query_string_params.any?
134
+ query_string_params.to_h { |p| p.split("=", 2) }
135
+ else
136
+ {}
137
+ end
138
+
139
+ response = @client_stub.make_http_request(
140
+ verb,
156
141
  uri: uri,
157
- body: body,
142
+ body: body || "",
143
+ params: query_string_params,
158
144
  options: options
159
145
  )
160
146
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -163,21 +149,6 @@ module Google
163
149
  result
164
150
  end
165
151
 
166
- ##
167
- # GRPC transcoding helper method for the apply_updates_to_instances REST call
168
- #
169
- # @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest]
170
- # A request object representing the call parameters. Required.
171
- # @return [Array(String, [String, nil], Hash{String => String})]
172
- # Uri, Body, Query string parameters
173
- def transcode_apply_updates_to_instances_request request_pb
174
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/applyUpdatesToInstances"
175
- body = request_pb.instance_group_managers_apply_updates_request_resource.to_json
176
- query_string_params = {}
177
-
178
- [uri, body, query_string_params]
179
- end
180
-
181
152
  ##
182
153
  # Baseline implementation for the create_instances REST call
183
154
  #
@@ -195,10 +166,17 @@ module Google
195
166
  def create_instances request_pb, options = nil
196
167
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
197
168
 
198
- uri, body, query_string_params = transcode_create_instances_request request_pb
199
- response = @client_stub.make_post_request(
169
+ verb, uri, query_string_params, body = transcode_create_instances_request request_pb
170
+ query_string_params = if query_string_params.any?
171
+ query_string_params.to_h { |p| p.split("=", 2) }
172
+ else
173
+ {}
174
+ end
175
+
176
+ response = @client_stub.make_http_request(
177
+ verb,
200
178
  uri: uri,
201
- body: body,
179
+ body: body || "",
202
180
  params: query_string_params,
203
181
  options: options
204
182
  )
@@ -208,22 +186,6 @@ module Google
208
186
  result
209
187
  end
210
188
 
211
- ##
212
- # GRPC transcoding helper method for the create_instances REST call
213
- #
214
- # @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest]
215
- # A request object representing the call parameters. Required.
216
- # @return [Array(String, [String, nil], Hash{String => String})]
217
- # Uri, Body, Query string parameters
218
- def transcode_create_instances_request request_pb
219
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/createInstances"
220
- body = request_pb.instance_group_managers_create_instances_request_resource.to_json
221
- query_string_params = {}
222
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
223
-
224
- [uri, body, query_string_params]
225
- end
226
-
227
189
  ##
228
190
  # Baseline implementation for the delete REST call
229
191
  #
@@ -241,9 +203,17 @@ module Google
241
203
  def delete request_pb, options = nil
242
204
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
243
205
 
244
- uri, _body, query_string_params = transcode_delete_request request_pb
245
- response = @client_stub.make_delete_request(
206
+ verb, uri, query_string_params, body = transcode_delete_request request_pb
207
+ query_string_params = if query_string_params.any?
208
+ query_string_params.to_h { |p| p.split("=", 2) }
209
+ else
210
+ {}
211
+ end
212
+
213
+ response = @client_stub.make_http_request(
214
+ verb,
246
215
  uri: uri,
216
+ body: body || "",
247
217
  params: query_string_params,
248
218
  options: options
249
219
  )
@@ -253,22 +223,6 @@ module Google
253
223
  result
254
224
  end
255
225
 
256
- ##
257
- # GRPC transcoding helper method for the delete REST call
258
- #
259
- # @param request_pb [::Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest]
260
- # A request object representing the call parameters. Required.
261
- # @return [Array(String, [String, nil], Hash{String => String})]
262
- # Uri, Body, Query string parameters
263
- def transcode_delete_request request_pb
264
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
265
- body = nil
266
- query_string_params = {}
267
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
268
-
269
- [uri, body, query_string_params]
270
- end
271
-
272
226
  ##
273
227
  # Baseline implementation for the delete_instances REST call
274
228
  #
@@ -286,10 +240,17 @@ module Google
286
240
  def delete_instances request_pb, options = nil
287
241
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
288
242
 
289
- uri, body, query_string_params = transcode_delete_instances_request request_pb
290
- response = @client_stub.make_post_request(
243
+ verb, uri, query_string_params, body = transcode_delete_instances_request request_pb
244
+ query_string_params = if query_string_params.any?
245
+ query_string_params.to_h { |p| p.split("=", 2) }
246
+ else
247
+ {}
248
+ end
249
+
250
+ response = @client_stub.make_http_request(
251
+ verb,
291
252
  uri: uri,
292
- body: body,
253
+ body: body || "",
293
254
  params: query_string_params,
294
255
  options: options
295
256
  )
@@ -299,22 +260,6 @@ module Google
299
260
  result
300
261
  end
301
262
 
302
- ##
303
- # GRPC transcoding helper method for the delete_instances REST call
304
- #
305
- # @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest]
306
- # A request object representing the call parameters. Required.
307
- # @return [Array(String, [String, nil], Hash{String => String})]
308
- # Uri, Body, Query string parameters
309
- def transcode_delete_instances_request request_pb
310
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/deleteInstances"
311
- body = request_pb.instance_group_managers_delete_instances_request_resource.to_json
312
- query_string_params = {}
313
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
314
-
315
- [uri, body, query_string_params]
316
- end
317
-
318
263
  ##
319
264
  # Baseline implementation for the delete_per_instance_configs REST call
320
265
  #
@@ -332,10 +277,18 @@ module Google
332
277
  def delete_per_instance_configs request_pb, options = nil
333
278
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
334
279
 
335
- uri, body, _query_string_params = transcode_delete_per_instance_configs_request request_pb
336
- response = @client_stub.make_post_request(
280
+ verb, uri, query_string_params, body = transcode_delete_per_instance_configs_request request_pb
281
+ query_string_params = if query_string_params.any?
282
+ query_string_params.to_h { |p| p.split("=", 2) }
283
+ else
284
+ {}
285
+ end
286
+
287
+ response = @client_stub.make_http_request(
288
+ verb,
337
289
  uri: uri,
338
- body: body,
290
+ body: body || "",
291
+ params: query_string_params,
339
292
  options: options
340
293
  )
341
294
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -344,21 +297,6 @@ module Google
344
297
  result
345
298
  end
346
299
 
347
- ##
348
- # GRPC transcoding helper method for the delete_per_instance_configs REST call
349
- #
350
- # @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest]
351
- # A request object representing the call parameters. Required.
352
- # @return [Array(String, [String, nil], Hash{String => String})]
353
- # Uri, Body, Query string parameters
354
- def transcode_delete_per_instance_configs_request request_pb
355
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/deletePerInstanceConfigs"
356
- body = request_pb.instance_group_managers_delete_per_instance_configs_req_resource.to_json
357
- query_string_params = {}
358
-
359
- [uri, body, query_string_params]
360
- end
361
-
362
300
  ##
363
301
  # Baseline implementation for the get REST call
364
302
  #
@@ -376,9 +314,18 @@ module Google
376
314
  def get request_pb, options = nil
377
315
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
378
316
 
379
- uri, _body, _query_string_params = transcode_get_request request_pb
380
- response = @client_stub.make_get_request(
317
+ verb, uri, query_string_params, body = transcode_get_request request_pb
318
+ query_string_params = if query_string_params.any?
319
+ query_string_params.to_h { |p| p.split("=", 2) }
320
+ else
321
+ {}
322
+ end
323
+
324
+ response = @client_stub.make_http_request(
325
+ verb,
381
326
  uri: uri,
327
+ body: body || "",
328
+ params: query_string_params,
382
329
  options: options
383
330
  )
384
331
  result = ::Google::Cloud::Compute::V1::InstanceGroupManager.decode_json response.body, ignore_unknown_fields: true
@@ -387,21 +334,6 @@ module Google
387
334
  result
388
335
  end
389
336
 
390
- ##
391
- # GRPC transcoding helper method for the get REST call
392
- #
393
- # @param request_pb [::Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest]
394
- # A request object representing the call parameters. Required.
395
- # @return [Array(String, [String, nil], Hash{String => String})]
396
- # Uri, Body, Query string parameters
397
- def transcode_get_request request_pb
398
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
399
- body = nil
400
- query_string_params = {}
401
-
402
- [uri, body, query_string_params]
403
- end
404
-
405
337
  ##
406
338
  # Baseline implementation for the insert REST call
407
339
  #
@@ -419,10 +351,17 @@ module Google
419
351
  def insert request_pb, options = nil
420
352
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
421
353
 
422
- uri, body, query_string_params = transcode_insert_request request_pb
423
- response = @client_stub.make_post_request(
354
+ verb, uri, query_string_params, body = transcode_insert_request request_pb
355
+ query_string_params = if query_string_params.any?
356
+ query_string_params.to_h { |p| p.split("=", 2) }
357
+ else
358
+ {}
359
+ end
360
+
361
+ response = @client_stub.make_http_request(
362
+ verb,
424
363
  uri: uri,
425
- body: body,
364
+ body: body || "",
426
365
  params: query_string_params,
427
366
  options: options
428
367
  )
@@ -432,22 +371,6 @@ module Google
432
371
  result
433
372
  end
434
373
 
435
- ##
436
- # GRPC transcoding helper method for the insert REST call
437
- #
438
- # @param request_pb [::Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest]
439
- # A request object representing the call parameters. Required.
440
- # @return [Array(String, [String, nil], Hash{String => String})]
441
- # Uri, Body, Query string parameters
442
- def transcode_insert_request request_pb
443
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers"
444
- body = request_pb.instance_group_manager_resource.to_json
445
- query_string_params = {}
446
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
447
-
448
- [uri, body, query_string_params]
449
- end
450
-
451
374
  ##
452
375
  # Baseline implementation for the list REST call
453
376
  #
@@ -465,9 +388,17 @@ module Google
465
388
  def list request_pb, options = nil
466
389
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
467
390
 
468
- uri, _body, query_string_params = transcode_list_request request_pb
469
- response = @client_stub.make_get_request(
391
+ verb, uri, query_string_params, body = transcode_list_request request_pb
392
+ query_string_params = if query_string_params.any?
393
+ query_string_params.to_h { |p| p.split("=", 2) }
394
+ else
395
+ {}
396
+ end
397
+
398
+ response = @client_stub.make_http_request(
399
+ verb,
470
400
  uri: uri,
401
+ body: body || "",
471
402
  params: query_string_params,
472
403
  options: options
473
404
  )
@@ -477,26 +408,6 @@ module Google
477
408
  result
478
409
  end
479
410
 
480
- ##
481
- # GRPC transcoding helper method for the list REST call
482
- #
483
- # @param request_pb [::Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest]
484
- # A request object representing the call parameters. Required.
485
- # @return [Array(String, [String, nil], Hash{String => String})]
486
- # Uri, Body, Query string parameters
487
- def transcode_list_request request_pb
488
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers"
489
- body = nil
490
- query_string_params = {}
491
- query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
492
- query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
493
- query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
494
- query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
495
- query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
496
-
497
- [uri, body, query_string_params]
498
- end
499
-
500
411
  ##
501
412
  # Baseline implementation for the list_errors REST call
502
413
  #
@@ -514,9 +425,17 @@ module Google
514
425
  def list_errors request_pb, options = nil
515
426
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
516
427
 
517
- uri, _body, query_string_params = transcode_list_errors_request request_pb
518
- response = @client_stub.make_get_request(
428
+ verb, uri, query_string_params, body = transcode_list_errors_request request_pb
429
+ query_string_params = if query_string_params.any?
430
+ query_string_params.to_h { |p| p.split("=", 2) }
431
+ else
432
+ {}
433
+ end
434
+
435
+ response = @client_stub.make_http_request(
436
+ verb,
519
437
  uri: uri,
438
+ body: body || "",
520
439
  params: query_string_params,
521
440
  options: options
522
441
  )
@@ -526,26 +445,6 @@ module Google
526
445
  result
527
446
  end
528
447
 
529
- ##
530
- # GRPC transcoding helper method for the list_errors REST call
531
- #
532
- # @param request_pb [::Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest]
533
- # A request object representing the call parameters. Required.
534
- # @return [Array(String, [String, nil], Hash{String => String})]
535
- # Uri, Body, Query string parameters
536
- def transcode_list_errors_request request_pb
537
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listErrors"
538
- body = nil
539
- query_string_params = {}
540
- query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
541
- query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
542
- query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
543
- query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
544
- query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
545
-
546
- [uri, body, query_string_params]
547
- end
548
-
549
448
  ##
550
449
  # Baseline implementation for the list_managed_instances REST call
551
450
  #
@@ -563,9 +462,17 @@ module Google
563
462
  def list_managed_instances request_pb, options = nil
564
463
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
565
464
 
566
- uri, _body, query_string_params = transcode_list_managed_instances_request request_pb
567
- response = @client_stub.make_post_request(
465
+ verb, uri, query_string_params, body = transcode_list_managed_instances_request request_pb
466
+ query_string_params = if query_string_params.any?
467
+ query_string_params.to_h { |p| p.split("=", 2) }
468
+ else
469
+ {}
470
+ end
471
+
472
+ response = @client_stub.make_http_request(
473
+ verb,
568
474
  uri: uri,
475
+ body: body || "",
569
476
  params: query_string_params,
570
477
  options: options
571
478
  )
@@ -575,26 +482,6 @@ module Google
575
482
  result
576
483
  end
577
484
 
578
- ##
579
- # GRPC transcoding helper method for the list_managed_instances REST call
580
- #
581
- # @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest]
582
- # A request object representing the call parameters. Required.
583
- # @return [Array(String, [String, nil], Hash{String => String})]
584
- # Uri, Body, Query string parameters
585
- def transcode_list_managed_instances_request request_pb
586
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listManagedInstances"
587
- body = nil
588
- query_string_params = {}
589
- query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
590
- query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
591
- query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
592
- query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
593
- query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
594
-
595
- [uri, body, query_string_params]
596
- end
597
-
598
485
  ##
599
486
  # Baseline implementation for the list_per_instance_configs REST call
600
487
  #
@@ -612,9 +499,17 @@ module Google
612
499
  def list_per_instance_configs request_pb, options = nil
613
500
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
614
501
 
615
- uri, _body, query_string_params = transcode_list_per_instance_configs_request request_pb
616
- response = @client_stub.make_post_request(
502
+ verb, uri, query_string_params, body = transcode_list_per_instance_configs_request request_pb
503
+ query_string_params = if query_string_params.any?
504
+ query_string_params.to_h { |p| p.split("=", 2) }
505
+ else
506
+ {}
507
+ end
508
+
509
+ response = @client_stub.make_http_request(
510
+ verb,
617
511
  uri: uri,
512
+ body: body || "",
618
513
  params: query_string_params,
619
514
  options: options
620
515
  )
@@ -624,26 +519,6 @@ module Google
624
519
  result
625
520
  end
626
521
 
627
- ##
628
- # GRPC transcoding helper method for the list_per_instance_configs REST call
629
- #
630
- # @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest]
631
- # A request object representing the call parameters. Required.
632
- # @return [Array(String, [String, nil], Hash{String => String})]
633
- # Uri, Body, Query string parameters
634
- def transcode_list_per_instance_configs_request request_pb
635
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/listPerInstanceConfigs"
636
- body = nil
637
- query_string_params = {}
638
- query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
639
- query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
640
- query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
641
- query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
642
- query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
643
-
644
- [uri, body, query_string_params]
645
- end
646
-
647
522
  ##
648
523
  # Baseline implementation for the patch REST call
649
524
  #
@@ -661,10 +536,17 @@ module Google
661
536
  def patch request_pb, options = nil
662
537
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
663
538
 
664
- uri, body, query_string_params = transcode_patch_request request_pb
665
- response = @client_stub.make_patch_request(
539
+ verb, uri, query_string_params, body = transcode_patch_request request_pb
540
+ query_string_params = if query_string_params.any?
541
+ query_string_params.to_h { |p| p.split("=", 2) }
542
+ else
543
+ {}
544
+ end
545
+
546
+ response = @client_stub.make_http_request(
547
+ verb,
666
548
  uri: uri,
667
- body: body,
549
+ body: body || "",
668
550
  params: query_string_params,
669
551
  options: options
670
552
  )
@@ -674,22 +556,6 @@ module Google
674
556
  result
675
557
  end
676
558
 
677
- ##
678
- # GRPC transcoding helper method for the patch REST call
679
- #
680
- # @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest]
681
- # A request object representing the call parameters. Required.
682
- # @return [Array(String, [String, nil], Hash{String => String})]
683
- # Uri, Body, Query string parameters
684
- def transcode_patch_request request_pb
685
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}"
686
- body = request_pb.instance_group_manager_resource.to_json
687
- query_string_params = {}
688
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
689
-
690
- [uri, body, query_string_params]
691
- end
692
-
693
559
  ##
694
560
  # Baseline implementation for the patch_per_instance_configs REST call
695
561
  #
@@ -707,10 +573,17 @@ module Google
707
573
  def patch_per_instance_configs request_pb, options = nil
708
574
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
709
575
 
710
- uri, body, query_string_params = transcode_patch_per_instance_configs_request request_pb
711
- response = @client_stub.make_post_request(
576
+ verb, uri, query_string_params, body = transcode_patch_per_instance_configs_request request_pb
577
+ query_string_params = if query_string_params.any?
578
+ query_string_params.to_h { |p| p.split("=", 2) }
579
+ else
580
+ {}
581
+ end
582
+
583
+ response = @client_stub.make_http_request(
584
+ verb,
712
585
  uri: uri,
713
- body: body,
586
+ body: body || "",
714
587
  params: query_string_params,
715
588
  options: options
716
589
  )
@@ -720,22 +593,6 @@ module Google
720
593
  result
721
594
  end
722
595
 
723
- ##
724
- # GRPC transcoding helper method for the patch_per_instance_configs REST call
725
- #
726
- # @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest]
727
- # A request object representing the call parameters. Required.
728
- # @return [Array(String, [String, nil], Hash{String => String})]
729
- # Uri, Body, Query string parameters
730
- def transcode_patch_per_instance_configs_request request_pb
731
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/patchPerInstanceConfigs"
732
- body = request_pb.instance_group_managers_patch_per_instance_configs_req_resource.to_json
733
- query_string_params = {}
734
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
735
-
736
- [uri, body, query_string_params]
737
- end
738
-
739
596
  ##
740
597
  # Baseline implementation for the recreate_instances REST call
741
598
  #
@@ -753,10 +610,17 @@ module Google
753
610
  def recreate_instances request_pb, options = nil
754
611
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
755
612
 
756
- uri, body, query_string_params = transcode_recreate_instances_request request_pb
757
- response = @client_stub.make_post_request(
613
+ verb, uri, query_string_params, body = transcode_recreate_instances_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split("=", 2) }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
758
622
  uri: uri,
759
- body: body,
623
+ body: body || "",
760
624
  params: query_string_params,
761
625
  options: options
762
626
  )
@@ -766,22 +630,6 @@ module Google
766
630
  result
767
631
  end
768
632
 
769
- ##
770
- # GRPC transcoding helper method for the recreate_instances REST call
771
- #
772
- # @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest]
773
- # A request object representing the call parameters. Required.
774
- # @return [Array(String, [String, nil], Hash{String => String})]
775
- # Uri, Body, Query string parameters
776
- def transcode_recreate_instances_request request_pb
777
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/recreateInstances"
778
- body = request_pb.instance_group_managers_recreate_instances_request_resource.to_json
779
- query_string_params = {}
780
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
781
-
782
- [uri, body, query_string_params]
783
- end
784
-
785
633
  ##
786
634
  # Baseline implementation for the resize REST call
787
635
  #
@@ -799,9 +647,17 @@ module Google
799
647
  def resize request_pb, options = nil
800
648
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
801
649
 
802
- uri, _body, query_string_params = transcode_resize_request request_pb
803
- response = @client_stub.make_post_request(
650
+ verb, uri, query_string_params, body = transcode_resize_request request_pb
651
+ query_string_params = if query_string_params.any?
652
+ query_string_params.to_h { |p| p.split("=", 2) }
653
+ else
654
+ {}
655
+ end
656
+
657
+ response = @client_stub.make_http_request(
658
+ verb,
804
659
  uri: uri,
660
+ body: body || "",
805
661
  params: query_string_params,
806
662
  options: options
807
663
  )
@@ -811,23 +667,6 @@ module Google
811
667
  result
812
668
  end
813
669
 
814
- ##
815
- # GRPC transcoding helper method for the resize REST call
816
- #
817
- # @param request_pb [::Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest]
818
- # A request object representing the call parameters. Required.
819
- # @return [Array(String, [String, nil], Hash{String => String})]
820
- # Uri, Body, Query string parameters
821
- def transcode_resize_request request_pb
822
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/resize"
823
- body = nil
824
- query_string_params = {}
825
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
826
- query_string_params["size"] = request_pb.size.to_s
827
-
828
- [uri, body, query_string_params]
829
- end
830
-
831
670
  ##
832
671
  # Baseline implementation for the set_instance_template REST call
833
672
  #
@@ -845,10 +684,17 @@ module Google
845
684
  def set_instance_template request_pb, options = nil
846
685
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
847
686
 
848
- uri, body, query_string_params = transcode_set_instance_template_request request_pb
849
- response = @client_stub.make_post_request(
687
+ verb, uri, query_string_params, body = transcode_set_instance_template_request request_pb
688
+ query_string_params = if query_string_params.any?
689
+ query_string_params.to_h { |p| p.split("=", 2) }
690
+ else
691
+ {}
692
+ end
693
+
694
+ response = @client_stub.make_http_request(
695
+ verb,
850
696
  uri: uri,
851
- body: body,
697
+ body: body || "",
852
698
  params: query_string_params,
853
699
  options: options
854
700
  )
@@ -858,22 +704,6 @@ module Google
858
704
  result
859
705
  end
860
706
 
861
- ##
862
- # GRPC transcoding helper method for the set_instance_template REST call
863
- #
864
- # @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest]
865
- # A request object representing the call parameters. Required.
866
- # @return [Array(String, [String, nil], Hash{String => String})]
867
- # Uri, Body, Query string parameters
868
- def transcode_set_instance_template_request request_pb
869
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/setInstanceTemplate"
870
- body = request_pb.instance_group_managers_set_instance_template_request_resource.to_json
871
- query_string_params = {}
872
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
873
-
874
- [uri, body, query_string_params]
875
- end
876
-
877
707
  ##
878
708
  # Baseline implementation for the set_target_pools REST call
879
709
  #
@@ -891,10 +721,17 @@ module Google
891
721
  def set_target_pools request_pb, options = nil
892
722
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
893
723
 
894
- uri, body, query_string_params = transcode_set_target_pools_request request_pb
895
- response = @client_stub.make_post_request(
724
+ verb, uri, query_string_params, body = transcode_set_target_pools_request request_pb
725
+ query_string_params = if query_string_params.any?
726
+ query_string_params.to_h { |p| p.split("=", 2) }
727
+ else
728
+ {}
729
+ end
730
+
731
+ response = @client_stub.make_http_request(
732
+ verb,
896
733
  uri: uri,
897
- body: body,
734
+ body: body || "",
898
735
  params: query_string_params,
899
736
  options: options
900
737
  )
@@ -904,22 +741,6 @@ module Google
904
741
  result
905
742
  end
906
743
 
907
- ##
908
- # GRPC transcoding helper method for the set_target_pools REST call
909
- #
910
- # @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest]
911
- # A request object representing the call parameters. Required.
912
- # @return [Array(String, [String, nil], Hash{String => String})]
913
- # Uri, Body, Query string parameters
914
- def transcode_set_target_pools_request request_pb
915
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/setTargetPools"
916
- body = request_pb.instance_group_managers_set_target_pools_request_resource.to_json
917
- query_string_params = {}
918
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
919
-
920
- [uri, body, query_string_params]
921
- end
922
-
923
744
  ##
924
745
  # Baseline implementation for the update_per_instance_configs REST call
925
746
  #
@@ -937,10 +758,17 @@ module Google
937
758
  def update_per_instance_configs request_pb, options = nil
938
759
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
939
760
 
940
- uri, body, query_string_params = transcode_update_per_instance_configs_request request_pb
941
- response = @client_stub.make_post_request(
761
+ verb, uri, query_string_params, body = transcode_update_per_instance_configs_request request_pb
762
+ query_string_params = if query_string_params.any?
763
+ query_string_params.to_h { |p| p.split("=", 2) }
764
+ else
765
+ {}
766
+ end
767
+
768
+ response = @client_stub.make_http_request(
769
+ verb,
942
770
  uri: uri,
943
- body: body,
771
+ body: body || "",
944
772
  params: query_string_params,
945
773
  options: options
946
774
  )
@@ -950,7 +778,456 @@ module Google
950
778
  result
951
779
  end
952
780
 
781
+
782
+ private
783
+
784
+ ##
785
+ # @private
786
+ #
787
+ # GRPC transcoding helper method for the abandon_instances REST call
788
+ #
789
+ # @param request_pb [::Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest]
790
+ # A request object representing the call parameters. Required.
791
+ # @return [Array(String, [String, nil], Hash{String => String})]
792
+ # Uri, Body, Query string parameters
793
+ def transcode_abandon_instances_request request_pb
794
+ transcoder = Gapic::Rest::GrpcTranscoder.new
795
+ .with_bindings(
796
+ uri_method: :post,
797
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/abandonInstances",
798
+ body: "instance_group_managers_abandon_instances_request_resource",
799
+ matches: [
800
+ ["project", %r{[^/]+}, false],
801
+ ["zone", %r{[^/]+}, false],
802
+ ["instance_group_manager", %r{[^/]+}, false]
803
+ ]
804
+ )
805
+ transcoder.transcode request_pb
806
+ end
807
+
808
+ ##
809
+ # @private
810
+ #
811
+ # GRPC transcoding helper method for the aggregated_list REST call
812
+ #
813
+ # @param request_pb [::Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest]
814
+ # A request object representing the call parameters. Required.
815
+ # @return [Array(String, [String, nil], Hash{String => String})]
816
+ # Uri, Body, Query string parameters
817
+ def transcode_aggregated_list_request request_pb
818
+ transcoder = Gapic::Rest::GrpcTranscoder.new
819
+ .with_bindings(
820
+ uri_method: :get,
821
+ uri_template: "/compute/v1/projects/{project}/aggregated/instanceGroupManagers",
822
+ matches: [
823
+ ["project", %r{[^/]+}, false]
824
+ ]
825
+ )
826
+ transcoder.transcode request_pb
827
+ end
828
+
829
+ ##
830
+ # @private
831
+ #
832
+ # GRPC transcoding helper method for the apply_updates_to_instances REST call
833
+ #
834
+ # @param request_pb [::Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest]
835
+ # A request object representing the call parameters. Required.
836
+ # @return [Array(String, [String, nil], Hash{String => String})]
837
+ # Uri, Body, Query string parameters
838
+ def transcode_apply_updates_to_instances_request request_pb
839
+ transcoder = Gapic::Rest::GrpcTranscoder.new
840
+ .with_bindings(
841
+ uri_method: :post,
842
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/applyUpdatesToInstances",
843
+ body: "instance_group_managers_apply_updates_request_resource",
844
+ matches: [
845
+ ["project", %r{[^/]+}, false],
846
+ ["zone", %r{[^/]+}, false],
847
+ ["instance_group_manager", %r{[^/]+}, false]
848
+ ]
849
+ )
850
+ transcoder.transcode request_pb
851
+ end
852
+
853
+ ##
854
+ # @private
855
+ #
856
+ # GRPC transcoding helper method for the create_instances REST call
857
+ #
858
+ # @param request_pb [::Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest]
859
+ # A request object representing the call parameters. Required.
860
+ # @return [Array(String, [String, nil], Hash{String => String})]
861
+ # Uri, Body, Query string parameters
862
+ def transcode_create_instances_request request_pb
863
+ transcoder = Gapic::Rest::GrpcTranscoder.new
864
+ .with_bindings(
865
+ uri_method: :post,
866
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/createInstances",
867
+ body: "instance_group_managers_create_instances_request_resource",
868
+ matches: [
869
+ ["project", %r{[^/]+}, false],
870
+ ["zone", %r{[^/]+}, false],
871
+ ["instance_group_manager", %r{[^/]+}, false]
872
+ ]
873
+ )
874
+ transcoder.transcode request_pb
875
+ end
876
+
877
+ ##
878
+ # @private
879
+ #
880
+ # GRPC transcoding helper method for the delete REST call
881
+ #
882
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest]
883
+ # A request object representing the call parameters. Required.
884
+ # @return [Array(String, [String, nil], Hash{String => String})]
885
+ # Uri, Body, Query string parameters
886
+ def transcode_delete_request request_pb
887
+ transcoder = Gapic::Rest::GrpcTranscoder.new
888
+ .with_bindings(
889
+ uri_method: :delete,
890
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
891
+ matches: [
892
+ ["project", %r{[^/]+}, false],
893
+ ["zone", %r{[^/]+}, false],
894
+ ["instance_group_manager", %r{[^/]+}, false]
895
+ ]
896
+ )
897
+ transcoder.transcode request_pb
898
+ end
899
+
900
+ ##
901
+ # @private
902
+ #
903
+ # GRPC transcoding helper method for the delete_instances REST call
904
+ #
905
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest]
906
+ # A request object representing the call parameters. Required.
907
+ # @return [Array(String, [String, nil], Hash{String => String})]
908
+ # Uri, Body, Query string parameters
909
+ def transcode_delete_instances_request request_pb
910
+ transcoder = Gapic::Rest::GrpcTranscoder.new
911
+ .with_bindings(
912
+ uri_method: :post,
913
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/deleteInstances",
914
+ body: "instance_group_managers_delete_instances_request_resource",
915
+ matches: [
916
+ ["project", %r{[^/]+}, false],
917
+ ["zone", %r{[^/]+}, false],
918
+ ["instance_group_manager", %r{[^/]+}, false]
919
+ ]
920
+ )
921
+ transcoder.transcode request_pb
922
+ end
923
+
924
+ ##
925
+ # @private
926
+ #
927
+ # GRPC transcoding helper method for the delete_per_instance_configs REST call
928
+ #
929
+ # @param request_pb [::Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest]
930
+ # A request object representing the call parameters. Required.
931
+ # @return [Array(String, [String, nil], Hash{String => String})]
932
+ # Uri, Body, Query string parameters
933
+ def transcode_delete_per_instance_configs_request request_pb
934
+ transcoder = Gapic::Rest::GrpcTranscoder.new
935
+ .with_bindings(
936
+ uri_method: :post,
937
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/deletePerInstanceConfigs",
938
+ body: "instance_group_managers_delete_per_instance_configs_req_resource",
939
+ matches: [
940
+ ["project", %r{[^/]+}, false],
941
+ ["zone", %r{[^/]+}, false],
942
+ ["instance_group_manager", %r{[^/]+}, false]
943
+ ]
944
+ )
945
+ transcoder.transcode request_pb
946
+ end
947
+
948
+ ##
949
+ # @private
950
+ #
951
+ # GRPC transcoding helper method for the get REST call
952
+ #
953
+ # @param request_pb [::Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest]
954
+ # A request object representing the call parameters. Required.
955
+ # @return [Array(String, [String, nil], Hash{String => String})]
956
+ # Uri, Body, Query string parameters
957
+ def transcode_get_request request_pb
958
+ transcoder = Gapic::Rest::GrpcTranscoder.new
959
+ .with_bindings(
960
+ uri_method: :get,
961
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
962
+ matches: [
963
+ ["project", %r{[^/]+}, false],
964
+ ["zone", %r{[^/]+}, false],
965
+ ["instance_group_manager", %r{[^/]+}, false]
966
+ ]
967
+ )
968
+ transcoder.transcode request_pb
969
+ end
970
+
971
+ ##
972
+ # @private
973
+ #
974
+ # GRPC transcoding helper method for the insert REST call
975
+ #
976
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest]
977
+ # A request object representing the call parameters. Required.
978
+ # @return [Array(String, [String, nil], Hash{String => String})]
979
+ # Uri, Body, Query string parameters
980
+ def transcode_insert_request request_pb
981
+ transcoder = Gapic::Rest::GrpcTranscoder.new
982
+ .with_bindings(
983
+ uri_method: :post,
984
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers",
985
+ body: "instance_group_manager_resource",
986
+ matches: [
987
+ ["project", %r{[^/]+}, false],
988
+ ["zone", %r{[^/]+}, false]
989
+ ]
990
+ )
991
+ transcoder.transcode request_pb
992
+ end
993
+
994
+ ##
995
+ # @private
996
+ #
997
+ # GRPC transcoding helper method for the list REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @return [Array(String, [String, nil], Hash{String => String})]
1002
+ # Uri, Body, Query string parameters
1003
+ def transcode_list_request request_pb
1004
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1005
+ .with_bindings(
1006
+ uri_method: :get,
1007
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers",
1008
+ matches: [
1009
+ ["project", %r{[^/]+}, false],
1010
+ ["zone", %r{[^/]+}, false]
1011
+ ]
1012
+ )
1013
+ transcoder.transcode request_pb
1014
+ end
1015
+
1016
+ ##
1017
+ # @private
1018
+ #
1019
+ # GRPC transcoding helper method for the list_errors REST call
1020
+ #
1021
+ # @param request_pb [::Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest]
1022
+ # A request object representing the call parameters. Required.
1023
+ # @return [Array(String, [String, nil], Hash{String => String})]
1024
+ # Uri, Body, Query string parameters
1025
+ def transcode_list_errors_request request_pb
1026
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1027
+ .with_bindings(
1028
+ uri_method: :get,
1029
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listErrors",
1030
+ matches: [
1031
+ ["project", %r{[^/]+}, false],
1032
+ ["zone", %r{[^/]+}, false],
1033
+ ["instance_group_manager", %r{[^/]+}, false]
1034
+ ]
1035
+ )
1036
+ transcoder.transcode request_pb
1037
+ end
1038
+
1039
+ ##
1040
+ # @private
1041
+ #
1042
+ # GRPC transcoding helper method for the list_managed_instances REST call
1043
+ #
1044
+ # @param request_pb [::Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest]
1045
+ # A request object representing the call parameters. Required.
1046
+ # @return [Array(String, [String, nil], Hash{String => String})]
1047
+ # Uri, Body, Query string parameters
1048
+ def transcode_list_managed_instances_request request_pb
1049
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1050
+ .with_bindings(
1051
+ uri_method: :post,
1052
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listManagedInstances",
1053
+ matches: [
1054
+ ["project", %r{[^/]+}, false],
1055
+ ["zone", %r{[^/]+}, false],
1056
+ ["instance_group_manager", %r{[^/]+}, false]
1057
+ ]
1058
+ )
1059
+ transcoder.transcode request_pb
1060
+ end
1061
+
1062
+ ##
1063
+ # @private
1064
+ #
1065
+ # GRPC transcoding helper method for the list_per_instance_configs REST call
1066
+ #
1067
+ # @param request_pb [::Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest]
1068
+ # A request object representing the call parameters. Required.
1069
+ # @return [Array(String, [String, nil], Hash{String => String})]
1070
+ # Uri, Body, Query string parameters
1071
+ def transcode_list_per_instance_configs_request request_pb
1072
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1073
+ .with_bindings(
1074
+ uri_method: :post,
1075
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs",
1076
+ matches: [
1077
+ ["project", %r{[^/]+}, false],
1078
+ ["zone", %r{[^/]+}, false],
1079
+ ["instance_group_manager", %r{[^/]+}, false]
1080
+ ]
1081
+ )
1082
+ transcoder.transcode request_pb
1083
+ end
1084
+
1085
+ ##
1086
+ # @private
1087
+ #
1088
+ # GRPC transcoding helper method for the patch REST call
1089
+ #
1090
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest]
1091
+ # A request object representing the call parameters. Required.
1092
+ # @return [Array(String, [String, nil], Hash{String => String})]
1093
+ # Uri, Body, Query string parameters
1094
+ def transcode_patch_request request_pb
1095
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1096
+ .with_bindings(
1097
+ uri_method: :patch,
1098
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}",
1099
+ body: "instance_group_manager_resource",
1100
+ matches: [
1101
+ ["project", %r{[^/]+}, false],
1102
+ ["zone", %r{[^/]+}, false],
1103
+ ["instance_group_manager", %r{[^/]+}, false]
1104
+ ]
1105
+ )
1106
+ transcoder.transcode request_pb
1107
+ end
1108
+
953
1109
  ##
1110
+ # @private
1111
+ #
1112
+ # GRPC transcoding helper method for the patch_per_instance_configs REST call
1113
+ #
1114
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest]
1115
+ # A request object representing the call parameters. Required.
1116
+ # @return [Array(String, [String, nil], Hash{String => String})]
1117
+ # Uri, Body, Query string parameters
1118
+ def transcode_patch_per_instance_configs_request request_pb
1119
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1120
+ .with_bindings(
1121
+ uri_method: :post,
1122
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/patchPerInstanceConfigs",
1123
+ body: "instance_group_managers_patch_per_instance_configs_req_resource",
1124
+ matches: [
1125
+ ["project", %r{[^/]+}, false],
1126
+ ["zone", %r{[^/]+}, false],
1127
+ ["instance_group_manager", %r{[^/]+}, false]
1128
+ ]
1129
+ )
1130
+ transcoder.transcode request_pb
1131
+ end
1132
+
1133
+ ##
1134
+ # @private
1135
+ #
1136
+ # GRPC transcoding helper method for the recreate_instances REST call
1137
+ #
1138
+ # @param request_pb [::Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest]
1139
+ # A request object representing the call parameters. Required.
1140
+ # @return [Array(String, [String, nil], Hash{String => String})]
1141
+ # Uri, Body, Query string parameters
1142
+ def transcode_recreate_instances_request request_pb
1143
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1144
+ .with_bindings(
1145
+ uri_method: :post,
1146
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/recreateInstances",
1147
+ body: "instance_group_managers_recreate_instances_request_resource",
1148
+ matches: [
1149
+ ["project", %r{[^/]+}, false],
1150
+ ["zone", %r{[^/]+}, false],
1151
+ ["instance_group_manager", %r{[^/]+}, false]
1152
+ ]
1153
+ )
1154
+ transcoder.transcode request_pb
1155
+ end
1156
+
1157
+ ##
1158
+ # @private
1159
+ #
1160
+ # GRPC transcoding helper method for the resize REST call
1161
+ #
1162
+ # @param request_pb [::Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest]
1163
+ # A request object representing the call parameters. Required.
1164
+ # @return [Array(String, [String, nil], Hash{String => String})]
1165
+ # Uri, Body, Query string parameters
1166
+ def transcode_resize_request request_pb
1167
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1168
+ .with_bindings(
1169
+ uri_method: :post,
1170
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resize",
1171
+ matches: [
1172
+ ["project", %r{[^/]+}, false],
1173
+ ["zone", %r{[^/]+}, false],
1174
+ ["instance_group_manager", %r{[^/]+}, false]
1175
+ ]
1176
+ )
1177
+ transcoder.transcode request_pb
1178
+ end
1179
+
1180
+ ##
1181
+ # @private
1182
+ #
1183
+ # GRPC transcoding helper method for the set_instance_template REST call
1184
+ #
1185
+ # @param request_pb [::Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest]
1186
+ # A request object representing the call parameters. Required.
1187
+ # @return [Array(String, [String, nil], Hash{String => String})]
1188
+ # Uri, Body, Query string parameters
1189
+ def transcode_set_instance_template_request request_pb
1190
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1191
+ .with_bindings(
1192
+ uri_method: :post,
1193
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/setInstanceTemplate",
1194
+ body: "instance_group_managers_set_instance_template_request_resource",
1195
+ matches: [
1196
+ ["project", %r{[^/]+}, false],
1197
+ ["zone", %r{[^/]+}, false],
1198
+ ["instance_group_manager", %r{[^/]+}, false]
1199
+ ]
1200
+ )
1201
+ transcoder.transcode request_pb
1202
+ end
1203
+
1204
+ ##
1205
+ # @private
1206
+ #
1207
+ # GRPC transcoding helper method for the set_target_pools REST call
1208
+ #
1209
+ # @param request_pb [::Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest]
1210
+ # A request object representing the call parameters. Required.
1211
+ # @return [Array(String, [String, nil], Hash{String => String})]
1212
+ # Uri, Body, Query string parameters
1213
+ def transcode_set_target_pools_request request_pb
1214
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1215
+ .with_bindings(
1216
+ uri_method: :post,
1217
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/setTargetPools",
1218
+ body: "instance_group_managers_set_target_pools_request_resource",
1219
+ matches: [
1220
+ ["project", %r{[^/]+}, false],
1221
+ ["zone", %r{[^/]+}, false],
1222
+ ["instance_group_manager", %r{[^/]+}, false]
1223
+ ]
1224
+ )
1225
+ transcoder.transcode request_pb
1226
+ end
1227
+
1228
+ ##
1229
+ # @private
1230
+ #
954
1231
  # GRPC transcoding helper method for the update_per_instance_configs REST call
955
1232
  #
956
1233
  # @param request_pb [::Google::Cloud::Compute::V1::UpdatePerInstanceConfigsInstanceGroupManagerRequest]
@@ -958,12 +1235,18 @@ module Google
958
1235
  # @return [Array(String, [String, nil], Hash{String => String})]
959
1236
  # Uri, Body, Query string parameters
960
1237
  def transcode_update_per_instance_configs_request request_pb
961
- uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instanceGroupManagers/#{request_pb.instance_group_manager}/updatePerInstanceConfigs"
962
- body = request_pb.instance_group_managers_update_per_instance_configs_req_resource.to_json
963
- query_string_params = {}
964
- query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
965
-
966
- [uri, body, query_string_params]
1238
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1239
+ .with_bindings(
1240
+ uri_method: :post,
1241
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/updatePerInstanceConfigs",
1242
+ body: "instance_group_managers_update_per_instance_configs_req_resource",
1243
+ matches: [
1244
+ ["project", %r{[^/]+}, false],
1245
+ ["zone", %r{[^/]+}, false],
1246
+ ["instance_group_manager", %r{[^/]+}, false]
1247
+ ]
1248
+ )
1249
+ transcoder.transcode request_pb
967
1250
  end
968
1251
  end
969
1252
  end