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
@@ -0,0 +1,750 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/compute/v1/compute_pb"
21
+ require "google/cloud/compute/v1/hosts/rest/service_stub"
22
+ require "google/cloud/compute/v1/zone_operations/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module Compute
27
+ module V1
28
+ module Hosts
29
+ module Rest
30
+ ##
31
+ # REST client for the Hosts service.
32
+ #
33
+ # The Hosts API.
34
+ #
35
+ # This client uses Hosts version 2026-09-01.
36
+ #
37
+ class Client
38
+ # @private
39
+ API_VERSION = "2026-09-01"
40
+
41
+ # @private
42
+ DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
43
+
44
+ # @private
45
+ attr_reader :hosts_stub
46
+
47
+ ##
48
+ # Configure the Hosts Client class.
49
+ #
50
+ # See {::Google::Cloud::Compute::V1::Hosts::Rest::Client::Configuration}
51
+ # for a description of the configuration fields.
52
+ #
53
+ # @example
54
+ #
55
+ # # Modify the configuration for all Hosts clients
56
+ # ::Google::Cloud::Compute::V1::Hosts::Rest::Client.configure do |config|
57
+ # config.timeout = 10.0
58
+ # end
59
+ #
60
+ # @yield [config] Configure the Client client.
61
+ # @yieldparam config [Client::Configuration]
62
+ #
63
+ # @return [Client::Configuration]
64
+ #
65
+ def self.configure
66
+ @configure ||= begin
67
+ namespace = ["Google", "Cloud", "Compute", "V1"]
68
+ parent_config = while namespace.any?
69
+ parent_name = namespace.join "::"
70
+ parent_const = const_get parent_name
71
+ break parent_const.configure if parent_const.respond_to? :configure
72
+ namespace.pop
73
+ end
74
+ default_config = Client::Configuration.new parent_config
75
+
76
+ default_config.rpcs.get.timeout = 600.0
77
+ default_config.rpcs.get.retry_policy = {
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
79
+ }
80
+
81
+ default_config.rpcs.get_version.timeout = 600.0
82
+
83
+ default_config.rpcs.list.timeout = 600.0
84
+ default_config.rpcs.list.retry_policy = {
85
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
86
+ }
87
+
88
+ default_config
89
+ end
90
+ yield @configure if block_given?
91
+ @configure
92
+ end
93
+
94
+ ##
95
+ # Configure the Hosts Client instance.
96
+ #
97
+ # The configuration is set to the derived mode, meaning that values can be changed,
98
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
99
+ # should be made on {Client.configure}.
100
+ #
101
+ # See {::Google::Cloud::Compute::V1::Hosts::Rest::Client::Configuration}
102
+ # for a description of the configuration fields.
103
+ #
104
+ # @yield [config] Configure the Client client.
105
+ # @yieldparam config [Client::Configuration]
106
+ #
107
+ # @return [Client::Configuration]
108
+ #
109
+ def configure
110
+ yield @config if block_given?
111
+ @config
112
+ end
113
+
114
+ ##
115
+ # The effective universe domain
116
+ #
117
+ # @return [String]
118
+ #
119
+ def universe_domain
120
+ @hosts_stub.universe_domain
121
+ end
122
+
123
+ ##
124
+ # Create a new Hosts REST client object.
125
+ #
126
+ # @example
127
+ #
128
+ # # Create a client using the default configuration
129
+ # client = ::Google::Cloud::Compute::V1::Hosts::Rest::Client.new
130
+ #
131
+ # # Create a client using a custom configuration
132
+ # client = ::Google::Cloud::Compute::V1::Hosts::Rest::Client.new do |config|
133
+ # config.timeout = 10.0
134
+ # end
135
+ #
136
+ # @yield [config] Configure the Hosts client.
137
+ # @yieldparam config [Client::Configuration]
138
+ #
139
+ def initialize
140
+ # Create the configuration object
141
+ @config = Configuration.new Client.configure
142
+
143
+ # Yield the configuration if needed
144
+ yield @config if block_given?
145
+
146
+ # Create credentials
147
+ credentials = @config.credentials
148
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
+ # but only if the default endpoint does not have a region prefix.
150
+ enable_self_signed_jwt = @config.endpoint.nil? ||
151
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
152
+ !@config.endpoint.split(".").first.include?("-"))
153
+ credentials ||= Credentials.default scope: @config.scope,
154
+ enable_self_signed_jwt: enable_self_signed_jwt
155
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
156
+ credentials = Credentials.new credentials, scope: @config.scope
157
+ end
158
+
159
+ @quota_project_id = @config.quota_project
160
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
161
+
162
+ @zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
163
+ config.credentials = credentials
164
+ config.quota_project = @quota_project_id
165
+ config.endpoint = @config.endpoint
166
+ config.universe_domain = @config.universe_domain
167
+ end
168
+
169
+ @hosts_stub = ::Google::Cloud::Compute::V1::Hosts::Rest::ServiceStub.new(
170
+ endpoint: @config.endpoint,
171
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
172
+ universe_domain: @config.universe_domain,
173
+ credentials: credentials,
174
+ logger: @config.logger
175
+ )
176
+
177
+ @hosts_stub.logger(stub: true)&.info do |entry|
178
+ entry.set_system_name
179
+ entry.set_service
180
+ entry.message = "Created client for #{entry.service}"
181
+ entry.set_credentials_fields credentials
182
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
183
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
184
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
185
+ end
186
+ end
187
+
188
+ ##
189
+ # Get the associated client for long-running operations via ZoneOperations.
190
+ #
191
+ # @return [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client]
192
+ #
193
+ attr_reader :zone_operations
194
+
195
+ ##
196
+ # The logger used for request/response debug logging.
197
+ #
198
+ # @return [Logger]
199
+ #
200
+ def logger
201
+ @hosts_stub.logger
202
+ end
203
+
204
+ # Service calls
205
+
206
+ ##
207
+ # Retrieves information about the specified host.
208
+ #
209
+ # @overload get(request, options = nil)
210
+ # Pass arguments to `get` via a request object, either of type
211
+ # {::Google::Cloud::Compute::V1::GetHostRequest} or an equivalent Hash.
212
+ #
213
+ # @param request [::Google::Cloud::Compute::V1::GetHostRequest, ::Hash]
214
+ # A request object representing the call parameters. Required. To specify no
215
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
216
+ # @param options [::Gapic::CallOptions, ::Hash]
217
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
218
+ #
219
+ # @overload get(association: nil, host: nil, project: nil, zone: nil)
220
+ # Pass arguments to `get` via keyword arguments. Note that at
221
+ # least one keyword argument is required. To specify no parameters, or to keep all
222
+ # the default parameter values, pass an empty Hash as a request object (see above).
223
+ #
224
+ # @param association [::String]
225
+ # The parent resource association for the Host. This field specifies the
226
+ # hierarchical context (e.g., reservation, block, sub-block) when
227
+ # accessing the host. For example, reservations/reservation_name,
228
+ # reservations/reservation_name/reservationBlocks/reservation_block_name or
229
+ # reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.
230
+ # @param host [::String]
231
+ # The name of the host, formatted as RFC1035 or a resource ID
232
+ # number.
233
+ # @param project [::String]
234
+ # The project ID for this request.
235
+ # @param zone [::String]
236
+ # The name of the zone for this request, formatted as RFC1035.
237
+ # @yield [result, operation] Access the result along with the TransportOperation object
238
+ # @yieldparam result [::Google::Cloud::Compute::V1::Host]
239
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
240
+ #
241
+ # @return [::Google::Cloud::Compute::V1::Host]
242
+ #
243
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
244
+ #
245
+ # @example Basic example
246
+ # require "google/cloud/compute/v1"
247
+ #
248
+ # # Create a client object. The client can be reused for multiple calls.
249
+ # client = Google::Cloud::Compute::V1::Hosts::Rest::Client.new
250
+ #
251
+ # # Create a request. To set request fields, pass in keyword arguments.
252
+ # request = Google::Cloud::Compute::V1::GetHostRequest.new
253
+ #
254
+ # # Call the get method.
255
+ # result = client.get request
256
+ #
257
+ # # The returned object is of type Google::Cloud::Compute::V1::Host.
258
+ # p result
259
+ #
260
+ def get request, options = nil
261
+ raise ::ArgumentError, "request must be provided" if request.nil?
262
+
263
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetHostRequest
264
+
265
+ # Converts hash and nil to an options object
266
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
267
+
268
+ # Customize the options with defaults
269
+ call_metadata = @config.rpcs.get.metadata.to_h
270
+
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
272
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
273
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
274
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
275
+ transports_version_send: [:rest]
276
+
277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
+
280
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
281
+ metadata: call_metadata,
282
+ retry_policy: @config.rpcs.get.retry_policy
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
286
+ retry_policy: @config.retry_policy
287
+
288
+ @hosts_stub.get request, options do |result, operation|
289
+ yield result, operation if block_given?
290
+ end
291
+ rescue ::Gapic::Rest::Error => e
292
+ raise ::Google::Cloud::Error.from_error(e)
293
+ end
294
+
295
+ ##
296
+ # Allows customers to get SBOM versions of a host.
297
+ #
298
+ # @overload get_version(request, options = nil)
299
+ # Pass arguments to `get_version` via a request object, either of type
300
+ # {::Google::Cloud::Compute::V1::GetVersionHostRequest} or an equivalent Hash.
301
+ #
302
+ # @param request [::Google::Cloud::Compute::V1::GetVersionHostRequest, ::Hash]
303
+ # A request object representing the call parameters. Required. To specify no
304
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
305
+ # @param options [::Gapic::CallOptions, ::Hash]
306
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
307
+ #
308
+ # @overload get_version(association: nil, host: nil, hosts_get_version_request_resource: nil, project: nil, request_id: nil, zone: nil)
309
+ # Pass arguments to `get_version` via keyword arguments. Note that at
310
+ # least one keyword argument is required. To specify no parameters, or to keep all
311
+ # the default parameter values, pass an empty Hash as a request object (see above).
312
+ #
313
+ # @param association [::String]
314
+ # The parent resource association for the Host. This field specifies the
315
+ # hierarchical context (e.g., reservation, block, sub-block) when
316
+ # accessing the host.
317
+ # @param host [::String]
318
+ # The name of the host, formatted as RFC1035 or a resource ID
319
+ # number.
320
+ # @param hosts_get_version_request_resource [::Google::Cloud::Compute::V1::HostsGetVersionRequest, ::Hash]
321
+ # The body resource for this request
322
+ # @param project [::String]
323
+ # Project ID for this request.
324
+ # @param request_id [::String]
325
+ # An optional request ID to identify requests. Specify a unique request ID so
326
+ # that if you must retry your request, the server will know to ignore the
327
+ # request if it has already been completed.
328
+ # @param zone [::String]
329
+ # Name of the zone for this request. Zone name should conform to RFC1035.
330
+ # @yield [result, operation] Access the result along with the TransportOperation object
331
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
332
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
333
+ #
334
+ # @return [::Gapic::GenericLRO::Operation]
335
+ #
336
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
337
+ #
338
+ # @example Basic example
339
+ # require "google/cloud/compute/v1"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Cloud::Compute::V1::Hosts::Rest::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Cloud::Compute::V1::GetVersionHostRequest.new
346
+ #
347
+ # # Call the get_version method.
348
+ # result = client.get_version request
349
+ #
350
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
351
+ # p result
352
+ #
353
+ def get_version request, options = nil
354
+ raise ::ArgumentError, "request must be provided" if request.nil?
355
+
356
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetVersionHostRequest
357
+
358
+ # Converts hash and nil to an options object
359
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
360
+
361
+ # Customize the options with defaults
362
+ call_metadata = @config.rpcs.get_version.metadata.to_h
363
+
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
365
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
366
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
367
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
368
+ transports_version_send: [:rest]
369
+
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
371
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
372
+
373
+ options.apply_defaults timeout: @config.rpcs.get_version.timeout,
374
+ metadata: call_metadata,
375
+ retry_policy: @config.rpcs.get_version.retry_policy
376
+
377
+ options.apply_defaults timeout: @config.timeout,
378
+ metadata: @config.metadata,
379
+ retry_policy: @config.retry_policy
380
+
381
+ @hosts_stub.get_version request, options do |result, response|
382
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
383
+ operation: result,
384
+ client: zone_operations,
385
+ request_values: {
386
+ "project" => request.project,
387
+ "zone" => request.zone
388
+ },
389
+ options: options
390
+ )
391
+ yield result, response if block_given?
392
+ throw :response, result
393
+ end
394
+ rescue ::Gapic::Rest::Error => e
395
+ raise ::Google::Cloud::Error.from_error(e)
396
+ end
397
+
398
+ ##
399
+ # Retrieves a list of hosts.
400
+ #
401
+ # @overload list(request, options = nil)
402
+ # Pass arguments to `list` via a request object, either of type
403
+ # {::Google::Cloud::Compute::V1::ListHostsRequest} or an equivalent Hash.
404
+ #
405
+ # @param request [::Google::Cloud::Compute::V1::ListHostsRequest, ::Hash]
406
+ # A request object representing the call parameters. Required. To specify no
407
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
408
+ # @param options [::Gapic::CallOptions, ::Hash]
409
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
410
+ #
411
+ # @overload list(association: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, zone: nil)
412
+ # Pass arguments to `list` via keyword arguments. Note that at
413
+ # least one keyword argument is required. To specify no parameters, or to keep all
414
+ # the default parameter values, pass an empty Hash as a request object (see above).
415
+ #
416
+ # @param association [::String]
417
+ # The parent resource association for the Host. This field specifies the
418
+ # hierarchical context (e.g., reservation, block, sub-block) when
419
+ # accessing the host. For example, reservations/reservation_name,
420
+ # reservations/reservation_name/reservationBlocks/reservation_block_name or
421
+ # reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.
422
+ # @param filter [::String]
423
+ # A filter expression that filters resources listed in the response. Most
424
+ # Compute resources support two types of filter expressions:
425
+ # expressions that support regular expressions and expressions that follow
426
+ # API improvement proposal AIP-160.
427
+ # These two types of filter expressions cannot be mixed in one request.
428
+ #
429
+ # If you want to use AIP-160, your expression must specify the field name, an
430
+ # operator, and the value that you want to use for filtering. The value
431
+ # must be a string, a number, or a boolean. The operator
432
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
433
+ #
434
+ # For example, if you are filtering Compute Engine instances, you can
435
+ # exclude instances named `example-instance` by specifying
436
+ # `name != example-instance`.
437
+ #
438
+ # The `:*` comparison can be used to test whether a key has been defined.
439
+ # For example, to find all objects with `owner` label use:
440
+ # ```
441
+ # labels.owner:*
442
+ # ```
443
+ #
444
+ # You can also filter nested fields. For example, you could specify
445
+ # `scheduling.automaticRestart = false` to include instances only
446
+ # if they are not scheduled for automatic restarts. You can use filtering
447
+ # on nested fields to filter based onresource labels.
448
+ #
449
+ # To filter on multiple expressions, provide each separate expression within
450
+ # parentheses. For example:
451
+ # ```
452
+ # (scheduling.automaticRestart = true)
453
+ # (cpuPlatform = "Intel Skylake")
454
+ # ```
455
+ # By default, each expression is an `AND` expression. However, you
456
+ # can include `AND` and `OR` expressions explicitly.
457
+ # For example:
458
+ # ```
459
+ # (cpuPlatform = "Intel Skylake") OR
460
+ # (cpuPlatform = "Intel Broadwell") AND
461
+ # (scheduling.automaticRestart = true)
462
+ # ```
463
+ #
464
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
465
+ # (not equal) operator against a single un-parenthesized expression with or
466
+ # without quotes or against multiple parenthesized expressions. Examples:
467
+ #
468
+ # `fieldname eq unquoted literal`
469
+ # `fieldname eq 'single quoted literal'`
470
+ # `fieldname eq "double quoted literal"`
471
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
472
+ #
473
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
474
+ # The literal value must match the entire field.
475
+ #
476
+ # For example, to filter for instances that do not end with name "instance",
477
+ # you would use `name ne .*instance`.
478
+ #
479
+ # You cannot combine constraints on multiple fields using regular
480
+ # expressions.
481
+ # @param max_results [::Integer]
482
+ # The maximum number of results per page that should be returned.
483
+ # If the number of available results is larger than `maxResults`,
484
+ # Compute Engine returns a `nextPageToken` that can be used to get
485
+ # the next page of results in subsequent list requests. Acceptable values are
486
+ # `0` to `500`, inclusive. (Default: `500`)
487
+ # @param order_by [::String]
488
+ # Sorts list results by a certain order. By default, results
489
+ # are returned in alphanumerical order based on the resource name.
490
+ #
491
+ # You can also sort results in descending order based on the creation
492
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
493
+ # results based on the `creationTimestamp` field in
494
+ # reverse chronological order (newest result first). Use this to sort
495
+ # resources like operations so that the newest operation is returned first.
496
+ #
497
+ # Currently, only sorting by `name` or
498
+ # `creationTimestamp desc` is supported.
499
+ # @param page_token [::String]
500
+ # Specifies a page token to use. Set `pageToken` to the
501
+ # `nextPageToken` returned by a previous list request to get
502
+ # the next page of results.
503
+ # @param project [::String]
504
+ # The project ID for this request.
505
+ # @param zone [::String]
506
+ # The name of the zone for this request, formatted as RFC1035.
507
+ # @yield [result, operation] Access the result along with the TransportOperation object
508
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Host>]
509
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
510
+ #
511
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Host>]
512
+ #
513
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
514
+ #
515
+ # @example Basic example
516
+ # require "google/cloud/compute/v1"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::Compute::V1::Hosts::Rest::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::Compute::V1::ListHostsRequest.new
523
+ #
524
+ # # Call the list method.
525
+ # result = client.list request
526
+ #
527
+ # # The returned object is of type Google::Cloud::Compute::V1::HostsListResponse.
528
+ # p result
529
+ #
530
+ def list request, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request.nil?
532
+
533
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListHostsRequest
534
+
535
+ # Converts hash and nil to an options object
536
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
537
+
538
+ # Customize the options with defaults
539
+ call_metadata = @config.rpcs.list.metadata.to_h
540
+
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
542
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
543
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
544
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
545
+ transports_version_send: [:rest]
546
+
547
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
548
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
549
+
550
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
551
+ metadata: call_metadata,
552
+ retry_policy: @config.rpcs.list.retry_policy
553
+
554
+ options.apply_defaults timeout: @config.timeout,
555
+ metadata: @config.metadata,
556
+ retry_policy: @config.retry_policy
557
+
558
+ @hosts_stub.list request, options do |result, operation|
559
+ result = ::Gapic::Rest::PagedEnumerable.new @hosts_stub, :list, "items", request, result, options
560
+ yield result, operation if block_given?
561
+ throw :response, result
562
+ end
563
+ rescue ::Gapic::Rest::Error => e
564
+ raise ::Google::Cloud::Error.from_error(e)
565
+ end
566
+
567
+ ##
568
+ # Configuration class for the Hosts REST API.
569
+ #
570
+ # This class represents the configuration for Hosts REST,
571
+ # providing control over timeouts, retry behavior, logging, transport
572
+ # parameters, and other low-level controls. Certain parameters can also be
573
+ # applied individually to specific RPCs. See
574
+ # {::Google::Cloud::Compute::V1::Hosts::Rest::Client::Configuration::Rpcs}
575
+ # for a list of RPCs that can be configured independently.
576
+ #
577
+ # Configuration can be applied globally to all clients, or to a single client
578
+ # on construction.
579
+ #
580
+ # @example
581
+ #
582
+ # # Modify the global config, setting the timeout for
583
+ # # get to 20 seconds,
584
+ # # and all remaining timeouts to 10 seconds.
585
+ # ::Google::Cloud::Compute::V1::Hosts::Rest::Client.configure do |config|
586
+ # config.timeout = 10.0
587
+ # config.rpcs.get.timeout = 20.0
588
+ # end
589
+ #
590
+ # # Apply the above configuration only to a new client.
591
+ # client = ::Google::Cloud::Compute::V1::Hosts::Rest::Client.new do |config|
592
+ # config.timeout = 10.0
593
+ # config.rpcs.get.timeout = 20.0
594
+ # end
595
+ #
596
+ # @!attribute [rw] endpoint
597
+ # A custom service endpoint, as a hostname or hostname:port. The default is
598
+ # nil, indicating to use the default endpoint in the current universe domain.
599
+ # @return [::String,nil]
600
+ # @!attribute [rw] credentials
601
+ # Credentials to send with calls. You may provide any of the following types:
602
+ # * (`String`) The path to a service account key file in JSON format
603
+ # * (`Hash`) A service account key as a Hash
604
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
605
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
606
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
607
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
608
+ # * (`nil`) indicating no credentials
609
+ #
610
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
611
+ # external source for authentication to Google Cloud, you must validate it before
612
+ # providing it to a Google API client library. Providing an unvalidated credential
613
+ # configuration to Google APIs can compromise the security of your systems and data.
614
+ # For more information, refer to [Validate credential configurations from external
615
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
616
+ # @return [::Object]
617
+ # @!attribute [rw] scope
618
+ # The OAuth scopes
619
+ # @return [::Array<::String>]
620
+ # @!attribute [rw] lib_name
621
+ # The library name as recorded in instrumentation and logging
622
+ # @return [::String]
623
+ # @!attribute [rw] lib_version
624
+ # The library version as recorded in instrumentation and logging
625
+ # @return [::String]
626
+ # @!attribute [rw] timeout
627
+ # The call timeout in seconds.
628
+ # @return [::Numeric]
629
+ # @!attribute [rw] metadata
630
+ # Additional headers to be sent with the call.
631
+ # @return [::Hash{::Symbol=>::String}]
632
+ # @!attribute [rw] retry_policy
633
+ # The retry policy. The value is a hash with the following keys:
634
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
635
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
636
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
637
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
638
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
639
+ # trigger a retry.
640
+ # @return [::Hash]
641
+ # @!attribute [rw] quota_project
642
+ # A separate project against which to charge quota.
643
+ # @return [::String]
644
+ # @!attribute [rw] universe_domain
645
+ # The universe domain within which to make requests. This determines the
646
+ # default endpoint URL. The default value of nil uses the environment
647
+ # universe (usually the default "googleapis.com" universe).
648
+ # @return [::String,nil]
649
+ # @!attribute [rw] logger
650
+ # A custom logger to use for request/response debug logging, or the value
651
+ # `:default` (the default) to construct a default logger, or `nil` to
652
+ # explicitly disable logging.
653
+ # @return [::Logger,:default,nil]
654
+ #
655
+ class Configuration
656
+ extend ::Gapic::Config
657
+
658
+ # @private
659
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
660
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
661
+
662
+ config_attr :endpoint, nil, ::String, nil
663
+ config_attr :credentials, nil do |value|
664
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
665
+ allowed.any? { |klass| klass === value }
666
+ end
667
+ config_attr :scope, nil, ::String, ::Array, nil
668
+ config_attr :lib_name, nil, ::String, nil
669
+ config_attr :lib_version, nil, ::String, nil
670
+ config_attr :timeout, nil, ::Numeric, nil
671
+ config_attr :metadata, nil, ::Hash, nil
672
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
673
+ config_attr :quota_project, nil, ::String, nil
674
+ config_attr :universe_domain, nil, ::String, nil
675
+ config_attr :logger, :default, ::Logger, nil, :default
676
+
677
+ # @private
678
+ def initialize parent_config = nil
679
+ @parent_config = parent_config unless parent_config.nil?
680
+
681
+ yield self if block_given?
682
+ end
683
+
684
+ ##
685
+ # Configurations for individual RPCs
686
+ # @return [Rpcs]
687
+ #
688
+ def rpcs
689
+ @rpcs ||= begin
690
+ parent_rpcs = nil
691
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
692
+ Rpcs.new parent_rpcs
693
+ end
694
+ end
695
+
696
+ ##
697
+ # Configuration RPC class for the Hosts API.
698
+ #
699
+ # Includes fields providing the configuration for each RPC in this service.
700
+ # Each configuration object is of type `Gapic::Config::Method` and includes
701
+ # the following configuration fields:
702
+ #
703
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
704
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
705
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
706
+ # include the following keys:
707
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
708
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
709
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
710
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
711
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
712
+ # trigger a retry.
713
+ #
714
+ class Rpcs
715
+ ##
716
+ # RPC-specific configuration for `get`
717
+ # @return [::Gapic::Config::Method]
718
+ #
719
+ attr_reader :get
720
+ ##
721
+ # RPC-specific configuration for `get_version`
722
+ # @return [::Gapic::Config::Method]
723
+ #
724
+ attr_reader :get_version
725
+ ##
726
+ # RPC-specific configuration for `list`
727
+ # @return [::Gapic::Config::Method]
728
+ #
729
+ attr_reader :list
730
+
731
+ # @private
732
+ def initialize parent_rpcs = nil
733
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
734
+ @get = ::Gapic::Config::Method.new get_config
735
+ get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
736
+ @get_version = ::Gapic::Config::Method.new get_version_config
737
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
738
+ @list = ::Gapic::Config::Method.new list_config
739
+
740
+ yield self if block_given?
741
+ end
742
+ end
743
+ end
744
+ end
745
+ end
746
+ end
747
+ end
748
+ end
749
+ end
750
+ end