google-cloud-compute-v1 3.9.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (629) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +66 -3
  4. data/lib/google/cloud/compute/v1/accelerator_types/credentials.rb +1 -1
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -18
  6. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
  7. data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +3 -1
  8. data/lib/google/cloud/compute/v1/accelerator_types.rb +3 -1
  9. data/lib/google/cloud/compute/v1/addresses/credentials.rb +1 -1
  10. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -18
  11. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -1
  12. data/lib/google/cloud/compute/v1/addresses/rest.rb +3 -1
  13. data/lib/google/cloud/compute/v1/addresses.rb +3 -1
  14. data/lib/google/cloud/compute/v1/advice/rest/client.rb +187 -1
  15. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +126 -0
  16. data/lib/google/cloud/compute/v1/advice/rest.rb +2 -0
  17. data/lib/google/cloud/compute/v1/advice.rb +2 -0
  18. data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +1 -1
  19. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +6 -18
  20. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
  21. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +3 -1
  22. data/lib/google/cloud/compute/v1/autoscalers.rb +3 -1
  23. data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +1 -1
  24. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +7 -26
  25. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
  26. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +3 -1
  27. data/lib/google/cloud/compute/v1/backend_buckets.rb +3 -1
  28. data/lib/google/cloud/compute/v1/backend_services/credentials.rb +1 -1
  29. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +7 -26
  30. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
  31. data/lib/google/cloud/compute/v1/backend_services/rest.rb +3 -1
  32. data/lib/google/cloud/compute/v1/backend_services.rb +3 -1
  33. data/lib/google/cloud/compute/v1/compute_pb.rb +87 -1
  34. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +4 -9
  35. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +2 -0
  36. data/lib/google/cloud/compute/v1/cross_site_networks.rb +2 -0
  37. data/lib/google/cloud/compute/v1/disk_types/credentials.rb +1 -1
  38. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -18
  39. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  40. data/lib/google/cloud/compute/v1/disk_types/rest.rb +3 -1
  41. data/lib/google/cloud/compute/v1/disk_types.rb +3 -1
  42. data/lib/google/cloud/compute/v1/disks/credentials.rb +1 -1
  43. data/lib/google/cloud/compute/v1/disks/rest/client.rb +6 -18
  44. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  45. data/lib/google/cloud/compute/v1/disks/rest.rb +3 -1
  46. data/lib/google/cloud/compute/v1/disks.rb +3 -1
  47. data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +1 -1
  48. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +5 -10
  49. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  50. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +3 -1
  51. data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +3 -1
  52. data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +1 -1
  53. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +5 -10
  54. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  55. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +3 -1
  56. data/lib/google/cloud/compute/v1/firewall_policies.rb +3 -1
  57. data/lib/google/cloud/compute/v1/firewalls/credentials.rb +1 -1
  58. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +5 -10
  59. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  60. data/lib/google/cloud/compute/v1/firewalls/rest.rb +3 -1
  61. data/lib/google/cloud/compute/v1/firewalls.rb +3 -1
  62. data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +1 -1
  63. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +6 -18
  64. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  65. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +3 -1
  66. data/lib/google/cloud/compute/v1/forwarding_rules.rb +3 -1
  67. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +5 -17
  68. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +2 -0
  69. data/lib/google/cloud/compute/v1/future_reservations.rb +2 -0
  70. data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +1 -1
  71. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +5 -10
  72. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
  73. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +3 -1
  74. data/lib/google/cloud/compute/v1/global_addresses.rb +3 -1
  75. data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +1 -1
  76. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +5 -10
  77. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  78. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +3 -1
  79. data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +3 -1
  80. data/lib/google/cloud/compute/v1/global_frontend_settings_service/credentials.rb +52 -0
  81. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/client.rb +524 -0
  82. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/service_stub.rb +204 -0
  83. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest.rb +53 -0
  84. data/lib/google/cloud/compute/v1/global_frontend_settings_service.rb +49 -0
  85. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +1 -1
  86. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +6 -18
  87. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  88. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +3 -1
  89. data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +3 -1
  90. data/lib/google/cloud/compute/v1/global_operations/credentials.rb +1 -1
  91. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -18
  92. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +1 -1
  93. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  94. data/lib/google/cloud/compute/v1/global_operations/rest.rb +3 -1
  95. data/lib/google/cloud/compute/v1/global_operations.rb +3 -1
  96. data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +1 -1
  97. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +5 -10
  98. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +1 -1
  99. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  100. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +3 -1
  101. data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -1
  102. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +1 -1
  103. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +5 -10
  104. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  105. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +3 -1
  106. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +3 -1
  107. data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest/client.rb +5 -17
  108. data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest.rb +2 -0
  109. data/lib/google/cloud/compute/v1/global_vm_extension_policies.rb +2 -0
  110. data/lib/google/cloud/compute/v1/health_checks/credentials.rb +1 -1
  111. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +6 -18
  112. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  113. data/lib/google/cloud/compute/v1/health_checks/rest.rb +3 -1
  114. data/lib/google/cloud/compute/v1/health_checks.rb +3 -1
  115. data/lib/google/cloud/compute/v1/hosts/credentials.rb +52 -0
  116. data/lib/google/cloud/compute/v1/hosts/rest/client.rb +750 -0
  117. data/lib/google/cloud/compute/v1/hosts/rest/service_stub.rb +273 -0
  118. data/lib/google/cloud/compute/v1/hosts/rest.rb +53 -0
  119. data/lib/google/cloud/compute/v1/hosts.rb +49 -0
  120. data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +1 -1
  121. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -2
  122. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  123. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +3 -1
  124. data/lib/google/cloud/compute/v1/image_family_views.rb +3 -1
  125. data/lib/google/cloud/compute/v1/image_views/credentials.rb +53 -0
  126. data/lib/google/cloud/compute/v1/image_views/rest/client.rb +612 -0
  127. data/lib/google/cloud/compute/v1/image_views/rest/service_stub.rb +206 -0
  128. data/lib/google/cloud/compute/v1/image_views/rest.rb +53 -0
  129. data/lib/google/cloud/compute/v1/image_views.rb +49 -0
  130. data/lib/google/cloud/compute/v1/images/credentials.rb +1 -1
  131. data/lib/google/cloud/compute/v1/images/rest/client.rb +5 -10
  132. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  133. data/lib/google/cloud/compute/v1/images/rest.rb +3 -1
  134. data/lib/google/cloud/compute/v1/images.rb +3 -1
  135. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +1 -1
  136. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +5 -10
  137. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +1 -1
  138. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +3 -1
  139. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +3 -1
  140. data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +1 -1
  141. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +9 -42
  142. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  143. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +3 -1
  144. data/lib/google/cloud/compute/v1/instance_group_managers.rb +3 -1
  145. data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +1 -1
  146. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +7 -26
  147. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  148. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +3 -1
  149. data/lib/google/cloud/compute/v1/instance_groups.rb +3 -1
  150. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +1 -1
  151. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +4 -2
  152. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +1 -1
  153. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +3 -1
  154. data/lib/google/cloud/compute/v1/instance_settings_service.rb +3 -1
  155. data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +1 -1
  156. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +6 -18
  157. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  158. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +3 -1
  159. data/lib/google/cloud/compute/v1/instance_templates.rb +3 -1
  160. data/lib/google/cloud/compute/v1/instances/credentials.rb +1 -1
  161. data/lib/google/cloud/compute/v1/instances/rest/client.rb +13 -28
  162. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  163. data/lib/google/cloud/compute/v1/instances/rest.rb +3 -1
  164. data/lib/google/cloud/compute/v1/instances.rb +3 -1
  165. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +4 -9
  166. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +2 -0
  167. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +2 -0
  168. data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +1 -1
  169. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +6 -18
  170. data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +1 -1
  171. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +3 -1
  172. data/lib/google/cloud/compute/v1/instant_snapshots.rb +3 -1
  173. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/credentials.rb +1 -1
  174. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +5 -10
  175. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/service_stub.rb +1 -1
  176. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest.rb +3 -1
  177. data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +3 -1
  178. data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +1 -1
  179. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +6 -18
  180. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
  181. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +3 -1
  182. data/lib/google/cloud/compute/v1/interconnect_attachments.rb +3 -1
  183. data/lib/google/cloud/compute/v1/interconnect_groups/credentials.rb +1 -1
  184. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +5 -10
  185. data/lib/google/cloud/compute/v1/interconnect_groups/rest/service_stub.rb +1 -1
  186. data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +3 -1
  187. data/lib/google/cloud/compute/v1/interconnect_groups.rb +3 -1
  188. data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +1 -1
  189. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +5 -10
  190. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  191. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +3 -1
  192. data/lib/google/cloud/compute/v1/interconnect_locations.rb +3 -1
  193. data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +1 -1
  194. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +5 -10
  195. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +1 -1
  196. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +3 -1
  197. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +3 -1
  198. data/lib/google/cloud/compute/v1/interconnects/credentials.rb +1 -1
  199. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -10
  200. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +64 -1
  201. data/lib/google/cloud/compute/v1/interconnects/rest.rb +3 -1
  202. data/lib/google/cloud/compute/v1/interconnects.rb +3 -1
  203. data/lib/google/cloud/compute/v1/license_codes/credentials.rb +1 -1
  204. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  205. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  206. data/lib/google/cloud/compute/v1/license_codes/rest.rb +3 -1
  207. data/lib/google/cloud/compute/v1/license_codes.rb +3 -1
  208. data/lib/google/cloud/compute/v1/licenses/credentials.rb +1 -1
  209. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +5 -10
  210. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  211. data/lib/google/cloud/compute/v1/licenses/rest.rb +3 -1
  212. data/lib/google/cloud/compute/v1/licenses.rb +3 -1
  213. data/lib/google/cloud/compute/v1/machine_images/credentials.rb +1 -1
  214. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +5 -10
  215. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  216. data/lib/google/cloud/compute/v1/machine_images/rest.rb +3 -1
  217. data/lib/google/cloud/compute/v1/machine_images.rb +3 -1
  218. data/lib/google/cloud/compute/v1/machine_types/credentials.rb +1 -1
  219. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -18
  220. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  221. data/lib/google/cloud/compute/v1/machine_types/rest.rb +3 -1
  222. data/lib/google/cloud/compute/v1/machine_types.rb +3 -1
  223. data/lib/google/cloud/compute/v1/managed_rulesets/credentials.rb +53 -0
  224. data/lib/google/cloud/compute/v1/managed_rulesets/rest/client.rb +606 -0
  225. data/lib/google/cloud/compute/v1/managed_rulesets/rest/service_stub.rb +204 -0
  226. data/lib/google/cloud/compute/v1/managed_rulesets/rest.rb +53 -0
  227. data/lib/google/cloud/compute/v1/managed_rulesets.rb +49 -0
  228. data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +1 -1
  229. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +6 -18
  230. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +1 -1
  231. data/lib/google/cloud/compute/v1/network_attachments/rest.rb +3 -1
  232. data/lib/google/cloud/compute/v1/network_attachments.rb +3 -1
  233. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +1 -1
  234. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +5 -10
  235. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  236. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +3 -1
  237. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +3 -1
  238. data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +1 -1
  239. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +7 -26
  240. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  241. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +3 -1
  242. data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -1
  243. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +1 -1
  244. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +6 -18
  245. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  246. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +3 -1
  247. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +3 -1
  248. data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +1 -1
  249. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +5 -10
  250. data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +1 -1
  251. data/lib/google/cloud/compute/v1/network_profiles/rest.rb +3 -1
  252. data/lib/google/cloud/compute/v1/network_profiles.rb +3 -1
  253. data/lib/google/cloud/compute/v1/networks/credentials.rb +1 -1
  254. data/lib/google/cloud/compute/v1/networks/rest/client.rb +6 -18
  255. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  256. data/lib/google/cloud/compute/v1/networks/rest.rb +3 -1
  257. data/lib/google/cloud/compute/v1/networks.rb +3 -1
  258. data/lib/google/cloud/compute/v1/node_groups/credentials.rb +1 -1
  259. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +7 -26
  260. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  261. data/lib/google/cloud/compute/v1/node_groups/rest.rb +3 -1
  262. data/lib/google/cloud/compute/v1/node_groups.rb +3 -1
  263. data/lib/google/cloud/compute/v1/node_templates/credentials.rb +1 -1
  264. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +6 -18
  265. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  266. data/lib/google/cloud/compute/v1/node_templates/rest.rb +3 -1
  267. data/lib/google/cloud/compute/v1/node_templates.rb +3 -1
  268. data/lib/google/cloud/compute/v1/node_types/credentials.rb +1 -1
  269. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -18
  270. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  271. data/lib/google/cloud/compute/v1/node_types/rest.rb +3 -1
  272. data/lib/google/cloud/compute/v1/node_types.rb +3 -1
  273. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +5 -17
  274. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +2 -0
  275. data/lib/google/cloud/compute/v1/organization_security_policies.rb +2 -0
  276. data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +1 -1
  277. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +6 -18
  278. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  279. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +3 -1
  280. data/lib/google/cloud/compute/v1/packet_mirrorings.rb +3 -1
  281. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +4 -9
  282. data/lib/google/cloud/compute/v1/preview_features/rest.rb +2 -0
  283. data/lib/google/cloud/compute/v1/preview_features.rb +2 -0
  284. data/lib/google/cloud/compute/v1/project_views/credentials.rb +53 -0
  285. data/lib/google/cloud/compute/v1/project_views/rest/client.rb +440 -0
  286. data/lib/google/cloud/compute/v1/project_views/rest/service_stub.rb +143 -0
  287. data/lib/google/cloud/compute/v1/project_views/rest.rb +53 -0
  288. data/lib/google/cloud/compute/v1/project_views.rb +49 -0
  289. data/lib/google/cloud/compute/v1/projects/credentials.rb +1 -1
  290. data/lib/google/cloud/compute/v1/projects/rest/client.rb +6 -18
  291. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  292. data/lib/google/cloud/compute/v1/projects/rest.rb +3 -1
  293. data/lib/google/cloud/compute/v1/projects.rb +3 -1
  294. data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +1 -1
  295. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +5 -10
  296. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  297. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +3 -1
  298. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +3 -1
  299. data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +1 -1
  300. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +6 -18
  301. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  302. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +3 -1
  303. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +3 -1
  304. data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +1 -1
  305. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +5 -10
  306. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  307. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +3 -1
  308. data/lib/google/cloud/compute/v1/region_autoscalers.rb +3 -1
  309. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +5 -17
  310. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +2 -0
  311. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +2 -0
  312. data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +1 -1
  313. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +6 -18
  314. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
  315. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +3 -1
  316. data/lib/google/cloud/compute/v1/region_backend_services.rb +3 -1
  317. data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +1 -1
  318. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +6 -18
  319. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  320. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +3 -1
  321. data/lib/google/cloud/compute/v1/region_commitments.rb +3 -1
  322. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +5 -17
  323. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +2 -0
  324. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +2 -0
  325. data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +1 -1
  326. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +5 -10
  327. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  328. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +3 -1
  329. data/lib/google/cloud/compute/v1/region_disk_types.rb +3 -1
  330. data/lib/google/cloud/compute/v1/region_disks/credentials.rb +1 -1
  331. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +5 -10
  332. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  333. data/lib/google/cloud/compute/v1/region_disks/rest.rb +3 -1
  334. data/lib/google/cloud/compute/v1/region_disks.rb +3 -1
  335. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +5 -17
  336. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +2 -0
  337. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +2 -0
  338. data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +1 -1
  339. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +6 -18
  340. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  341. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +3 -1
  342. data/lib/google/cloud/compute/v1/region_health_check_services.rb +3 -1
  343. data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +1 -1
  344. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +5 -10
  345. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  346. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +3 -1
  347. data/lib/google/cloud/compute/v1/region_health_checks.rb +3 -1
  348. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +5 -17
  349. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +2 -0
  350. data/lib/google/cloud/compute/v1/region_health_sources.rb +2 -0
  351. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +4 -9
  352. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +2 -0
  353. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +2 -0
  354. data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +1 -1
  355. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +8 -34
  356. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  357. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +3 -1
  358. data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +3 -1
  359. data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +1 -1
  360. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +6 -18
  361. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  362. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +3 -1
  363. data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -1
  364. data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +1 -1
  365. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +5 -10
  366. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +1 -1
  367. data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +3 -1
  368. data/lib/google/cloud/compute/v1/region_instance_templates.rb +3 -1
  369. data/lib/google/cloud/compute/v1/region_instances/credentials.rb +1 -1
  370. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
  371. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  372. data/lib/google/cloud/compute/v1/region_instances/rest.rb +3 -1
  373. data/lib/google/cloud/compute/v1/region_instances.rb +3 -1
  374. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +4 -9
  375. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +2 -0
  376. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +2 -0
  377. data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +1 -1
  378. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +5 -10
  379. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +1 -1
  380. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +3 -1
  381. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +3 -1
  382. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +1 -1
  383. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +6 -18
  384. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  385. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +3 -1
  386. data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -1
  387. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +1 -1
  388. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +127 -11
  389. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +65 -1
  390. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +3 -1
  391. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +3 -1
  392. data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +1 -1
  393. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +6 -18
  394. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  395. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +3 -1
  396. data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +3 -1
  397. data/lib/google/cloud/compute/v1/region_operations/credentials.rb +1 -1
  398. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +5 -10
  399. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +1 -1
  400. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  401. data/lib/google/cloud/compute/v1/region_operations/rest.rb +3 -1
  402. data/lib/google/cloud/compute/v1/region_operations.rb +3 -1
  403. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +1 -1
  404. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +5 -10
  405. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  406. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +3 -1
  407. data/lib/google/cloud/compute/v1/region_security_policies.rb +3 -1
  408. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +3 -1
  409. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +2 -0
  410. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +2 -0
  411. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +4 -9
  412. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +2 -0
  413. data/lib/google/cloud/compute/v1/region_snapshots.rb +2 -0
  414. data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +1 -1
  415. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +5 -10
  416. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  417. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +3 -1
  418. data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +3 -1
  419. data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +1 -1
  420. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +6 -18
  421. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
  422. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +3 -1
  423. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +3 -1
  424. data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +1 -1
  425. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +5 -10
  426. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  427. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +3 -1
  428. data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +3 -1
  429. data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +1 -1
  430. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +5 -10
  431. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  432. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +3 -1
  433. data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +3 -1
  434. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +1 -1
  435. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +5 -10
  436. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
  437. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +3 -1
  438. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +3 -1
  439. data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +1 -1
  440. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +5 -10
  441. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  442. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +3 -1
  443. data/lib/google/cloud/compute/v1/region_url_maps.rb +3 -1
  444. data/lib/google/cloud/compute/v1/region_zones/credentials.rb +1 -1
  445. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -10
  446. data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +1 -1
  447. data/lib/google/cloud/compute/v1/region_zones/rest.rb +3 -1
  448. data/lib/google/cloud/compute/v1/region_zones.rb +3 -1
  449. data/lib/google/cloud/compute/v1/regions/credentials.rb +1 -1
  450. data/lib/google/cloud/compute/v1/regions/rest/client.rb +5 -10
  451. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  452. data/lib/google/cloud/compute/v1/regions/rest.rb +3 -1
  453. data/lib/google/cloud/compute/v1/regions.rb +3 -1
  454. data/lib/google/cloud/compute/v1/reliability_risks/credentials.rb +53 -0
  455. data/lib/google/cloud/compute/v1/reliability_risks/rest/client.rb +606 -0
  456. data/lib/google/cloud/compute/v1/reliability_risks/rest/service_stub.rb +204 -0
  457. data/lib/google/cloud/compute/v1/reliability_risks/rest.rb +53 -0
  458. data/lib/google/cloud/compute/v1/reliability_risks.rb +49 -0
  459. data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +1 -1
  460. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +5 -10
  461. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +1 -1
  462. data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +3 -1
  463. data/lib/google/cloud/compute/v1/reservation_blocks.rb +3 -1
  464. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +112 -9
  465. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +64 -0
  466. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +2 -0
  467. data/lib/google/cloud/compute/v1/reservation_slots.rb +2 -0
  468. data/lib/google/cloud/compute/v1/reservation_sub_blocks/credentials.rb +1 -1
  469. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +5 -10
  470. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +1 -1
  471. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest.rb +3 -1
  472. data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +3 -1
  473. data/lib/google/cloud/compute/v1/reservations/credentials.rb +1 -1
  474. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +6 -18
  475. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  476. data/lib/google/cloud/compute/v1/reservations/rest.rb +3 -1
  477. data/lib/google/cloud/compute/v1/reservations.rb +3 -1
  478. data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +1 -1
  479. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -18
  480. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  481. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +3 -1
  482. data/lib/google/cloud/compute/v1/resource_policies.rb +3 -1
  483. data/lib/google/cloud/compute/v1/rest.rb +7 -1
  484. data/lib/google/cloud/compute/v1/rollout_plans/rest/client.rb +4 -9
  485. data/lib/google/cloud/compute/v1/rollout_plans/rest.rb +2 -0
  486. data/lib/google/cloud/compute/v1/rollout_plans.rb +2 -0
  487. data/lib/google/cloud/compute/v1/rollouts/rest/client.rb +4 -9
  488. data/lib/google/cloud/compute/v1/rollouts/rest.rb +2 -0
  489. data/lib/google/cloud/compute/v1/rollouts.rb +2 -0
  490. data/lib/google/cloud/compute/v1/routers/credentials.rb +1 -1
  491. data/lib/google/cloud/compute/v1/routers/rest/client.rb +10 -50
  492. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  493. data/lib/google/cloud/compute/v1/routers/rest.rb +3 -1
  494. data/lib/google/cloud/compute/v1/routers.rb +3 -1
  495. data/lib/google/cloud/compute/v1/routes/credentials.rb +1 -1
  496. data/lib/google/cloud/compute/v1/routes/rest/client.rb +5 -10
  497. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  498. data/lib/google/cloud/compute/v1/routes/rest.rb +3 -1
  499. data/lib/google/cloud/compute/v1/routes.rb +3 -1
  500. data/lib/google/cloud/compute/v1/security_policies/credentials.rb +1 -1
  501. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +7 -26
  502. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
  503. data/lib/google/cloud/compute/v1/security_policies/rest.rb +3 -1
  504. data/lib/google/cloud/compute/v1/security_policies.rb +3 -1
  505. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +1 -1
  506. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +6 -18
  507. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  508. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +3 -1
  509. data/lib/google/cloud/compute/v1/service_attachments.rb +3 -1
  510. data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +1 -1
  511. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +4 -2
  512. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +1 -1
  513. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +3 -1
  514. data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +3 -1
  515. data/lib/google/cloud/compute/v1/snapshots/credentials.rb +1 -1
  516. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +5 -10
  517. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  518. data/lib/google/cloud/compute/v1/snapshots/rest.rb +3 -1
  519. data/lib/google/cloud/compute/v1/snapshots.rb +3 -1
  520. data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +1 -1
  521. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +6 -18
  522. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  523. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +3 -1
  524. data/lib/google/cloud/compute/v1/ssl_certificates.rb +3 -1
  525. data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +1 -1
  526. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -26
  527. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
  528. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +3 -1
  529. data/lib/google/cloud/compute/v1/ssl_policies.rb +3 -1
  530. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +1 -1
  531. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +6 -18
  532. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +1 -1
  533. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +3 -1
  534. data/lib/google/cloud/compute/v1/storage_pool_types.rb +3 -1
  535. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +1 -1
  536. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +7 -26
  537. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +1 -1
  538. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +3 -1
  539. data/lib/google/cloud/compute/v1/storage_pools.rb +3 -1
  540. data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +1 -1
  541. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +7 -26
  542. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  543. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +3 -1
  544. data/lib/google/cloud/compute/v1/subnetworks.rb +3 -1
  545. data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +1 -1
  546. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +5 -10
  547. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  548. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +3 -1
  549. data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +3 -1
  550. data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +1 -1
  551. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +6 -18
  552. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  553. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +3 -1
  554. data/lib/google/cloud/compute/v1/target_http_proxies.rb +3 -1
  555. data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +1 -1
  556. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +6 -18
  557. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  558. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +3 -1
  559. data/lib/google/cloud/compute/v1/target_https_proxies.rb +3 -1
  560. data/lib/google/cloud/compute/v1/target_instances/credentials.rb +1 -1
  561. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +6 -18
  562. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  563. data/lib/google/cloud/compute/v1/target_instances/rest.rb +3 -1
  564. data/lib/google/cloud/compute/v1/target_instances.rb +3 -1
  565. data/lib/google/cloud/compute/v1/target_pools/credentials.rb +1 -1
  566. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +6 -18
  567. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  568. data/lib/google/cloud/compute/v1/target_pools/rest.rb +3 -1
  569. data/lib/google/cloud/compute/v1/target_pools.rb +3 -1
  570. data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +1 -1
  571. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +5 -10
  572. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  573. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +3 -1
  574. data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +3 -1
  575. data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +1 -1
  576. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +6 -18
  577. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  578. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +3 -1
  579. data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +3 -1
  580. data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +1 -1
  581. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +6 -18
  582. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
  583. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +3 -1
  584. data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +3 -1
  585. data/lib/google/cloud/compute/v1/url_maps/credentials.rb +1 -1
  586. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +6 -18
  587. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  588. data/lib/google/cloud/compute/v1/url_maps/rest.rb +3 -1
  589. data/lib/google/cloud/compute/v1/url_maps.rb +3 -1
  590. data/lib/google/cloud/compute/v1/version.rb +1 -1
  591. data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +1 -1
  592. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +6 -18
  593. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  594. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +3 -1
  595. data/lib/google/cloud/compute/v1/vpn_gateways.rb +3 -1
  596. data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +1 -1
  597. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +6 -18
  598. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
  599. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +3 -1
  600. data/lib/google/cloud/compute/v1/vpn_tunnels.rb +3 -1
  601. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +4 -9
  602. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +2 -0
  603. data/lib/google/cloud/compute/v1/wire_groups.rb +2 -0
  604. data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +1 -1
  605. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +5 -10
  606. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +1 -1
  607. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  608. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +3 -1
  609. data/lib/google/cloud/compute/v1/zone_operations.rb +3 -1
  610. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +4 -9
  611. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +2 -0
  612. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +2 -0
  613. data/lib/google/cloud/compute/v1/zones/credentials.rb +1 -1
  614. data/lib/google/cloud/compute/v1/zones/rest/client.rb +5 -10
  615. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  616. data/lib/google/cloud/compute/v1/zones/rest.rb +3 -1
  617. data/lib/google/cloud/compute/v1/zones.rb +3 -1
  618. data/lib/google/cloud/compute/v1.rb +7 -1
  619. data/lib/google-cloud-compute-v1.rb +1 -1
  620. data/proto_docs/README.md +1 -1
  621. data/proto_docs/google/api/client.rb +1 -1
  622. data/proto_docs/google/api/field_behavior.rb +1 -1
  623. data/proto_docs/google/api/launch_stage.rb +1 -1
  624. data/proto_docs/google/api/resource.rb +1 -1
  625. data/proto_docs/google/cloud/compute/v1/compute.rb +3003 -2262
  626. data/proto_docs/google/cloud/extended_operations.rb +1 -1
  627. data/proto_docs/google/protobuf/any.rb +1 -1
  628. data/proto_docs/google/protobuf/duration.rb +1 -1
  629. metadata +38 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81935008ee1016c838aa5af96aea4b92539b9ded19e314c37aeeb54543a7a29e
4
- data.tar.gz: d911c708dccc0b28e25ad83ff86fce45a3f9439b6016f3d15def933b0308e646
3
+ metadata.gz: 66e474858f42e2de53b184cf57d855411f714693f4928ab67b5c30ff32e601b0
4
+ data.tar.gz: d405ef1d25a118d5cc77fa48580380ae49286a8199ad27ad0ab7774b6669377b
5
5
  SHA512:
6
- metadata.gz: eda19ff3bbca86c8e4dd706d8facf017123a152a62b75d571fa01daa5e7544501eb4c57166a3ea59b524a47b12494df6a0d23739c573daec533bbf1b0b1f684e
7
- data.tar.gz: a41bc102f4931df89894307def4081bee2403ceb5fbec3b860cb68e97719d813e05f17ad4ce6bf0e28e61e9306e4b1663026e7934fda870c65f451e3100c335d
6
+ metadata.gz: cf1793f26779a774b95dde5fcdfef216944c919d94bfe170189ff478154daaa184259697cbf116e9c1d87881970011ba3c480fe2f3bcfd5773e0c1b5a6c47c64
7
+ data.tar.gz: 1aea3ce51bbcaf4d19cb055d62cf447c5d6bb12b144ae8cc4c8458dec832c725a89e9774f4b1038eb296fb285b0af810795286cc67f68d0fa91cc6247985acb7
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title="Google Cloud Compute V1 API"
2
+ --title="Compute Engine V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,11 +1,16 @@
1
- # Ruby Client for the Google Cloud Compute V1 API
1
+ # Ruby Client for the Compute Engine V1 API
2
2
 
3
- API Client library for the Google Cloud Compute V1 API
3
+ Compute Engine is an infrastructure as a service (IaaS) product that offers self-managed virtual machine (VM) instances and bare metal instances.
4
4
 
5
- google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API.
6
5
 
7
6
  https://github.com/googleapis/google-cloud-ruby
8
7
 
8
+ This gem is a _versioned_ client. It provides basic client classes for a
9
+ specific version of the Compute Engine V1 API. Most users should consider using
10
+ the main client gem,
11
+ [google-cloud-compute](https://rubygems.org/gems/google-cloud-compute).
12
+ See the section below titled *Which client should I use?* for more information.
13
+
9
14
  ## Installation
10
15
 
11
16
  ```
@@ -88,3 +93,61 @@ in security maintenance, and not end of life. Older versions of Ruby _may_
88
93
  still work, but are unsupported and not recommended. See
89
94
  https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
90
95
  support schedule.
96
+
97
+ ## Which client should I use?
98
+
99
+ Most modern Ruby client libraries for Google APIs come in two flavors: the main
100
+ client library with a name such as `google-cloud-compute`,
101
+ and lower-level _versioned_ client libraries with names such as
102
+ `google-cloud-compute-v1`.
103
+ _In most cases, you should install the main client._
104
+
105
+ ### What's the difference between the main client and a versioned client?
106
+
107
+ A _versioned client_ provides a basic set of data types and client classes for
108
+ a _single version_ of a specific service. (That is, for a service with multiple
109
+ versions, there might be a separate versioned client for each service version.)
110
+ Most versioned clients are written and maintained by a code generator.
111
+
112
+ The _main client_ is designed to provide you with the _recommended_ client
113
+ interfaces for the service. There will be only one main client for any given
114
+ service, even a service with multiple versions. The main client includes
115
+ factory methods for constructing the client objects we recommend for most
116
+ users. In some cases, those will be classes provided by an underlying versioned
117
+ client; in other cases, they will be handwritten higher-level client objects
118
+ with additional capabilities, convenience methods, or best practices built in.
119
+ Generally, the main client will default to a recommended service version,
120
+ although in some cases you can override this if you need to talk to a specific
121
+ service version.
122
+
123
+ ### Why would I want to use the main client?
124
+
125
+ We recommend that most users install the main client gem for a service. You can
126
+ identify this gem as the one _without_ a version in its name, e.g.
127
+ `google-cloud-compute`.
128
+ The main client is recommended because it will embody the best practices for
129
+ accessing the service, and may also provide more convenient interfaces or
130
+ tighter integration into frameworks and third-party libraries. In addition, the
131
+ documentation and samples published by Google will generally demonstrate use of
132
+ the main client.
133
+
134
+ ### Why would I want to use a versioned client?
135
+
136
+ You can use a versioned client if you are content with a possibly lower-level
137
+ class interface, you explicitly want to avoid features provided by the main
138
+ client, or you want to access a specific service version not be covered by the
139
+ main client. You can identify versioned client gems because the service version
140
+ is part of the name, e.g. `google-cloud-compute-v1`.
141
+
142
+ ### What about the google-apis-<name> clients?
143
+
144
+ Client library gems with names that begin with `google-apis-` are based on an
145
+ older code generation technology. They talk to a REST/JSON backend (whereas
146
+ most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
147
+ not offer the same performance, features, and ease of use provided by more
148
+ modern clients.
149
+
150
+ The `google-apis-` clients have wide coverage across Google services, so you
151
+ might need to use one if there is no modern client available for the service.
152
+ However, if a modern client is available, we generally recommend it over the
153
+ older `google-apis-` clients.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -33,9 +33,11 @@ module Google
33
33
  #
34
34
  # The AcceleratorTypes API.
35
35
  #
36
+ # This client uses AcceleratorTypes version 2026-09-01.
37
+ #
36
38
  class Client
37
39
  # @private
38
- API_VERSION = ""
40
+ API_VERSION = "2026-09-01"
39
41
 
40
42
  # @private
41
43
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
@@ -207,7 +209,7 @@ module Google
207
209
  # @param options [::Gapic::CallOptions, ::Hash]
208
210
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
209
211
  #
210
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
212
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, service_project_number: nil)
211
213
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
212
214
  # least one keyword argument is required. To specify no parameters, or to keep all
213
215
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -303,13 +305,6 @@ module Google
303
305
  # the next page of results.
304
306
  # @param project [::String]
305
307
  # Project ID for this request.
306
- # @param return_partial_success [::Boolean]
307
- # Opt-in for partial success behavior which provides partial results in case
308
- # of failure. The default value is false.
309
- #
310
- # For example, when partial success behavior is enabled, aggregatedList for a
311
- # single zone scope either returns all resources in the zone or no resources,
312
- # with an error code.
313
308
  # @param service_project_number [::Integer]
314
309
  # The Shared VPC service project id or service project number for which
315
310
  # aggregated list request is invoked for subnetworks list-usable api.
@@ -469,7 +464,7 @@ module Google
469
464
  # @param options [::Gapic::CallOptions, ::Hash]
470
465
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
471
466
  #
472
- # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, zone: nil)
467
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, zone: nil)
473
468
  # Pass arguments to `list` via keyword arguments. Note that at
474
469
  # least one keyword argument is required. To specify no parameters, or to keep all
475
470
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -557,13 +552,6 @@ module Google
557
552
  # the next page of results.
558
553
  # @param project [::String]
559
554
  # Project ID for this request.
560
- # @param return_partial_success [::Boolean]
561
- # Opt-in for partial success behavior which provides partial results in case
562
- # of failure. The default value is false.
563
- #
564
- # For example, when partial success behavior is enabled, aggregatedList for a
565
- # single zone scope either returns all resources in the zone or no resources,
566
- # with an error code.
567
555
  # @param zone [::String]
568
556
  # The name of the zone for this request.
569
557
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -34,6 +34,8 @@ module Google
34
34
  #
35
35
  # The AcceleratorTypes API.
36
36
  #
37
+ # This client uses AcceleratorTypes version 2026-09-01.
38
+ #
37
39
  # To load this service and instantiate a REST client:
38
40
  #
39
41
  # require "google/cloud/compute/v1/accelerator_types/rest"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # The AcceleratorTypes API.
35
35
  #
36
+ # This client uses AcceleratorTypes version 2026-09-01.
37
+ #
36
38
  # @example Load this service and instantiate a REST client
37
39
  #
38
40
  # require "google/cloud/compute/v1/accelerator_types/rest"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -32,9 +32,11 @@ module Google
32
32
  #
33
33
  # The Addresses API.
34
34
  #
35
+ # This client uses Addresses version 2026-09-01.
36
+ #
35
37
  class Client
36
38
  # @private
37
- API_VERSION = ""
39
+ API_VERSION = "2026-09-01"
38
40
 
39
41
  # @private
40
42
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
@@ -230,7 +232,7 @@ module Google
230
232
  # @param options [::Gapic::CallOptions, ::Hash]
231
233
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
232
234
  #
233
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
235
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, service_project_number: nil)
234
236
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
235
237
  # least one keyword argument is required. To specify no parameters, or to keep all
236
238
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -326,13 +328,6 @@ module Google
326
328
  # the next page of results.
327
329
  # @param project [::String]
328
330
  # Project ID for this request.
329
- # @param return_partial_success [::Boolean]
330
- # Opt-in for partial success behavior which provides partial results in case
331
- # of failure. The default value is false.
332
- #
333
- # For example, when partial success behavior is enabled, aggregatedList for a
334
- # single zone scope either returns all resources in the zone or no resources,
335
- # with an error code.
336
331
  # @param service_project_number [::Integer]
337
332
  # The Shared VPC service project id or service project number for which
338
333
  # aggregated list request is invoked for subnetworks list-usable api.
@@ -705,7 +700,7 @@ module Google
705
700
  # @param options [::Gapic::CallOptions, ::Hash]
706
701
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
707
702
  #
708
- # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
703
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil)
709
704
  # Pass arguments to `list` via keyword arguments. Note that at
710
705
  # least one keyword argument is required. To specify no parameters, or to keep all
711
706
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -795,13 +790,6 @@ module Google
795
790
  # Project ID for this request.
796
791
  # @param region [::String]
797
792
  # Name of the region for this request.
798
- # @param return_partial_success [::Boolean]
799
- # Opt-in for partial success behavior which provides partial results in case
800
- # of failure. The default value is false.
801
- #
802
- # For example, when partial success behavior is enabled, aggregatedList for a
803
- # single zone scope either returns all resources in the zone or no resources,
804
- # with an error code.
805
793
  # @yield [result, operation] Access the result along with the TransportOperation object
806
794
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
807
795
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -32,6 +32,8 @@ module Google
32
32
  ##
33
33
  # The Addresses API.
34
34
  #
35
+ # This client uses Addresses version 2026-09-01.
36
+ #
35
37
  # To load this service and instantiate a REST client:
36
38
  #
37
39
  # require "google/cloud/compute/v1/addresses/rest"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@ module Google
31
31
  ##
32
32
  # The Addresses API.
33
33
  #
34
+ # This client uses Addresses version 2026-09-01.
35
+ #
34
36
  # @example Load this service and instantiate a REST client
35
37
  #
36
38
  # require "google/cloud/compute/v1/addresses/rest"
@@ -31,9 +31,11 @@ module Google
31
31
  #
32
32
  # The Advice API.
33
33
  #
34
+ # This client uses Advice version 2026-09-01.
35
+ #
34
36
  class Client
35
37
  # @private
36
- API_VERSION = ""
38
+ API_VERSION = "2026-09-01"
37
39
 
38
40
  # @private
39
41
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
@@ -72,6 +74,10 @@ module Google
72
74
 
73
75
  default_config.rpcs.calendar_mode.timeout = 600.0
74
76
 
77
+ default_config.rpcs.capacity.timeout = 600.0
78
+
79
+ default_config.rpcs.capacity_history.timeout = 600.0
80
+
75
81
  default_config
76
82
  end
77
83
  yield @configure if block_given?
@@ -261,6 +267,172 @@ module Google
261
267
  raise ::Google::Cloud::Error.from_error(e)
262
268
  end
263
269
 
270
+ ##
271
+ # Advice on making real-time decisions (such as choosing zone or
272
+ # machine types) during deployment to maximize your chances of obtaining
273
+ # capacity.
274
+ #
275
+ # @overload capacity(request, options = nil)
276
+ # Pass arguments to `capacity` via a request object, either of type
277
+ # {::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest} or an equivalent Hash.
278
+ #
279
+ # @param request [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest, ::Hash]
280
+ # A request object representing the call parameters. Required. To specify no
281
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
282
+ # @param options [::Gapic::CallOptions, ::Hash]
283
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
284
+ #
285
+ # @overload capacity(capacity_advice_request_resource: nil, project: nil, region: nil)
286
+ # Pass arguments to `capacity` via keyword arguments. Note that at
287
+ # least one keyword argument is required. To specify no parameters, or to keep all
288
+ # the default parameter values, pass an empty Hash as a request object (see above).
289
+ #
290
+ # @param capacity_advice_request_resource [::Google::Cloud::Compute::V1::CapacityAdviceRequest, ::Hash]
291
+ # The body resource for this request
292
+ # @param project [::String]
293
+ # Project ID for this request.
294
+ # @param region [::String]
295
+ # Name of the region for this request.
296
+ # @yield [result, operation] Access the result along with the TransportOperation object
297
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
298
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
299
+ #
300
+ # @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
301
+ #
302
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
303
+ #
304
+ # @example Basic example
305
+ # require "google/cloud/compute/v1"
306
+ #
307
+ # # Create a client object. The client can be reused for multiple calls.
308
+ # client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
309
+ #
310
+ # # Create a request. To set request fields, pass in keyword arguments.
311
+ # request = Google::Cloud::Compute::V1::CapacityAdviceRpcRequest.new
312
+ #
313
+ # # Call the capacity method.
314
+ # result = client.capacity request
315
+ #
316
+ # # The returned object is of type Google::Cloud::Compute::V1::CapacityAdviceResponse.
317
+ # p result
318
+ #
319
+ def capacity request, options = nil
320
+ raise ::ArgumentError, "request must be provided" if request.nil?
321
+
322
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest
323
+
324
+ # Converts hash and nil to an options object
325
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
326
+
327
+ # Customize the options with defaults
328
+ call_metadata = @config.rpcs.capacity.metadata.to_h
329
+
330
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
333
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
334
+ transports_version_send: [:rest]
335
+
336
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
+
339
+ options.apply_defaults timeout: @config.rpcs.capacity.timeout,
340
+ metadata: call_metadata,
341
+ retry_policy: @config.rpcs.capacity.retry_policy
342
+
343
+ options.apply_defaults timeout: @config.timeout,
344
+ metadata: @config.metadata,
345
+ retry_policy: @config.retry_policy
346
+
347
+ @advice_stub.capacity request, options do |result, operation|
348
+ yield result, operation if block_given?
349
+ end
350
+ rescue ::Gapic::Rest::Error => e
351
+ raise ::Google::Cloud::Error.from_error(e)
352
+ end
353
+
354
+ ##
355
+ # Gets the capacity history.
356
+ #
357
+ # @overload capacity_history(request, options = nil)
358
+ # Pass arguments to `capacity_history` via a request object, either of type
359
+ # {::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest} or an equivalent Hash.
360
+ #
361
+ # @param request [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest, ::Hash]
362
+ # A request object representing the call parameters. Required. To specify no
363
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
364
+ # @param options [::Gapic::CallOptions, ::Hash]
365
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
366
+ #
367
+ # @overload capacity_history(capacity_history_request_resource: nil, project: nil, region: nil)
368
+ # Pass arguments to `capacity_history` via keyword arguments. Note that at
369
+ # least one keyword argument is required. To specify no parameters, or to keep all
370
+ # the default parameter values, pass an empty Hash as a request object (see above).
371
+ #
372
+ # @param capacity_history_request_resource [::Google::Cloud::Compute::V1::CapacityHistoryRequest, ::Hash]
373
+ # The body resource for this request
374
+ # @param project [::String]
375
+ # Project ID for this request.
376
+ # @param region [::String]
377
+ # Name of the region for this request.
378
+ # @yield [result, operation] Access the result along with the TransportOperation object
379
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
380
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
381
+ #
382
+ # @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
383
+ #
384
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
385
+ #
386
+ # @example Basic example
387
+ # require "google/cloud/compute/v1"
388
+ #
389
+ # # Create a client object. The client can be reused for multiple calls.
390
+ # client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
391
+ #
392
+ # # Create a request. To set request fields, pass in keyword arguments.
393
+ # request = Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest.new
394
+ #
395
+ # # Call the capacity_history method.
396
+ # result = client.capacity_history request
397
+ #
398
+ # # The returned object is of type Google::Cloud::Compute::V1::CapacityHistoryResponse.
399
+ # p result
400
+ #
401
+ def capacity_history request, options = nil
402
+ raise ::ArgumentError, "request must be provided" if request.nil?
403
+
404
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest
405
+
406
+ # Converts hash and nil to an options object
407
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
408
+
409
+ # Customize the options with defaults
410
+ call_metadata = @config.rpcs.capacity_history.metadata.to_h
411
+
412
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
413
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
415
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
416
+ transports_version_send: [:rest]
417
+
418
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
419
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
420
+
421
+ options.apply_defaults timeout: @config.rpcs.capacity_history.timeout,
422
+ metadata: call_metadata,
423
+ retry_policy: @config.rpcs.capacity_history.retry_policy
424
+
425
+ options.apply_defaults timeout: @config.timeout,
426
+ metadata: @config.metadata,
427
+ retry_policy: @config.retry_policy
428
+
429
+ @advice_stub.capacity_history request, options do |result, operation|
430
+ yield result, operation if block_given?
431
+ end
432
+ rescue ::Gapic::Rest::Error => e
433
+ raise ::Google::Cloud::Error.from_error(e)
434
+ end
435
+
264
436
  ##
265
437
  # Configuration class for the Advice REST API.
266
438
  #
@@ -414,11 +586,25 @@ module Google
414
586
  # @return [::Gapic::Config::Method]
415
587
  #
416
588
  attr_reader :calendar_mode
589
+ ##
590
+ # RPC-specific configuration for `capacity`
591
+ # @return [::Gapic::Config::Method]
592
+ #
593
+ attr_reader :capacity
594
+ ##
595
+ # RPC-specific configuration for `capacity_history`
596
+ # @return [::Gapic::Config::Method]
597
+ #
598
+ attr_reader :capacity_history
417
599
 
418
600
  # @private
419
601
  def initialize parent_rpcs = nil
420
602
  calendar_mode_config = parent_rpcs.calendar_mode if parent_rpcs.respond_to? :calendar_mode
421
603
  @calendar_mode = ::Gapic::Config::Method.new calendar_mode_config
604
+ capacity_config = parent_rpcs.capacity if parent_rpcs.respond_to? :capacity
605
+ @capacity = ::Gapic::Config::Method.new capacity_config
606
+ capacity_history_config = parent_rpcs.capacity_history if parent_rpcs.respond_to? :capacity_history
607
+ @capacity_history = ::Gapic::Config::Method.new capacity_history_config
422
608
 
423
609
  yield self if block_given?
424
610
  end