google-cloud-compute-v1 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +19 -37
  4. data/README.md +4 -30
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +127 -90
  6. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
  7. data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
  8. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +172 -130
  9. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
  10. data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +218 -172
  12. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
  13. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
  14. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +236 -185
  15. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
  16. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
  17. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +308 -253
  18. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
  19. data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
  20. data/lib/google/cloud/compute/v1/compute_pb.rb +8507 -7466
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +127 -90
  22. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
  23. data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
  24. data/lib/google/cloud/compute/v1/disks/rest/client.rb +345 -272
  25. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
  26. data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
  27. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +184 -129
  28. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
  29. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
  30. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +476 -343
  31. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
  32. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +0 -2
  33. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +191 -145
  34. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
  35. data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
  36. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +296 -171
  37. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
  38. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
  39. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +145 -103
  40. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
  41. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
  42. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +265 -144
  43. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
  44. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
  45. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +215 -172
  46. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
  47. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
  48. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +165 -118
  49. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
  50. data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
  51. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +118 -76
  52. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
  53. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
  54. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +175 -124
  55. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
  56. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +0 -2
  57. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +218 -172
  58. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
  59. data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
  60. data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
  61. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
  62. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
  63. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
  64. data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
  65. data/lib/google/cloud/compute/v1/images/rest/client.rb +291 -209
  66. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
  67. data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
  68. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +526 -477
  69. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
  70. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
  71. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +271 -233
  72. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
  73. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
  74. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +202 -139
  75. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
  76. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
  77. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1186 -797
  78. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +2018 -0
  79. data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
  80. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +195 -151
  81. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
  82. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
  83. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +100 -63
  84. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
  85. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
  86. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +189 -135
  87. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
  88. data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
  89. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +93 -50
  90. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
  91. data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
  92. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +209 -146
  93. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
  94. data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
  95. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +127 -90
  96. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
  97. data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
  98. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +261 -213
  99. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
  100. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
  101. data/lib/google/cloud/compute/v1/networks/rest/client.rb +363 -234
  102. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
  103. data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
  104. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +345 -277
  105. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
  106. data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
  107. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +229 -166
  108. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
  109. data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
  110. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +127 -90
  111. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
  112. data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
  113. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +213 -163
  114. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
  115. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
  116. data/lib/google/cloud/compute/v1/projects/rest/client.rb +351 -288
  117. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
  118. data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
  119. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +175 -124
  120. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
  121. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +0 -2
  122. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +203 -151
  123. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
  124. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +0 -2
  125. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +191 -145
  126. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
  127. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
  128. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +212 -160
  129. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
  130. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
  131. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +151 -112
  132. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
  133. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
  134. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +100 -63
  135. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
  136. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
  137. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +318 -245
  138. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
  139. data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
  140. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +168 -124
  141. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
  142. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
  143. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +191 -145
  144. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
  145. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
  146. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +498 -445
  147. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
  148. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
  149. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +148 -113
  150. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
  151. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
  152. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +76 -45
  153. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
  154. data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
  155. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +145 -103
  156. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
  157. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
  158. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +145 -103
  159. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
  160. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
  161. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +137 -90
  162. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
  163. data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
  164. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +145 -103
  165. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
  166. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
  167. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +168 -124
  168. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
  169. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
  170. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +191 -145
  171. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
  172. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
  173. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +205 -137
  174. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
  175. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
  176. data/lib/google/cloud/compute/v1/regions/rest/client.rb +100 -63
  177. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
  178. data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
  179. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +252 -187
  180. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
  181. data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
  182. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +229 -166
  183. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
  184. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
  185. data/lib/google/cloud/compute/v1/routers/rest/client.rb +284 -222
  186. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
  187. data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
  188. data/lib/google/cloud/compute/v1/routes/rest/client.rb +145 -103
  189. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
  190. data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
  191. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +277 -205
  192. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
  193. data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
  194. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
  195. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
  196. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
  197. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
  198. data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
  199. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +201 -135
  200. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
  201. data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
  202. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +172 -130
  203. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
  204. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
  205. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +192 -149
  206. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
  207. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
  208. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +325 -256
  209. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
  210. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
  211. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +168 -124
  212. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
  213. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
  214. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +219 -173
  215. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
  216. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
  217. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +340 -213
  218. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
  219. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
  220. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +172 -130
  221. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
  222. data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
  223. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +305 -247
  224. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
  225. data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
  226. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +237 -187
  227. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
  228. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
  229. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -145
  230. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
  231. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
  232. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +172 -130
  233. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
  234. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
  235. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +260 -208
  236. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
  237. data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
  238. data/lib/google/cloud/compute/v1/version.rb +1 -1
  239. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +234 -174
  240. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
  241. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
  242. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +172 -130
  243. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
  244. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
  245. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +137 -90
  246. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
  247. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
  248. data/lib/google/cloud/compute/v1/zones/rest/client.rb +100 -63
  249. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
  250. data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
  251. data/lib/google/cloud/compute/v1.rb +7 -0
  252. data/proto_docs/README.md +1 -1
  253. data/proto_docs/google/api/field_behavior.rb +6 -0
  254. data/proto_docs/google/api/resource.rb +10 -71
  255. data/proto_docs/google/cloud/compute/v1/compute.rb +18964 -19481
  256. data/proto_docs/google/cloud/extended_operations.rb +51 -0
  257. metadata +110 -9
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
+ require "google/cloud/compute/v1/region_instance_group_managers/rest/service_stub"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -31,8 +32,6 @@ module Google
31
32
  # The RegionInstanceGroupManagers API.
32
33
  #
33
34
  class Client
34
- include GrpcTranscoding
35
-
36
35
  # @private
37
36
  attr_reader :region_instance_group_managers_stub
38
37
 
@@ -42,13 +41,12 @@ module Google
42
41
  # See {::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client::Configuration}
43
42
  # for a description of the configuration fields.
44
43
  #
45
- # ## Example
44
+ # @example
46
45
  #
47
- # To modify the configuration for all RegionInstanceGroupManagers clients:
48
- #
49
- # ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
46
+ # # Modify the configuration for all RegionInstanceGroupManagers clients
47
+ # ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
52
50
  #
53
51
  # @yield [config] Configure the Client client.
54
52
  # @yieldparam config [Client::Configuration]
@@ -66,6 +64,53 @@ module Google
66
64
  end
67
65
  default_config = Client::Configuration.new parent_config
68
66
 
67
+ default_config.rpcs.abandon_instances.timeout = 600.0
68
+
69
+ default_config.rpcs.apply_updates_to_instances.timeout = 600.0
70
+
71
+ default_config.rpcs.create_instances.timeout = 600.0
72
+
73
+ default_config.rpcs.delete.timeout = 600.0
74
+
75
+ default_config.rpcs.delete_instances.timeout = 600.0
76
+
77
+ default_config.rpcs.delete_per_instance_configs.timeout = 600.0
78
+
79
+ default_config.rpcs.get.timeout = 600.0
80
+ default_config.rpcs.get.retry_policy = {
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
82
+ }
83
+
84
+ default_config.rpcs.insert.timeout = 600.0
85
+
86
+ default_config.rpcs.list.timeout = 600.0
87
+ default_config.rpcs.list.retry_policy = {
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
89
+ }
90
+
91
+ default_config.rpcs.list_errors.timeout = 600.0
92
+ default_config.rpcs.list_errors.retry_policy = {
93
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
94
+ }
95
+
96
+ default_config.rpcs.list_managed_instances.timeout = 600.0
97
+
98
+ default_config.rpcs.list_per_instance_configs.timeout = 600.0
99
+
100
+ default_config.rpcs.patch.timeout = 600.0
101
+
102
+ default_config.rpcs.patch_per_instance_configs.timeout = 600.0
103
+
104
+ default_config.rpcs.recreate_instances.timeout = 600.0
105
+
106
+ default_config.rpcs.resize.timeout = 600.0
107
+
108
+ default_config.rpcs.set_instance_template.timeout = 600.0
109
+
110
+ default_config.rpcs.set_target_pools.timeout = 600.0
111
+
112
+ default_config.rpcs.update_per_instance_configs.timeout = 600.0
113
+
69
114
  default_config
70
115
  end
71
116
  yield @configure if block_given?
@@ -95,28 +140,20 @@ module Google
95
140
  ##
96
141
  # Create a new RegionInstanceGroupManagers REST client object.
97
142
  #
98
- # ## Examples
99
- #
100
- # To create a new RegionInstanceGroupManagers REST client with the default
101
- # configuration:
143
+ # @example
102
144
  #
103
- # client = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
145
+ # # Create a client using the default configuration
146
+ # client = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
104
147
  #
105
- # To create a new RegionInstanceGroupManagers REST client with a custom
106
- # configuration:
107
- #
108
- # client = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
148
+ # # Create a client using a custom configuration
149
+ # client = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new do |config|
150
+ # config.timeout = 10.0
151
+ # end
111
152
  #
112
153
  # @yield [config] Configure the RegionInstanceGroupManagers client.
113
154
  # @yieldparam config [Client::Configuration]
114
155
  #
115
156
  def initialize
116
- # These require statements are intentionally placed here to initialize
117
- # the REST modules only when it's required.
118
- require "gapic/rest"
119
-
120
157
  # Create the configuration object
121
158
  @config = Configuration.new Client.configure
122
159
 
@@ -126,21 +163,17 @@ module Google
126
163
  # Create credentials
127
164
  credentials = @config.credentials
128
165
  credentials ||= Credentials.default scope: @config.scope
129
- if credentials.is_a?(String) || credentials.is_a?(Hash)
166
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
130
167
  credentials = Credentials.new credentials, scope: @config.scope
131
168
  end
132
169
 
133
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: @config.endpoint, credentials: credentials
170
+ @region_instance_group_managers_stub = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
134
171
  end
135
172
 
136
173
  # Service calls
137
174
 
138
175
  ##
139
- # Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method.
140
- #
141
- # If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
142
- #
143
- # You can specify a maximum of 1000 instances with this method per request.
176
+ # Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
144
177
  #
145
178
  # @overload abandon_instances(request, options = nil)
146
179
  # Pass arguments to `abandon_instances` via a request object, either of type
@@ -168,16 +201,12 @@ module Google
168
201
  # @param region_instance_group_managers_abandon_instances_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersAbandonInstancesRequest, ::Hash]
169
202
  # The body resource for this request
170
203
  # @param request_id [::String]
171
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
172
- #
173
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
174
- #
175
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
176
- # @yield [result, env] Access the result along with the Faraday environment object
177
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
204
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
205
+ # @yield [result, response] Access the result along with the Faraday response object
206
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
178
207
  # @yieldparam response [::Faraday::Response]
179
208
  #
180
- # @return [::Google::Cloud::Compute::V1::Operation]
209
+ # @return [::Gapic::Rest::BaseOperation]
181
210
  #
182
211
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
183
212
  def abandon_instances request, options = nil
@@ -189,7 +218,7 @@ module Google
189
218
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
190
219
 
191
220
  # Customize the options with defaults
192
- call_metadata = {}
221
+ call_metadata = @config.rpcs.abandon_instances.metadata.to_h
193
222
 
194
223
  # Set x-goog-api-client header
195
224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -197,20 +226,17 @@ module Google
197
226
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
198
227
  transports_version_send: [:rest]
199
228
 
200
- options.apply_defaults timeout: @config.timeout,
229
+ options.apply_defaults timeout: @config.rpcs.abandon_instances.timeout,
201
230
  metadata: call_metadata
202
231
 
203
- uri, body, query_string_params = transcode_abandon_instances request
204
- response = @client_stub.make_post_request(
205
- uri: uri,
206
- body: body,
207
- params: query_string_params,
208
- options: options
209
- )
210
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, response if block_given?
213
- result
232
+ options.apply_defaults timeout: @config.timeout,
233
+ metadata: @config.metadata
234
+
235
+ @region_instance_group_managers_stub.abandon_instances request, options do |result, response|
236
+ result = ::Gapic::Rest::BaseOperation.new result
237
+ yield result, response if block_given?
238
+ return result
239
+ end
214
240
  rescue ::Faraday::Error => e
215
241
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
216
242
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -244,11 +270,11 @@ module Google
244
270
  # Name of the region scoping this request, should conform to RFC1035.
245
271
  # @param region_instance_group_managers_apply_updates_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersApplyUpdatesRequest, ::Hash]
246
272
  # The body resource for this request
247
- # @yield [result, env] Access the result along with the Faraday environment object
248
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
273
+ # @yield [result, response] Access the result along with the Faraday response object
274
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
249
275
  # @yieldparam response [::Faraday::Response]
250
276
  #
251
- # @return [::Google::Cloud::Compute::V1::Operation]
277
+ # @return [::Gapic::Rest::BaseOperation]
252
278
  #
253
279
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
280
  def apply_updates_to_instances request, options = nil
@@ -260,7 +286,7 @@ module Google
260
286
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
261
287
 
262
288
  # Customize the options with defaults
263
- call_metadata = {}
289
+ call_metadata = @config.rpcs.apply_updates_to_instances.metadata.to_h
264
290
 
265
291
  # Set x-goog-api-client header
266
292
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -268,19 +294,17 @@ module Google
268
294
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
269
295
  transports_version_send: [:rest]
270
296
 
271
- options.apply_defaults timeout: @config.timeout,
297
+ options.apply_defaults timeout: @config.rpcs.apply_updates_to_instances.timeout,
272
298
  metadata: call_metadata
273
299
 
274
- uri, body, _query_string_params = transcode_apply_updates_to_instances request
275
- response = @client_stub.make_post_request(
276
- uri: uri,
277
- body: body,
278
- options: options
279
- )
280
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
300
+ options.apply_defaults timeout: @config.timeout,
301
+ metadata: @config.metadata
281
302
 
282
- yield result, response if block_given?
283
- result
303
+ @region_instance_group_managers_stub.apply_updates_to_instances request, options do |result, response|
304
+ result = ::Gapic::Rest::BaseOperation.new result
305
+ yield result, response if block_given?
306
+ return result
307
+ end
284
308
  rescue ::Faraday::Error => e
285
309
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
286
310
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -315,16 +339,12 @@ module Google
315
339
  # @param region_instance_group_managers_create_instances_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersCreateInstancesRequest, ::Hash]
316
340
  # The body resource for this request
317
341
  # @param request_id [::String]
318
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
319
- #
320
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request.
321
- #
322
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
323
- # @yield [result, env] Access the result along with the Faraday environment object
324
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
342
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
343
+ # @yield [result, response] Access the result along with the Faraday response object
344
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
325
345
  # @yieldparam response [::Faraday::Response]
326
346
  #
327
- # @return [::Google::Cloud::Compute::V1::Operation]
347
+ # @return [::Gapic::Rest::BaseOperation]
328
348
  #
329
349
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
330
350
  def create_instances request, options = nil
@@ -336,7 +356,7 @@ module Google
336
356
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
337
357
 
338
358
  # Customize the options with defaults
339
- call_metadata = {}
359
+ call_metadata = @config.rpcs.create_instances.metadata.to_h
340
360
 
341
361
  # Set x-goog-api-client header
342
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -344,20 +364,17 @@ module Google
344
364
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
345
365
  transports_version_send: [:rest]
346
366
 
347
- options.apply_defaults timeout: @config.timeout,
367
+ options.apply_defaults timeout: @config.rpcs.create_instances.timeout,
348
368
  metadata: call_metadata
349
369
 
350
- uri, body, query_string_params = transcode_create_instances request
351
- response = @client_stub.make_post_request(
352
- uri: uri,
353
- body: body,
354
- params: query_string_params,
355
- options: options
356
- )
357
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
358
-
359
- yield result, response if block_given?
360
- result
370
+ options.apply_defaults timeout: @config.timeout,
371
+ metadata: @config.metadata
372
+
373
+ @region_instance_group_managers_stub.create_instances request, options do |result, response|
374
+ result = ::Gapic::Rest::BaseOperation.new result
375
+ yield result, response if block_given?
376
+ return result
377
+ end
361
378
  rescue ::Faraday::Error => e
362
379
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
363
380
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -390,16 +407,12 @@ module Google
390
407
  # @param region [::String]
391
408
  # Name of the region scoping this request.
392
409
  # @param request_id [::String]
393
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
394
- #
395
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
396
- #
397
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
398
- # @yield [result, env] Access the result along with the Faraday environment object
399
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
410
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
411
+ # @yield [result, response] Access the result along with the Faraday response object
412
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
400
413
  # @yieldparam response [::Faraday::Response]
401
414
  #
402
- # @return [::Google::Cloud::Compute::V1::Operation]
415
+ # @return [::Gapic::Rest::BaseOperation]
403
416
  #
404
417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
405
418
  def delete request, options = nil
@@ -411,7 +424,7 @@ module Google
411
424
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
412
425
 
413
426
  # Customize the options with defaults
414
- call_metadata = {}
427
+ call_metadata = @config.rpcs.delete.metadata.to_h
415
428
 
416
429
  # Set x-goog-api-client header
417
430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -419,30 +432,24 @@ module Google
419
432
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
420
433
  transports_version_send: [:rest]
421
434
 
422
- options.apply_defaults timeout: @config.timeout,
435
+ options.apply_defaults timeout: @config.rpcs.delete.timeout,
423
436
  metadata: call_metadata
424
437
 
425
- uri, _body, query_string_params = transcode_delete request
426
- response = @client_stub.make_delete_request(
427
- uri: uri,
428
- params: query_string_params,
429
- options: options
430
- )
431
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
438
+ options.apply_defaults timeout: @config.timeout,
439
+ metadata: @config.metadata
432
440
 
433
- yield result, response if block_given?
434
- result
441
+ @region_instance_group_managers_stub.delete request, options do |result, response|
442
+ result = ::Gapic::Rest::BaseOperation.new result
443
+ yield result, response if block_given?
444
+ return result
445
+ end
435
446
  rescue ::Faraday::Error => e
436
447
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
437
448
  raise ::Google::Cloud::Error.from_error(gapic_error)
438
449
  end
439
450
 
440
451
  ##
441
- # Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method.
442
- #
443
- # If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
444
- #
445
- # You can specify a maximum of 1000 instances with this method per request.
452
+ # Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
446
453
  #
447
454
  # @overload delete_instances(request, options = nil)
448
455
  # Pass arguments to `delete_instances` via a request object, either of type
@@ -470,16 +477,12 @@ module Google
470
477
  # @param region_instance_group_managers_delete_instances_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersDeleteInstancesRequest, ::Hash]
471
478
  # The body resource for this request
472
479
  # @param request_id [::String]
473
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
474
- #
475
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
476
- #
477
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
478
- # @yield [result, env] Access the result along with the Faraday environment object
479
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
480
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
481
+ # @yield [result, response] Access the result along with the Faraday response object
482
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
480
483
  # @yieldparam response [::Faraday::Response]
481
484
  #
482
- # @return [::Google::Cloud::Compute::V1::Operation]
485
+ # @return [::Gapic::Rest::BaseOperation]
483
486
  #
484
487
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
485
488
  def delete_instances request, options = nil
@@ -491,7 +494,7 @@ module Google
491
494
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
492
495
 
493
496
  # Customize the options with defaults
494
- call_metadata = {}
497
+ call_metadata = @config.rpcs.delete_instances.metadata.to_h
495
498
 
496
499
  # Set x-goog-api-client header
497
500
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -499,20 +502,17 @@ module Google
499
502
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
500
503
  transports_version_send: [:rest]
501
504
 
502
- options.apply_defaults timeout: @config.timeout,
505
+ options.apply_defaults timeout: @config.rpcs.delete_instances.timeout,
503
506
  metadata: call_metadata
504
507
 
505
- uri, body, query_string_params = transcode_delete_instances request
506
- response = @client_stub.make_post_request(
507
- uri: uri,
508
- body: body,
509
- params: query_string_params,
510
- options: options
511
- )
512
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
513
-
514
- yield result, response if block_given?
515
- result
508
+ options.apply_defaults timeout: @config.timeout,
509
+ metadata: @config.metadata
510
+
511
+ @region_instance_group_managers_stub.delete_instances request, options do |result, response|
512
+ result = ::Gapic::Rest::BaseOperation.new result
513
+ yield result, response if block_given?
514
+ return result
515
+ end
516
516
  rescue ::Faraday::Error => e
517
517
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
518
518
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -546,11 +546,11 @@ module Google
546
546
  # Name of the region scoping this request, should conform to RFC1035.
547
547
  # @param region_instance_group_manager_delete_instance_config_req_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagerDeleteInstanceConfigReq, ::Hash]
548
548
  # The body resource for this request
549
- # @yield [result, env] Access the result along with the Faraday environment object
550
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
549
+ # @yield [result, response] Access the result along with the Faraday response object
550
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
551
551
  # @yieldparam response [::Faraday::Response]
552
552
  #
553
- # @return [::Google::Cloud::Compute::V1::Operation]
553
+ # @return [::Gapic::Rest::BaseOperation]
554
554
  #
555
555
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
556
556
  def delete_per_instance_configs request, options = nil
@@ -562,7 +562,7 @@ module Google
562
562
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
563
563
 
564
564
  # Customize the options with defaults
565
- call_metadata = {}
565
+ call_metadata = @config.rpcs.delete_per_instance_configs.metadata.to_h
566
566
 
567
567
  # Set x-goog-api-client header
568
568
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -570,19 +570,17 @@ module Google
570
570
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
571
571
  transports_version_send: [:rest]
572
572
 
573
- options.apply_defaults timeout: @config.timeout,
573
+ options.apply_defaults timeout: @config.rpcs.delete_per_instance_configs.timeout,
574
574
  metadata: call_metadata
575
575
 
576
- uri, body, _query_string_params = transcode_delete_per_instance_configs request
577
- response = @client_stub.make_post_request(
578
- uri: uri,
579
- body: body,
580
- options: options
581
- )
582
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
576
+ options.apply_defaults timeout: @config.timeout,
577
+ metadata: @config.metadata
583
578
 
584
- yield result, response if block_given?
585
- result
579
+ @region_instance_group_managers_stub.delete_per_instance_configs request, options do |result, response|
580
+ result = ::Gapic::Rest::BaseOperation.new result
581
+ yield result, response if block_given?
582
+ return result
583
+ end
586
584
  rescue ::Faraday::Error => e
587
585
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
588
586
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -614,7 +612,7 @@ module Google
614
612
  # Project ID for this request.
615
613
  # @param region [::String]
616
614
  # Name of the region scoping this request.
617
- # @yield [result, env] Access the result along with the Faraday environment object
615
+ # @yield [result, response] Access the result along with the Faraday response object
618
616
  # @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroupManager]
619
617
  # @yieldparam response [::Faraday::Response]
620
618
  #
@@ -630,7 +628,7 @@ module Google
630
628
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
631
629
 
632
630
  # Customize the options with defaults
633
- call_metadata = {}
631
+ call_metadata = @config.rpcs.get.metadata.to_h
634
632
 
635
633
  # Set x-goog-api-client header
636
634
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -638,27 +636,23 @@ module Google
638
636
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
639
637
  transports_version_send: [:rest]
640
638
 
641
- options.apply_defaults timeout: @config.timeout,
639
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
642
640
  metadata: call_metadata
643
641
 
644
- uri, _body, _query_string_params = transcode_get request
645
- response = @client_stub.make_get_request(
646
- uri: uri,
647
- options: options
648
- )
649
- result = ::Google::Cloud::Compute::V1::InstanceGroupManager.decode_json response.body, ignore_unknown_fields: true
642
+ options.apply_defaults timeout: @config.timeout,
643
+ metadata: @config.metadata
650
644
 
651
- yield result, response if block_given?
652
- result
645
+ @region_instance_group_managers_stub.get request, options do |result, response|
646
+ yield result, response if block_given?
647
+ return result
648
+ end
653
649
  rescue ::Faraday::Error => e
654
650
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
655
651
  raise ::Google::Cloud::Error.from_error(gapic_error)
656
652
  end
657
653
 
658
654
  ##
659
- # Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method.
660
- #
661
- # A regional managed instance group can contain up to 2000 instances.
655
+ # Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.
662
656
  #
663
657
  # @overload insert(request, options = nil)
664
658
  # Pass arguments to `insert` via a request object, either of type
@@ -684,16 +678,12 @@ module Google
684
678
  # @param region [::String]
685
679
  # Name of the region scoping this request.
686
680
  # @param request_id [::String]
687
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
688
- #
689
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
690
- #
691
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
692
- # @yield [result, env] Access the result along with the Faraday environment object
693
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
681
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
682
+ # @yield [result, response] Access the result along with the Faraday response object
683
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
694
684
  # @yieldparam response [::Faraday::Response]
695
685
  #
696
- # @return [::Google::Cloud::Compute::V1::Operation]
686
+ # @return [::Gapic::Rest::BaseOperation]
697
687
  #
698
688
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
699
689
  def insert request, options = nil
@@ -705,7 +695,7 @@ module Google
705
695
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
706
696
 
707
697
  # Customize the options with defaults
708
- call_metadata = {}
698
+ call_metadata = @config.rpcs.insert.metadata.to_h
709
699
 
710
700
  # Set x-goog-api-client header
711
701
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -713,20 +703,17 @@ module Google
713
703
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
714
704
  transports_version_send: [:rest]
715
705
 
716
- options.apply_defaults timeout: @config.timeout,
706
+ options.apply_defaults timeout: @config.rpcs.insert.timeout,
717
707
  metadata: call_metadata
718
708
 
719
- uri, body, query_string_params = transcode_insert request
720
- response = @client_stub.make_post_request(
721
- uri: uri,
722
- body: body,
723
- params: query_string_params,
724
- options: options
725
- )
726
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
727
-
728
- yield result, response if block_given?
729
- result
709
+ options.apply_defaults timeout: @config.timeout,
710
+ metadata: @config.metadata
711
+
712
+ @region_instance_group_managers_stub.insert request, options do |result, response|
713
+ result = ::Gapic::Rest::BaseOperation.new result
714
+ yield result, response if block_given?
715
+ return result
716
+ end
730
717
  rescue ::Faraday::Error => e
731
718
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
732
719
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -753,21 +740,11 @@ module Google
753
740
  # the default parameter values, pass an empty Hash as a request object (see above).
754
741
  #
755
742
  # @param filter [::String]
756
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
757
- #
758
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
759
- #
760
- # You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
761
- #
762
- # To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
743
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
763
744
  # @param max_results [::Integer]
764
745
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
765
746
  # @param order_by [::String]
766
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
767
- #
768
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
769
- #
770
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
747
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
771
748
  # @param page_token [::String]
772
749
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
773
750
  # @param project [::String]
@@ -775,12 +752,12 @@ module Google
775
752
  # @param region [::String]
776
753
  # Name of the region scoping this request.
777
754
  # @param return_partial_success [::Boolean]
778
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
779
- # @yield [result, env] Access the result along with the Faraday environment object
780
- # @yieldparam result [::Google::Cloud::Compute::V1::RegionInstanceGroupManagerList]
755
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
756
+ # @yield [result, response] Access the result along with the Faraday response object
757
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
781
758
  # @yieldparam response [::Faraday::Response]
782
759
  #
783
- # @return [::Google::Cloud::Compute::V1::RegionInstanceGroupManagerList]
760
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
784
761
  #
785
762
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
786
763
  def list request, options = nil
@@ -792,7 +769,7 @@ module Google
792
769
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
793
770
 
794
771
  # Customize the options with defaults
795
- call_metadata = {}
772
+ call_metadata = @config.rpcs.list.metadata.to_h
796
773
 
797
774
  # Set x-goog-api-client header
798
775
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -800,19 +777,17 @@ module Google
800
777
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
801
778
  transports_version_send: [:rest]
802
779
 
803
- options.apply_defaults timeout: @config.timeout,
780
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
804
781
  metadata: call_metadata
805
782
 
806
- uri, _body, query_string_params = transcode_list request
807
- response = @client_stub.make_get_request(
808
- uri: uri,
809
- params: query_string_params,
810
- options: options
811
- )
812
- result = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagerList.decode_json response.body, ignore_unknown_fields: true
783
+ options.apply_defaults timeout: @config.timeout,
784
+ metadata: @config.metadata
813
785
 
814
- yield result, response if block_given?
815
- result
786
+ @region_instance_group_managers_stub.list request, options do |result, response|
787
+ result = ::Gapic::Rest::PagedEnumerable.new @region_instance_group_managers_stub, :list, "items", request, result, options
788
+ yield result, response if block_given?
789
+ return result
790
+ end
816
791
  rescue ::Faraday::Error => e
817
792
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
818
793
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -839,23 +814,13 @@ module Google
839
814
  # the default parameter values, pass an empty Hash as a request object (see above).
840
815
  #
841
816
  # @param filter [::String]
842
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
843
- #
844
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
845
- #
846
- # You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
847
- #
848
- # To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
817
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
849
818
  # @param instance_group_manager [::String]
850
- # The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]\\{0,61}[a-z0-9])?)|[1-9][0-9]\\{0,19}.
819
+ # The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]\\{0,61}[a-z0-9])?)|1-9\\{0,19}.
851
820
  # @param max_results [::Integer]
852
821
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
853
822
  # @param order_by [::String]
854
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
855
- #
856
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
857
- #
858
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
823
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
859
824
  # @param page_token [::String]
860
825
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
861
826
  # @param project [::String]
@@ -863,12 +828,12 @@ module Google
863
828
  # @param region [::String]
864
829
  # Name of the region scoping this request. This should conform to RFC1035.
865
830
  # @param return_partial_success [::Boolean]
866
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
867
- # @yield [result, env] Access the result along with the Faraday environment object
868
- # @yieldparam result [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListErrorsResponse]
831
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
832
+ # @yield [result, response] Access the result along with the Faraday response object
833
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
869
834
  # @yieldparam response [::Faraday::Response]
870
835
  #
871
- # @return [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListErrorsResponse]
836
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
872
837
  #
873
838
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
874
839
  def list_errors request, options = nil
@@ -880,7 +845,7 @@ module Google
880
845
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
881
846
 
882
847
  # Customize the options with defaults
883
- call_metadata = {}
848
+ call_metadata = @config.rpcs.list_errors.metadata.to_h
884
849
 
885
850
  # Set x-goog-api-client header
886
851
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -888,19 +853,17 @@ module Google
888
853
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
889
854
  transports_version_send: [:rest]
890
855
 
891
- options.apply_defaults timeout: @config.timeout,
856
+ options.apply_defaults timeout: @config.rpcs.list_errors.timeout,
892
857
  metadata: call_metadata
893
858
 
894
- uri, _body, query_string_params = transcode_list_errors request
895
- response = @client_stub.make_get_request(
896
- uri: uri,
897
- params: query_string_params,
898
- options: options
899
- )
900
- result = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListErrorsResponse.decode_json response.body, ignore_unknown_fields: true
859
+ options.apply_defaults timeout: @config.timeout,
860
+ metadata: @config.metadata
901
861
 
902
- yield result, response if block_given?
903
- result
862
+ @region_instance_group_managers_stub.list_errors request, options do |result, response|
863
+ result = ::Gapic::Rest::PagedEnumerable.new @region_instance_group_managers_stub, :list_errors, "items", request, result, options
864
+ yield result, response if block_given?
865
+ return result
866
+ end
904
867
  rescue ::Faraday::Error => e
905
868
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
906
869
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -927,23 +890,13 @@ module Google
927
890
  # the default parameter values, pass an empty Hash as a request object (see above).
928
891
  #
929
892
  # @param filter [::String]
930
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
931
- #
932
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
933
- #
934
- # You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
935
- #
936
- # To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
893
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
937
894
  # @param instance_group_manager [::String]
938
895
  # The name of the managed instance group.
939
896
  # @param max_results [::Integer]
940
897
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
941
898
  # @param order_by [::String]
942
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
943
- #
944
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
945
- #
946
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
899
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
947
900
  # @param page_token [::String]
948
901
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
949
902
  # @param project [::String]
@@ -951,12 +904,12 @@ module Google
951
904
  # @param region [::String]
952
905
  # Name of the region scoping this request.
953
906
  # @param return_partial_success [::Boolean]
954
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
955
- # @yield [result, env] Access the result along with the Faraday environment object
956
- # @yieldparam result [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstancesResponse]
907
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
908
+ # @yield [result, response] Access the result along with the Faraday response object
909
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
957
910
  # @yieldparam response [::Faraday::Response]
958
911
  #
959
- # @return [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstancesResponse]
912
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
960
913
  #
961
914
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
962
915
  def list_managed_instances request, options = nil
@@ -968,7 +921,7 @@ module Google
968
921
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
969
922
 
970
923
  # Customize the options with defaults
971
- call_metadata = {}
924
+ call_metadata = @config.rpcs.list_managed_instances.metadata.to_h
972
925
 
973
926
  # Set x-goog-api-client header
974
927
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -976,19 +929,17 @@ module Google
976
929
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
977
930
  transports_version_send: [:rest]
978
931
 
979
- options.apply_defaults timeout: @config.timeout,
932
+ options.apply_defaults timeout: @config.rpcs.list_managed_instances.timeout,
980
933
  metadata: call_metadata
981
934
 
982
- uri, _body, query_string_params = transcode_list_managed_instances request
983
- response = @client_stub.make_post_request(
984
- uri: uri,
985
- params: query_string_params,
986
- options: options
987
- )
988
- result = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstancesResponse.decode_json response.body, ignore_unknown_fields: true
935
+ options.apply_defaults timeout: @config.timeout,
936
+ metadata: @config.metadata
989
937
 
990
- yield result, response if block_given?
991
- result
938
+ @region_instance_group_managers_stub.list_managed_instances request, options do |result, response|
939
+ result = ::Gapic::Rest::PagedEnumerable.new @region_instance_group_managers_stub, :list_managed_instances, "managed_instances", request, result, options
940
+ yield result, response if block_given?
941
+ return result
942
+ end
992
943
  rescue ::Faraday::Error => e
993
944
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
994
945
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1015,23 +966,13 @@ module Google
1015
966
  # the default parameter values, pass an empty Hash as a request object (see above).
1016
967
  #
1017
968
  # @param filter [::String]
1018
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
1019
- #
1020
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
1021
- #
1022
- # You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
1023
- #
1024
- # To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
969
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
1025
970
  # @param instance_group_manager [::String]
1026
971
  # The name of the managed instance group. It should conform to RFC1035.
1027
972
  # @param max_results [::Integer]
1028
973
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1029
974
  # @param order_by [::String]
1030
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
1031
- #
1032
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
1033
- #
1034
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
975
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1035
976
  # @param page_token [::String]
1036
977
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1037
978
  # @param project [::String]
@@ -1039,12 +980,12 @@ module Google
1039
980
  # @param region [::String]
1040
981
  # Name of the region scoping this request, should conform to RFC1035.
1041
982
  # @param return_partial_success [::Boolean]
1042
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
1043
- # @yield [result, env] Access the result along with the Faraday environment object
1044
- # @yieldparam result [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstanceConfigsResp]
983
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
984
+ # @yield [result, response] Access the result along with the Faraday response object
985
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
1045
986
  # @yieldparam response [::Faraday::Response]
1046
987
  #
1047
- # @return [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstanceConfigsResp]
988
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
1048
989
  #
1049
990
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1050
991
  def list_per_instance_configs request, options = nil
@@ -1056,7 +997,7 @@ module Google
1056
997
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1057
998
 
1058
999
  # Customize the options with defaults
1059
- call_metadata = {}
1000
+ call_metadata = @config.rpcs.list_per_instance_configs.metadata.to_h
1060
1001
 
1061
1002
  # Set x-goog-api-client header
1062
1003
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1064,26 +1005,24 @@ module Google
1064
1005
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1065
1006
  transports_version_send: [:rest]
1066
1007
 
1067
- options.apply_defaults timeout: @config.timeout,
1008
+ options.apply_defaults timeout: @config.rpcs.list_per_instance_configs.timeout,
1068
1009
  metadata: call_metadata
1069
1010
 
1070
- uri, _body, query_string_params = transcode_list_per_instance_configs request
1071
- response = @client_stub.make_post_request(
1072
- uri: uri,
1073
- params: query_string_params,
1074
- options: options
1075
- )
1076
- result = ::Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstanceConfigsResp.decode_json response.body, ignore_unknown_fields: true
1011
+ options.apply_defaults timeout: @config.timeout,
1012
+ metadata: @config.metadata
1077
1013
 
1078
- yield result, response if block_given?
1079
- result
1014
+ @region_instance_group_managers_stub.list_per_instance_configs request, options do |result, response|
1015
+ result = ::Gapic::Rest::PagedEnumerable.new @region_instance_group_managers_stub, :list_per_instance_configs, "items", request, result, options
1016
+ yield result, response if block_given?
1017
+ return result
1018
+ end
1080
1019
  rescue ::Faraday::Error => e
1081
1020
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1082
1021
  raise ::Google::Cloud::Error.from_error(gapic_error)
1083
1022
  end
1084
1023
 
1085
1024
  ##
1086
- # Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
1025
+ # Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
1087
1026
  #
1088
1027
  # @overload patch(request, options = nil)
1089
1028
  # Pass arguments to `patch` via a request object, either of type
@@ -1111,16 +1050,12 @@ module Google
1111
1050
  # @param region [::String]
1112
1051
  # Name of the region scoping this request.
1113
1052
  # @param request_id [::String]
1114
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1115
- #
1116
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1117
- #
1118
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1119
- # @yield [result, env] Access the result along with the Faraday environment object
1120
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1053
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1054
+ # @yield [result, response] Access the result along with the Faraday response object
1055
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1121
1056
  # @yieldparam response [::Faraday::Response]
1122
1057
  #
1123
- # @return [::Google::Cloud::Compute::V1::Operation]
1058
+ # @return [::Gapic::Rest::BaseOperation]
1124
1059
  #
1125
1060
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1126
1061
  def patch request, options = nil
@@ -1132,7 +1067,7 @@ module Google
1132
1067
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1133
1068
 
1134
1069
  # Customize the options with defaults
1135
- call_metadata = {}
1070
+ call_metadata = @config.rpcs.patch.metadata.to_h
1136
1071
 
1137
1072
  # Set x-goog-api-client header
1138
1073
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1140,20 +1075,17 @@ module Google
1140
1075
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1141
1076
  transports_version_send: [:rest]
1142
1077
 
1143
- options.apply_defaults timeout: @config.timeout,
1078
+ options.apply_defaults timeout: @config.rpcs.patch.timeout,
1144
1079
  metadata: call_metadata
1145
1080
 
1146
- uri, body, query_string_params = transcode_patch request
1147
- response = @client_stub.make_patch_request(
1148
- uri: uri,
1149
- body: body,
1150
- params: query_string_params,
1151
- options: options
1152
- )
1153
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1154
-
1155
- yield result, response if block_given?
1156
- result
1081
+ options.apply_defaults timeout: @config.timeout,
1082
+ metadata: @config.metadata
1083
+
1084
+ @region_instance_group_managers_stub.patch request, options do |result, response|
1085
+ result = ::Gapic::Rest::BaseOperation.new result
1086
+ yield result, response if block_given?
1087
+ return result
1088
+ end
1157
1089
  rescue ::Faraday::Error => e
1158
1090
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1159
1091
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1188,16 +1120,12 @@ module Google
1188
1120
  # @param region_instance_group_manager_patch_instance_config_req_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagerPatchInstanceConfigReq, ::Hash]
1189
1121
  # The body resource for this request
1190
1122
  # @param request_id [::String]
1191
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1192
- #
1193
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1194
- #
1195
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1196
- # @yield [result, env] Access the result along with the Faraday environment object
1197
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1123
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1124
+ # @yield [result, response] Access the result along with the Faraday response object
1125
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1198
1126
  # @yieldparam response [::Faraday::Response]
1199
1127
  #
1200
- # @return [::Google::Cloud::Compute::V1::Operation]
1128
+ # @return [::Gapic::Rest::BaseOperation]
1201
1129
  #
1202
1130
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1203
1131
  def patch_per_instance_configs request, options = nil
@@ -1209,7 +1137,7 @@ module Google
1209
1137
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1210
1138
 
1211
1139
  # Customize the options with defaults
1212
- call_metadata = {}
1140
+ call_metadata = @config.rpcs.patch_per_instance_configs.metadata.to_h
1213
1141
 
1214
1142
  # Set x-goog-api-client header
1215
1143
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1217,31 +1145,24 @@ module Google
1217
1145
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1218
1146
  transports_version_send: [:rest]
1219
1147
 
1220
- options.apply_defaults timeout: @config.timeout,
1148
+ options.apply_defaults timeout: @config.rpcs.patch_per_instance_configs.timeout,
1221
1149
  metadata: call_metadata
1222
1150
 
1223
- uri, body, query_string_params = transcode_patch_per_instance_configs request
1224
- response = @client_stub.make_post_request(
1225
- uri: uri,
1226
- body: body,
1227
- params: query_string_params,
1228
- options: options
1229
- )
1230
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1231
-
1232
- yield result, response if block_given?
1233
- result
1151
+ options.apply_defaults timeout: @config.timeout,
1152
+ metadata: @config.metadata
1153
+
1154
+ @region_instance_group_managers_stub.patch_per_instance_configs request, options do |result, response|
1155
+ result = ::Gapic::Rest::BaseOperation.new result
1156
+ yield result, response if block_given?
1157
+ return result
1158
+ end
1234
1159
  rescue ::Faraday::Error => e
1235
1160
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1236
1161
  raise ::Google::Cloud::Error.from_error(gapic_error)
1237
1162
  end
1238
1163
 
1239
1164
  ##
1240
- # Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.
1241
- #
1242
- # If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
1243
- #
1244
- # You can specify a maximum of 1000 instances with this method per request.
1165
+ # Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
1245
1166
  #
1246
1167
  # @overload recreate_instances(request, options = nil)
1247
1168
  # Pass arguments to `recreate_instances` via a request object, either of type
@@ -1269,16 +1190,12 @@ module Google
1269
1190
  # @param region_instance_group_managers_recreate_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersRecreateRequest, ::Hash]
1270
1191
  # The body resource for this request
1271
1192
  # @param request_id [::String]
1272
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1273
- #
1274
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1275
- #
1276
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1277
- # @yield [result, env] Access the result along with the Faraday environment object
1278
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1193
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1194
+ # @yield [result, response] Access the result along with the Faraday response object
1195
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1279
1196
  # @yieldparam response [::Faraday::Response]
1280
1197
  #
1281
- # @return [::Google::Cloud::Compute::V1::Operation]
1198
+ # @return [::Gapic::Rest::BaseOperation]
1282
1199
  #
1283
1200
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1284
1201
  def recreate_instances request, options = nil
@@ -1290,7 +1207,7 @@ module Google
1290
1207
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1291
1208
 
1292
1209
  # Customize the options with defaults
1293
- call_metadata = {}
1210
+ call_metadata = @config.rpcs.recreate_instances.metadata.to_h
1294
1211
 
1295
1212
  # Set x-goog-api-client header
1296
1213
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1298,31 +1215,24 @@ module Google
1298
1215
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1299
1216
  transports_version_send: [:rest]
1300
1217
 
1301
- options.apply_defaults timeout: @config.timeout,
1218
+ options.apply_defaults timeout: @config.rpcs.recreate_instances.timeout,
1302
1219
  metadata: call_metadata
1303
1220
 
1304
- uri, body, query_string_params = transcode_recreate_instances request
1305
- response = @client_stub.make_post_request(
1306
- uri: uri,
1307
- body: body,
1308
- params: query_string_params,
1309
- options: options
1310
- )
1311
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1312
-
1313
- yield result, response if block_given?
1314
- result
1221
+ options.apply_defaults timeout: @config.timeout,
1222
+ metadata: @config.metadata
1223
+
1224
+ @region_instance_group_managers_stub.recreate_instances request, options do |result, response|
1225
+ result = ::Gapic::Rest::BaseOperation.new result
1226
+ yield result, response if block_given?
1227
+ return result
1228
+ end
1315
1229
  rescue ::Faraday::Error => e
1316
1230
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1317
1231
  raise ::Google::Cloud::Error.from_error(gapic_error)
1318
1232
  end
1319
1233
 
1320
1234
  ##
1321
- # Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances.
1322
- #
1323
- # The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method.
1324
- #
1325
- # If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
1235
+ # Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
1326
1236
  #
1327
1237
  # @overload resize(request, options = nil)
1328
1238
  # Pass arguments to `resize` via a request object, either of type
@@ -1348,18 +1258,14 @@ module Google
1348
1258
  # @param region [::String]
1349
1259
  # Name of the region scoping this request.
1350
1260
  # @param request_id [::String]
1351
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1352
- #
1353
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1354
- #
1355
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1261
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1356
1262
  # @param size [::Integer]
1357
1263
  # Number of instances that should exist in this instance group manager.
1358
- # @yield [result, env] Access the result along with the Faraday environment object
1359
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1264
+ # @yield [result, response] Access the result along with the Faraday response object
1265
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1360
1266
  # @yieldparam response [::Faraday::Response]
1361
1267
  #
1362
- # @return [::Google::Cloud::Compute::V1::Operation]
1268
+ # @return [::Gapic::Rest::BaseOperation]
1363
1269
  #
1364
1270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1365
1271
  def resize request, options = nil
@@ -1371,7 +1277,7 @@ module Google
1371
1277
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1372
1278
 
1373
1279
  # Customize the options with defaults
1374
- call_metadata = {}
1280
+ call_metadata = @config.rpcs.resize.metadata.to_h
1375
1281
 
1376
1282
  # Set x-goog-api-client header
1377
1283
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1379,19 +1285,17 @@ module Google
1379
1285
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1380
1286
  transports_version_send: [:rest]
1381
1287
 
1382
- options.apply_defaults timeout: @config.timeout,
1288
+ options.apply_defaults timeout: @config.rpcs.resize.timeout,
1383
1289
  metadata: call_metadata
1384
1290
 
1385
- uri, _body, query_string_params = transcode_resize request
1386
- response = @client_stub.make_post_request(
1387
- uri: uri,
1388
- params: query_string_params,
1389
- options: options
1390
- )
1391
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1291
+ options.apply_defaults timeout: @config.timeout,
1292
+ metadata: @config.metadata
1392
1293
 
1393
- yield result, response if block_given?
1394
- result
1294
+ @region_instance_group_managers_stub.resize request, options do |result, response|
1295
+ result = ::Gapic::Rest::BaseOperation.new result
1296
+ yield result, response if block_given?
1297
+ return result
1298
+ end
1395
1299
  rescue ::Faraday::Error => e
1396
1300
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1397
1301
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1426,16 +1330,12 @@ module Google
1426
1330
  # @param region_instance_group_managers_set_template_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersSetTemplateRequest, ::Hash]
1427
1331
  # The body resource for this request
1428
1332
  # @param request_id [::String]
1429
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1430
- #
1431
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1432
- #
1433
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1434
- # @yield [result, env] Access the result along with the Faraday environment object
1435
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1333
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1334
+ # @yield [result, response] Access the result along with the Faraday response object
1335
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1436
1336
  # @yieldparam response [::Faraday::Response]
1437
1337
  #
1438
- # @return [::Google::Cloud::Compute::V1::Operation]
1338
+ # @return [::Gapic::Rest::BaseOperation]
1439
1339
  #
1440
1340
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1441
1341
  def set_instance_template request, options = nil
@@ -1447,7 +1347,7 @@ module Google
1447
1347
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1448
1348
 
1449
1349
  # Customize the options with defaults
1450
- call_metadata = {}
1350
+ call_metadata = @config.rpcs.set_instance_template.metadata.to_h
1451
1351
 
1452
1352
  # Set x-goog-api-client header
1453
1353
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1455,20 +1355,17 @@ module Google
1455
1355
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1456
1356
  transports_version_send: [:rest]
1457
1357
 
1458
- options.apply_defaults timeout: @config.timeout,
1358
+ options.apply_defaults timeout: @config.rpcs.set_instance_template.timeout,
1459
1359
  metadata: call_metadata
1460
1360
 
1461
- uri, body, query_string_params = transcode_set_instance_template request
1462
- response = @client_stub.make_post_request(
1463
- uri: uri,
1464
- body: body,
1465
- params: query_string_params,
1466
- options: options
1467
- )
1468
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1469
-
1470
- yield result, response if block_given?
1471
- result
1361
+ options.apply_defaults timeout: @config.timeout,
1362
+ metadata: @config.metadata
1363
+
1364
+ @region_instance_group_managers_stub.set_instance_template request, options do |result, response|
1365
+ result = ::Gapic::Rest::BaseOperation.new result
1366
+ yield result, response if block_given?
1367
+ return result
1368
+ end
1472
1369
  rescue ::Faraday::Error => e
1473
1370
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1474
1371
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1503,16 +1400,12 @@ module Google
1503
1400
  # @param region_instance_group_managers_set_target_pools_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagersSetTargetPoolsRequest, ::Hash]
1504
1401
  # The body resource for this request
1505
1402
  # @param request_id [::String]
1506
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1507
- #
1508
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1509
- #
1510
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1511
- # @yield [result, env] Access the result along with the Faraday environment object
1512
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1403
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1404
+ # @yield [result, response] Access the result along with the Faraday response object
1405
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1513
1406
  # @yieldparam response [::Faraday::Response]
1514
1407
  #
1515
- # @return [::Google::Cloud::Compute::V1::Operation]
1408
+ # @return [::Gapic::Rest::BaseOperation]
1516
1409
  #
1517
1410
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1518
1411
  def set_target_pools request, options = nil
@@ -1524,7 +1417,7 @@ module Google
1524
1417
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1525
1418
 
1526
1419
  # Customize the options with defaults
1527
- call_metadata = {}
1420
+ call_metadata = @config.rpcs.set_target_pools.metadata.to_h
1528
1421
 
1529
1422
  # Set x-goog-api-client header
1530
1423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1532,20 +1425,17 @@ module Google
1532
1425
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1533
1426
  transports_version_send: [:rest]
1534
1427
 
1535
- options.apply_defaults timeout: @config.timeout,
1428
+ options.apply_defaults timeout: @config.rpcs.set_target_pools.timeout,
1536
1429
  metadata: call_metadata
1537
1430
 
1538
- uri, body, query_string_params = transcode_set_target_pools request
1539
- response = @client_stub.make_post_request(
1540
- uri: uri,
1541
- body: body,
1542
- params: query_string_params,
1543
- options: options
1544
- )
1545
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1546
-
1547
- yield result, response if block_given?
1548
- result
1431
+ options.apply_defaults timeout: @config.timeout,
1432
+ metadata: @config.metadata
1433
+
1434
+ @region_instance_group_managers_stub.set_target_pools request, options do |result, response|
1435
+ result = ::Gapic::Rest::BaseOperation.new result
1436
+ yield result, response if block_given?
1437
+ return result
1438
+ end
1549
1439
  rescue ::Faraday::Error => e
1550
1440
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1551
1441
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1580,16 +1470,12 @@ module Google
1580
1470
  # @param region_instance_group_manager_update_instance_config_req_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupManagerUpdateInstanceConfigReq, ::Hash]
1581
1471
  # The body resource for this request
1582
1472
  # @param request_id [::String]
1583
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
1584
- #
1585
- # For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
1586
- #
1587
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1588
- # @yield [result, env] Access the result along with the Faraday environment object
1589
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1473
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1474
+ # @yield [result, response] Access the result along with the Faraday response object
1475
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1590
1476
  # @yieldparam response [::Faraday::Response]
1591
1477
  #
1592
- # @return [::Google::Cloud::Compute::V1::Operation]
1478
+ # @return [::Gapic::Rest::BaseOperation]
1593
1479
  #
1594
1480
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1595
1481
  def update_per_instance_configs request, options = nil
@@ -1601,7 +1487,7 @@ module Google
1601
1487
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1602
1488
 
1603
1489
  # Customize the options with defaults
1604
- call_metadata = {}
1490
+ call_metadata = @config.rpcs.update_per_instance_configs.metadata.to_h
1605
1491
 
1606
1492
  # Set x-goog-api-client header
1607
1493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1609,20 +1495,17 @@ module Google
1609
1495
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1610
1496
  transports_version_send: [:rest]
1611
1497
 
1612
- options.apply_defaults timeout: @config.timeout,
1498
+ options.apply_defaults timeout: @config.rpcs.update_per_instance_configs.timeout,
1613
1499
  metadata: call_metadata
1614
1500
 
1615
- uri, body, query_string_params = transcode_update_per_instance_configs request
1616
- response = @client_stub.make_post_request(
1617
- uri: uri,
1618
- body: body,
1619
- params: query_string_params,
1620
- options: options
1621
- )
1622
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1623
-
1624
- yield result, response if block_given?
1625
- result
1501
+ options.apply_defaults timeout: @config.timeout,
1502
+ metadata: @config.metadata
1503
+
1504
+ @region_instance_group_managers_stub.update_per_instance_configs request, options do |result, response|
1505
+ result = ::Gapic::Rest::BaseOperation.new result
1506
+ yield result, response if block_given?
1507
+ return result
1508
+ end
1626
1509
  rescue ::Faraday::Error => e
1627
1510
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1628
1511
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1677,6 +1560,9 @@ module Google
1677
1560
  # @!attribute [rw] timeout
1678
1561
  # The call timeout in seconds.
1679
1562
  # @return [::Numeric]
1563
+ # @!attribute [rw] metadata
1564
+ # Additional REST headers to be sent with the call.
1565
+ # @return [::Hash{::Symbol=>::String}]
1680
1566
  #
1681
1567
  class Configuration
1682
1568
  extend ::Gapic::Config
@@ -1690,6 +1576,7 @@ module Google
1690
1576
  config_attr :lib_name, nil, ::String, nil
1691
1577
  config_attr :lib_version, nil, ::String, nil
1692
1578
  config_attr :timeout, nil, ::Numeric, nil
1579
+ config_attr :metadata, nil, ::Hash, nil
1693
1580
 
1694
1581
  # @private
1695
1582
  def initialize parent_config = nil
@@ -1697,6 +1584,172 @@ module Google
1697
1584
 
1698
1585
  yield self if block_given?
1699
1586
  end
1587
+
1588
+ ##
1589
+ # Configurations for individual RPCs
1590
+ # @return [Rpcs]
1591
+ #
1592
+ def rpcs
1593
+ @rpcs ||= begin
1594
+ parent_rpcs = nil
1595
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1596
+ Rpcs.new parent_rpcs
1597
+ end
1598
+ end
1599
+
1600
+ ##
1601
+ # Configuration RPC class for the RegionInstanceGroupManagers API.
1602
+ #
1603
+ # Includes fields providing the configuration for each RPC in this service.
1604
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1605
+ # the following configuration fields:
1606
+ #
1607
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1608
+ #
1609
+ # there is one other field (`retry_policy`) that can be set
1610
+ # but is currently not supported for REST Gapic libraries.
1611
+ #
1612
+ class Rpcs
1613
+ ##
1614
+ # RPC-specific configuration for `abandon_instances`
1615
+ # @return [::Gapic::Config::Method]
1616
+ #
1617
+ attr_reader :abandon_instances
1618
+ ##
1619
+ # RPC-specific configuration for `apply_updates_to_instances`
1620
+ # @return [::Gapic::Config::Method]
1621
+ #
1622
+ attr_reader :apply_updates_to_instances
1623
+ ##
1624
+ # RPC-specific configuration for `create_instances`
1625
+ # @return [::Gapic::Config::Method]
1626
+ #
1627
+ attr_reader :create_instances
1628
+ ##
1629
+ # RPC-specific configuration for `delete`
1630
+ # @return [::Gapic::Config::Method]
1631
+ #
1632
+ attr_reader :delete
1633
+ ##
1634
+ # RPC-specific configuration for `delete_instances`
1635
+ # @return [::Gapic::Config::Method]
1636
+ #
1637
+ attr_reader :delete_instances
1638
+ ##
1639
+ # RPC-specific configuration for `delete_per_instance_configs`
1640
+ # @return [::Gapic::Config::Method]
1641
+ #
1642
+ attr_reader :delete_per_instance_configs
1643
+ ##
1644
+ # RPC-specific configuration for `get`
1645
+ # @return [::Gapic::Config::Method]
1646
+ #
1647
+ attr_reader :get
1648
+ ##
1649
+ # RPC-specific configuration for `insert`
1650
+ # @return [::Gapic::Config::Method]
1651
+ #
1652
+ attr_reader :insert
1653
+ ##
1654
+ # RPC-specific configuration for `list`
1655
+ # @return [::Gapic::Config::Method]
1656
+ #
1657
+ attr_reader :list
1658
+ ##
1659
+ # RPC-specific configuration for `list_errors`
1660
+ # @return [::Gapic::Config::Method]
1661
+ #
1662
+ attr_reader :list_errors
1663
+ ##
1664
+ # RPC-specific configuration for `list_managed_instances`
1665
+ # @return [::Gapic::Config::Method]
1666
+ #
1667
+ attr_reader :list_managed_instances
1668
+ ##
1669
+ # RPC-specific configuration for `list_per_instance_configs`
1670
+ # @return [::Gapic::Config::Method]
1671
+ #
1672
+ attr_reader :list_per_instance_configs
1673
+ ##
1674
+ # RPC-specific configuration for `patch`
1675
+ # @return [::Gapic::Config::Method]
1676
+ #
1677
+ attr_reader :patch
1678
+ ##
1679
+ # RPC-specific configuration for `patch_per_instance_configs`
1680
+ # @return [::Gapic::Config::Method]
1681
+ #
1682
+ attr_reader :patch_per_instance_configs
1683
+ ##
1684
+ # RPC-specific configuration for `recreate_instances`
1685
+ # @return [::Gapic::Config::Method]
1686
+ #
1687
+ attr_reader :recreate_instances
1688
+ ##
1689
+ # RPC-specific configuration for `resize`
1690
+ # @return [::Gapic::Config::Method]
1691
+ #
1692
+ attr_reader :resize
1693
+ ##
1694
+ # RPC-specific configuration for `set_instance_template`
1695
+ # @return [::Gapic::Config::Method]
1696
+ #
1697
+ attr_reader :set_instance_template
1698
+ ##
1699
+ # RPC-specific configuration for `set_target_pools`
1700
+ # @return [::Gapic::Config::Method]
1701
+ #
1702
+ attr_reader :set_target_pools
1703
+ ##
1704
+ # RPC-specific configuration for `update_per_instance_configs`
1705
+ # @return [::Gapic::Config::Method]
1706
+ #
1707
+ attr_reader :update_per_instance_configs
1708
+
1709
+ # @private
1710
+ def initialize parent_rpcs = nil
1711
+ abandon_instances_config = parent_rpcs.abandon_instances if parent_rpcs.respond_to? :abandon_instances
1712
+ @abandon_instances = ::Gapic::Config::Method.new abandon_instances_config
1713
+ apply_updates_to_instances_config = parent_rpcs.apply_updates_to_instances if parent_rpcs.respond_to? :apply_updates_to_instances
1714
+ @apply_updates_to_instances = ::Gapic::Config::Method.new apply_updates_to_instances_config
1715
+ create_instances_config = parent_rpcs.create_instances if parent_rpcs.respond_to? :create_instances
1716
+ @create_instances = ::Gapic::Config::Method.new create_instances_config
1717
+ delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
1718
+ @delete = ::Gapic::Config::Method.new delete_config
1719
+ delete_instances_config = parent_rpcs.delete_instances if parent_rpcs.respond_to? :delete_instances
1720
+ @delete_instances = ::Gapic::Config::Method.new delete_instances_config
1721
+ delete_per_instance_configs_config = parent_rpcs.delete_per_instance_configs if parent_rpcs.respond_to? :delete_per_instance_configs
1722
+ @delete_per_instance_configs = ::Gapic::Config::Method.new delete_per_instance_configs_config
1723
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
1724
+ @get = ::Gapic::Config::Method.new get_config
1725
+ insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
1726
+ @insert = ::Gapic::Config::Method.new insert_config
1727
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
1728
+ @list = ::Gapic::Config::Method.new list_config
1729
+ list_errors_config = parent_rpcs.list_errors if parent_rpcs.respond_to? :list_errors
1730
+ @list_errors = ::Gapic::Config::Method.new list_errors_config
1731
+ list_managed_instances_config = parent_rpcs.list_managed_instances if parent_rpcs.respond_to? :list_managed_instances
1732
+ @list_managed_instances = ::Gapic::Config::Method.new list_managed_instances_config
1733
+ list_per_instance_configs_config = parent_rpcs.list_per_instance_configs if parent_rpcs.respond_to? :list_per_instance_configs
1734
+ @list_per_instance_configs = ::Gapic::Config::Method.new list_per_instance_configs_config
1735
+ patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1736
+ @patch = ::Gapic::Config::Method.new patch_config
1737
+ patch_per_instance_configs_config = parent_rpcs.patch_per_instance_configs if parent_rpcs.respond_to? :patch_per_instance_configs
1738
+ @patch_per_instance_configs = ::Gapic::Config::Method.new patch_per_instance_configs_config
1739
+ recreate_instances_config = parent_rpcs.recreate_instances if parent_rpcs.respond_to? :recreate_instances
1740
+ @recreate_instances = ::Gapic::Config::Method.new recreate_instances_config
1741
+ resize_config = parent_rpcs.resize if parent_rpcs.respond_to? :resize
1742
+ @resize = ::Gapic::Config::Method.new resize_config
1743
+ set_instance_template_config = parent_rpcs.set_instance_template if parent_rpcs.respond_to? :set_instance_template
1744
+ @set_instance_template = ::Gapic::Config::Method.new set_instance_template_config
1745
+ set_target_pools_config = parent_rpcs.set_target_pools if parent_rpcs.respond_to? :set_target_pools
1746
+ @set_target_pools = ::Gapic::Config::Method.new set_target_pools_config
1747
+ update_per_instance_configs_config = parent_rpcs.update_per_instance_configs if parent_rpcs.respond_to? :update_per_instance_configs
1748
+ @update_per_instance_configs = ::Gapic::Config::Method.new update_per_instance_configs_config
1749
+
1750
+ yield self if block_given?
1751
+ end
1752
+ end
1700
1753
  end
1701
1754
  end
1702
1755
  end