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