google-cloud-compute-v1 3.9.0 → 3.12.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 (556) 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 +1 -1
  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 +1 -1
  8. data/lib/google/cloud/compute/v1/accelerator_types.rb +1 -1
  9. data/lib/google/cloud/compute/v1/addresses/credentials.rb +1 -1
  10. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +1 -1
  11. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -1
  12. data/lib/google/cloud/compute/v1/addresses/rest.rb +1 -1
  13. data/lib/google/cloud/compute/v1/addresses.rb +1 -1
  14. data/lib/google/cloud/compute/v1/advice/rest/client.rb +184 -0
  15. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +126 -0
  16. data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +1 -1
  17. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +1 -1
  18. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
  19. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +1 -1
  20. data/lib/google/cloud/compute/v1/autoscalers.rb +1 -1
  21. data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +1 -1
  22. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  23. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
  24. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +1 -1
  25. data/lib/google/cloud/compute/v1/backend_buckets.rb +1 -1
  26. data/lib/google/cloud/compute/v1/backend_services/credentials.rb +1 -1
  27. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1 -1
  28. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
  29. data/lib/google/cloud/compute/v1/backend_services/rest.rb +1 -1
  30. data/lib/google/cloud/compute/v1/backend_services.rb +1 -1
  31. data/lib/google/cloud/compute/v1/compute_pb.rb +69 -1
  32. data/lib/google/cloud/compute/v1/disk_types/credentials.rb +1 -1
  33. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +1 -1
  34. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  35. data/lib/google/cloud/compute/v1/disk_types/rest.rb +1 -1
  36. data/lib/google/cloud/compute/v1/disk_types.rb +1 -1
  37. data/lib/google/cloud/compute/v1/disks/credentials.rb +1 -1
  38. data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
  39. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  40. data/lib/google/cloud/compute/v1/disks/rest.rb +1 -1
  41. data/lib/google/cloud/compute/v1/disks.rb +1 -1
  42. data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +1 -1
  43. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  44. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  45. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +1 -1
  46. data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +1 -1
  47. data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +1 -1
  48. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  49. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  50. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +1 -1
  51. data/lib/google/cloud/compute/v1/firewall_policies.rb +1 -1
  52. data/lib/google/cloud/compute/v1/firewalls/credentials.rb +1 -1
  53. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  54. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  55. data/lib/google/cloud/compute/v1/firewalls/rest.rb +1 -1
  56. data/lib/google/cloud/compute/v1/firewalls.rb +1 -1
  57. data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +1 -1
  58. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  60. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +1 -1
  61. data/lib/google/cloud/compute/v1/forwarding_rules.rb +1 -1
  62. data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +1 -1
  63. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  64. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
  65. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +1 -1
  66. data/lib/google/cloud/compute/v1/global_addresses.rb +1 -1
  67. data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +1 -1
  68. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  69. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  70. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +1 -1
  71. data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +1 -1
  72. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +1 -1
  73. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +1 -1
  74. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  75. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +1 -1
  76. data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +1 -1
  77. data/lib/google/cloud/compute/v1/global_operations/credentials.rb +1 -1
  78. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +1 -1
  79. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +1 -1
  80. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  81. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -1
  82. data/lib/google/cloud/compute/v1/global_operations.rb +1 -1
  83. data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +1 -1
  84. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  85. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +1 -1
  86. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  87. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -1
  88. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -1
  89. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +1 -1
  90. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  91. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  92. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +1 -1
  93. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +1 -1
  94. data/lib/google/cloud/compute/v1/health_checks/credentials.rb +1 -1
  95. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +1 -1
  96. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  97. data/lib/google/cloud/compute/v1/health_checks/rest.rb +1 -1
  98. data/lib/google/cloud/compute/v1/health_checks.rb +1 -1
  99. data/lib/google/cloud/compute/v1/hosts/credentials.rb +52 -0
  100. data/lib/google/cloud/compute/v1/hosts/rest/client.rb +755 -0
  101. data/lib/google/cloud/compute/v1/hosts/rest/service_stub.rb +273 -0
  102. data/lib/google/cloud/compute/v1/hosts/rest.rb +51 -0
  103. data/lib/google/cloud/compute/v1/hosts.rb +47 -0
  104. data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +1 -1
  105. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +1 -1
  106. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  107. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +1 -1
  108. data/lib/google/cloud/compute/v1/image_family_views.rb +1 -1
  109. data/lib/google/cloud/compute/v1/images/credentials.rb +1 -1
  110. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  111. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  112. data/lib/google/cloud/compute/v1/images/rest.rb +1 -1
  113. data/lib/google/cloud/compute/v1/images.rb +1 -1
  114. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +1 -1
  115. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +1 -1
  116. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +1 -1
  117. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +1 -1
  118. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +1 -1
  119. data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +1 -1
  120. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  121. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  122. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +1 -1
  123. data/lib/google/cloud/compute/v1/instance_group_managers.rb +1 -1
  124. data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +1 -1
  125. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +1 -1
  126. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  127. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +1 -1
  128. data/lib/google/cloud/compute/v1/instance_groups.rb +1 -1
  129. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +1 -1
  130. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +1 -1
  131. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +1 -1
  132. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +1 -1
  133. data/lib/google/cloud/compute/v1/instance_settings_service.rb +1 -1
  134. data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +1 -1
  135. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
  136. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  137. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +1 -1
  138. data/lib/google/cloud/compute/v1/instance_templates.rb +1 -1
  139. data/lib/google/cloud/compute/v1/instances/credentials.rb +1 -1
  140. data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -3
  141. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  142. data/lib/google/cloud/compute/v1/instances/rest.rb +1 -1
  143. data/lib/google/cloud/compute/v1/instances.rb +1 -1
  144. data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +1 -1
  145. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1 -1
  146. data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +1 -1
  147. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +1 -1
  148. data/lib/google/cloud/compute/v1/instant_snapshots.rb +1 -1
  149. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/credentials.rb +1 -1
  150. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +1 -1
  151. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/service_stub.rb +1 -1
  152. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest.rb +1 -1
  153. data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +1 -1
  154. data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +1 -1
  155. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +1 -1
  156. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
  157. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +1 -1
  158. data/lib/google/cloud/compute/v1/interconnect_attachments.rb +1 -1
  159. data/lib/google/cloud/compute/v1/interconnect_groups/credentials.rb +1 -1
  160. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +1 -1
  161. data/lib/google/cloud/compute/v1/interconnect_groups/rest/service_stub.rb +1 -1
  162. data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +1 -1
  163. data/lib/google/cloud/compute/v1/interconnect_groups.rb +1 -1
  164. data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +1 -1
  165. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  166. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  167. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +1 -1
  168. data/lib/google/cloud/compute/v1/interconnect_locations.rb +1 -1
  169. data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +1 -1
  170. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
  171. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +1 -1
  172. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +1 -1
  173. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +1 -1
  174. data/lib/google/cloud/compute/v1/interconnects/credentials.rb +1 -1
  175. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  176. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -1
  177. data/lib/google/cloud/compute/v1/interconnects/rest.rb +1 -1
  178. data/lib/google/cloud/compute/v1/interconnects.rb +1 -1
  179. data/lib/google/cloud/compute/v1/license_codes/credentials.rb +1 -1
  180. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +1 -1
  181. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  182. data/lib/google/cloud/compute/v1/license_codes/rest.rb +1 -1
  183. data/lib/google/cloud/compute/v1/license_codes.rb +1 -1
  184. data/lib/google/cloud/compute/v1/licenses/credentials.rb +1 -1
  185. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  186. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  187. data/lib/google/cloud/compute/v1/licenses/rest.rb +1 -1
  188. data/lib/google/cloud/compute/v1/licenses.rb +1 -1
  189. data/lib/google/cloud/compute/v1/machine_images/credentials.rb +1 -1
  190. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
  191. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  192. data/lib/google/cloud/compute/v1/machine_images/rest.rb +1 -1
  193. data/lib/google/cloud/compute/v1/machine_images.rb +1 -1
  194. data/lib/google/cloud/compute/v1/machine_types/credentials.rb +1 -1
  195. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +1 -1
  196. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  197. data/lib/google/cloud/compute/v1/machine_types/rest.rb +1 -1
  198. data/lib/google/cloud/compute/v1/machine_types.rb +1 -1
  199. data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +1 -1
  200. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +1 -1
  201. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +1 -1
  202. data/lib/google/cloud/compute/v1/network_attachments/rest.rb +1 -1
  203. data/lib/google/cloud/compute/v1/network_attachments.rb +1 -1
  204. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +1 -1
  205. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +1 -1
  206. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  207. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +1 -1
  208. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +1 -1
  209. data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +1 -1
  210. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +1 -1
  211. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  212. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +1 -1
  213. data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +1 -1
  214. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +1 -1
  215. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
  216. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  217. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +1 -1
  218. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +1 -1
  219. data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +1 -1
  220. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +1 -1
  221. data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +1 -1
  222. data/lib/google/cloud/compute/v1/network_profiles/rest.rb +1 -1
  223. data/lib/google/cloud/compute/v1/network_profiles.rb +1 -1
  224. data/lib/google/cloud/compute/v1/networks/credentials.rb +1 -1
  225. data/lib/google/cloud/compute/v1/networks/rest/client.rb +1 -1
  226. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  227. data/lib/google/cloud/compute/v1/networks/rest.rb +1 -1
  228. data/lib/google/cloud/compute/v1/networks.rb +1 -1
  229. data/lib/google/cloud/compute/v1/node_groups/credentials.rb +1 -1
  230. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1 -1
  231. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  232. data/lib/google/cloud/compute/v1/node_groups/rest.rb +1 -1
  233. data/lib/google/cloud/compute/v1/node_groups.rb +1 -1
  234. data/lib/google/cloud/compute/v1/node_templates/credentials.rb +1 -1
  235. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +1 -1
  236. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  237. data/lib/google/cloud/compute/v1/node_templates/rest.rb +1 -1
  238. data/lib/google/cloud/compute/v1/node_templates.rb +1 -1
  239. data/lib/google/cloud/compute/v1/node_types/credentials.rb +1 -1
  240. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +1 -1
  241. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  242. data/lib/google/cloud/compute/v1/node_types/rest.rb +1 -1
  243. data/lib/google/cloud/compute/v1/node_types.rb +1 -1
  244. data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +1 -1
  245. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +1 -1
  246. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  247. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +1 -1
  248. data/lib/google/cloud/compute/v1/packet_mirrorings.rb +1 -1
  249. data/lib/google/cloud/compute/v1/project_views/credentials.rb +53 -0
  250. data/lib/google/cloud/compute/v1/project_views/rest/client.rb +438 -0
  251. data/lib/google/cloud/compute/v1/project_views/rest/service_stub.rb +143 -0
  252. data/lib/google/cloud/compute/v1/project_views/rest.rb +51 -0
  253. data/lib/google/cloud/compute/v1/project_views.rb +47 -0
  254. data/lib/google/cloud/compute/v1/projects/credentials.rb +1 -1
  255. data/lib/google/cloud/compute/v1/projects/rest/client.rb +1 -1
  256. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  257. data/lib/google/cloud/compute/v1/projects/rest.rb +1 -1
  258. data/lib/google/cloud/compute/v1/projects.rb +1 -1
  259. data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +1 -1
  260. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  261. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  262. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +1 -1
  263. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +1 -1
  264. data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +1 -1
  265. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +1 -1
  266. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  267. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +1 -1
  268. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +1 -1
  269. data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +1 -1
  270. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  271. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  272. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +1 -1
  273. data/lib/google/cloud/compute/v1/region_autoscalers.rb +1 -1
  274. data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +1 -1
  275. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
  276. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
  277. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +1 -1
  278. data/lib/google/cloud/compute/v1/region_backend_services.rb +1 -1
  279. data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +1 -1
  280. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +1 -1
  281. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  282. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +1 -1
  283. data/lib/google/cloud/compute/v1/region_commitments.rb +1 -1
  284. data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +1 -1
  285. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  286. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  287. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +1 -1
  288. data/lib/google/cloud/compute/v1/region_disk_types.rb +1 -1
  289. data/lib/google/cloud/compute/v1/region_disks/credentials.rb +1 -1
  290. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  291. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  292. data/lib/google/cloud/compute/v1/region_disks/rest.rb +1 -1
  293. data/lib/google/cloud/compute/v1/region_disks.rb +1 -1
  294. data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +1 -1
  295. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  296. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  297. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +1 -1
  298. data/lib/google/cloud/compute/v1/region_health_check_services.rb +1 -1
  299. data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +1 -1
  300. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  301. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  302. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +1 -1
  303. data/lib/google/cloud/compute/v1/region_health_checks.rb +1 -1
  304. data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +1 -1
  305. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  306. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  307. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +1 -1
  308. data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +1 -1
  309. data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +1 -1
  310. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +1 -1
  311. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  312. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +1 -1
  313. data/lib/google/cloud/compute/v1/region_instance_groups.rb +1 -1
  314. data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +1 -1
  315. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
  316. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +1 -1
  317. data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +1 -1
  318. data/lib/google/cloud/compute/v1/region_instance_templates.rb +1 -1
  319. data/lib/google/cloud/compute/v1/region_instances/credentials.rb +1 -1
  320. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -1
  321. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  322. data/lib/google/cloud/compute/v1/region_instances/rest.rb +1 -1
  323. data/lib/google/cloud/compute/v1/region_instances.rb +1 -1
  324. data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +1 -1
  325. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1 -1
  326. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +1 -1
  327. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +1 -1
  328. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +1 -1
  329. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +1 -1
  330. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
  331. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  332. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +1 -1
  333. data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +1 -1
  334. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +1 -1
  335. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
  336. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
  337. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +1 -1
  338. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +1 -1
  339. data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +1 -1
  340. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  341. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  342. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +1 -1
  343. data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +1 -1
  344. data/lib/google/cloud/compute/v1/region_operations/credentials.rb +1 -1
  345. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  346. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +1 -1
  347. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  348. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -1
  349. data/lib/google/cloud/compute/v1/region_operations.rb +1 -1
  350. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +1 -1
  351. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  352. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  353. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +1 -1
  354. data/lib/google/cloud/compute/v1/region_security_policies.rb +1 -1
  355. data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +1 -1
  356. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  357. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  358. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +1 -1
  359. data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +1 -1
  360. data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +1 -1
  361. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +1 -1
  362. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
  363. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +1 -1
  364. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +1 -1
  365. data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +1 -1
  366. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  367. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  368. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +1 -1
  369. data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +1 -1
  370. data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +1 -1
  371. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
  372. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  373. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +1 -1
  374. data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +1 -1
  375. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +1 -1
  376. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
  377. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
  378. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +1 -1
  379. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +1 -1
  380. data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +1 -1
  381. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  382. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  383. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +1 -1
  384. data/lib/google/cloud/compute/v1/region_url_maps.rb +1 -1
  385. data/lib/google/cloud/compute/v1/region_zones/credentials.rb +1 -1
  386. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
  387. data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +1 -1
  388. data/lib/google/cloud/compute/v1/region_zones/rest.rb +1 -1
  389. data/lib/google/cloud/compute/v1/region_zones.rb +1 -1
  390. data/lib/google/cloud/compute/v1/regions/credentials.rb +1 -1
  391. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  392. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  393. data/lib/google/cloud/compute/v1/regions/rest.rb +1 -1
  394. data/lib/google/cloud/compute/v1/regions.rb +1 -1
  395. data/lib/google/cloud/compute/v1/reliability_risks/credentials.rb +53 -0
  396. data/lib/google/cloud/compute/v1/reliability_risks/rest/client.rb +611 -0
  397. data/lib/google/cloud/compute/v1/reliability_risks/rest/service_stub.rb +204 -0
  398. data/lib/google/cloud/compute/v1/reliability_risks/rest.rb +51 -0
  399. data/lib/google/cloud/compute/v1/reliability_risks.rb +47 -0
  400. data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +1 -1
  401. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +1 -1
  402. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +1 -1
  403. data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +1 -1
  404. data/lib/google/cloud/compute/v1/reservation_blocks.rb +1 -1
  405. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +108 -0
  406. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +64 -0
  407. data/lib/google/cloud/compute/v1/reservation_sub_blocks/credentials.rb +1 -1
  408. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +1 -1
  409. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +1 -1
  410. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest.rb +1 -1
  411. data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +1 -1
  412. data/lib/google/cloud/compute/v1/reservations/credentials.rb +1 -1
  413. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +1 -1
  414. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  415. data/lib/google/cloud/compute/v1/reservations/rest.rb +1 -1
  416. data/lib/google/cloud/compute/v1/reservations.rb +1 -1
  417. data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +1 -1
  418. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +1 -1
  419. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  420. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +1 -1
  421. data/lib/google/cloud/compute/v1/resource_policies.rb +1 -1
  422. data/lib/google/cloud/compute/v1/rest.rb +4 -1
  423. data/lib/google/cloud/compute/v1/routers/credentials.rb +1 -1
  424. data/lib/google/cloud/compute/v1/routers/rest/client.rb +1 -1
  425. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  426. data/lib/google/cloud/compute/v1/routers/rest.rb +1 -1
  427. data/lib/google/cloud/compute/v1/routers.rb +1 -1
  428. data/lib/google/cloud/compute/v1/routes/credentials.rb +1 -1
  429. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  430. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  431. data/lib/google/cloud/compute/v1/routes/rest.rb +1 -1
  432. data/lib/google/cloud/compute/v1/routes.rb +1 -1
  433. data/lib/google/cloud/compute/v1/security_policies/credentials.rb +1 -1
  434. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +1 -1
  435. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
  436. data/lib/google/cloud/compute/v1/security_policies/rest.rb +1 -1
  437. data/lib/google/cloud/compute/v1/security_policies.rb +1 -1
  438. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +1 -1
  439. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +1 -1
  440. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  441. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +1 -1
  442. data/lib/google/cloud/compute/v1/service_attachments.rb +1 -1
  443. data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +1 -1
  444. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +1 -1
  445. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +1 -1
  446. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +1 -1
  447. data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +1 -1
  448. data/lib/google/cloud/compute/v1/snapshots/credentials.rb +1 -1
  449. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  450. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  451. data/lib/google/cloud/compute/v1/snapshots/rest.rb +1 -1
  452. data/lib/google/cloud/compute/v1/snapshots.rb +1 -1
  453. data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +1 -1
  454. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +1 -1
  455. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  456. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +1 -1
  457. data/lib/google/cloud/compute/v1/ssl_certificates.rb +1 -1
  458. data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +1 -1
  459. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +1 -1
  460. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
  461. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +1 -1
  462. data/lib/google/cloud/compute/v1/ssl_policies.rb +1 -1
  463. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +1 -1
  464. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +1 -1
  465. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +1 -1
  466. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +1 -1
  467. data/lib/google/cloud/compute/v1/storage_pool_types.rb +1 -1
  468. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +1 -1
  469. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1 -1
  470. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +1 -1
  471. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +1 -1
  472. data/lib/google/cloud/compute/v1/storage_pools.rb +1 -1
  473. data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +1 -1
  474. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1 -1
  475. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  476. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +1 -1
  477. data/lib/google/cloud/compute/v1/subnetworks.rb +1 -1
  478. data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +1 -1
  479. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  480. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  481. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +1 -1
  482. data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +1 -1
  483. data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +1 -1
  484. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +1 -1
  485. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  486. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +1 -1
  487. data/lib/google/cloud/compute/v1/target_http_proxies.rb +1 -1
  488. data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +1 -1
  489. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +1 -1
  490. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  491. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +1 -1
  492. data/lib/google/cloud/compute/v1/target_https_proxies.rb +1 -1
  493. data/lib/google/cloud/compute/v1/target_instances/credentials.rb +1 -1
  494. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +1 -1
  495. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  496. data/lib/google/cloud/compute/v1/target_instances/rest.rb +1 -1
  497. data/lib/google/cloud/compute/v1/target_instances.rb +1 -1
  498. data/lib/google/cloud/compute/v1/target_pools/credentials.rb +1 -1
  499. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1 -1
  500. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  501. data/lib/google/cloud/compute/v1/target_pools/rest.rb +1 -1
  502. data/lib/google/cloud/compute/v1/target_pools.rb +1 -1
  503. data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +1 -1
  504. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
  505. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  506. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +1 -1
  507. data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +1 -1
  508. data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +1 -1
  509. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
  510. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  511. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +1 -1
  512. data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +1 -1
  513. data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +1 -1
  514. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +1 -1
  515. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
  516. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +1 -1
  517. data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +1 -1
  518. data/lib/google/cloud/compute/v1/url_maps/credentials.rb +1 -1
  519. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +1 -1
  520. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  521. data/lib/google/cloud/compute/v1/url_maps/rest.rb +1 -1
  522. data/lib/google/cloud/compute/v1/url_maps.rb +1 -1
  523. data/lib/google/cloud/compute/v1/version.rb +1 -1
  524. data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +1 -1
  525. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +1 -1
  526. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  527. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +1 -1
  528. data/lib/google/cloud/compute/v1/vpn_gateways.rb +1 -1
  529. data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +1 -1
  530. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +1 -1
  531. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
  532. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +1 -1
  533. data/lib/google/cloud/compute/v1/vpn_tunnels.rb +1 -1
  534. data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +1 -1
  535. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  536. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +1 -1
  537. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  538. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -1
  539. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -1
  540. data/lib/google/cloud/compute/v1/zones/credentials.rb +1 -1
  541. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  542. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  543. data/lib/google/cloud/compute/v1/zones/rest.rb +1 -1
  544. data/lib/google/cloud/compute/v1/zones.rb +1 -1
  545. data/lib/google/cloud/compute/v1.rb +4 -1
  546. data/lib/google-cloud-compute-v1.rb +1 -1
  547. data/proto_docs/README.md +1 -1
  548. data/proto_docs/google/api/client.rb +1 -1
  549. data/proto_docs/google/api/field_behavior.rb +1 -1
  550. data/proto_docs/google/api/launch_stage.rb +1 -1
  551. data/proto_docs/google/api/resource.rb +1 -1
  552. data/proto_docs/google/cloud/compute/v1/compute.rb +2269 -480
  553. data/proto_docs/google/cloud/extended_operations.rb +1 -1
  554. data/proto_docs/google/protobuf/any.rb +1 -1
  555. data/proto_docs/google/protobuf/duration.rb +1 -1
  556. metadata +23 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 624b7dabff8716c7aab692612ff437d732ed6136f161d7f43e24d2714f957dc0
4
- data.tar.gz: 3e316fb50f3d90f57b44a4a466c63847a0767cd95b28b7ca3421bc1da7e31d00
3
+ metadata.gz: d39140030c4872b1a315660af24e344e7bd8f01e64ebcd8248d5adc3ed62cba9
4
+ data.tar.gz: cb82f6b5eda90865a7829a1233f787b9a4ba055aef420207fcbb0e7d2d4ca9f4
5
5
  SHA512:
6
- metadata.gz: 8a4a46ed753bf1209dfd3b061f38d2e4d92df954b811219e77a8a5023ab43f5fcef0d244d84378ff5f8536c4666f36b7041e42d76136ca1422f8bdc99bd2c9f2
7
- data.tar.gz: 9adb2cfa0f4c3dc8d7e7ea3f54a7874472b5877372adcef08b3439a0ef46106a11d998a9ec19461b0e35d68e9ec676aa2eb1e7022fc1844a4fa9f106bc3e75de
6
+ metadata.gz: 9c41b4fffa8ce15fdc0decb8b6d0aaf9e256951095042512d39cc462df3cdf3224dfc43309eab198625efca26ba6a3b82662e6ee8db4148dd51a454548c6be16
7
+ data.tar.gz: 6fcb0cb1c5cc6a1d81c752bc7da55ea92f3ad619d480a0f4e06a684ab734ffb7e0bc1ee1ec02c5c49dae482a9269b7263138cc8a195affd292f969ca09f7fd98
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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -72,6 +72,10 @@ module Google
72
72
 
73
73
  default_config.rpcs.calendar_mode.timeout = 600.0
74
74
 
75
+ default_config.rpcs.capacity.timeout = 600.0
76
+
77
+ default_config.rpcs.capacity_history.timeout = 600.0
78
+
75
79
  default_config
76
80
  end
77
81
  yield @configure if block_given?
@@ -261,6 +265,172 @@ module Google
261
265
  raise ::Google::Cloud::Error.from_error(e)
262
266
  end
263
267
 
268
+ ##
269
+ # Advice on making real-time decisions (such as choosing zone or
270
+ # machine types) during deployment to maximize your chances of obtaining
271
+ # capacity.
272
+ #
273
+ # @overload capacity(request, options = nil)
274
+ # Pass arguments to `capacity` via a request object, either of type
275
+ # {::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest} or an equivalent Hash.
276
+ #
277
+ # @param request [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest, ::Hash]
278
+ # A request object representing the call parameters. Required. To specify no
279
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
280
+ # @param options [::Gapic::CallOptions, ::Hash]
281
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
282
+ #
283
+ # @overload capacity(capacity_advice_request_resource: nil, project: nil, region: nil)
284
+ # Pass arguments to `capacity` via keyword arguments. Note that at
285
+ # least one keyword argument is required. To specify no parameters, or to keep all
286
+ # the default parameter values, pass an empty Hash as a request object (see above).
287
+ #
288
+ # @param capacity_advice_request_resource [::Google::Cloud::Compute::V1::CapacityAdviceRequest, ::Hash]
289
+ # The body resource for this request
290
+ # @param project [::String]
291
+ # Project ID for this request.
292
+ # @param region [::String]
293
+ # Name of the region for this request.
294
+ # @yield [result, operation] Access the result along with the TransportOperation object
295
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
296
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
297
+ #
298
+ # @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
299
+ #
300
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
301
+ #
302
+ # @example Basic example
303
+ # require "google/cloud/compute/v1"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Cloud::Compute::V1::CapacityAdviceRpcRequest.new
310
+ #
311
+ # # Call the capacity method.
312
+ # result = client.capacity request
313
+ #
314
+ # # The returned object is of type Google::Cloud::Compute::V1::CapacityAdviceResponse.
315
+ # p result
316
+ #
317
+ def capacity request, options = nil
318
+ raise ::ArgumentError, "request must be provided" if request.nil?
319
+
320
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest
321
+
322
+ # Converts hash and nil to an options object
323
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
324
+
325
+ # Customize the options with defaults
326
+ call_metadata = @config.rpcs.capacity.metadata.to_h
327
+
328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
329
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
330
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
331
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
332
+ transports_version_send: [:rest]
333
+
334
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
+
337
+ options.apply_defaults timeout: @config.rpcs.capacity.timeout,
338
+ metadata: call_metadata,
339
+ retry_policy: @config.rpcs.capacity.retry_policy
340
+
341
+ options.apply_defaults timeout: @config.timeout,
342
+ metadata: @config.metadata,
343
+ retry_policy: @config.retry_policy
344
+
345
+ @advice_stub.capacity request, options do |result, operation|
346
+ yield result, operation if block_given?
347
+ end
348
+ rescue ::Gapic::Rest::Error => e
349
+ raise ::Google::Cloud::Error.from_error(e)
350
+ end
351
+
352
+ ##
353
+ # Gets the capacity history.
354
+ #
355
+ # @overload capacity_history(request, options = nil)
356
+ # Pass arguments to `capacity_history` via a request object, either of type
357
+ # {::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest} or an equivalent Hash.
358
+ #
359
+ # @param request [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest, ::Hash]
360
+ # A request object representing the call parameters. Required. To specify no
361
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
362
+ # @param options [::Gapic::CallOptions, ::Hash]
363
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
364
+ #
365
+ # @overload capacity_history(capacity_history_request_resource: nil, project: nil, region: nil)
366
+ # Pass arguments to `capacity_history` via keyword arguments. Note that at
367
+ # least one keyword argument is required. To specify no parameters, or to keep all
368
+ # the default parameter values, pass an empty Hash as a request object (see above).
369
+ #
370
+ # @param capacity_history_request_resource [::Google::Cloud::Compute::V1::CapacityHistoryRequest, ::Hash]
371
+ # The body resource for this request
372
+ # @param project [::String]
373
+ # Project ID for this request.
374
+ # @param region [::String]
375
+ # Name of the region for this request.
376
+ # @yield [result, operation] Access the result along with the TransportOperation object
377
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
378
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
379
+ #
380
+ # @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
381
+ #
382
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
383
+ #
384
+ # @example Basic example
385
+ # require "google/cloud/compute/v1"
386
+ #
387
+ # # Create a client object. The client can be reused for multiple calls.
388
+ # client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
389
+ #
390
+ # # Create a request. To set request fields, pass in keyword arguments.
391
+ # request = Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest.new
392
+ #
393
+ # # Call the capacity_history method.
394
+ # result = client.capacity_history request
395
+ #
396
+ # # The returned object is of type Google::Cloud::Compute::V1::CapacityHistoryResponse.
397
+ # p result
398
+ #
399
+ def capacity_history request, options = nil
400
+ raise ::ArgumentError, "request must be provided" if request.nil?
401
+
402
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest
403
+
404
+ # Converts hash and nil to an options object
405
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
406
+
407
+ # Customize the options with defaults
408
+ call_metadata = @config.rpcs.capacity_history.metadata.to_h
409
+
410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
413
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
414
+ transports_version_send: [:rest]
415
+
416
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
417
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
+
419
+ options.apply_defaults timeout: @config.rpcs.capacity_history.timeout,
420
+ metadata: call_metadata,
421
+ retry_policy: @config.rpcs.capacity_history.retry_policy
422
+
423
+ options.apply_defaults timeout: @config.timeout,
424
+ metadata: @config.metadata,
425
+ retry_policy: @config.retry_policy
426
+
427
+ @advice_stub.capacity_history request, options do |result, operation|
428
+ yield result, operation if block_given?
429
+ end
430
+ rescue ::Gapic::Rest::Error => e
431
+ raise ::Google::Cloud::Error.from_error(e)
432
+ end
433
+
264
434
  ##
265
435
  # Configuration class for the Advice REST API.
266
436
  #
@@ -414,11 +584,25 @@ module Google
414
584
  # @return [::Gapic::Config::Method]
415
585
  #
416
586
  attr_reader :calendar_mode
587
+ ##
588
+ # RPC-specific configuration for `capacity`
589
+ # @return [::Gapic::Config::Method]
590
+ #
591
+ attr_reader :capacity
592
+ ##
593
+ # RPC-specific configuration for `capacity_history`
594
+ # @return [::Gapic::Config::Method]
595
+ #
596
+ attr_reader :capacity_history
417
597
 
418
598
  # @private
419
599
  def initialize parent_rpcs = nil
420
600
  calendar_mode_config = parent_rpcs.calendar_mode if parent_rpcs.respond_to? :calendar_mode
421
601
  @calendar_mode = ::Gapic::Config::Method.new calendar_mode_config
602
+ capacity_config = parent_rpcs.capacity if parent_rpcs.respond_to? :capacity
603
+ @capacity = ::Gapic::Config::Method.new capacity_config
604
+ capacity_history_config = parent_rpcs.capacity_history if parent_rpcs.respond_to? :capacity_history
605
+ @capacity_history = ::Gapic::Config::Method.new capacity_history_config
422
606
 
423
607
  yield self if block_given?
424
608
  end
@@ -113,6 +113,86 @@ module Google
113
113
  end
114
114
  end
115
115
 
116
+ ##
117
+ # Baseline implementation for the capacity REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
129
+ # A result object deserialized from the server's reply
130
+ def capacity request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_capacity_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "capacity",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::Compute::V1::CapacityAdviceResponse.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the capacity_history REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
169
+ # A result object deserialized from the server's reply
170
+ def capacity_history request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_capacity_history_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "capacity_history",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::Compute::V1::CapacityHistoryResponse.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
116
196
  ##
117
197
  # @private
118
198
  #
@@ -135,6 +215,52 @@ module Google
135
215
  )
136
216
  transcoder.transcode request_pb
137
217
  end
218
+
219
+ ##
220
+ # @private
221
+ #
222
+ # GRPC transcoding helper method for the capacity REST call
223
+ #
224
+ # @param request_pb [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest]
225
+ # A request object representing the call parameters. Required.
226
+ # @return [Array(String, [String, nil], Hash{String => String})]
227
+ # Uri, Body, Query string parameters
228
+ def self.transcode_capacity_request request_pb
229
+ transcoder = Gapic::Rest::GrpcTranscoder.new
230
+ .with_bindings(
231
+ uri_method: :post,
232
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/advice/capacity",
233
+ body: "capacity_advice_request_resource",
234
+ matches: [
235
+ ["project", %r{^[^/]+/?$}, false],
236
+ ["region", %r{^[^/]+/?$}, false]
237
+ ]
238
+ )
239
+ transcoder.transcode request_pb
240
+ end
241
+
242
+ ##
243
+ # @private
244
+ #
245
+ # GRPC transcoding helper method for the capacity_history REST call
246
+ #
247
+ # @param request_pb [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest]
248
+ # A request object representing the call parameters. Required.
249
+ # @return [Array(String, [String, nil], Hash{String => String})]
250
+ # Uri, Body, Query string parameters
251
+ def self.transcode_capacity_history_request request_pb
252
+ transcoder = Gapic::Rest::GrpcTranscoder.new
253
+ .with_bindings(
254
+ uri_method: :post,
255
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/advice/capacityHistory",
256
+ body: "capacity_history_request_resource",
257
+ matches: [
258
+ ["project", %r{^[^/]+/?$}, false],
259
+ ["region", %r{^[^/]+/?$}, false]
260
+ ]
261
+ )
262
+ transcoder.transcode request_pb
263
+ end
138
264
  end
139
265
  end
140
266
  end
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.