google-cloud-compute-v1 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +237 -20
- 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 +573 -23
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
- 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 +357 -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 +508 -42
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
- 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 +126 -10
- 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 +380 -40
- 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 +939 -104
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -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_buckets/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -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 +1363 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -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 +387 -29
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
- 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 +1363 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -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_manager_resize_requests/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.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 +187 -14
- 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_snapshot_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
- 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_snapshot_settings/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
- data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
- 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 +17 -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 +231 -21
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
- 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 +227 -20
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
- 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/zone_vm_extension_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +17 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
- metadata +87 -2
|
@@ -121,6 +121,8 @@ module Google
|
|
|
121
121
|
|
|
122
122
|
default_config.rpcs.update.timeout = 600.0
|
|
123
123
|
|
|
124
|
+
default_config.rpcs.update_kms_key.timeout = 600.0
|
|
125
|
+
|
|
124
126
|
default_config
|
|
125
127
|
end
|
|
126
128
|
yield @configure if block_given?
|
|
@@ -240,7 +242,9 @@ module Google
|
|
|
240
242
|
# Service calls
|
|
241
243
|
|
|
242
244
|
##
|
|
243
|
-
# Adds existing resource policies to a disk. You can only add one
|
|
245
|
+
# Adds existing resource policies to a disk. You can only add one
|
|
246
|
+
# policy which will be applied to this disk for scheduling snapshot
|
|
247
|
+
# creation.
|
|
244
248
|
#
|
|
245
249
|
# @overload add_resource_policies(request, options = nil)
|
|
246
250
|
# Pass arguments to `add_resource_policies` via a request object, either of type
|
|
@@ -264,7 +268,19 @@ module Google
|
|
|
264
268
|
# @param project [::String]
|
|
265
269
|
# Project ID for this request.
|
|
266
270
|
# @param request_id [::String]
|
|
267
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
271
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
272
|
+
# that if you must retry your request, the server will know to ignore the
|
|
273
|
+
# request if it has already been completed.
|
|
274
|
+
#
|
|
275
|
+
# For example, consider a situation where you make an initial request and
|
|
276
|
+
# the request times out. If you make the request again with the same
|
|
277
|
+
# request ID, the server can check if original operation with the same
|
|
278
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
279
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
280
|
+
#
|
|
281
|
+
# The request ID must be
|
|
282
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
283
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
268
284
|
# @param zone [::String]
|
|
269
285
|
# The name of the zone for this request.
|
|
270
286
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -336,7 +352,10 @@ module Google
|
|
|
336
352
|
end
|
|
337
353
|
|
|
338
354
|
##
|
|
339
|
-
# Retrieves an aggregated list of persistent disks.
|
|
355
|
+
# Retrieves an aggregated list of persistent disks.
|
|
356
|
+
#
|
|
357
|
+
# To prevent failure, it is recommended that you set the
|
|
358
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
340
359
|
#
|
|
341
360
|
# @overload aggregated_list(request, options = nil)
|
|
342
361
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
|
@@ -354,21 +373,106 @@ module Google
|
|
|
354
373
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
355
374
|
#
|
|
356
375
|
# @param filter [::String]
|
|
357
|
-
# A filter expression that filters resources listed in the response. Most
|
|
376
|
+
# A filter expression that filters resources listed in the response. Most
|
|
377
|
+
# Compute resources support two types of filter expressions:
|
|
378
|
+
# expressions that support regular expressions and expressions that follow
|
|
379
|
+
# API improvement proposal AIP-160.
|
|
380
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
381
|
+
#
|
|
382
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
383
|
+
# operator, and the value that you want to use for filtering. The value
|
|
384
|
+
# must be a string, a number, or a boolean. The operator
|
|
385
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
386
|
+
#
|
|
387
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
388
|
+
# exclude instances named `example-instance` by specifying
|
|
389
|
+
# `name != example-instance`.
|
|
390
|
+
#
|
|
391
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
392
|
+
# For example, to find all objects with `owner` label use:
|
|
393
|
+
# ```
|
|
394
|
+
# labels.owner:*
|
|
395
|
+
# ```
|
|
396
|
+
#
|
|
397
|
+
# You can also filter nested fields. For example, you could specify
|
|
398
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
399
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
400
|
+
# on nested fields to filter based onresource labels.
|
|
401
|
+
#
|
|
402
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
403
|
+
# parentheses. For example:
|
|
404
|
+
# ```
|
|
405
|
+
# (scheduling.automaticRestart = true)
|
|
406
|
+
# (cpuPlatform = "Intel Skylake")
|
|
407
|
+
# ```
|
|
408
|
+
# By default, each expression is an `AND` expression. However, you
|
|
409
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
410
|
+
# For example:
|
|
411
|
+
# ```
|
|
412
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
413
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
414
|
+
# (scheduling.automaticRestart = true)
|
|
415
|
+
# ```
|
|
416
|
+
#
|
|
417
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
418
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
419
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
420
|
+
#
|
|
421
|
+
# `fieldname eq unquoted literal`
|
|
422
|
+
# `fieldname eq 'single quoted literal'`
|
|
423
|
+
# `fieldname eq "double quoted literal"`
|
|
424
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
425
|
+
#
|
|
426
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
427
|
+
# The literal value must match the entire field.
|
|
428
|
+
#
|
|
429
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
430
|
+
# you would use `name ne .*instance`.
|
|
431
|
+
#
|
|
432
|
+
# You cannot combine constraints on multiple fields using regular
|
|
433
|
+
# expressions.
|
|
358
434
|
# @param include_all_scopes [::Boolean]
|
|
359
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
|
435
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
436
|
+
# global) should be included in the response. For new resource types added
|
|
437
|
+
# after this field, the flag has no effect as new resource types will always
|
|
438
|
+
# include every visible scope for each scope type in response. For resource
|
|
439
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
440
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
441
|
+
# will be included.
|
|
360
442
|
# @param max_results [::Integer]
|
|
361
|
-
# The maximum number of results per page that should be returned.
|
|
443
|
+
# The maximum number of results per page that should be returned.
|
|
444
|
+
# If the number of available results is larger than `maxResults`,
|
|
445
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
446
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
447
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
362
448
|
# @param order_by [::String]
|
|
363
|
-
# Sorts list results by a certain order. By default, results
|
|
449
|
+
# Sorts list results by a certain order. By default, results
|
|
450
|
+
# are returned in alphanumerical order based on the resource name.
|
|
451
|
+
#
|
|
452
|
+
# You can also sort results in descending order based on the creation
|
|
453
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
454
|
+
# results based on the `creationTimestamp` field in
|
|
455
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
456
|
+
# resources like operations so that the newest operation is returned first.
|
|
457
|
+
#
|
|
458
|
+
# Currently, only sorting by `name` or
|
|
459
|
+
# `creationTimestamp desc` is supported.
|
|
364
460
|
# @param page_token [::String]
|
|
365
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
461
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
462
|
+
# `nextPageToken` returned by a previous list request to get
|
|
463
|
+
# the next page of results.
|
|
366
464
|
# @param project [::String]
|
|
367
465
|
# Project ID for this request.
|
|
368
466
|
# @param return_partial_success [::Boolean]
|
|
369
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
467
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
468
|
+
# of failure. The default value is false.
|
|
469
|
+
#
|
|
470
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
471
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
472
|
+
# with an error code.
|
|
370
473
|
# @param service_project_number [::Integer]
|
|
371
|
-
# The Shared VPC service project id or service project number for which
|
|
474
|
+
# The Shared VPC service project id or service project number for which
|
|
475
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
372
476
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
373
477
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DisksScopedList>]
|
|
374
478
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -452,7 +556,19 @@ module Google
|
|
|
452
556
|
# @param project [::String]
|
|
453
557
|
# Project ID for this request.
|
|
454
558
|
# @param request_id [::String]
|
|
455
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
559
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
560
|
+
# that if you must retry your request, the server will know to ignore the
|
|
561
|
+
# request if it has already been completed.
|
|
562
|
+
#
|
|
563
|
+
# For example, consider a situation where you make an initial request and
|
|
564
|
+
# the request times out. If you make the request again with the same
|
|
565
|
+
# request ID, the server can check if original operation with the same
|
|
566
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
567
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
568
|
+
#
|
|
569
|
+
# The request ID must be
|
|
570
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
571
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
456
572
|
# @param zone [::String]
|
|
457
573
|
# The name of the zone for this request.
|
|
458
574
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -524,7 +640,8 @@ module Google
|
|
|
524
640
|
end
|
|
525
641
|
|
|
526
642
|
##
|
|
527
|
-
# Sets the labels on many disks at once. To learn more about labels, read
|
|
643
|
+
# Sets the labels on many disks at once. To learn more about labels, read theLabeling
|
|
644
|
+
# Resources documentation.
|
|
528
645
|
#
|
|
529
646
|
# @overload bulk_set_labels(request, options = nil)
|
|
530
647
|
# Pass arguments to `bulk_set_labels` via a request object, either of type
|
|
@@ -546,7 +663,19 @@ module Google
|
|
|
546
663
|
# @param project [::String]
|
|
547
664
|
# Project ID for this request.
|
|
548
665
|
# @param request_id [::String]
|
|
549
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
666
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
667
|
+
# that if you must retry your request, the server will know to ignore the
|
|
668
|
+
# request if it has already been completed.
|
|
669
|
+
#
|
|
670
|
+
# For example, consider a situation where you make an initial request and
|
|
671
|
+
# the request times out. If you make the request again with the same
|
|
672
|
+
# request ID, the server can check if original operation with the same
|
|
673
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
674
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
675
|
+
#
|
|
676
|
+
# The request ID must be
|
|
677
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
678
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
550
679
|
# @param resource [::String]
|
|
551
680
|
# Name or id of the resource for this request.
|
|
552
681
|
# @param zone [::String]
|
|
@@ -620,7 +749,10 @@ module Google
|
|
|
620
749
|
end
|
|
621
750
|
|
|
622
751
|
##
|
|
623
|
-
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
|
752
|
+
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
|
753
|
+
# creation, consider using snapshots.insert
|
|
754
|
+
# instead, as that method supports more features, such as creating snapshots
|
|
755
|
+
# in a project different from the source disk project.
|
|
624
756
|
#
|
|
625
757
|
# @overload create_snapshot(request, options = nil)
|
|
626
758
|
# Pass arguments to `create_snapshot` via a request object, either of type
|
|
@@ -640,11 +772,24 @@ module Google
|
|
|
640
772
|
# @param disk [::String]
|
|
641
773
|
# Name of the persistent disk to snapshot.
|
|
642
774
|
# @param guest_flush [::Boolean]
|
|
643
|
-
# [Input Only] Whether to attempt an application consistent snapshot by
|
|
775
|
+
# [Input Only] Whether to attempt an application consistent snapshot by
|
|
776
|
+
# informing the OS to prepare for the snapshot process.
|
|
644
777
|
# @param project [::String]
|
|
645
778
|
# Project ID for this request.
|
|
646
779
|
# @param request_id [::String]
|
|
647
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
780
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
781
|
+
# that if you must retry your request, the server will know to ignore the
|
|
782
|
+
# request if it has already been completed.
|
|
783
|
+
#
|
|
784
|
+
# For example, consider a situation where you make an initial request and
|
|
785
|
+
# the request times out. If you make the request again with the same
|
|
786
|
+
# request ID, the server can check if original operation with the same
|
|
787
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
788
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
789
|
+
#
|
|
790
|
+
# The request ID must be
|
|
791
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
792
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
648
793
|
# @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
|
|
649
794
|
# The body resource for this request
|
|
650
795
|
# @param zone [::String]
|
|
@@ -718,7 +863,11 @@ module Google
|
|
|
718
863
|
end
|
|
719
864
|
|
|
720
865
|
##
|
|
721
|
-
# Deletes the specified persistent disk. Deleting a disk removes its data
|
|
866
|
+
# Deletes the specified persistent disk. Deleting a disk removes its data
|
|
867
|
+
# permanently and is irreversible. However, deleting a disk does not
|
|
868
|
+
# delete any snapshots
|
|
869
|
+
# previously made from the disk. You must separatelydelete
|
|
870
|
+
# snapshots.
|
|
722
871
|
#
|
|
723
872
|
# @overload delete(request, options = nil)
|
|
724
873
|
# Pass arguments to `delete` via a request object, either of type
|
|
@@ -740,7 +889,19 @@ module Google
|
|
|
740
889
|
# @param project [::String]
|
|
741
890
|
# Project ID for this request.
|
|
742
891
|
# @param request_id [::String]
|
|
743
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
892
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
893
|
+
# that if you must retry your request, the server will know to ignore the
|
|
894
|
+
# request if it has already been completed.
|
|
895
|
+
#
|
|
896
|
+
# For example, consider a situation where you make an initial request and
|
|
897
|
+
# the request times out. If you make the request again with the same
|
|
898
|
+
# request ID, the server can check if original operation with the same
|
|
899
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
900
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
901
|
+
#
|
|
902
|
+
# The request ID must be
|
|
903
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
904
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
744
905
|
# @param zone [::String]
|
|
745
906
|
# The name of the zone for this request.
|
|
746
907
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -894,7 +1055,8 @@ module Google
|
|
|
894
1055
|
end
|
|
895
1056
|
|
|
896
1057
|
##
|
|
897
|
-
# Gets the access control policy for a resource. May be empty if no such
|
|
1058
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
1059
|
+
# policy or resource exists.
|
|
898
1060
|
#
|
|
899
1061
|
# @overload get_iam_policy(request, options = nil)
|
|
900
1062
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
@@ -978,7 +1140,11 @@ module Google
|
|
|
978
1140
|
end
|
|
979
1141
|
|
|
980
1142
|
##
|
|
981
|
-
# Creates a persistent disk in the specified project using the data
|
|
1143
|
+
# Creates a persistent disk in the specified project using the data
|
|
1144
|
+
# in the request. You can create a disk from a source
|
|
1145
|
+
# (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by
|
|
1146
|
+
# omitting all properties. You can also create a disk that is larger than
|
|
1147
|
+
# the default size by specifying the sizeGb property.
|
|
982
1148
|
#
|
|
983
1149
|
# @overload insert(request, options = nil)
|
|
984
1150
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -1000,7 +1166,19 @@ module Google
|
|
|
1000
1166
|
# @param project [::String]
|
|
1001
1167
|
# Project ID for this request.
|
|
1002
1168
|
# @param request_id [::String]
|
|
1003
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1169
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1170
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1171
|
+
# request if it has already been completed.
|
|
1172
|
+
#
|
|
1173
|
+
# For example, consider a situation where you make an initial request and
|
|
1174
|
+
# the request times out. If you make the request again with the same
|
|
1175
|
+
# request ID, the server can check if original operation with the same
|
|
1176
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1177
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1178
|
+
#
|
|
1179
|
+
# The request ID must be
|
|
1180
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1181
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1004
1182
|
# @param source_image [::String]
|
|
1005
1183
|
# Source image to restore onto a disk. This field is optional.
|
|
1006
1184
|
# @param zone [::String]
|
|
@@ -1074,7 +1252,8 @@ module Google
|
|
|
1074
1252
|
end
|
|
1075
1253
|
|
|
1076
1254
|
##
|
|
1077
|
-
# Retrieves a list of persistent disks contained within
|
|
1255
|
+
# Retrieves a list of persistent disks contained within
|
|
1256
|
+
# the specified zone.
|
|
1078
1257
|
#
|
|
1079
1258
|
# @overload list(request, options = nil)
|
|
1080
1259
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -1092,17 +1271,95 @@ module Google
|
|
|
1092
1271
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1093
1272
|
#
|
|
1094
1273
|
# @param filter [::String]
|
|
1095
|
-
# A filter expression that filters resources listed in the response. Most
|
|
1274
|
+
# A filter expression that filters resources listed in the response. Most
|
|
1275
|
+
# Compute resources support two types of filter expressions:
|
|
1276
|
+
# expressions that support regular expressions and expressions that follow
|
|
1277
|
+
# API improvement proposal AIP-160.
|
|
1278
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
1279
|
+
#
|
|
1280
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
1281
|
+
# operator, and the value that you want to use for filtering. The value
|
|
1282
|
+
# must be a string, a number, or a boolean. The operator
|
|
1283
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
1284
|
+
#
|
|
1285
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
1286
|
+
# exclude instances named `example-instance` by specifying
|
|
1287
|
+
# `name != example-instance`.
|
|
1288
|
+
#
|
|
1289
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
1290
|
+
# For example, to find all objects with `owner` label use:
|
|
1291
|
+
# ```
|
|
1292
|
+
# labels.owner:*
|
|
1293
|
+
# ```
|
|
1294
|
+
#
|
|
1295
|
+
# You can also filter nested fields. For example, you could specify
|
|
1296
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
1297
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
1298
|
+
# on nested fields to filter based onresource labels.
|
|
1299
|
+
#
|
|
1300
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1301
|
+
# parentheses. For example:
|
|
1302
|
+
# ```
|
|
1303
|
+
# (scheduling.automaticRestart = true)
|
|
1304
|
+
# (cpuPlatform = "Intel Skylake")
|
|
1305
|
+
# ```
|
|
1306
|
+
# By default, each expression is an `AND` expression. However, you
|
|
1307
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
1308
|
+
# For example:
|
|
1309
|
+
# ```
|
|
1310
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
1311
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
1312
|
+
# (scheduling.automaticRestart = true)
|
|
1313
|
+
# ```
|
|
1314
|
+
#
|
|
1315
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
1316
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
1317
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
1318
|
+
#
|
|
1319
|
+
# `fieldname eq unquoted literal`
|
|
1320
|
+
# `fieldname eq 'single quoted literal'`
|
|
1321
|
+
# `fieldname eq "double quoted literal"`
|
|
1322
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
1323
|
+
#
|
|
1324
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
1325
|
+
# The literal value must match the entire field.
|
|
1326
|
+
#
|
|
1327
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
1328
|
+
# you would use `name ne .*instance`.
|
|
1329
|
+
#
|
|
1330
|
+
# You cannot combine constraints on multiple fields using regular
|
|
1331
|
+
# expressions.
|
|
1096
1332
|
# @param max_results [::Integer]
|
|
1097
|
-
# The maximum number of results per page that should be returned.
|
|
1333
|
+
# The maximum number of results per page that should be returned.
|
|
1334
|
+
# If the number of available results is larger than `maxResults`,
|
|
1335
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
1336
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
1337
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
1098
1338
|
# @param order_by [::String]
|
|
1099
|
-
# Sorts list results by a certain order. By default, results
|
|
1339
|
+
# Sorts list results by a certain order. By default, results
|
|
1340
|
+
# are returned in alphanumerical order based on the resource name.
|
|
1341
|
+
#
|
|
1342
|
+
# You can also sort results in descending order based on the creation
|
|
1343
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
1344
|
+
# results based on the `creationTimestamp` field in
|
|
1345
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
1346
|
+
# resources like operations so that the newest operation is returned first.
|
|
1347
|
+
#
|
|
1348
|
+
# Currently, only sorting by `name` or
|
|
1349
|
+
# `creationTimestamp desc` is supported.
|
|
1100
1350
|
# @param page_token [::String]
|
|
1101
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
1351
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
1352
|
+
# `nextPageToken` returned by a previous list request to get
|
|
1353
|
+
# the next page of results.
|
|
1102
1354
|
# @param project [::String]
|
|
1103
1355
|
# Project ID for this request.
|
|
1104
1356
|
# @param return_partial_success [::Boolean]
|
|
1105
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
1357
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
1358
|
+
# of failure. The default value is false.
|
|
1359
|
+
#
|
|
1360
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
1361
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
1362
|
+
# with an error code.
|
|
1106
1363
|
# @param zone [::String]
|
|
1107
1364
|
# The name of the zone for this request.
|
|
1108
1365
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1190,7 +1447,19 @@ module Google
|
|
|
1190
1447
|
# @param project [::String]
|
|
1191
1448
|
# Project ID for this request.
|
|
1192
1449
|
# @param request_id [::String]
|
|
1193
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1450
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1451
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1452
|
+
# request if it has already been completed.
|
|
1453
|
+
#
|
|
1454
|
+
# For example, consider a situation where you make an initial request and
|
|
1455
|
+
# the request times out. If you make the request again with the same
|
|
1456
|
+
# request ID, the server can check if original operation with the same
|
|
1457
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1458
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1459
|
+
#
|
|
1460
|
+
# The request ID must be
|
|
1461
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1462
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1194
1463
|
# @param zone [::String]
|
|
1195
1464
|
# The name of the zone for this request.
|
|
1196
1465
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1262,7 +1531,8 @@ module Google
|
|
|
1262
1531
|
end
|
|
1263
1532
|
|
|
1264
1533
|
##
|
|
1265
|
-
# Resizes the specified persistent disk.
|
|
1534
|
+
# Resizes the specified persistent disk.
|
|
1535
|
+
# You can only increase the size of the disk.
|
|
1266
1536
|
#
|
|
1267
1537
|
# @overload resize(request, options = nil)
|
|
1268
1538
|
# Pass arguments to `resize` via a request object, either of type
|
|
@@ -1286,7 +1556,19 @@ module Google
|
|
|
1286
1556
|
# @param project [::String]
|
|
1287
1557
|
# Project ID for this request.
|
|
1288
1558
|
# @param request_id [::String]
|
|
1289
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1559
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1560
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1561
|
+
# request if it has already been completed.
|
|
1562
|
+
#
|
|
1563
|
+
# For example, consider a situation where you make an initial request and
|
|
1564
|
+
# the request times out. If you make the request again with the same
|
|
1565
|
+
# request ID, the server can check if original operation with the same
|
|
1566
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1567
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1568
|
+
#
|
|
1569
|
+
# The request ID must be
|
|
1570
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1571
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1290
1572
|
# @param zone [::String]
|
|
1291
1573
|
# The name of the zone for this request.
|
|
1292
1574
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1358,7 +1640,8 @@ module Google
|
|
|
1358
1640
|
end
|
|
1359
1641
|
|
|
1360
1642
|
##
|
|
1361
|
-
# Sets the access control policy on the specified resource.
|
|
1643
|
+
# Sets the access control policy on the specified resource.
|
|
1644
|
+
# Replaces any existing policy.
|
|
1362
1645
|
#
|
|
1363
1646
|
# @overload set_iam_policy(request, options = nil)
|
|
1364
1647
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
@@ -1442,7 +1725,8 @@ module Google
|
|
|
1442
1725
|
end
|
|
1443
1726
|
|
|
1444
1727
|
##
|
|
1445
|
-
# Sets the labels on a disk. To learn more about labels, read
|
|
1728
|
+
# Sets the labels on a disk. To learn more about labels, read theLabeling
|
|
1729
|
+
# Resources documentation.
|
|
1446
1730
|
#
|
|
1447
1731
|
# @overload set_labels(request, options = nil)
|
|
1448
1732
|
# Pass arguments to `set_labels` via a request object, either of type
|
|
@@ -1462,7 +1746,19 @@ module Google
|
|
|
1462
1746
|
# @param project [::String]
|
|
1463
1747
|
# Project ID for this request.
|
|
1464
1748
|
# @param request_id [::String]
|
|
1465
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1749
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1750
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1751
|
+
# request if it has already been completed.
|
|
1752
|
+
#
|
|
1753
|
+
# For example, consider a situation where you make an initial request and
|
|
1754
|
+
# the request times out. If you make the request again with the same
|
|
1755
|
+
# request ID, the server can check if original operation with the same
|
|
1756
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1757
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1758
|
+
#
|
|
1759
|
+
# The request ID must be
|
|
1760
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1761
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1466
1762
|
# @param resource [::String]
|
|
1467
1763
|
# Name or id of the resource for this request.
|
|
1468
1764
|
# @param zone [::String]
|
|
@@ -1538,7 +1834,8 @@ module Google
|
|
|
1538
1834
|
end
|
|
1539
1835
|
|
|
1540
1836
|
##
|
|
1541
|
-
# Starts asynchronous replication.
|
|
1837
|
+
# Starts asynchronous replication.
|
|
1838
|
+
# Must be invoked on the primary disk.
|
|
1542
1839
|
#
|
|
1543
1840
|
# @overload start_async_replication(request, options = nil)
|
|
1544
1841
|
# Pass arguments to `start_async_replication` via a request object, either of type
|
|
@@ -1562,7 +1859,19 @@ module Google
|
|
|
1562
1859
|
# @param project [::String]
|
|
1563
1860
|
# Project ID for this request.
|
|
1564
1861
|
# @param request_id [::String]
|
|
1565
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1862
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1863
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1864
|
+
# request if it has already been completed.
|
|
1865
|
+
#
|
|
1866
|
+
# For example, consider a situation where you make an initial request and
|
|
1867
|
+
# the request times out. If you make the request again with the same
|
|
1868
|
+
# request ID, the server can check if original operation with the same
|
|
1869
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1870
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1871
|
+
#
|
|
1872
|
+
# The request ID must be
|
|
1873
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1874
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1566
1875
|
# @param zone [::String]
|
|
1567
1876
|
# The name of the zone for this request.
|
|
1568
1877
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1634,7 +1943,8 @@ module Google
|
|
|
1634
1943
|
end
|
|
1635
1944
|
|
|
1636
1945
|
##
|
|
1637
|
-
# Stops asynchronous replication.
|
|
1946
|
+
# Stops asynchronous replication.
|
|
1947
|
+
# Can be invoked either on the primary or on the secondary disk.
|
|
1638
1948
|
#
|
|
1639
1949
|
# @overload stop_async_replication(request, options = nil)
|
|
1640
1950
|
# Pass arguments to `stop_async_replication` via a request object, either of type
|
|
@@ -1656,7 +1966,19 @@ module Google
|
|
|
1656
1966
|
# @param project [::String]
|
|
1657
1967
|
# Project ID for this request.
|
|
1658
1968
|
# @param request_id [::String]
|
|
1659
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1969
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1970
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1971
|
+
# request if it has already been completed.
|
|
1972
|
+
#
|
|
1973
|
+
# For example, consider a situation where you make an initial request and
|
|
1974
|
+
# the request times out. If you make the request again with the same
|
|
1975
|
+
# request ID, the server can check if original operation with the same
|
|
1976
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1977
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1978
|
+
#
|
|
1979
|
+
# The request ID must be
|
|
1980
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1981
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1660
1982
|
# @param zone [::String]
|
|
1661
1983
|
# The name of the zone for this request.
|
|
1662
1984
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1728,7 +2050,8 @@ module Google
|
|
|
1728
2050
|
end
|
|
1729
2051
|
|
|
1730
2052
|
##
|
|
1731
|
-
# Stops asynchronous replication for a consistency group of disks.
|
|
2053
|
+
# Stops asynchronous replication for a consistency group of disks.
|
|
2054
|
+
# Can be invoked either in the primary or secondary scope.
|
|
1732
2055
|
#
|
|
1733
2056
|
# @overload stop_group_async_replication(request, options = nil)
|
|
1734
2057
|
# Pass arguments to `stop_group_async_replication` via a request object, either of type
|
|
@@ -1750,9 +2073,22 @@ module Google
|
|
|
1750
2073
|
# @param project [::String]
|
|
1751
2074
|
# Project ID for this request.
|
|
1752
2075
|
# @param request_id [::String]
|
|
1753
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2076
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2077
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2078
|
+
# request if it has already been completed.
|
|
2079
|
+
#
|
|
2080
|
+
# For example, consider a situation where you make an initial request and
|
|
2081
|
+
# the request times out. If you make the request again with the same
|
|
2082
|
+
# request ID, the server can check if original operation with the same
|
|
2083
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
2084
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
2085
|
+
#
|
|
2086
|
+
# The request ID must be
|
|
2087
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
2088
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1754
2089
|
# @param zone [::String]
|
|
1755
|
-
# The name of the zone for this request. This must be the zone of the primary
|
|
2090
|
+
# The name of the zone for this request. This must be the zone of the primary
|
|
2091
|
+
# or secondary disks in the consistency group.
|
|
1756
2092
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1757
2093
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1758
2094
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1906,7 +2242,9 @@ module Google
|
|
|
1906
2242
|
end
|
|
1907
2243
|
|
|
1908
2244
|
##
|
|
1909
|
-
# Updates the specified disk with the data included in the request.
|
|
2245
|
+
# Updates the specified disk with the data included in the request.
|
|
2246
|
+
# The update is performed only on selected fields included as part
|
|
2247
|
+
# of update-mask.
|
|
1910
2248
|
#
|
|
1911
2249
|
# @overload update(request, options = nil)
|
|
1912
2250
|
# Pass arguments to `update` via a request object, either of type
|
|
@@ -1931,7 +2269,19 @@ module Google
|
|
|
1931
2269
|
# @param project [::String]
|
|
1932
2270
|
# Project ID for this request.
|
|
1933
2271
|
# @param request_id [::String]
|
|
1934
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2272
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2273
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2274
|
+
# request if it has already been completed.
|
|
2275
|
+
#
|
|
2276
|
+
# For example, consider a situation where you make an initial request and
|
|
2277
|
+
# the request times out. If you make the request again with the same
|
|
2278
|
+
# request ID, the server can check if original operation with the same
|
|
2279
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
2280
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
2281
|
+
#
|
|
2282
|
+
# The request ID must be
|
|
2283
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
2284
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1935
2285
|
# @param update_mask [::String]
|
|
1936
2286
|
# update_mask indicates fields to be updated as part of this request.
|
|
1937
2287
|
# @param zone [::String]
|
|
@@ -2004,6 +2354,115 @@ module Google
|
|
|
2004
2354
|
raise ::Google::Cloud::Error.from_error(e)
|
|
2005
2355
|
end
|
|
2006
2356
|
|
|
2357
|
+
##
|
|
2358
|
+
# Rotates the customer-managed
|
|
2359
|
+
# encryption key to the latest version for the specified persistent disk.
|
|
2360
|
+
#
|
|
2361
|
+
# @overload update_kms_key(request, options = nil)
|
|
2362
|
+
# Pass arguments to `update_kms_key` via a request object, either of type
|
|
2363
|
+
# {::Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest} or an equivalent Hash.
|
|
2364
|
+
#
|
|
2365
|
+
# @param request [::Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest, ::Hash]
|
|
2366
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2367
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2368
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2369
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2370
|
+
#
|
|
2371
|
+
# @overload update_kms_key(disk: nil, disk_update_kms_key_request_resource: nil, project: nil, request_id: nil, zone: nil)
|
|
2372
|
+
# Pass arguments to `update_kms_key` via keyword arguments. Note that at
|
|
2373
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2374
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2375
|
+
#
|
|
2376
|
+
# @param disk [::String]
|
|
2377
|
+
# Name of the Disk resource, should conform to RFC1035.
|
|
2378
|
+
# @param disk_update_kms_key_request_resource [::Google::Cloud::Compute::V1::DiskUpdateKmsKeyRequest, ::Hash]
|
|
2379
|
+
# The body resource for this request
|
|
2380
|
+
# @param project [::String]
|
|
2381
|
+
# Project ID for this request.
|
|
2382
|
+
# @param request_id [::String]
|
|
2383
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2384
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2385
|
+
# request if it has already been completed.
|
|
2386
|
+
#
|
|
2387
|
+
# For example, consider a situation where you make an initial request and
|
|
2388
|
+
# the request times out. If you make the request again with the same
|
|
2389
|
+
# request ID, the server can check if original operation with the same
|
|
2390
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
2391
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
2392
|
+
#
|
|
2393
|
+
# The request ID must be
|
|
2394
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
2395
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
2396
|
+
# @param zone [::String]
|
|
2397
|
+
# The name of the zone for this request.
|
|
2398
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2399
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
2400
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2401
|
+
#
|
|
2402
|
+
# @return [::Gapic::GenericLRO::Operation]
|
|
2403
|
+
#
|
|
2404
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2405
|
+
#
|
|
2406
|
+
# @example Basic example
|
|
2407
|
+
# require "google/cloud/compute/v1"
|
|
2408
|
+
#
|
|
2409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2410
|
+
# client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
|
|
2411
|
+
#
|
|
2412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2413
|
+
# request = Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest.new
|
|
2414
|
+
#
|
|
2415
|
+
# # Call the update_kms_key method.
|
|
2416
|
+
# result = client.update_kms_key request
|
|
2417
|
+
#
|
|
2418
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
2419
|
+
# p result
|
|
2420
|
+
#
|
|
2421
|
+
def update_kms_key request, options = nil
|
|
2422
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2423
|
+
|
|
2424
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::UpdateKmsKeyDiskRequest
|
|
2425
|
+
|
|
2426
|
+
# Converts hash and nil to an options object
|
|
2427
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2428
|
+
|
|
2429
|
+
# Customize the options with defaults
|
|
2430
|
+
call_metadata = @config.rpcs.update_kms_key.metadata.to_h
|
|
2431
|
+
|
|
2432
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2433
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2434
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2435
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
2436
|
+
transports_version_send: [:rest]
|
|
2437
|
+
|
|
2438
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2439
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2440
|
+
|
|
2441
|
+
options.apply_defaults timeout: @config.rpcs.update_kms_key.timeout,
|
|
2442
|
+
metadata: call_metadata,
|
|
2443
|
+
retry_policy: @config.rpcs.update_kms_key.retry_policy
|
|
2444
|
+
|
|
2445
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2446
|
+
metadata: @config.metadata,
|
|
2447
|
+
retry_policy: @config.retry_policy
|
|
2448
|
+
|
|
2449
|
+
@disks_stub.update_kms_key request, options do |result, response|
|
|
2450
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
|
2451
|
+
operation: result,
|
|
2452
|
+
client: zone_operations,
|
|
2453
|
+
request_values: {
|
|
2454
|
+
"project" => request.project,
|
|
2455
|
+
"zone" => request.zone
|
|
2456
|
+
},
|
|
2457
|
+
options: options
|
|
2458
|
+
)
|
|
2459
|
+
yield result, response if block_given?
|
|
2460
|
+
throw :response, result
|
|
2461
|
+
end
|
|
2462
|
+
rescue ::Gapic::Rest::Error => e
|
|
2463
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2007
2466
|
##
|
|
2008
2467
|
# Configuration class for the Disks REST API.
|
|
2009
2468
|
#
|
|
@@ -2245,6 +2704,11 @@ module Google
|
|
|
2245
2704
|
# @return [::Gapic::Config::Method]
|
|
2246
2705
|
#
|
|
2247
2706
|
attr_reader :update
|
|
2707
|
+
##
|
|
2708
|
+
# RPC-specific configuration for `update_kms_key`
|
|
2709
|
+
# @return [::Gapic::Config::Method]
|
|
2710
|
+
#
|
|
2711
|
+
attr_reader :update_kms_key
|
|
2248
2712
|
|
|
2249
2713
|
# @private
|
|
2250
2714
|
def initialize parent_rpcs = nil
|
|
@@ -2286,6 +2750,8 @@ module Google
|
|
|
2286
2750
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
2287
2751
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
|
2288
2752
|
@update = ::Gapic::Config::Method.new update_config
|
|
2753
|
+
update_kms_key_config = parent_rpcs.update_kms_key if parent_rpcs.respond_to? :update_kms_key
|
|
2754
|
+
@update_kms_key = ::Gapic::Config::Method.new update_kms_key_config
|
|
2289
2755
|
|
|
2290
2756
|
yield self if block_given?
|
|
2291
2757
|
end
|