google-cloud-compute-v1 3.12.0 → 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 (402) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +5 -17
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +2 -0
  4. data/lib/google/cloud/compute/v1/accelerator_types.rb +2 -0
  5. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +5 -17
  6. data/lib/google/cloud/compute/v1/addresses/rest.rb +2 -0
  7. data/lib/google/cloud/compute/v1/addresses.rb +2 -0
  8. data/lib/google/cloud/compute/v1/advice/rest/client.rb +3 -1
  9. data/lib/google/cloud/compute/v1/advice/rest.rb +2 -0
  10. data/lib/google/cloud/compute/v1/advice.rb +2 -0
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +5 -17
  12. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +2 -0
  13. data/lib/google/cloud/compute/v1/autoscalers.rb +2 -0
  14. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +6 -25
  15. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +2 -0
  16. data/lib/google/cloud/compute/v1/backend_buckets.rb +2 -0
  17. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +6 -25
  18. data/lib/google/cloud/compute/v1/backend_services/rest.rb +2 -0
  19. data/lib/google/cloud/compute/v1/backend_services.rb +2 -0
  20. data/lib/google/cloud/compute/v1/compute_pb.rb +19 -1
  21. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +4 -9
  22. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +2 -0
  23. data/lib/google/cloud/compute/v1/cross_site_networks.rb +2 -0
  24. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +5 -17
  25. data/lib/google/cloud/compute/v1/disk_types/rest.rb +2 -0
  26. data/lib/google/cloud/compute/v1/disk_types.rb +2 -0
  27. data/lib/google/cloud/compute/v1/disks/rest/client.rb +5 -17
  28. data/lib/google/cloud/compute/v1/disks/rest.rb +2 -0
  29. data/lib/google/cloud/compute/v1/disks.rb +2 -0
  30. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -9
  31. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +2 -0
  32. data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +2 -0
  33. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +4 -9
  34. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +2 -0
  35. data/lib/google/cloud/compute/v1/firewall_policies.rb +2 -0
  36. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +4 -9
  37. data/lib/google/cloud/compute/v1/firewalls/rest.rb +2 -0
  38. data/lib/google/cloud/compute/v1/firewalls.rb +2 -0
  39. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +5 -17
  40. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +2 -0
  41. data/lib/google/cloud/compute/v1/forwarding_rules.rb +2 -0
  42. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +5 -17
  43. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +2 -0
  44. data/lib/google/cloud/compute/v1/future_reservations.rb +2 -0
  45. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +4 -9
  46. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +2 -0
  47. data/lib/google/cloud/compute/v1/global_addresses.rb +2 -0
  48. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +4 -9
  49. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +2 -0
  50. data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +2 -0
  51. data/lib/google/cloud/compute/v1/global_frontend_settings_service/credentials.rb +52 -0
  52. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/client.rb +524 -0
  53. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/service_stub.rb +204 -0
  54. data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest.rb +53 -0
  55. data/lib/google/cloud/compute/v1/global_frontend_settings_service.rb +49 -0
  56. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +5 -17
  57. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +2 -0
  58. data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +2 -0
  59. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +5 -17
  60. data/lib/google/cloud/compute/v1/global_operations/rest.rb +2 -0
  61. data/lib/google/cloud/compute/v1/global_operations.rb +2 -0
  62. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +4 -9
  63. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +2 -0
  64. data/lib/google/cloud/compute/v1/global_organization_operations.rb +2 -0
  65. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +4 -9
  66. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +2 -0
  67. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +2 -0
  68. data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest/client.rb +5 -17
  69. data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest.rb +2 -0
  70. data/lib/google/cloud/compute/v1/global_vm_extension_policies.rb +2 -0
  71. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +5 -17
  72. data/lib/google/cloud/compute/v1/health_checks/rest.rb +2 -0
  73. data/lib/google/cloud/compute/v1/health_checks.rb +2 -0
  74. data/lib/google/cloud/compute/v1/hosts/rest/client.rb +4 -9
  75. data/lib/google/cloud/compute/v1/hosts/rest.rb +2 -0
  76. data/lib/google/cloud/compute/v1/hosts.rb +2 -0
  77. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +3 -1
  78. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +2 -0
  79. data/lib/google/cloud/compute/v1/image_family_views.rb +2 -0
  80. data/lib/google/cloud/compute/v1/image_views/credentials.rb +53 -0
  81. data/lib/google/cloud/compute/v1/image_views/rest/client.rb +612 -0
  82. data/lib/google/cloud/compute/v1/image_views/rest/service_stub.rb +206 -0
  83. data/lib/google/cloud/compute/v1/image_views/rest.rb +53 -0
  84. data/lib/google/cloud/compute/v1/image_views.rb +49 -0
  85. data/lib/google/cloud/compute/v1/images/rest/client.rb +4 -9
  86. data/lib/google/cloud/compute/v1/images/rest.rb +2 -0
  87. data/lib/google/cloud/compute/v1/images.rb +2 -0
  88. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +4 -9
  89. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +2 -0
  90. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +2 -0
  91. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +8 -41
  92. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +2 -0
  93. data/lib/google/cloud/compute/v1/instance_group_managers.rb +2 -0
  94. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +6 -25
  95. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +2 -0
  96. data/lib/google/cloud/compute/v1/instance_groups.rb +2 -0
  97. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +3 -1
  98. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +2 -0
  99. data/lib/google/cloud/compute/v1/instance_settings_service.rb +2 -0
  100. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +5 -17
  101. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +2 -0
  102. data/lib/google/cloud/compute/v1/instance_templates.rb +2 -0
  103. data/lib/google/cloud/compute/v1/instances/rest/client.rb +6 -25
  104. data/lib/google/cloud/compute/v1/instances/rest.rb +2 -0
  105. data/lib/google/cloud/compute/v1/instances.rb +2 -0
  106. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +4 -9
  107. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +2 -0
  108. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +2 -0
  109. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +5 -17
  110. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +2 -0
  111. data/lib/google/cloud/compute/v1/instant_snapshots.rb +2 -0
  112. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +4 -9
  113. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest.rb +2 -0
  114. data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +2 -0
  115. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +5 -17
  116. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +2 -0
  117. data/lib/google/cloud/compute/v1/interconnect_attachments.rb +2 -0
  118. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +4 -9
  119. data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +2 -0
  120. data/lib/google/cloud/compute/v1/interconnect_groups.rb +2 -0
  121. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -9
  122. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +2 -0
  123. data/lib/google/cloud/compute/v1/interconnect_locations.rb +2 -0
  124. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +4 -9
  125. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +2 -0
  126. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +2 -0
  127. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +118 -9
  128. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +63 -0
  129. data/lib/google/cloud/compute/v1/interconnects/rest.rb +2 -0
  130. data/lib/google/cloud/compute/v1/interconnects.rb +2 -0
  131. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +3 -1
  132. data/lib/google/cloud/compute/v1/license_codes/rest.rb +2 -0
  133. data/lib/google/cloud/compute/v1/license_codes.rb +2 -0
  134. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +4 -9
  135. data/lib/google/cloud/compute/v1/licenses/rest.rb +2 -0
  136. data/lib/google/cloud/compute/v1/licenses.rb +2 -0
  137. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +4 -9
  138. data/lib/google/cloud/compute/v1/machine_images/rest.rb +2 -0
  139. data/lib/google/cloud/compute/v1/machine_images.rb +2 -0
  140. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +5 -17
  141. data/lib/google/cloud/compute/v1/machine_types/rest.rb +2 -0
  142. data/lib/google/cloud/compute/v1/machine_types.rb +2 -0
  143. data/lib/google/cloud/compute/v1/managed_rulesets/credentials.rb +53 -0
  144. data/lib/google/cloud/compute/v1/managed_rulesets/rest/client.rb +606 -0
  145. data/lib/google/cloud/compute/v1/managed_rulesets/rest/service_stub.rb +204 -0
  146. data/lib/google/cloud/compute/v1/managed_rulesets/rest.rb +53 -0
  147. data/lib/google/cloud/compute/v1/managed_rulesets.rb +49 -0
  148. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +5 -17
  149. data/lib/google/cloud/compute/v1/network_attachments/rest.rb +2 -0
  150. data/lib/google/cloud/compute/v1/network_attachments.rb +2 -0
  151. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +4 -9
  152. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +2 -0
  153. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +2 -0
  154. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +6 -25
  155. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +2 -0
  156. data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +2 -0
  157. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +5 -17
  158. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +2 -0
  159. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +2 -0
  160. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +4 -9
  161. data/lib/google/cloud/compute/v1/network_profiles/rest.rb +2 -0
  162. data/lib/google/cloud/compute/v1/network_profiles.rb +2 -0
  163. data/lib/google/cloud/compute/v1/networks/rest/client.rb +5 -17
  164. data/lib/google/cloud/compute/v1/networks/rest.rb +2 -0
  165. data/lib/google/cloud/compute/v1/networks.rb +2 -0
  166. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +6 -25
  167. data/lib/google/cloud/compute/v1/node_groups/rest.rb +2 -0
  168. data/lib/google/cloud/compute/v1/node_groups.rb +2 -0
  169. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +5 -17
  170. data/lib/google/cloud/compute/v1/node_templates/rest.rb +2 -0
  171. data/lib/google/cloud/compute/v1/node_templates.rb +2 -0
  172. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +5 -17
  173. data/lib/google/cloud/compute/v1/node_types/rest.rb +2 -0
  174. data/lib/google/cloud/compute/v1/node_types.rb +2 -0
  175. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +5 -17
  176. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +2 -0
  177. data/lib/google/cloud/compute/v1/organization_security_policies.rb +2 -0
  178. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +5 -17
  179. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +2 -0
  180. data/lib/google/cloud/compute/v1/packet_mirrorings.rb +2 -0
  181. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +4 -9
  182. data/lib/google/cloud/compute/v1/preview_features/rest.rb +2 -0
  183. data/lib/google/cloud/compute/v1/preview_features.rb +2 -0
  184. data/lib/google/cloud/compute/v1/project_views/rest/client.rb +3 -1
  185. data/lib/google/cloud/compute/v1/project_views/rest.rb +2 -0
  186. data/lib/google/cloud/compute/v1/project_views.rb +2 -0
  187. data/lib/google/cloud/compute/v1/projects/rest/client.rb +5 -17
  188. data/lib/google/cloud/compute/v1/projects/rest.rb +2 -0
  189. data/lib/google/cloud/compute/v1/projects.rb +2 -0
  190. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -9
  191. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +2 -0
  192. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +2 -0
  193. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +5 -17
  194. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +2 -0
  195. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +2 -0
  196. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +4 -9
  197. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +2 -0
  198. data/lib/google/cloud/compute/v1/region_autoscalers.rb +2 -0
  199. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +5 -17
  200. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +2 -0
  201. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +2 -0
  202. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +5 -17
  203. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +2 -0
  204. data/lib/google/cloud/compute/v1/region_backend_services.rb +2 -0
  205. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +5 -17
  206. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +2 -0
  207. data/lib/google/cloud/compute/v1/region_commitments.rb +2 -0
  208. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +5 -17
  209. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +2 -0
  210. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +2 -0
  211. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -9
  212. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +2 -0
  213. data/lib/google/cloud/compute/v1/region_disk_types.rb +2 -0
  214. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +4 -9
  215. data/lib/google/cloud/compute/v1/region_disks/rest.rb +2 -0
  216. data/lib/google/cloud/compute/v1/region_disks.rb +2 -0
  217. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +5 -17
  218. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +2 -0
  219. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +2 -0
  220. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +5 -17
  221. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +2 -0
  222. data/lib/google/cloud/compute/v1/region_health_check_services.rb +2 -0
  223. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +4 -9
  224. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +2 -0
  225. data/lib/google/cloud/compute/v1/region_health_checks.rb +2 -0
  226. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +5 -17
  227. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +2 -0
  228. data/lib/google/cloud/compute/v1/region_health_sources.rb +2 -0
  229. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +4 -9
  230. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +2 -0
  231. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +2 -0
  232. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +7 -33
  233. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +2 -0
  234. data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +2 -0
  235. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +5 -17
  236. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +2 -0
  237. data/lib/google/cloud/compute/v1/region_instance_groups.rb +2 -0
  238. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +4 -9
  239. data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +2 -0
  240. data/lib/google/cloud/compute/v1/region_instance_templates.rb +2 -0
  241. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +3 -1
  242. data/lib/google/cloud/compute/v1/region_instances/rest.rb +2 -0
  243. data/lib/google/cloud/compute/v1/region_instances.rb +2 -0
  244. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +4 -9
  245. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +2 -0
  246. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +2 -0
  247. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +4 -9
  248. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +2 -0
  249. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +2 -0
  250. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +5 -17
  251. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +2 -0
  252. data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +2 -0
  253. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +126 -10
  254. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +64 -0
  255. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +2 -0
  256. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +2 -0
  257. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +5 -17
  258. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +2 -0
  259. data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +2 -0
  260. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +4 -9
  261. data/lib/google/cloud/compute/v1/region_operations/rest.rb +2 -0
  262. data/lib/google/cloud/compute/v1/region_operations.rb +2 -0
  263. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +4 -9
  264. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +2 -0
  265. data/lib/google/cloud/compute/v1/region_security_policies.rb +2 -0
  266. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +3 -1
  267. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +2 -0
  268. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +2 -0
  269. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +4 -9
  270. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +2 -0
  271. data/lib/google/cloud/compute/v1/region_snapshots.rb +2 -0
  272. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -9
  273. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +2 -0
  274. data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +2 -0
  275. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +5 -17
  276. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +2 -0
  277. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +2 -0
  278. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +4 -9
  279. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +2 -0
  280. data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +2 -0
  281. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +4 -9
  282. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +2 -0
  283. data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +2 -0
  284. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +4 -9
  285. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +2 -0
  286. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +2 -0
  287. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +4 -9
  288. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +2 -0
  289. data/lib/google/cloud/compute/v1/region_url_maps.rb +2 -0
  290. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +4 -9
  291. data/lib/google/cloud/compute/v1/region_zones/rest.rb +2 -0
  292. data/lib/google/cloud/compute/v1/region_zones.rb +2 -0
  293. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -9
  294. data/lib/google/cloud/compute/v1/regions/rest.rb +2 -0
  295. data/lib/google/cloud/compute/v1/regions.rb +2 -0
  296. data/lib/google/cloud/compute/v1/reliability_risks/rest/client.rb +4 -9
  297. data/lib/google/cloud/compute/v1/reliability_risks/rest.rb +2 -0
  298. data/lib/google/cloud/compute/v1/reliability_risks.rb +2 -0
  299. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +4 -9
  300. data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +2 -0
  301. data/lib/google/cloud/compute/v1/reservation_blocks.rb +2 -0
  302. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +4 -9
  303. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +2 -0
  304. data/lib/google/cloud/compute/v1/reservation_slots.rb +2 -0
  305. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +4 -9
  306. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest.rb +2 -0
  307. data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +2 -0
  308. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +5 -17
  309. data/lib/google/cloud/compute/v1/reservations/rest.rb +2 -0
  310. data/lib/google/cloud/compute/v1/reservations.rb +2 -0
  311. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +5 -17
  312. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +2 -0
  313. data/lib/google/cloud/compute/v1/resource_policies.rb +2 -0
  314. data/lib/google/cloud/compute/v1/rest.rb +3 -0
  315. data/lib/google/cloud/compute/v1/rollout_plans/rest/client.rb +4 -9
  316. data/lib/google/cloud/compute/v1/rollout_plans/rest.rb +2 -0
  317. data/lib/google/cloud/compute/v1/rollout_plans.rb +2 -0
  318. data/lib/google/cloud/compute/v1/rollouts/rest/client.rb +4 -9
  319. data/lib/google/cloud/compute/v1/rollouts/rest.rb +2 -0
  320. data/lib/google/cloud/compute/v1/rollouts.rb +2 -0
  321. data/lib/google/cloud/compute/v1/routers/rest/client.rb +9 -49
  322. data/lib/google/cloud/compute/v1/routers/rest.rb +2 -0
  323. data/lib/google/cloud/compute/v1/routers.rb +2 -0
  324. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -9
  325. data/lib/google/cloud/compute/v1/routes/rest.rb +2 -0
  326. data/lib/google/cloud/compute/v1/routes.rb +2 -0
  327. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +6 -25
  328. data/lib/google/cloud/compute/v1/security_policies/rest.rb +2 -0
  329. data/lib/google/cloud/compute/v1/security_policies.rb +2 -0
  330. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +5 -17
  331. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +2 -0
  332. data/lib/google/cloud/compute/v1/service_attachments.rb +2 -0
  333. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +3 -1
  334. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +2 -0
  335. data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +2 -0
  336. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -9
  337. data/lib/google/cloud/compute/v1/snapshots/rest.rb +2 -0
  338. data/lib/google/cloud/compute/v1/snapshots.rb +2 -0
  339. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +5 -17
  340. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +2 -0
  341. data/lib/google/cloud/compute/v1/ssl_certificates.rb +2 -0
  342. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +6 -25
  343. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +2 -0
  344. data/lib/google/cloud/compute/v1/ssl_policies.rb +2 -0
  345. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +5 -17
  346. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +2 -0
  347. data/lib/google/cloud/compute/v1/storage_pool_types.rb +2 -0
  348. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +6 -25
  349. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +2 -0
  350. data/lib/google/cloud/compute/v1/storage_pools.rb +2 -0
  351. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +6 -25
  352. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +2 -0
  353. data/lib/google/cloud/compute/v1/subnetworks.rb +2 -0
  354. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -9
  355. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +2 -0
  356. data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +2 -0
  357. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +5 -17
  358. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +2 -0
  359. data/lib/google/cloud/compute/v1/target_http_proxies.rb +2 -0
  360. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +5 -17
  361. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +2 -0
  362. data/lib/google/cloud/compute/v1/target_https_proxies.rb +2 -0
  363. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +5 -17
  364. data/lib/google/cloud/compute/v1/target_instances/rest.rb +2 -0
  365. data/lib/google/cloud/compute/v1/target_instances.rb +2 -0
  366. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +5 -17
  367. data/lib/google/cloud/compute/v1/target_pools/rest.rb +2 -0
  368. data/lib/google/cloud/compute/v1/target_pools.rb +2 -0
  369. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +4 -9
  370. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +2 -0
  371. data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +2 -0
  372. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +5 -17
  373. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +2 -0
  374. data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +2 -0
  375. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +5 -17
  376. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +2 -0
  377. data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +2 -0
  378. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +5 -17
  379. data/lib/google/cloud/compute/v1/url_maps/rest.rb +2 -0
  380. data/lib/google/cloud/compute/v1/url_maps.rb +2 -0
  381. data/lib/google/cloud/compute/v1/version.rb +1 -1
  382. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +5 -17
  383. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +2 -0
  384. data/lib/google/cloud/compute/v1/vpn_gateways.rb +2 -0
  385. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +5 -17
  386. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +2 -0
  387. data/lib/google/cloud/compute/v1/vpn_tunnels.rb +2 -0
  388. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +4 -9
  389. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +2 -0
  390. data/lib/google/cloud/compute/v1/wire_groups.rb +2 -0
  391. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +4 -9
  392. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +2 -0
  393. data/lib/google/cloud/compute/v1/zone_operations.rb +2 -0
  394. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +4 -9
  395. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +2 -0
  396. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +2 -0
  397. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -9
  398. data/lib/google/cloud/compute/v1/zones/rest.rb +2 -0
  399. data/lib/google/cloud/compute/v1/zones.rb +2 -0
  400. data/lib/google/cloud/compute/v1.rb +3 -0
  401. data/proto_docs/google/cloud/compute/v1/compute.rb +566 -1614
  402. metadata +16 -1
@@ -31,6 +31,8 @@ module Google
31
31
  ##
32
32
  # The GlobalForwardingRules API.
33
33
  #
34
+ # This client uses GlobalForwardingRules version 2026-09-01.
35
+ #
34
36
  # @example Load this service and instantiate a REST client
35
37
  #
36
38
  # require "google/cloud/compute/v1/global_forwarding_rules/rest"
@@ -0,0 +1,52 @@
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 "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module GlobalFrontendSettingsService
26
+ # Credentials for the GlobalFrontendSettingsService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,524 @@
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/global_frontend_settings_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Compute
26
+ module V1
27
+ module GlobalFrontendSettingsService
28
+ module Rest
29
+ ##
30
+ # REST client for the GlobalFrontendSettingsService service.
31
+ #
32
+ # The GlobalFrontendSettings API.
33
+ #
34
+ # This client uses GlobalFrontendSettingsService version 2026-09-01.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = "2026-09-01"
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
42
+
43
+ # @private
44
+ attr_reader :global_frontend_settings_service_stub
45
+
46
+ ##
47
+ # Configure the GlobalFrontendSettingsService Client class.
48
+ #
49
+ # See {::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all GlobalFrontendSettingsService clients
55
+ # ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Cloud", "Compute", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config.rpcs.get.timeout = 600.0
76
+ default_config.rpcs.get.retry_policy = {
77
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
78
+ }
79
+
80
+ default_config.rpcs.patch.timeout = 600.0
81
+
82
+ default_config
83
+ end
84
+ yield @configure if block_given?
85
+ @configure
86
+ end
87
+
88
+ ##
89
+ # Configure the GlobalFrontendSettingsService Client instance.
90
+ #
91
+ # The configuration is set to the derived mode, meaning that values can be changed,
92
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
93
+ # should be made on {Client.configure}.
94
+ #
95
+ # See {::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client::Configuration}
96
+ # for a description of the configuration fields.
97
+ #
98
+ # @yield [config] Configure the Client client.
99
+ # @yieldparam config [Client::Configuration]
100
+ #
101
+ # @return [Client::Configuration]
102
+ #
103
+ def configure
104
+ yield @config if block_given?
105
+ @config
106
+ end
107
+
108
+ ##
109
+ # The effective universe domain
110
+ #
111
+ # @return [String]
112
+ #
113
+ def universe_domain
114
+ @global_frontend_settings_service_stub.universe_domain
115
+ end
116
+
117
+ ##
118
+ # Create a new GlobalFrontendSettingsService REST client object.
119
+ #
120
+ # @example
121
+ #
122
+ # # Create a client using the default configuration
123
+ # client = ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.new
124
+ #
125
+ # # Create a client using a custom configuration
126
+ # client = ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.new do |config|
127
+ # config.timeout = 10.0
128
+ # end
129
+ #
130
+ # @yield [config] Configure the GlobalFrontendSettingsService client.
131
+ # @yieldparam config [Client::Configuration]
132
+ #
133
+ def initialize
134
+ # Create the configuration object
135
+ @config = Configuration.new Client.configure
136
+
137
+ # Yield the configuration if needed
138
+ yield @config if block_given?
139
+
140
+ # Create credentials
141
+ credentials = @config.credentials
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
143
+ # but only if the default endpoint does not have a region prefix.
144
+ enable_self_signed_jwt = @config.endpoint.nil? ||
145
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
+ !@config.endpoint.split(".").first.include?("-"))
147
+ credentials ||= Credentials.default scope: @config.scope,
148
+ enable_self_signed_jwt: enable_self_signed_jwt
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
150
+ credentials = Credentials.new credentials, scope: @config.scope
151
+ end
152
+
153
+ @quota_project_id = @config.quota_project
154
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
+
156
+ @global_frontend_settings_service_stub = ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::ServiceStub.new(
157
+ endpoint: @config.endpoint,
158
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
159
+ universe_domain: @config.universe_domain,
160
+ credentials: credentials,
161
+ logger: @config.logger
162
+ )
163
+
164
+ @global_frontend_settings_service_stub.logger(stub: true)&.info do |entry|
165
+ entry.set_system_name
166
+ entry.set_service
167
+ entry.message = "Created client for #{entry.service}"
168
+ entry.set_credentials_fields credentials
169
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
170
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
171
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
172
+ end
173
+ end
174
+
175
+ ##
176
+ # The logger used for request/response debug logging.
177
+ #
178
+ # @return [Logger]
179
+ #
180
+ def logger
181
+ @global_frontend_settings_service_stub.logger
182
+ end
183
+
184
+ # Service calls
185
+
186
+ ##
187
+ # Gets the Global Frontend Billing Bundle Settings for a project.
188
+ #
189
+ # @overload get(request, options = nil)
190
+ # Pass arguments to `get` via a request object, either of type
191
+ # {::Google::Cloud::Compute::V1::GetGlobalFrontendSettingRequest} or an equivalent Hash.
192
+ #
193
+ # @param request [::Google::Cloud::Compute::V1::GetGlobalFrontendSettingRequest, ::Hash]
194
+ # A request object representing the call parameters. Required. To specify no
195
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
196
+ # @param options [::Gapic::CallOptions, ::Hash]
197
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
198
+ #
199
+ # @overload get(project: nil)
200
+ # Pass arguments to `get` via keyword arguments. Note that at
201
+ # least one keyword argument is required. To specify no parameters, or to keep all
202
+ # the default parameter values, pass an empty Hash as a request object (see above).
203
+ #
204
+ # @param project [::String]
205
+ # Required. Project ID for this request.
206
+ # @yield [result, operation] Access the result along with the TransportOperation object
207
+ # @yieldparam result [::Google::Cloud::Compute::V1::GlobalFrontendSettings]
208
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
209
+ #
210
+ # @return [::Google::Cloud::Compute::V1::GlobalFrontendSettings]
211
+ #
212
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/compute/v1"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Compute::V1::GetGlobalFrontendSettingRequest.new
222
+ #
223
+ # # Call the get method.
224
+ # result = client.get request
225
+ #
226
+ # # The returned object is of type Google::Cloud::Compute::V1::GlobalFrontendSettings.
227
+ # p result
228
+ #
229
+ def get request, options = nil
230
+ raise ::ArgumentError, "request must be provided" if request.nil?
231
+
232
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetGlobalFrontendSettingRequest
233
+
234
+ # Converts hash and nil to an options object
235
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
236
+
237
+ # Customize the options with defaults
238
+ call_metadata = @config.rpcs.get.metadata.to_h
239
+
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
241
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
242
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
243
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
244
+ transports_version_send: [:rest]
245
+
246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
247
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
248
+
249
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
250
+ metadata: call_metadata,
251
+ retry_policy: @config.rpcs.get.retry_policy
252
+
253
+ options.apply_defaults timeout: @config.timeout,
254
+ metadata: @config.metadata,
255
+ retry_policy: @config.retry_policy
256
+
257
+ @global_frontend_settings_service_stub.get request, options do |result, operation|
258
+ yield result, operation if block_given?
259
+ end
260
+ rescue ::Gapic::Rest::Error => e
261
+ raise ::Google::Cloud::Error.from_error(e)
262
+ end
263
+
264
+ ##
265
+ # Updates the Global Frontend Billing Bundle Settings for a project.
266
+ #
267
+ # @overload patch(request, options = nil)
268
+ # Pass arguments to `patch` via a request object, either of type
269
+ # {::Google::Cloud::Compute::V1::PatchGlobalFrontendSettingRequest} or an equivalent Hash.
270
+ #
271
+ # @param request [::Google::Cloud::Compute::V1::PatchGlobalFrontendSettingRequest, ::Hash]
272
+ # A request object representing the call parameters. Required. To specify no
273
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
274
+ # @param options [::Gapic::CallOptions, ::Hash]
275
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
276
+ #
277
+ # @overload patch(global_frontend_settings_resource: nil, project: nil, request_id: nil, update_mask: nil)
278
+ # Pass arguments to `patch` via keyword arguments. Note that at
279
+ # least one keyword argument is required. To specify no parameters, or to keep all
280
+ # the default parameter values, pass an empty Hash as a request object (see above).
281
+ #
282
+ # @param global_frontend_settings_resource [::Google::Cloud::Compute::V1::GlobalFrontendSettings, ::Hash]
283
+ # The body resource for this request
284
+ # @param project [::String]
285
+ # Required. Project ID for this request.
286
+ # @param request_id [::String]
287
+ # An optional request ID to identify requests.
288
+ # @param update_mask [::String]
289
+ # Field mask to support patch. E.g., "type".
290
+ # @yield [result, operation] Access the result along with the TransportOperation object
291
+ # @yieldparam result [::Google::Cloud::Compute::V1::GlobalFrontendSettingsPatchResponse]
292
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
293
+ #
294
+ # @return [::Google::Cloud::Compute::V1::GlobalFrontendSettingsPatchResponse]
295
+ #
296
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
297
+ #
298
+ # @example Basic example
299
+ # require "google/cloud/compute/v1"
300
+ #
301
+ # # Create a client object. The client can be reused for multiple calls.
302
+ # client = Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.new
303
+ #
304
+ # # Create a request. To set request fields, pass in keyword arguments.
305
+ # request = Google::Cloud::Compute::V1::PatchGlobalFrontendSettingRequest.new
306
+ #
307
+ # # Call the patch method.
308
+ # result = client.patch request
309
+ #
310
+ # # The returned object is of type Google::Cloud::Compute::V1::GlobalFrontendSettingsPatchResponse.
311
+ # p result
312
+ #
313
+ def patch request, options = nil
314
+ raise ::ArgumentError, "request must be provided" if request.nil?
315
+
316
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchGlobalFrontendSettingRequest
317
+
318
+ # Converts hash and nil to an options object
319
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
320
+
321
+ # Customize the options with defaults
322
+ call_metadata = @config.rpcs.patch.metadata.to_h
323
+
324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
325
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
327
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
328
+ transports_version_send: [:rest]
329
+
330
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
331
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
332
+
333
+ options.apply_defaults timeout: @config.rpcs.patch.timeout,
334
+ metadata: call_metadata,
335
+ retry_policy: @config.rpcs.patch.retry_policy
336
+
337
+ options.apply_defaults timeout: @config.timeout,
338
+ metadata: @config.metadata,
339
+ retry_policy: @config.retry_policy
340
+
341
+ @global_frontend_settings_service_stub.patch request, options do |result, operation|
342
+ yield result, operation if block_given?
343
+ end
344
+ rescue ::Gapic::Rest::Error => e
345
+ raise ::Google::Cloud::Error.from_error(e)
346
+ end
347
+
348
+ ##
349
+ # Configuration class for the GlobalFrontendSettingsService REST API.
350
+ #
351
+ # This class represents the configuration for GlobalFrontendSettingsService REST,
352
+ # providing control over timeouts, retry behavior, logging, transport
353
+ # parameters, and other low-level controls. Certain parameters can also be
354
+ # applied individually to specific RPCs. See
355
+ # {::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client::Configuration::Rpcs}
356
+ # for a list of RPCs that can be configured independently.
357
+ #
358
+ # Configuration can be applied globally to all clients, or to a single client
359
+ # on construction.
360
+ #
361
+ # @example
362
+ #
363
+ # # Modify the global config, setting the timeout for
364
+ # # get to 20 seconds,
365
+ # # and all remaining timeouts to 10 seconds.
366
+ # ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.configure do |config|
367
+ # config.timeout = 10.0
368
+ # config.rpcs.get.timeout = 20.0
369
+ # end
370
+ #
371
+ # # Apply the above configuration only to a new client.
372
+ # client = ::Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client.new do |config|
373
+ # config.timeout = 10.0
374
+ # config.rpcs.get.timeout = 20.0
375
+ # end
376
+ #
377
+ # @!attribute [rw] endpoint
378
+ # A custom service endpoint, as a hostname or hostname:port. The default is
379
+ # nil, indicating to use the default endpoint in the current universe domain.
380
+ # @return [::String,nil]
381
+ # @!attribute [rw] credentials
382
+ # Credentials to send with calls. You may provide any of the following types:
383
+ # * (`String`) The path to a service account key file in JSON format
384
+ # * (`Hash`) A service account key as a Hash
385
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
386
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
387
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
388
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
389
+ # * (`nil`) indicating no credentials
390
+ #
391
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
392
+ # external source for authentication to Google Cloud, you must validate it before
393
+ # providing it to a Google API client library. Providing an unvalidated credential
394
+ # configuration to Google APIs can compromise the security of your systems and data.
395
+ # For more information, refer to [Validate credential configurations from external
396
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
397
+ # @return [::Object]
398
+ # @!attribute [rw] scope
399
+ # The OAuth scopes
400
+ # @return [::Array<::String>]
401
+ # @!attribute [rw] lib_name
402
+ # The library name as recorded in instrumentation and logging
403
+ # @return [::String]
404
+ # @!attribute [rw] lib_version
405
+ # The library version as recorded in instrumentation and logging
406
+ # @return [::String]
407
+ # @!attribute [rw] timeout
408
+ # The call timeout in seconds.
409
+ # @return [::Numeric]
410
+ # @!attribute [rw] metadata
411
+ # Additional headers to be sent with the call.
412
+ # @return [::Hash{::Symbol=>::String}]
413
+ # @!attribute [rw] retry_policy
414
+ # The retry policy. The value is a hash with the following keys:
415
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
416
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
417
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
418
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
419
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
420
+ # trigger a retry.
421
+ # @return [::Hash]
422
+ # @!attribute [rw] quota_project
423
+ # A separate project against which to charge quota.
424
+ # @return [::String]
425
+ # @!attribute [rw] universe_domain
426
+ # The universe domain within which to make requests. This determines the
427
+ # default endpoint URL. The default value of nil uses the environment
428
+ # universe (usually the default "googleapis.com" universe).
429
+ # @return [::String,nil]
430
+ # @!attribute [rw] logger
431
+ # A custom logger to use for request/response debug logging, or the value
432
+ # `:default` (the default) to construct a default logger, or `nil` to
433
+ # explicitly disable logging.
434
+ # @return [::Logger,:default,nil]
435
+ #
436
+ class Configuration
437
+ extend ::Gapic::Config
438
+
439
+ # @private
440
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
441
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
442
+
443
+ config_attr :endpoint, nil, ::String, nil
444
+ config_attr :credentials, nil do |value|
445
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
446
+ allowed.any? { |klass| klass === value }
447
+ end
448
+ config_attr :scope, nil, ::String, ::Array, nil
449
+ config_attr :lib_name, nil, ::String, nil
450
+ config_attr :lib_version, nil, ::String, nil
451
+ config_attr :timeout, nil, ::Numeric, nil
452
+ config_attr :metadata, nil, ::Hash, nil
453
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
454
+ config_attr :quota_project, nil, ::String, nil
455
+ config_attr :universe_domain, nil, ::String, nil
456
+ config_attr :logger, :default, ::Logger, nil, :default
457
+
458
+ # @private
459
+ def initialize parent_config = nil
460
+ @parent_config = parent_config unless parent_config.nil?
461
+
462
+ yield self if block_given?
463
+ end
464
+
465
+ ##
466
+ # Configurations for individual RPCs
467
+ # @return [Rpcs]
468
+ #
469
+ def rpcs
470
+ @rpcs ||= begin
471
+ parent_rpcs = nil
472
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
473
+ Rpcs.new parent_rpcs
474
+ end
475
+ end
476
+
477
+ ##
478
+ # Configuration RPC class for the GlobalFrontendSettingsService API.
479
+ #
480
+ # Includes fields providing the configuration for each RPC in this service.
481
+ # Each configuration object is of type `Gapic::Config::Method` and includes
482
+ # the following configuration fields:
483
+ #
484
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
485
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
486
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
487
+ # include the following keys:
488
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
489
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
490
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
491
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
492
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
493
+ # trigger a retry.
494
+ #
495
+ class Rpcs
496
+ ##
497
+ # RPC-specific configuration for `get`
498
+ # @return [::Gapic::Config::Method]
499
+ #
500
+ attr_reader :get
501
+ ##
502
+ # RPC-specific configuration for `patch`
503
+ # @return [::Gapic::Config::Method]
504
+ #
505
+ attr_reader :patch
506
+
507
+ # @private
508
+ def initialize parent_rpcs = nil
509
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
510
+ @get = ::Gapic::Config::Method.new get_config
511
+ patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
512
+ @patch = ::Gapic::Config::Method.new patch_config
513
+
514
+ yield self if block_given?
515
+ end
516
+ end
517
+ end
518
+ end
519
+ end
520
+ end
521
+ end
522
+ end
523
+ end
524
+ end