google-cloud-compute-v1 3.4.0 → 3.6.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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +237 -20
  4. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  5. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  7. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  8. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  9. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  11. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +573 -23
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
  13. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
  14. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
  15. data/lib/google/cloud/compute/v1/compute_pb.rb +357 -25
  16. data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
  17. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
  18. data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
  19. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
  20. data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
  22. data/lib/google/cloud/compute/v1/disks/rest/client.rb +508 -42
  23. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
  24. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  25. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  26. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  27. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  28. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  29. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  32. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  33. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
  35. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
  36. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
  37. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
  38. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
  41. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
  42. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
  43. data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
  44. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +380 -40
  47. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
  50. data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
  51. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
  53. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
  54. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
  55. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  56. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  57. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  58. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  59. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  60. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  61. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  62. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  63. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  64. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  65. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  66. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  68. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  70. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  71. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  72. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  73. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  74. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  75. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  77. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  78. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  79. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  80. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  81. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  82. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  83. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  84. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  85. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  86. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  87. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  88. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  90. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  91. data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
  92. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
  93. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
  94. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
  95. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
  96. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  97. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  98. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  99. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1363 -0
  100. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -0
  101. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  102. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  103. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  104. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +387 -29
  105. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  112. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  113. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  114. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  115. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  116. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1363 -0
  117. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -0
  118. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  119. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  120. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
  121. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
  122. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
  123. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
  124. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
  125. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  126. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
  127. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  128. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  129. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
  130. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
  131. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
  132. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
  133. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
  134. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  135. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  136. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  137. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  138. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  139. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  140. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  141. data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
  142. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
  143. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
  144. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
  145. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
  146. data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
  147. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
  148. data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
  149. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
  150. data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
  151. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  152. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  153. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  154. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  155. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  156. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  157. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  158. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  159. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  160. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  161. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  162. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  163. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  164. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  165. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  166. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  167. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  168. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  169. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  170. data/lib/google/cloud/compute/v1/rest.rb +17 -0
  171. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  172. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  173. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  174. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  175. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
  176. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  177. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
  178. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
  179. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  180. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  181. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  182. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  183. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  184. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  185. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  186. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  187. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
  188. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
  189. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  190. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  191. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  192. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  193. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  194. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  195. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  196. data/lib/google/cloud/compute/v1/version.rb +1 -1
  197. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  198. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  199. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  200. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  201. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  202. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  203. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  204. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  205. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
  206. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
  207. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
  208. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
  209. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
  210. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  211. data/lib/google/cloud/compute/v1.rb +17 -0
  212. data/proto_docs/google/api/client.rb +149 -29
  213. data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
  214. metadata +87 -2
@@ -71,6 +71,11 @@ module Google
71
71
  end
72
72
  default_config = Client::Configuration.new parent_config
73
73
 
74
+ default_config.rpcs.aggregated_list.timeout = 600.0
75
+ default_config.rpcs.aggregated_list.retry_policy = {
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
+ }
78
+
74
79
  default_config.rpcs.delete.timeout = 600.0
75
80
 
76
81
  default_config.rpcs.get.timeout = 600.0
@@ -87,6 +92,8 @@ module Google
87
92
 
88
93
  default_config.rpcs.patch.timeout = 600.0
89
94
 
95
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
96
+
90
97
  default_config
91
98
  end
92
99
  yield @configure if block_given?
@@ -205,6 +212,189 @@ module Google
205
212
 
206
213
  # Service calls
207
214
 
215
+ ##
216
+ # Retrieves the list of all HealthCheckService resources,
217
+ # regional and global, available to the specified project.
218
+ #
219
+ # To prevent failure, it is recommended that you set the
220
+ # `returnPartialSuccess` parameter to `true`.
221
+ #
222
+ # @overload aggregated_list(request, options = nil)
223
+ # Pass arguments to `aggregated_list` via a request object, either of type
224
+ # {::Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest} or an equivalent Hash.
225
+ #
226
+ # @param request [::Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest, ::Hash]
227
+ # A request object representing the call parameters. Required. To specify no
228
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
229
+ # @param options [::Gapic::CallOptions, ::Hash]
230
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
231
+ #
232
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
233
+ # Pass arguments to `aggregated_list` via keyword arguments. Note that at
234
+ # least one keyword argument is required. To specify no parameters, or to keep all
235
+ # the default parameter values, pass an empty Hash as a request object (see above).
236
+ #
237
+ # @param filter [::String]
238
+ # A filter expression that filters resources listed in the response. Most
239
+ # Compute resources support two types of filter expressions:
240
+ # expressions that support regular expressions and expressions that follow
241
+ # API improvement proposal AIP-160.
242
+ # These two types of filter expressions cannot be mixed in one request.
243
+ #
244
+ # If you want to use AIP-160, your expression must specify the field name, an
245
+ # operator, and the value that you want to use for filtering. The value
246
+ # must be a string, a number, or a boolean. The operator
247
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
248
+ #
249
+ # For example, if you are filtering Compute Engine instances, you can
250
+ # exclude instances named `example-instance` by specifying
251
+ # `name != example-instance`.
252
+ #
253
+ # The `:*` comparison can be used to test whether a key has been defined.
254
+ # For example, to find all objects with `owner` label use:
255
+ # ```
256
+ # labels.owner:*
257
+ # ```
258
+ #
259
+ # You can also filter nested fields. For example, you could specify
260
+ # `scheduling.automaticRestart = false` to include instances only
261
+ # if they are not scheduled for automatic restarts. You can use filtering
262
+ # on nested fields to filter based onresource labels.
263
+ #
264
+ # To filter on multiple expressions, provide each separate expression within
265
+ # parentheses. For example:
266
+ # ```
267
+ # (scheduling.automaticRestart = true)
268
+ # (cpuPlatform = "Intel Skylake")
269
+ # ```
270
+ # By default, each expression is an `AND` expression. However, you
271
+ # can include `AND` and `OR` expressions explicitly.
272
+ # For example:
273
+ # ```
274
+ # (cpuPlatform = "Intel Skylake") OR
275
+ # (cpuPlatform = "Intel Broadwell") AND
276
+ # (scheduling.automaticRestart = true)
277
+ # ```
278
+ #
279
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
280
+ # (not equal) operator against a single un-parenthesized expression with or
281
+ # without quotes or against multiple parenthesized expressions. Examples:
282
+ #
283
+ # `fieldname eq unquoted literal`
284
+ # `fieldname eq 'single quoted literal'`
285
+ # `fieldname eq "double quoted literal"`
286
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
287
+ #
288
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
289
+ # The literal value must match the entire field.
290
+ #
291
+ # For example, to filter for instances that do not end with name "instance",
292
+ # you would use `name ne .*instance`.
293
+ #
294
+ # You cannot combine constraints on multiple fields using regular
295
+ # expressions.
296
+ # @param include_all_scopes [::Boolean]
297
+ # Indicates whether every visible scope for each scope type (zone, region,
298
+ # global) should be included in the response. For new resource types added
299
+ # after this field, the flag has no effect as new resource types will always
300
+ # include every visible scope for each scope type in response. For resource
301
+ # types which predate this field, if this flag is omitted or false, only
302
+ # scopes of the scope types where the resource type is expected to be found
303
+ # will be included.
304
+ # @param max_results [::Integer]
305
+ # The maximum number of results per page that should be returned.
306
+ # If the number of available results is larger than `maxResults`,
307
+ # Compute Engine returns a `nextPageToken` that can be used to get
308
+ # the next page of results in subsequent list requests. Acceptable values are
309
+ # `0` to `500`, inclusive. (Default: `500`)
310
+ # @param order_by [::String]
311
+ # Sorts list results by a certain order. By default, results
312
+ # are returned in alphanumerical order based on the resource name.
313
+ #
314
+ # You can also sort results in descending order based on the creation
315
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
316
+ # results based on the `creationTimestamp` field in
317
+ # reverse chronological order (newest result first). Use this to sort
318
+ # resources like operations so that the newest operation is returned first.
319
+ #
320
+ # Currently, only sorting by `name` or
321
+ # `creationTimestamp desc` is supported.
322
+ # @param page_token [::String]
323
+ # Specifies a page token to use. Set `pageToken` to the
324
+ # `nextPageToken` returned by a previous list request to get
325
+ # the next page of results.
326
+ # @param project [::String]
327
+ # Name of the project scoping this request.
328
+ # @param return_partial_success [::Boolean]
329
+ # Opt-in for partial success behavior which provides partial results in case
330
+ # of failure. The default value is false.
331
+ #
332
+ # For example, when partial success behavior is enabled, aggregatedList for a
333
+ # single zone scope either returns all resources in the zone or no resources,
334
+ # with an error code.
335
+ # @param service_project_number [::Integer]
336
+ # The Shared VPC service project id or service project number for which
337
+ # aggregated list request is invoked for subnetworks list-usable api.
338
+ # @yield [result, operation] Access the result along with the TransportOperation object
339
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::HealthCheckServicesScopedList>]
340
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
341
+ #
342
+ # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::HealthCheckServicesScopedList>]
343
+ #
344
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
345
+ #
346
+ # @example Basic example
347
+ # require "google/cloud/compute/v1"
348
+ #
349
+ # # Create a client object. The client can be reused for multiple calls.
350
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
351
+ #
352
+ # # Create a request. To set request fields, pass in keyword arguments.
353
+ # request = Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest.new
354
+ #
355
+ # # Call the aggregated_list method.
356
+ # result = client.aggregated_list request
357
+ #
358
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheckServiceAggregatedList.
359
+ # p result
360
+ #
361
+ def aggregated_list request, options = nil
362
+ raise ::ArgumentError, "request must be provided" if request.nil?
363
+
364
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest
365
+
366
+ # Converts hash and nil to an options object
367
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
368
+
369
+ # Customize the options with defaults
370
+ call_metadata = @config.rpcs.aggregated_list.metadata.to_h
371
+
372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
373
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
374
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
375
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
376
+ transports_version_send: [:rest]
377
+
378
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
+
381
+ options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
382
+ metadata: call_metadata,
383
+ retry_policy: @config.rpcs.aggregated_list.retry_policy
384
+
385
+ options.apply_defaults timeout: @config.timeout,
386
+ metadata: @config.metadata,
387
+ retry_policy: @config.retry_policy
388
+
389
+ @region_health_check_services_stub.aggregated_list request, options do |result, operation|
390
+ result = ::Gapic::Rest::PagedEnumerable.new @region_health_check_services_stub, :aggregated_list, "items", request, result, options
391
+ yield result, operation if block_given?
392
+ throw :response, result
393
+ end
394
+ rescue ::Gapic::Rest::Error => e
395
+ raise ::Google::Cloud::Error.from_error(e)
396
+ end
397
+
208
398
  ##
209
399
  # Deletes the specified regional HealthCheckService.
210
400
  #
@@ -224,13 +414,26 @@ module Google
224
414
  # the default parameter values, pass an empty Hash as a request object (see above).
225
415
  #
226
416
  # @param health_check_service [::String]
227
- # Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035.
417
+ # Name of the HealthCheckService to delete. The name
418
+ # must be 1-63 characters long, and comply with RFC1035.
228
419
  # @param project [::String]
229
420
  # Project ID for this request.
230
421
  # @param region [::String]
231
422
  # Name of the region scoping this request.
232
423
  # @param request_id [::String]
233
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
424
+ # An optional request ID to identify requests. Specify a unique request ID so
425
+ # that if you must retry your request, the server will know to ignore the
426
+ # request if it has already been completed.
427
+ #
428
+ # For example, consider a situation where you make an initial request and
429
+ # the request times out. If you make the request again with the same
430
+ # request ID, the server can check if original operation with the same
431
+ # request ID was received, and if so, will ignore the second request. This
432
+ # prevents clients from accidentally creating duplicate commitments.
433
+ #
434
+ # The request ID must be
435
+ # a valid UUID with the exception that zero UUID is not supported
436
+ # (00000000-0000-0000-0000-000000000000).
234
437
  # @yield [result, operation] Access the result along with the TransportOperation object
235
438
  # @yieldparam result [::Gapic::GenericLRO::Operation]
236
439
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -318,7 +521,8 @@ module Google
318
521
  # the default parameter values, pass an empty Hash as a request object (see above).
319
522
  #
320
523
  # @param health_check_service [::String]
321
- # Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
524
+ # Name of the HealthCheckService to update. The name
525
+ # must be 1-63 characters long, and comply with RFC1035.
322
526
  # @param project [::String]
323
527
  # Project ID for this request.
324
528
  # @param region [::String]
@@ -382,7 +586,8 @@ module Google
382
586
  end
383
587
 
384
588
  ##
385
- # Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.
589
+ # Creates a regional HealthCheckService resource in the
590
+ # specified project and region using the data included in the request.
386
591
  #
387
592
  # @overload insert(request, options = nil)
388
593
  # Pass arguments to `insert` via a request object, either of type
@@ -406,7 +611,19 @@ module Google
406
611
  # @param region [::String]
407
612
  # Name of the region scoping this request.
408
613
  # @param request_id [::String]
409
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
614
+ # An optional request ID to identify requests. Specify a unique request ID so
615
+ # that if you must retry your request, the server will know to ignore the
616
+ # request if it has already been completed.
617
+ #
618
+ # For example, consider a situation where you make an initial request and
619
+ # the request times out. If you make the request again with the same
620
+ # request ID, the server can check if original operation with the same
621
+ # request ID was received, and if so, will ignore the second request. This
622
+ # prevents clients from accidentally creating duplicate commitments.
623
+ #
624
+ # The request ID must be
625
+ # a valid UUID with the exception that zero UUID is not supported
626
+ # (00000000-0000-0000-0000-000000000000).
410
627
  # @yield [result, operation] Access the result along with the TransportOperation object
411
628
  # @yieldparam result [::Gapic::GenericLRO::Operation]
412
629
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -476,7 +693,8 @@ module Google
476
693
  end
477
694
 
478
695
  ##
479
- # Lists all the HealthCheckService resources that have been configured for the specified project in the given region.
696
+ # Lists all the HealthCheckService resources that have been
697
+ # configured for the specified project in the given region.
480
698
  #
481
699
  # @overload list(request, options = nil)
482
700
  # Pass arguments to `list` via a request object, either of type
@@ -494,19 +712,97 @@ module Google
494
712
  # the default parameter values, pass an empty Hash as a request object (see above).
495
713
  #
496
714
  # @param filter [::String]
497
- # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
715
+ # A filter expression that filters resources listed in the response. Most
716
+ # Compute resources support two types of filter expressions:
717
+ # expressions that support regular expressions and expressions that follow
718
+ # API improvement proposal AIP-160.
719
+ # These two types of filter expressions cannot be mixed in one request.
720
+ #
721
+ # If you want to use AIP-160, your expression must specify the field name, an
722
+ # operator, and the value that you want to use for filtering. The value
723
+ # must be a string, a number, or a boolean. The operator
724
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
725
+ #
726
+ # For example, if you are filtering Compute Engine instances, you can
727
+ # exclude instances named `example-instance` by specifying
728
+ # `name != example-instance`.
729
+ #
730
+ # The `:*` comparison can be used to test whether a key has been defined.
731
+ # For example, to find all objects with `owner` label use:
732
+ # ```
733
+ # labels.owner:*
734
+ # ```
735
+ #
736
+ # You can also filter nested fields. For example, you could specify
737
+ # `scheduling.automaticRestart = false` to include instances only
738
+ # if they are not scheduled for automatic restarts. You can use filtering
739
+ # on nested fields to filter based onresource labels.
740
+ #
741
+ # To filter on multiple expressions, provide each separate expression within
742
+ # parentheses. For example:
743
+ # ```
744
+ # (scheduling.automaticRestart = true)
745
+ # (cpuPlatform = "Intel Skylake")
746
+ # ```
747
+ # By default, each expression is an `AND` expression. However, you
748
+ # can include `AND` and `OR` expressions explicitly.
749
+ # For example:
750
+ # ```
751
+ # (cpuPlatform = "Intel Skylake") OR
752
+ # (cpuPlatform = "Intel Broadwell") AND
753
+ # (scheduling.automaticRestart = true)
754
+ # ```
755
+ #
756
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
757
+ # (not equal) operator against a single un-parenthesized expression with or
758
+ # without quotes or against multiple parenthesized expressions. Examples:
759
+ #
760
+ # `fieldname eq unquoted literal`
761
+ # `fieldname eq 'single quoted literal'`
762
+ # `fieldname eq "double quoted literal"`
763
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
764
+ #
765
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
766
+ # The literal value must match the entire field.
767
+ #
768
+ # For example, to filter for instances that do not end with name "instance",
769
+ # you would use `name ne .*instance`.
770
+ #
771
+ # You cannot combine constraints on multiple fields using regular
772
+ # expressions.
498
773
  # @param max_results [::Integer]
499
- # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
774
+ # The maximum number of results per page that should be returned.
775
+ # If the number of available results is larger than `maxResults`,
776
+ # Compute Engine returns a `nextPageToken` that can be used to get
777
+ # the next page of results in subsequent list requests. Acceptable values are
778
+ # `0` to `500`, inclusive. (Default: `500`)
500
779
  # @param order_by [::String]
501
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
780
+ # Sorts list results by a certain order. By default, results
781
+ # are returned in alphanumerical order based on the resource name.
782
+ #
783
+ # You can also sort results in descending order based on the creation
784
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
785
+ # results based on the `creationTimestamp` field in
786
+ # reverse chronological order (newest result first). Use this to sort
787
+ # resources like operations so that the newest operation is returned first.
788
+ #
789
+ # Currently, only sorting by `name` or
790
+ # `creationTimestamp desc` is supported.
502
791
  # @param page_token [::String]
503
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
792
+ # Specifies a page token to use. Set `pageToken` to the
793
+ # `nextPageToken` returned by a previous list request to get
794
+ # the next page of results.
504
795
  # @param project [::String]
505
796
  # Project ID for this request.
506
797
  # @param region [::String]
507
798
  # Name of the region scoping this request.
508
799
  # @param return_partial_success [::Boolean]
509
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
800
+ # Opt-in for partial success behavior which provides partial results in case
801
+ # of failure. The default value is false.
802
+ #
803
+ # For example, when partial success behavior is enabled, aggregatedList for a
804
+ # single zone scope either returns all resources in the zone or no resources,
805
+ # with an error code.
510
806
  # @yield [result, operation] Access the result along with the TransportOperation object
511
807
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheckService>]
512
808
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -568,7 +864,10 @@ module Google
568
864
  end
569
865
 
570
866
  ##
571
- # Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
867
+ # Updates the specified regional HealthCheckService resource
868
+ # with the data included in the request. This method supportsPATCH
869
+ # semantics and uses theJSON merge
870
+ # patch format and processing rules.
572
871
  #
573
872
  # @overload patch(request, options = nil)
574
873
  # Pass arguments to `patch` via a request object, either of type
@@ -586,7 +885,8 @@ module Google
586
885
  # the default parameter values, pass an empty Hash as a request object (see above).
587
886
  #
588
887
  # @param health_check_service [::String]
589
- # Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035.
888
+ # Name of the HealthCheckService to update. The name
889
+ # must be 1-63 characters long, and comply with RFC1035.
590
890
  # @param health_check_service_resource [::Google::Cloud::Compute::V1::HealthCheckService, ::Hash]
591
891
  # The body resource for this request
592
892
  # @param project [::String]
@@ -594,7 +894,19 @@ module Google
594
894
  # @param region [::String]
595
895
  # Name of the region scoping this request.
596
896
  # @param request_id [::String]
597
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
897
+ # An optional request ID to identify requests. Specify a unique request ID so
898
+ # that if you must retry your request, the server will know to ignore the
899
+ # request if it has already been completed.
900
+ #
901
+ # For example, consider a situation where you make an initial request and
902
+ # the request times out. If you make the request again with the same
903
+ # request ID, the server can check if original operation with the same
904
+ # request ID was received, and if so, will ignore the second request. This
905
+ # prevents clients from accidentally creating duplicate commitments.
906
+ #
907
+ # The request ID must be
908
+ # a valid UUID with the exception that zero UUID is not supported
909
+ # (00000000-0000-0000-0000-000000000000).
598
910
  # @yield [result, operation] Access the result along with the TransportOperation object
599
911
  # @yieldparam result [::Gapic::GenericLRO::Operation]
600
912
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -663,6 +975,90 @@ module Google
663
975
  raise ::Google::Cloud::Error.from_error(e)
664
976
  end
665
977
 
978
+ ##
979
+ # Returns permissions that a caller has on the specified resource.
980
+ #
981
+ # @overload test_iam_permissions(request, options = nil)
982
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
983
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest} or an equivalent Hash.
984
+ #
985
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest, ::Hash]
986
+ # A request object representing the call parameters. Required. To specify no
987
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
988
+ # @param options [::Gapic::CallOptions, ::Hash]
989
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
990
+ #
991
+ # @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
992
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
993
+ # least one keyword argument is required. To specify no parameters, or to keep all
994
+ # the default parameter values, pass an empty Hash as a request object (see above).
995
+ #
996
+ # @param project [::String]
997
+ # Project ID for this request.
998
+ # @param region [::String]
999
+ # The name of the region for this request.
1000
+ # @param resource [::String]
1001
+ # Name or id of the resource for this request.
1002
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
1003
+ # The body resource for this request
1004
+ # @yield [result, operation] Access the result along with the TransportOperation object
1005
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1009
+ #
1010
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1011
+ #
1012
+ # @example Basic example
1013
+ # require "google/cloud/compute/v1"
1014
+ #
1015
+ # # Create a client object. The client can be reused for multiple calls.
1016
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
1017
+ #
1018
+ # # Create a request. To set request fields, pass in keyword arguments.
1019
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest.new
1020
+ #
1021
+ # # Call the test_iam_permissions method.
1022
+ # result = client.test_iam_permissions request
1023
+ #
1024
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1025
+ # p result
1026
+ #
1027
+ def test_iam_permissions request, options = nil
1028
+ raise ::ArgumentError, "request must be provided" if request.nil?
1029
+
1030
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest
1031
+
1032
+ # Converts hash and nil to an options object
1033
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1034
+
1035
+ # Customize the options with defaults
1036
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1037
+
1038
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1039
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1040
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1041
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1042
+ transports_version_send: [:rest]
1043
+
1044
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1045
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1046
+
1047
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1048
+ metadata: call_metadata,
1049
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1050
+
1051
+ options.apply_defaults timeout: @config.timeout,
1052
+ metadata: @config.metadata,
1053
+ retry_policy: @config.retry_policy
1054
+
1055
+ @region_health_check_services_stub.test_iam_permissions request, options do |result, operation|
1056
+ yield result, operation if block_given?
1057
+ end
1058
+ rescue ::Gapic::Rest::Error => e
1059
+ raise ::Google::Cloud::Error.from_error(e)
1060
+ end
1061
+
666
1062
  ##
667
1063
  # Configuration class for the RegionHealthCheckServices REST API.
668
1064
  #
@@ -679,17 +1075,17 @@ module Google
679
1075
  # @example
680
1076
  #
681
1077
  # # Modify the global config, setting the timeout for
682
- # # delete to 20 seconds,
1078
+ # # aggregated_list to 20 seconds,
683
1079
  # # and all remaining timeouts to 10 seconds.
684
1080
  # ::Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.configure do |config|
685
1081
  # config.timeout = 10.0
686
- # config.rpcs.delete.timeout = 20.0
1082
+ # config.rpcs.aggregated_list.timeout = 20.0
687
1083
  # end
688
1084
  #
689
1085
  # # Apply the above configuration only to a new client.
690
1086
  # client = ::Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new do |config|
691
1087
  # config.timeout = 10.0
692
- # config.rpcs.delete.timeout = 20.0
1088
+ # config.rpcs.aggregated_list.timeout = 20.0
693
1089
  # end
694
1090
  #
695
1091
  # @!attribute [rw] endpoint
@@ -809,6 +1205,11 @@ module Google
809
1205
  # trigger a retry.
810
1206
  #
811
1207
  class Rpcs
1208
+ ##
1209
+ # RPC-specific configuration for `aggregated_list`
1210
+ # @return [::Gapic::Config::Method]
1211
+ #
1212
+ attr_reader :aggregated_list
812
1213
  ##
813
1214
  # RPC-specific configuration for `delete`
814
1215
  # @return [::Gapic::Config::Method]
@@ -834,9 +1235,16 @@ module Google
834
1235
  # @return [::Gapic::Config::Method]
835
1236
  #
836
1237
  attr_reader :patch
1238
+ ##
1239
+ # RPC-specific configuration for `test_iam_permissions`
1240
+ # @return [::Gapic::Config::Method]
1241
+ #
1242
+ attr_reader :test_iam_permissions
837
1243
 
838
1244
  # @private
839
1245
  def initialize parent_rpcs = nil
1246
+ aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
1247
+ @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
840
1248
  delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
841
1249
  @delete = ::Gapic::Config::Method.new delete_config
842
1250
  get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
@@ -847,6 +1255,8 @@ module Google
847
1255
  @list = ::Gapic::Config::Method.new list_config
848
1256
  patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
849
1257
  @patch = ::Gapic::Config::Method.new patch_config
1258
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1259
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
850
1260
 
851
1261
  yield self if block_given?
852
1262
  end