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.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/advice.rb +47 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +281 -25
- data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
- data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +473 -40
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
- data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
- data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
- data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/rest.rb +10 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +10 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
- 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.
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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,
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|