google-cloud-compute-v1 3.3.0 → 3.5.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 (182) 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 +330 -20
  4. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
  5. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  7. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  8. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  9. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
  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 +281 -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 +390 -42
  23. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  24. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  25. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  26. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  27. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  28. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  29. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  32. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  33. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
  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 +473 -40
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
  48. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
  51. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  53. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  54. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  55. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  56. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  57. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  58. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  59. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  60. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  62. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  63. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  64. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  65. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  66. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  67. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  68. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  69. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  70. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  71. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  72. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  73. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  74. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  75. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  77. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  78. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  79. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  80. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  81. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  82. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  83. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  84. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  86. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  88. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  89. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  90. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  91. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
  92. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
  93. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  94. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  96. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
  97. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  98. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  99. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  100. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  101. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  102. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  103. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  104. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  105. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  112. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
  113. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
  114. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  115. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  116. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  117. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  118. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  119. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  120. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  121. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  122. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  123. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  124. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  125. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  126. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  127. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  128. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  129. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  130. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  131. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  132. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  133. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  134. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  135. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  136. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  137. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  138. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  139. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  140. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  142. data/lib/google/cloud/compute/v1/rest.rb +10 -0
  143. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  144. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  145. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  146. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  147. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
  148. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  149. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
  150. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  151. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  152. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  153. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  154. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  155. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  156. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  157. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  158. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
  159. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
  160. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
  161. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
  162. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  163. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  164. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  165. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  166. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  167. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  168. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  169. data/lib/google/cloud/compute/v1/version.rb +1 -1
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  171. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  172. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  173. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  174. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  175. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  176. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  177. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  178. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  179. data/lib/google/cloud/compute/v1.rb +10 -0
  180. data/proto_docs/google/api/client.rb +149 -29
  181. data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
  182. metadata +52 -2
@@ -98,6 +98,8 @@ module Google
98
98
 
99
99
  default_config.rpcs.set_named_ports.timeout = 600.0
100
100
 
101
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
102
+
101
103
  default_config
102
104
  end
103
105
  yield @configure if block_given?
@@ -217,7 +219,10 @@ module Google
217
219
  # Service calls
218
220
 
219
221
  ##
220
- # Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
222
+ # Adds a list of instances to the specified instance group. All of the
223
+ # instances in the instance group must be in the same network/subnetwork.
224
+ # Read
225
+ # Adding instances for more information.
221
226
  #
222
227
  # @overload add_instances(request, options = nil)
223
228
  # Pass arguments to `add_instances` via a request object, either of type
@@ -241,9 +246,22 @@ module Google
241
246
  # @param project [::String]
242
247
  # Project ID for this request.
243
248
  # @param request_id [::String]
244
- # 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).
249
+ # An optional request ID to identify requests. Specify a unique request ID so
250
+ # that if you must retry your request, the server will know to ignore the
251
+ # request if it has already been completed.
252
+ #
253
+ # For example, consider a situation where you make an initial request and
254
+ # the request times out. If you make the request again with the same
255
+ # request ID, the server can check if original operation with the same
256
+ # request ID was received, and if so, will ignore the second request. This
257
+ # prevents clients from accidentally creating duplicate commitments.
258
+ #
259
+ # The request ID must be
260
+ # a valid UUID with the exception that zero UUID is not supported
261
+ # (00000000-0000-0000-0000-000000000000).
245
262
  # @param zone [::String]
246
- # The name of the zone where the instance group is located.
263
+ # The name of the zone
264
+ # where the instance group is located.
247
265
  # @yield [result, operation] Access the result along with the TransportOperation object
248
266
  # @yieldparam result [::Gapic::GenericLRO::Operation]
249
267
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -313,7 +331,10 @@ module Google
313
331
  end
314
332
 
315
333
  ##
316
- # Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
334
+ # Retrieves the list of instance groups and sorts them by zone.
335
+ #
336
+ # To prevent failure, Google recommends that you set the
337
+ # `returnPartialSuccess` parameter to `true`.
317
338
  #
318
339
  # @overload aggregated_list(request, options = nil)
319
340
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -331,21 +352,106 @@ module Google
331
352
  # the default parameter values, pass an empty Hash as a request object (see above).
332
353
  #
333
354
  # @param filter [::String]
334
- # 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.
355
+ # A filter expression that filters resources listed in the response. Most
356
+ # Compute resources support two types of filter expressions:
357
+ # expressions that support regular expressions and expressions that follow
358
+ # API improvement proposal AIP-160.
359
+ # These two types of filter expressions cannot be mixed in one request.
360
+ #
361
+ # If you want to use AIP-160, your expression must specify the field name, an
362
+ # operator, and the value that you want to use for filtering. The value
363
+ # must be a string, a number, or a boolean. The operator
364
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
365
+ #
366
+ # For example, if you are filtering Compute Engine instances, you can
367
+ # exclude instances named `example-instance` by specifying
368
+ # `name != example-instance`.
369
+ #
370
+ # The `:*` comparison can be used to test whether a key has been defined.
371
+ # For example, to find all objects with `owner` label use:
372
+ # ```
373
+ # labels.owner:*
374
+ # ```
375
+ #
376
+ # You can also filter nested fields. For example, you could specify
377
+ # `scheduling.automaticRestart = false` to include instances only
378
+ # if they are not scheduled for automatic restarts. You can use filtering
379
+ # on nested fields to filter based onresource labels.
380
+ #
381
+ # To filter on multiple expressions, provide each separate expression within
382
+ # parentheses. For example:
383
+ # ```
384
+ # (scheduling.automaticRestart = true)
385
+ # (cpuPlatform = "Intel Skylake")
386
+ # ```
387
+ # By default, each expression is an `AND` expression. However, you
388
+ # can include `AND` and `OR` expressions explicitly.
389
+ # For example:
390
+ # ```
391
+ # (cpuPlatform = "Intel Skylake") OR
392
+ # (cpuPlatform = "Intel Broadwell") AND
393
+ # (scheduling.automaticRestart = true)
394
+ # ```
395
+ #
396
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
397
+ # (not equal) operator against a single un-parenthesized expression with or
398
+ # without quotes or against multiple parenthesized expressions. Examples:
399
+ #
400
+ # `fieldname eq unquoted literal`
401
+ # `fieldname eq 'single quoted literal'`
402
+ # `fieldname eq "double quoted literal"`
403
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
404
+ #
405
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
406
+ # The literal value must match the entire field.
407
+ #
408
+ # For example, to filter for instances that do not end with name "instance",
409
+ # you would use `name ne .*instance`.
410
+ #
411
+ # You cannot combine constraints on multiple fields using regular
412
+ # expressions.
335
413
  # @param include_all_scopes [::Boolean]
336
- # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
414
+ # Indicates whether every visible scope for each scope type (zone, region,
415
+ # global) should be included in the response. For new resource types added
416
+ # after this field, the flag has no effect as new resource types will always
417
+ # include every visible scope for each scope type in response. For resource
418
+ # types which predate this field, if this flag is omitted or false, only
419
+ # scopes of the scope types where the resource type is expected to be found
420
+ # will be included.
337
421
  # @param max_results [::Integer]
338
- # 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`)
422
+ # The maximum number of results per page that should be returned.
423
+ # If the number of available results is larger than `maxResults`,
424
+ # Compute Engine returns a `nextPageToken` that can be used to get
425
+ # the next page of results in subsequent list requests. Acceptable values are
426
+ # `0` to `500`, inclusive. (Default: `500`)
339
427
  # @param order_by [::String]
340
- # 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.
428
+ # Sorts list results by a certain order. By default, results
429
+ # are returned in alphanumerical order based on the resource name.
430
+ #
431
+ # You can also sort results in descending order based on the creation
432
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
433
+ # results based on the `creationTimestamp` field in
434
+ # reverse chronological order (newest result first). Use this to sort
435
+ # resources like operations so that the newest operation is returned first.
436
+ #
437
+ # Currently, only sorting by `name` or
438
+ # `creationTimestamp desc` is supported.
341
439
  # @param page_token [::String]
342
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
440
+ # Specifies a page token to use. Set `pageToken` to the
441
+ # `nextPageToken` returned by a previous list request to get
442
+ # the next page of results.
343
443
  # @param project [::String]
344
444
  # Project ID for this request.
345
445
  # @param return_partial_success [::Boolean]
346
- # 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.
446
+ # Opt-in for partial success behavior which provides partial results in case
447
+ # of failure. The default value is false.
448
+ #
449
+ # For example, when partial success behavior is enabled, aggregatedList for a
450
+ # single zone scope either returns all resources in the zone or no resources,
451
+ # with an error code.
347
452
  # @param service_project_number [::Integer]
348
- # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
453
+ # The Shared VPC service project id or service project number for which
454
+ # aggregated list request is invoked for subnetworks list-usable api.
349
455
  # @yield [result, operation] Access the result along with the TransportOperation object
350
456
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupsScopedList>]
351
457
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -407,7 +513,10 @@ module Google
407
513
  end
408
514
 
409
515
  ##
410
- # Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.
516
+ # Deletes the specified instance group. The instances in the group are not
517
+ # deleted. Note that instance group must not belong to a backend service.
518
+ # Read
519
+ # Deleting an instance group for more information.
411
520
  #
412
521
  # @overload delete(request, options = nil)
413
522
  # Pass arguments to `delete` via a request object, either of type
@@ -429,9 +538,22 @@ module Google
429
538
  # @param project [::String]
430
539
  # Project ID for this request.
431
540
  # @param request_id [::String]
432
- # 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).
541
+ # An optional request ID to identify requests. Specify a unique request ID so
542
+ # that if you must retry your request, the server will know to ignore the
543
+ # request if it has already been completed.
544
+ #
545
+ # For example, consider a situation where you make an initial request and
546
+ # the request times out. If you make the request again with the same
547
+ # request ID, the server can check if original operation with the same
548
+ # request ID was received, and if so, will ignore the second request. This
549
+ # prevents clients from accidentally creating duplicate commitments.
550
+ #
551
+ # The request ID must be
552
+ # a valid UUID with the exception that zero UUID is not supported
553
+ # (00000000-0000-0000-0000-000000000000).
433
554
  # @param zone [::String]
434
- # The name of the zone where the instance group is located.
555
+ # The name of the zone
556
+ # where the instance group is located.
435
557
  # @yield [result, operation] Access the result along with the TransportOperation object
436
558
  # @yieldparam result [::Gapic::GenericLRO::Operation]
437
559
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -501,7 +623,12 @@ module Google
501
623
  end
502
624
 
503
625
  ##
504
- # Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
626
+ # Returns the specified zonal instance group. Get a list of available zonal
627
+ # instance groups by making a list() request.
628
+ #
629
+ # For managed instance groups, use theinstanceGroupManagers
630
+ # or regionInstanceGroupManagers
631
+ # methods instead.
505
632
  #
506
633
  # @overload get(request, options = nil)
507
634
  # Pass arguments to `get` via a request object, either of type
@@ -523,7 +650,8 @@ module Google
523
650
  # @param project [::String]
524
651
  # Project ID for this request.
525
652
  # @param zone [::String]
526
- # The name of the zone where the instance group is located.
653
+ # The name of the zone
654
+ # where the instance group is located.
527
655
  # @yield [result, operation] Access the result along with the TransportOperation object
528
656
  # @yieldparam result [::Google::Cloud::Compute::V1::InstanceGroup]
529
657
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -583,7 +711,8 @@ module Google
583
711
  end
584
712
 
585
713
  ##
586
- # Creates an instance group in the specified project using the parameters that are included in the request.
714
+ # Creates an instance group in the specified project using the
715
+ # parameters that are included in the request.
587
716
  #
588
717
  # @overload insert(request, options = nil)
589
718
  # Pass arguments to `insert` via a request object, either of type
@@ -605,9 +734,22 @@ module Google
605
734
  # @param project [::String]
606
735
  # Project ID for this request.
607
736
  # @param request_id [::String]
608
- # 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).
737
+ # An optional request ID to identify requests. Specify a unique request ID so
738
+ # that if you must retry your request, the server will know to ignore the
739
+ # request if it has already been completed.
740
+ #
741
+ # For example, consider a situation where you make an initial request and
742
+ # the request times out. If you make the request again with the same
743
+ # request ID, the server can check if original operation with the same
744
+ # request ID was received, and if so, will ignore the second request. This
745
+ # prevents clients from accidentally creating duplicate commitments.
746
+ #
747
+ # The request ID must be
748
+ # a valid UUID with the exception that zero UUID is not supported
749
+ # (00000000-0000-0000-0000-000000000000).
609
750
  # @param zone [::String]
610
- # The name of the zone where you want to create the instance group.
751
+ # The name of the zone
752
+ # where you want to create the instance group.
611
753
  # @yield [result, operation] Access the result along with the TransportOperation object
612
754
  # @yieldparam result [::Gapic::GenericLRO::Operation]
613
755
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -677,7 +819,12 @@ module Google
677
819
  end
678
820
 
679
821
  ##
680
- # Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
822
+ # Retrieves the list of zonal instance group resources contained within the
823
+ # specified zone.
824
+ #
825
+ # For managed instance groups, use theinstanceGroupManagers
826
+ # or regionInstanceGroupManagers
827
+ # methods instead.
681
828
  #
682
829
  # @overload list(request, options = nil)
683
830
  # Pass arguments to `list` via a request object, either of type
@@ -695,19 +842,98 @@ module Google
695
842
  # the default parameter values, pass an empty Hash as a request object (see above).
696
843
  #
697
844
  # @param filter [::String]
698
- # 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.
845
+ # A filter expression that filters resources listed in the response. Most
846
+ # Compute resources support two types of filter expressions:
847
+ # expressions that support regular expressions and expressions that follow
848
+ # API improvement proposal AIP-160.
849
+ # These two types of filter expressions cannot be mixed in one request.
850
+ #
851
+ # If you want to use AIP-160, your expression must specify the field name, an
852
+ # operator, and the value that you want to use for filtering. The value
853
+ # must be a string, a number, or a boolean. The operator
854
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
855
+ #
856
+ # For example, if you are filtering Compute Engine instances, you can
857
+ # exclude instances named `example-instance` by specifying
858
+ # `name != example-instance`.
859
+ #
860
+ # The `:*` comparison can be used to test whether a key has been defined.
861
+ # For example, to find all objects with `owner` label use:
862
+ # ```
863
+ # labels.owner:*
864
+ # ```
865
+ #
866
+ # You can also filter nested fields. For example, you could specify
867
+ # `scheduling.automaticRestart = false` to include instances only
868
+ # if they are not scheduled for automatic restarts. You can use filtering
869
+ # on nested fields to filter based onresource labels.
870
+ #
871
+ # To filter on multiple expressions, provide each separate expression within
872
+ # parentheses. For example:
873
+ # ```
874
+ # (scheduling.automaticRestart = true)
875
+ # (cpuPlatform = "Intel Skylake")
876
+ # ```
877
+ # By default, each expression is an `AND` expression. However, you
878
+ # can include `AND` and `OR` expressions explicitly.
879
+ # For example:
880
+ # ```
881
+ # (cpuPlatform = "Intel Skylake") OR
882
+ # (cpuPlatform = "Intel Broadwell") AND
883
+ # (scheduling.automaticRestart = true)
884
+ # ```
885
+ #
886
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
887
+ # (not equal) operator against a single un-parenthesized expression with or
888
+ # without quotes or against multiple parenthesized expressions. Examples:
889
+ #
890
+ # `fieldname eq unquoted literal`
891
+ # `fieldname eq 'single quoted literal'`
892
+ # `fieldname eq "double quoted literal"`
893
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
894
+ #
895
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
896
+ # The literal value must match the entire field.
897
+ #
898
+ # For example, to filter for instances that do not end with name "instance",
899
+ # you would use `name ne .*instance`.
900
+ #
901
+ # You cannot combine constraints on multiple fields using regular
902
+ # expressions.
699
903
  # @param max_results [::Integer]
700
- # 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`)
904
+ # The maximum number of results per page that should be returned.
905
+ # If the number of available results is larger than `maxResults`,
906
+ # Compute Engine returns a `nextPageToken` that can be used to get
907
+ # the next page of results in subsequent list requests. Acceptable values are
908
+ # `0` to `500`, inclusive. (Default: `500`)
701
909
  # @param order_by [::String]
702
- # 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.
910
+ # Sorts list results by a certain order. By default, results
911
+ # are returned in alphanumerical order based on the resource name.
912
+ #
913
+ # You can also sort results in descending order based on the creation
914
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
915
+ # results based on the `creationTimestamp` field in
916
+ # reverse chronological order (newest result first). Use this to sort
917
+ # resources like operations so that the newest operation is returned first.
918
+ #
919
+ # Currently, only sorting by `name` or
920
+ # `creationTimestamp desc` is supported.
703
921
  # @param page_token [::String]
704
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
922
+ # Specifies a page token to use. Set `pageToken` to the
923
+ # `nextPageToken` returned by a previous list request to get
924
+ # the next page of results.
705
925
  # @param project [::String]
706
926
  # Project ID for this request.
707
927
  # @param return_partial_success [::Boolean]
708
- # 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.
928
+ # Opt-in for partial success behavior which provides partial results in case
929
+ # of failure. The default value is false.
930
+ #
931
+ # For example, when partial success behavior is enabled, aggregatedList for a
932
+ # single zone scope either returns all resources in the zone or no resources,
933
+ # with an error code.
709
934
  # @param zone [::String]
710
- # The name of the zone where the instance group is located.
935
+ # The name of thezone
936
+ # where the instance group is located.
711
937
  # @yield [result, operation] Access the result along with the TransportOperation object
712
938
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroup>]
713
939
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -769,7 +995,10 @@ module Google
769
995
  end
770
996
 
771
997
  ##
772
- # Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.
998
+ # Lists the instances in the specified instance group.
999
+ # The orderBy query parameter is not supported.
1000
+ # The filter query parameter is supported, but only for
1001
+ # expressions that use `eq` (equal) or `ne` (not equal) operators.
773
1002
  #
774
1003
  # @overload list_instances(request, options = nil)
775
1004
  # Pass arguments to `list_instances` via a request object, either of type
@@ -787,23 +1016,103 @@ module Google
787
1016
  # the default parameter values, pass an empty Hash as a request object (see above).
788
1017
  #
789
1018
  # @param filter [::String]
790
- # 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.
1019
+ # A filter expression that filters resources listed in the response. Most
1020
+ # Compute resources support two types of filter expressions:
1021
+ # expressions that support regular expressions and expressions that follow
1022
+ # API improvement proposal AIP-160.
1023
+ # These two types of filter expressions cannot be mixed in one request.
1024
+ #
1025
+ # If you want to use AIP-160, your expression must specify the field name, an
1026
+ # operator, and the value that you want to use for filtering. The value
1027
+ # must be a string, a number, or a boolean. The operator
1028
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
1029
+ #
1030
+ # For example, if you are filtering Compute Engine instances, you can
1031
+ # exclude instances named `example-instance` by specifying
1032
+ # `name != example-instance`.
1033
+ #
1034
+ # The `:*` comparison can be used to test whether a key has been defined.
1035
+ # For example, to find all objects with `owner` label use:
1036
+ # ```
1037
+ # labels.owner:*
1038
+ # ```
1039
+ #
1040
+ # You can also filter nested fields. For example, you could specify
1041
+ # `scheduling.automaticRestart = false` to include instances only
1042
+ # if they are not scheduled for automatic restarts. You can use filtering
1043
+ # on nested fields to filter based onresource labels.
1044
+ #
1045
+ # To filter on multiple expressions, provide each separate expression within
1046
+ # parentheses. For example:
1047
+ # ```
1048
+ # (scheduling.automaticRestart = true)
1049
+ # (cpuPlatform = "Intel Skylake")
1050
+ # ```
1051
+ # By default, each expression is an `AND` expression. However, you
1052
+ # can include `AND` and `OR` expressions explicitly.
1053
+ # For example:
1054
+ # ```
1055
+ # (cpuPlatform = "Intel Skylake") OR
1056
+ # (cpuPlatform = "Intel Broadwell") AND
1057
+ # (scheduling.automaticRestart = true)
1058
+ # ```
1059
+ #
1060
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
1061
+ # (not equal) operator against a single un-parenthesized expression with or
1062
+ # without quotes or against multiple parenthesized expressions. Examples:
1063
+ #
1064
+ # `fieldname eq unquoted literal`
1065
+ # `fieldname eq 'single quoted literal'`
1066
+ # `fieldname eq "double quoted literal"`
1067
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
1068
+ #
1069
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1070
+ # The literal value must match the entire field.
1071
+ #
1072
+ # For example, to filter for instances that do not end with name "instance",
1073
+ # you would use `name ne .*instance`.
1074
+ #
1075
+ # You cannot combine constraints on multiple fields using regular
1076
+ # expressions.
791
1077
  # @param instance_group [::String]
792
- # The name of the instance group from which you want to generate a list of included instances.
1078
+ # The name of the instance group from which you want to generate a list
1079
+ # of included instances.
793
1080
  # @param instance_groups_list_instances_request_resource [::Google::Cloud::Compute::V1::InstanceGroupsListInstancesRequest, ::Hash]
794
1081
  # The body resource for this request
795
1082
  # @param max_results [::Integer]
796
- # 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`)
1083
+ # The maximum number of results per page that should be returned.
1084
+ # If the number of available results is larger than `maxResults`,
1085
+ # Compute Engine returns a `nextPageToken` that can be used to get
1086
+ # the next page of results in subsequent list requests. Acceptable values are
1087
+ # `0` to `500`, inclusive. (Default: `500`)
797
1088
  # @param order_by [::String]
798
- # 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.
1089
+ # Sorts list results by a certain order. By default, results
1090
+ # are returned in alphanumerical order based on the resource name.
1091
+ #
1092
+ # You can also sort results in descending order based on the creation
1093
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
1094
+ # results based on the `creationTimestamp` field in
1095
+ # reverse chronological order (newest result first). Use this to sort
1096
+ # resources like operations so that the newest operation is returned first.
1097
+ #
1098
+ # Currently, only sorting by `name` or
1099
+ # `creationTimestamp desc` is supported.
799
1100
  # @param page_token [::String]
800
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1101
+ # Specifies a page token to use. Set `pageToken` to the
1102
+ # `nextPageToken` returned by a previous list request to get
1103
+ # the next page of results.
801
1104
  # @param project [::String]
802
1105
  # Project ID for this request.
803
1106
  # @param return_partial_success [::Boolean]
804
- # 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.
1107
+ # Opt-in for partial success behavior which provides partial results in case
1108
+ # of failure. The default value is false.
1109
+ #
1110
+ # For example, when partial success behavior is enabled, aggregatedList for a
1111
+ # single zone scope either returns all resources in the zone or no resources,
1112
+ # with an error code.
805
1113
  # @param zone [::String]
806
- # The name of the zone where the instance group is located.
1114
+ # The name of the zone
1115
+ # where the instance group is located.
807
1116
  # @yield [result, operation] Access the result along with the TransportOperation object
808
1117
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceWithNamedPorts>]
809
1118
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -865,7 +1174,13 @@ module Google
865
1174
  end
866
1175
 
867
1176
  ##
868
- # Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
1177
+ # Removes one or more instances from the specified instance group, but does
1178
+ # not delete those instances.
1179
+ #
1180
+ # If the group is part of a backend
1181
+ # service that has enabled
1182
+ # connection draining, it can take up to 60 seconds after the connection
1183
+ # draining duration before the VM instance is removed or deleted.
869
1184
  #
870
1185
  # @overload remove_instances(request, options = nil)
871
1186
  # Pass arguments to `remove_instances` via a request object, either of type
@@ -883,15 +1198,29 @@ module Google
883
1198
  # the default parameter values, pass an empty Hash as a request object (see above).
884
1199
  #
885
1200
  # @param instance_group [::String]
886
- # The name of the instance group where the specified instances will be removed.
1201
+ # The name of the instance group where the specified instances will be
1202
+ # removed.
887
1203
  # @param instance_groups_remove_instances_request_resource [::Google::Cloud::Compute::V1::InstanceGroupsRemoveInstancesRequest, ::Hash]
888
1204
  # The body resource for this request
889
1205
  # @param project [::String]
890
1206
  # Project ID for this request.
891
1207
  # @param request_id [::String]
892
- # 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).
1208
+ # An optional request ID to identify requests. Specify a unique request ID so
1209
+ # that if you must retry your request, the server will know to ignore the
1210
+ # request if it has already been completed.
1211
+ #
1212
+ # For example, consider a situation where you make an initial request and
1213
+ # the request times out. If you make the request again with the same
1214
+ # request ID, the server can check if original operation with the same
1215
+ # request ID was received, and if so, will ignore the second request. This
1216
+ # prevents clients from accidentally creating duplicate commitments.
1217
+ #
1218
+ # The request ID must be
1219
+ # a valid UUID with the exception that zero UUID is not supported
1220
+ # (00000000-0000-0000-0000-000000000000).
893
1221
  # @param zone [::String]
894
- # The name of the zone where the instance group is located.
1222
+ # The name of the zone
1223
+ # where the instance group is located.
895
1224
  # @yield [result, operation] Access the result along with the TransportOperation object
896
1225
  # @yieldparam result [::Gapic::GenericLRO::Operation]
897
1226
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -985,9 +1314,22 @@ module Google
985
1314
  # @param project [::String]
986
1315
  # Project ID for this request.
987
1316
  # @param request_id [::String]
988
- # 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).
1317
+ # An optional request ID to identify requests. Specify a unique request ID so
1318
+ # that if you must retry your request, the server will know to ignore the
1319
+ # request if it has already been completed.
1320
+ #
1321
+ # For example, consider a situation where you make an initial request and
1322
+ # the request times out. If you make the request again with the same
1323
+ # request ID, the server can check if original operation with the same
1324
+ # request ID was received, and if so, will ignore the second request. This
1325
+ # prevents clients from accidentally creating duplicate commitments.
1326
+ #
1327
+ # The request ID must be
1328
+ # a valid UUID with the exception that zero UUID is not supported
1329
+ # (00000000-0000-0000-0000-000000000000).
989
1330
  # @param zone [::String]
990
- # The name of the zone where the instance group is located.
1331
+ # The name of the zone
1332
+ # where the instance group is located.
991
1333
  # @yield [result, operation] Access the result along with the TransportOperation object
992
1334
  # @yieldparam result [::Gapic::GenericLRO::Operation]
993
1335
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1056,6 +1398,90 @@ module Google
1056
1398
  raise ::Google::Cloud::Error.from_error(e)
1057
1399
  end
1058
1400
 
1401
+ ##
1402
+ # Returns permissions that a caller has on the specified resource.
1403
+ #
1404
+ # @overload test_iam_permissions(request, options = nil)
1405
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
1406
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest} or an equivalent Hash.
1407
+ #
1408
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest, ::Hash]
1409
+ # A request object representing the call parameters. Required. To specify no
1410
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1411
+ # @param options [::Gapic::CallOptions, ::Hash]
1412
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1413
+ #
1414
+ # @overload test_iam_permissions(project: nil, resource: nil, test_permissions_request_resource: nil, zone: nil)
1415
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
1416
+ # least one keyword argument is required. To specify no parameters, or to keep all
1417
+ # the default parameter values, pass an empty Hash as a request object (see above).
1418
+ #
1419
+ # @param project [::String]
1420
+ # Project ID for this request.
1421
+ # @param resource [::String]
1422
+ # Name or id of the resource for this request.
1423
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
1424
+ # The body resource for this request
1425
+ # @param zone [::String]
1426
+ # The name of the zone for this request.
1427
+ # @yield [result, operation] Access the result along with the TransportOperation object
1428
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1429
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1430
+ #
1431
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1432
+ #
1433
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1434
+ #
1435
+ # @example Basic example
1436
+ # require "google/cloud/compute/v1"
1437
+ #
1438
+ # # Create a client object. The client can be reused for multiple calls.
1439
+ # client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
1440
+ #
1441
+ # # Create a request. To set request fields, pass in keyword arguments.
1442
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest.new
1443
+ #
1444
+ # # Call the test_iam_permissions method.
1445
+ # result = client.test_iam_permissions request
1446
+ #
1447
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1448
+ # p result
1449
+ #
1450
+ def test_iam_permissions request, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request.nil?
1452
+
1453
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsInstanceGroupRequest
1454
+
1455
+ # Converts hash and nil to an options object
1456
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1457
+
1458
+ # Customize the options with defaults
1459
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1460
+
1461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1462
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1463
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1464
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1465
+ transports_version_send: [:rest]
1466
+
1467
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1468
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1469
+
1470
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1471
+ metadata: call_metadata,
1472
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1473
+
1474
+ options.apply_defaults timeout: @config.timeout,
1475
+ metadata: @config.metadata,
1476
+ retry_policy: @config.retry_policy
1477
+
1478
+ @instance_groups_stub.test_iam_permissions request, options do |result, operation|
1479
+ yield result, operation if block_given?
1480
+ end
1481
+ rescue ::Gapic::Rest::Error => e
1482
+ raise ::Google::Cloud::Error.from_error(e)
1483
+ end
1484
+
1059
1485
  ##
1060
1486
  # Configuration class for the InstanceGroups REST API.
1061
1487
  #
@@ -1247,6 +1673,11 @@ module Google
1247
1673
  # @return [::Gapic::Config::Method]
1248
1674
  #
1249
1675
  attr_reader :set_named_ports
1676
+ ##
1677
+ # RPC-specific configuration for `test_iam_permissions`
1678
+ # @return [::Gapic::Config::Method]
1679
+ #
1680
+ attr_reader :test_iam_permissions
1250
1681
 
1251
1682
  # @private
1252
1683
  def initialize parent_rpcs = nil
@@ -1268,6 +1699,8 @@ module Google
1268
1699
  @remove_instances = ::Gapic::Config::Method.new remove_instances_config
1269
1700
  set_named_ports_config = parent_rpcs.set_named_ports if parent_rpcs.respond_to? :set_named_ports
1270
1701
  @set_named_ports = ::Gapic::Config::Method.new set_named_ports_config
1702
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1703
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1271
1704
 
1272
1705
  yield self if block_given?
1273
1706
  end