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
|
@@ -114,6 +114,8 @@ module Google
|
|
|
114
114
|
|
|
115
115
|
default_config.rpcs.update.timeout = 600.0
|
|
116
116
|
|
|
117
|
+
default_config.rpcs.update_kms_key.timeout = 600.0
|
|
118
|
+
|
|
117
119
|
default_config
|
|
118
120
|
end
|
|
119
121
|
yield @configure if block_given?
|
|
@@ -233,7 +235,9 @@ module Google
|
|
|
233
235
|
# Service calls
|
|
234
236
|
|
|
235
237
|
##
|
|
236
|
-
# Adds existing resource policies to a regional disk. You can only add one
|
|
238
|
+
# Adds existing resource policies to a regional disk. You can only add one
|
|
239
|
+
# policy which will be applied to this disk for scheduling snapshot
|
|
240
|
+
# creation.
|
|
237
241
|
#
|
|
238
242
|
# @overload add_resource_policies(request, options = nil)
|
|
239
243
|
# Pass arguments to `add_resource_policies` via a request object, either of type
|
|
@@ -259,7 +263,19 @@ module Google
|
|
|
259
263
|
# @param region_disks_add_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksAddResourcePoliciesRequest, ::Hash]
|
|
260
264
|
# The body resource for this request
|
|
261
265
|
# @param request_id [::String]
|
|
262
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
266
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
267
|
+
# that if you must retry your request, the server will know to ignore the
|
|
268
|
+
# request if it has already been completed.
|
|
269
|
+
#
|
|
270
|
+
# For example, consider a situation where you make an initial request and
|
|
271
|
+
# the request times out. If you make the request again with the same
|
|
272
|
+
# request ID, the server can check if original operation with the same
|
|
273
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
274
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
275
|
+
#
|
|
276
|
+
# The request ID must be
|
|
277
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
278
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
263
279
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
264
280
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
265
281
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -353,7 +369,19 @@ module Google
|
|
|
353
369
|
# @param region [::String]
|
|
354
370
|
# The name of the region for this request.
|
|
355
371
|
# @param request_id [::String]
|
|
356
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
372
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
373
|
+
# that if you must retry your request, the server will know to ignore the
|
|
374
|
+
# request if it has already been completed.
|
|
375
|
+
#
|
|
376
|
+
# For example, consider a situation where you make an initial request and
|
|
377
|
+
# the request times out. If you make the request again with the same
|
|
378
|
+
# request ID, the server can check if original operation with the same
|
|
379
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
380
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
381
|
+
#
|
|
382
|
+
# The request ID must be
|
|
383
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
384
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
357
385
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
358
386
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
359
387
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -423,7 +451,10 @@ module Google
|
|
|
423
451
|
end
|
|
424
452
|
|
|
425
453
|
##
|
|
426
|
-
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
|
454
|
+
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
|
455
|
+
# creation, consider using snapshots.insert
|
|
456
|
+
# instead, as that method supports more features, such as creating snapshots
|
|
457
|
+
# in a project different from the source disk project.
|
|
427
458
|
#
|
|
428
459
|
# @overload create_snapshot(request, options = nil)
|
|
429
460
|
# Pass arguments to `create_snapshot` via a request object, either of type
|
|
@@ -447,7 +478,19 @@ module Google
|
|
|
447
478
|
# @param region [::String]
|
|
448
479
|
# Name of the region for this request.
|
|
449
480
|
# @param request_id [::String]
|
|
450
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
481
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
482
|
+
# that if you must retry your request, the server will know to ignore the
|
|
483
|
+
# request if it has already been completed.
|
|
484
|
+
#
|
|
485
|
+
# For example, consider a situation where you make an initial request and
|
|
486
|
+
# the request times out. If you make the request again with the same
|
|
487
|
+
# request ID, the server can check if original operation with the same
|
|
488
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
489
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
490
|
+
#
|
|
491
|
+
# The request ID must be
|
|
492
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
493
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
451
494
|
# @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
|
|
452
495
|
# The body resource for this request
|
|
453
496
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -519,7 +562,11 @@ module Google
|
|
|
519
562
|
end
|
|
520
563
|
|
|
521
564
|
##
|
|
522
|
-
# Deletes the specified regional persistent disk. Deleting a regional disk
|
|
565
|
+
# Deletes the specified regional persistent disk. Deleting a regional disk
|
|
566
|
+
# removes all the replicas of its data permanently and is irreversible.
|
|
567
|
+
# However, deleting a disk does not delete anysnapshots
|
|
568
|
+
# previously made from the disk. You must separatelydelete
|
|
569
|
+
# snapshots.
|
|
523
570
|
#
|
|
524
571
|
# @overload delete(request, options = nil)
|
|
525
572
|
# Pass arguments to `delete` via a request object, either of type
|
|
@@ -543,7 +590,19 @@ module Google
|
|
|
543
590
|
# @param region [::String]
|
|
544
591
|
# Name of the region for this request.
|
|
545
592
|
# @param request_id [::String]
|
|
546
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
593
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
594
|
+
# that if you must retry your request, the server will know to ignore the
|
|
595
|
+
# request if it has already been completed.
|
|
596
|
+
#
|
|
597
|
+
# For example, consider a situation where you make an initial request and
|
|
598
|
+
# the request times out. If you make the request again with the same
|
|
599
|
+
# request ID, the server can check if original operation with the same
|
|
600
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
601
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
602
|
+
#
|
|
603
|
+
# The request ID must be
|
|
604
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
605
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
547
606
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
548
607
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
549
608
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -695,7 +754,8 @@ module Google
|
|
|
695
754
|
end
|
|
696
755
|
|
|
697
756
|
##
|
|
698
|
-
# Gets the access control policy for a resource. May be empty if no such
|
|
757
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
758
|
+
# policy or resource exists.
|
|
699
759
|
#
|
|
700
760
|
# @overload get_iam_policy(request, options = nil)
|
|
701
761
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
@@ -779,7 +839,8 @@ module Google
|
|
|
779
839
|
end
|
|
780
840
|
|
|
781
841
|
##
|
|
782
|
-
# Creates a persistent regional disk in the specified project using the data
|
|
842
|
+
# Creates a persistent regional disk in the specified project using the data
|
|
843
|
+
# included in the request.
|
|
783
844
|
#
|
|
784
845
|
# @overload insert(request, options = nil)
|
|
785
846
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -803,7 +864,19 @@ module Google
|
|
|
803
864
|
# @param region [::String]
|
|
804
865
|
# Name of the region for this request.
|
|
805
866
|
# @param request_id [::String]
|
|
806
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
867
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
868
|
+
# that if you must retry your request, the server will know to ignore the
|
|
869
|
+
# request if it has already been completed.
|
|
870
|
+
#
|
|
871
|
+
# For example, consider a situation where you make an initial request and
|
|
872
|
+
# the request times out. If you make the request again with the same
|
|
873
|
+
# request ID, the server can check if original operation with the same
|
|
874
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
875
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
876
|
+
#
|
|
877
|
+
# The request ID must be
|
|
878
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
879
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
807
880
|
# @param source_image [::String]
|
|
808
881
|
# Source image to restore onto a disk. This field is optional.
|
|
809
882
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -875,7 +948,8 @@ module Google
|
|
|
875
948
|
end
|
|
876
949
|
|
|
877
950
|
##
|
|
878
|
-
# Retrieves the list of persistent disks contained within
|
|
951
|
+
# Retrieves the list of persistent disks contained within
|
|
952
|
+
# the specified region.
|
|
879
953
|
#
|
|
880
954
|
# @overload list(request, options = nil)
|
|
881
955
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -893,19 +967,97 @@ module Google
|
|
|
893
967
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
894
968
|
#
|
|
895
969
|
# @param filter [::String]
|
|
896
|
-
# A filter expression that filters resources listed in the response. Most
|
|
970
|
+
# A filter expression that filters resources listed in the response. Most
|
|
971
|
+
# Compute resources support two types of filter expressions:
|
|
972
|
+
# expressions that support regular expressions and expressions that follow
|
|
973
|
+
# API improvement proposal AIP-160.
|
|
974
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
975
|
+
#
|
|
976
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
977
|
+
# operator, and the value that you want to use for filtering. The value
|
|
978
|
+
# must be a string, a number, or a boolean. The operator
|
|
979
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
980
|
+
#
|
|
981
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
982
|
+
# exclude instances named `example-instance` by specifying
|
|
983
|
+
# `name != example-instance`.
|
|
984
|
+
#
|
|
985
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
986
|
+
# For example, to find all objects with `owner` label use:
|
|
987
|
+
# ```
|
|
988
|
+
# labels.owner:*
|
|
989
|
+
# ```
|
|
990
|
+
#
|
|
991
|
+
# You can also filter nested fields. For example, you could specify
|
|
992
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
993
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
994
|
+
# on nested fields to filter based onresource labels.
|
|
995
|
+
#
|
|
996
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
997
|
+
# parentheses. For example:
|
|
998
|
+
# ```
|
|
999
|
+
# (scheduling.automaticRestart = true)
|
|
1000
|
+
# (cpuPlatform = "Intel Skylake")
|
|
1001
|
+
# ```
|
|
1002
|
+
# By default, each expression is an `AND` expression. However, you
|
|
1003
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
1004
|
+
# For example:
|
|
1005
|
+
# ```
|
|
1006
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
1007
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
1008
|
+
# (scheduling.automaticRestart = true)
|
|
1009
|
+
# ```
|
|
1010
|
+
#
|
|
1011
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
1012
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
1013
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
1014
|
+
#
|
|
1015
|
+
# `fieldname eq unquoted literal`
|
|
1016
|
+
# `fieldname eq 'single quoted literal'`
|
|
1017
|
+
# `fieldname eq "double quoted literal"`
|
|
1018
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
1019
|
+
#
|
|
1020
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
1021
|
+
# The literal value must match the entire field.
|
|
1022
|
+
#
|
|
1023
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
1024
|
+
# you would use `name ne .*instance`.
|
|
1025
|
+
#
|
|
1026
|
+
# You cannot combine constraints on multiple fields using regular
|
|
1027
|
+
# expressions.
|
|
897
1028
|
# @param max_results [::Integer]
|
|
898
|
-
# The maximum number of results per page that should be returned.
|
|
1029
|
+
# The maximum number of results per page that should be returned.
|
|
1030
|
+
# If the number of available results is larger than `maxResults`,
|
|
1031
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
1032
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
1033
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
899
1034
|
# @param order_by [::String]
|
|
900
|
-
# Sorts list results by a certain order. By default, results
|
|
1035
|
+
# Sorts list results by a certain order. By default, results
|
|
1036
|
+
# are returned in alphanumerical order based on the resource name.
|
|
1037
|
+
#
|
|
1038
|
+
# You can also sort results in descending order based on the creation
|
|
1039
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
1040
|
+
# results based on the `creationTimestamp` field in
|
|
1041
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
1042
|
+
# resources like operations so that the newest operation is returned first.
|
|
1043
|
+
#
|
|
1044
|
+
# Currently, only sorting by `name` or
|
|
1045
|
+
# `creationTimestamp desc` is supported.
|
|
901
1046
|
# @param page_token [::String]
|
|
902
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
1047
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
1048
|
+
# `nextPageToken` returned by a previous list request to get
|
|
1049
|
+
# the next page of results.
|
|
903
1050
|
# @param project [::String]
|
|
904
1051
|
# Project ID for this request.
|
|
905
1052
|
# @param region [::String]
|
|
906
1053
|
# Name of the region for this request.
|
|
907
1054
|
# @param return_partial_success [::Boolean]
|
|
908
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
1055
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
1056
|
+
# of failure. The default value is false.
|
|
1057
|
+
#
|
|
1058
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
1059
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
1060
|
+
# with an error code.
|
|
909
1061
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
910
1062
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
|
|
911
1063
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -993,7 +1145,19 @@ module Google
|
|
|
993
1145
|
# @param region_disks_remove_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksRemoveResourcePoliciesRequest, ::Hash]
|
|
994
1146
|
# The body resource for this request
|
|
995
1147
|
# @param request_id [::String]
|
|
996
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1148
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1149
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1150
|
+
# request if it has already been completed.
|
|
1151
|
+
#
|
|
1152
|
+
# For example, consider a situation where you make an initial request and
|
|
1153
|
+
# the request times out. If you make the request again with the same
|
|
1154
|
+
# request ID, the server can check if original operation with the same
|
|
1155
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1156
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1157
|
+
#
|
|
1158
|
+
# The request ID must be
|
|
1159
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1160
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
997
1161
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
998
1162
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
999
1163
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1089,7 +1253,19 @@ module Google
|
|
|
1089
1253
|
# @param region_disks_resize_request_resource [::Google::Cloud::Compute::V1::RegionDisksResizeRequest, ::Hash]
|
|
1090
1254
|
# The body resource for this request
|
|
1091
1255
|
# @param request_id [::String]
|
|
1092
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1256
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1257
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1258
|
+
# request if it has already been completed.
|
|
1259
|
+
#
|
|
1260
|
+
# For example, consider a situation where you make an initial request and
|
|
1261
|
+
# the request times out. If you make the request again with the same
|
|
1262
|
+
# request ID, the server can check if original operation with the same
|
|
1263
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1264
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1265
|
+
#
|
|
1266
|
+
# The request ID must be
|
|
1267
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1268
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1093
1269
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1094
1270
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1095
1271
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1159,7 +1335,8 @@ module Google
|
|
|
1159
1335
|
end
|
|
1160
1336
|
|
|
1161
1337
|
##
|
|
1162
|
-
# Sets the access control policy on the specified resource.
|
|
1338
|
+
# Sets the access control policy on the specified resource.
|
|
1339
|
+
# Replaces any existing policy.
|
|
1163
1340
|
#
|
|
1164
1341
|
# @overload set_iam_policy(request, options = nil)
|
|
1165
1342
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
@@ -1267,7 +1444,19 @@ module Google
|
|
|
1267
1444
|
# @param region_set_labels_request_resource [::Google::Cloud::Compute::V1::RegionSetLabelsRequest, ::Hash]
|
|
1268
1445
|
# The body resource for this request
|
|
1269
1446
|
# @param request_id [::String]
|
|
1270
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1447
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1448
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1449
|
+
# request if it has already been completed.
|
|
1450
|
+
#
|
|
1451
|
+
# For example, consider a situation where you make an initial request and
|
|
1452
|
+
# the request times out. If you make the request again with the same
|
|
1453
|
+
# request ID, the server can check if original operation with the same
|
|
1454
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1455
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1456
|
+
#
|
|
1457
|
+
# The request ID must be
|
|
1458
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1459
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1271
1460
|
# @param resource [::String]
|
|
1272
1461
|
# Name or id of the resource for this request.
|
|
1273
1462
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1339,7 +1528,8 @@ module Google
|
|
|
1339
1528
|
end
|
|
1340
1529
|
|
|
1341
1530
|
##
|
|
1342
|
-
# Starts asynchronous replication.
|
|
1531
|
+
# Starts asynchronous replication.
|
|
1532
|
+
# Must be invoked on the primary disk.
|
|
1343
1533
|
#
|
|
1344
1534
|
# @overload start_async_replication(request, options = nil)
|
|
1345
1535
|
# Pass arguments to `start_async_replication` via a request object, either of type
|
|
@@ -1365,7 +1555,19 @@ module Google
|
|
|
1365
1555
|
# @param region_disks_start_async_replication_request_resource [::Google::Cloud::Compute::V1::RegionDisksStartAsyncReplicationRequest, ::Hash]
|
|
1366
1556
|
# The body resource for this request
|
|
1367
1557
|
# @param request_id [::String]
|
|
1368
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1558
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1559
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1560
|
+
# request if it has already been completed.
|
|
1561
|
+
#
|
|
1562
|
+
# For example, consider a situation where you make an initial request and
|
|
1563
|
+
# the request times out. If you make the request again with the same
|
|
1564
|
+
# request ID, the server can check if original operation with the same
|
|
1565
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1566
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1567
|
+
#
|
|
1568
|
+
# The request ID must be
|
|
1569
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1570
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1369
1571
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1370
1572
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1371
1573
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1435,7 +1637,8 @@ module Google
|
|
|
1435
1637
|
end
|
|
1436
1638
|
|
|
1437
1639
|
##
|
|
1438
|
-
# Stops asynchronous replication.
|
|
1640
|
+
# Stops asynchronous replication.
|
|
1641
|
+
# Can be invoked either on the primary or on the secondary disk.
|
|
1439
1642
|
#
|
|
1440
1643
|
# @overload stop_async_replication(request, options = nil)
|
|
1441
1644
|
# Pass arguments to `stop_async_replication` via a request object, either of type
|
|
@@ -1459,7 +1662,19 @@ module Google
|
|
|
1459
1662
|
# @param region [::String]
|
|
1460
1663
|
# The name of the region for this request.
|
|
1461
1664
|
# @param request_id [::String]
|
|
1462
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1665
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1666
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1667
|
+
# request if it has already been completed.
|
|
1668
|
+
#
|
|
1669
|
+
# For example, consider a situation where you make an initial request and
|
|
1670
|
+
# the request times out. If you make the request again with the same
|
|
1671
|
+
# request ID, the server can check if original operation with the same
|
|
1672
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1673
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1674
|
+
#
|
|
1675
|
+
# The request ID must be
|
|
1676
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1677
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1463
1678
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1464
1679
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1465
1680
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1529,7 +1744,8 @@ module Google
|
|
|
1529
1744
|
end
|
|
1530
1745
|
|
|
1531
1746
|
##
|
|
1532
|
-
# Stops asynchronous replication for a consistency group of disks.
|
|
1747
|
+
# Stops asynchronous replication for a consistency group of disks.
|
|
1748
|
+
# Can be invoked either in the primary or secondary scope.
|
|
1533
1749
|
#
|
|
1534
1750
|
# @overload stop_group_async_replication(request, options = nil)
|
|
1535
1751
|
# Pass arguments to `stop_group_async_replication` via a request object, either of type
|
|
@@ -1551,9 +1767,22 @@ module Google
|
|
|
1551
1767
|
# @param project [::String]
|
|
1552
1768
|
# Project ID for this request.
|
|
1553
1769
|
# @param region [::String]
|
|
1554
|
-
# The name of the region for this request. This must be the region of the
|
|
1770
|
+
# The name of the region for this request. This must be the region of the
|
|
1771
|
+
# primary or secondary disks in the consistency group.
|
|
1555
1772
|
# @param request_id [::String]
|
|
1556
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1773
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1774
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1775
|
+
# request if it has already been completed.
|
|
1776
|
+
#
|
|
1777
|
+
# For example, consider a situation where you make an initial request and
|
|
1778
|
+
# the request times out. If you make the request again with the same
|
|
1779
|
+
# request ID, the server can check if original operation with the same
|
|
1780
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1781
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1782
|
+
#
|
|
1783
|
+
# The request ID must be
|
|
1784
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1785
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1557
1786
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1558
1787
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1559
1788
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1707,7 +1936,8 @@ module Google
|
|
|
1707
1936
|
end
|
|
1708
1937
|
|
|
1709
1938
|
##
|
|
1710
|
-
# Update the specified disk with the data included in the request. Update is
|
|
1939
|
+
# Update the specified disk with the data included in the request. Update is
|
|
1940
|
+
# performed only on selected fields included as part of update-mask.
|
|
1711
1941
|
#
|
|
1712
1942
|
# @overload update(request, options = nil)
|
|
1713
1943
|
# Pass arguments to `update` via a request object, either of type
|
|
@@ -1734,7 +1964,19 @@ module Google
|
|
|
1734
1964
|
# @param region [::String]
|
|
1735
1965
|
# The name of the region for this request.
|
|
1736
1966
|
# @param request_id [::String]
|
|
1737
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1967
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1968
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1969
|
+
# request if it has already been completed.
|
|
1970
|
+
#
|
|
1971
|
+
# For example, consider a situation where you make an initial request and
|
|
1972
|
+
# the request times out. If you make the request again with the same
|
|
1973
|
+
# request ID, the server can check if original operation with the same
|
|
1974
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
1975
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
1976
|
+
#
|
|
1977
|
+
# The request ID must be
|
|
1978
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
1979
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1738
1980
|
# @param update_mask [::String]
|
|
1739
1981
|
# update_mask indicates fields to be updated as part of this request.
|
|
1740
1982
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1805,6 +2047,115 @@ module Google
|
|
|
1805
2047
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1806
2048
|
end
|
|
1807
2049
|
|
|
2050
|
+
##
|
|
2051
|
+
# Rotates the customer-managed
|
|
2052
|
+
# encryption key to the latest version for the specified persistent disk.
|
|
2053
|
+
#
|
|
2054
|
+
# @overload update_kms_key(request, options = nil)
|
|
2055
|
+
# Pass arguments to `update_kms_key` via a request object, either of type
|
|
2056
|
+
# {::Google::Cloud::Compute::V1::UpdateKmsKeyRegionDiskRequest} or an equivalent Hash.
|
|
2057
|
+
#
|
|
2058
|
+
# @param request [::Google::Cloud::Compute::V1::UpdateKmsKeyRegionDiskRequest, ::Hash]
|
|
2059
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2060
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2061
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2062
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2063
|
+
#
|
|
2064
|
+
# @overload update_kms_key(disk: nil, project: nil, region: nil, region_disk_update_kms_key_request_resource: nil, request_id: nil)
|
|
2065
|
+
# Pass arguments to `update_kms_key` via keyword arguments. Note that at
|
|
2066
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2067
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2068
|
+
#
|
|
2069
|
+
# @param disk [::String]
|
|
2070
|
+
# Name of the Disk resource, should conform to RFC1035.
|
|
2071
|
+
# @param project [::String]
|
|
2072
|
+
# Project ID for this request.
|
|
2073
|
+
# @param region [::String]
|
|
2074
|
+
# The name of the region for this request.
|
|
2075
|
+
# @param region_disk_update_kms_key_request_resource [::Google::Cloud::Compute::V1::RegionDiskUpdateKmsKeyRequest, ::Hash]
|
|
2076
|
+
# The body resource for this request
|
|
2077
|
+
# @param request_id [::String]
|
|
2078
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2079
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2080
|
+
# request if it has already been completed.
|
|
2081
|
+
#
|
|
2082
|
+
# For example, consider a situation where you make an initial request and
|
|
2083
|
+
# the request times out. If you make the request again with the same
|
|
2084
|
+
# request ID, the server can check if original operation with the same
|
|
2085
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
2086
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
2087
|
+
#
|
|
2088
|
+
# The request ID must be
|
|
2089
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
2090
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
2091
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2092
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
2093
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2094
|
+
#
|
|
2095
|
+
# @return [::Gapic::GenericLRO::Operation]
|
|
2096
|
+
#
|
|
2097
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2098
|
+
#
|
|
2099
|
+
# @example Basic example
|
|
2100
|
+
# require "google/cloud/compute/v1"
|
|
2101
|
+
#
|
|
2102
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2103
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
|
2104
|
+
#
|
|
2105
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2106
|
+
# request = Google::Cloud::Compute::V1::UpdateKmsKeyRegionDiskRequest.new
|
|
2107
|
+
#
|
|
2108
|
+
# # Call the update_kms_key method.
|
|
2109
|
+
# result = client.update_kms_key request
|
|
2110
|
+
#
|
|
2111
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
2112
|
+
# p result
|
|
2113
|
+
#
|
|
2114
|
+
def update_kms_key request, options = nil
|
|
2115
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2116
|
+
|
|
2117
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::UpdateKmsKeyRegionDiskRequest
|
|
2118
|
+
|
|
2119
|
+
# Converts hash and nil to an options object
|
|
2120
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2121
|
+
|
|
2122
|
+
# Customize the options with defaults
|
|
2123
|
+
call_metadata = @config.rpcs.update_kms_key.metadata.to_h
|
|
2124
|
+
|
|
2125
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2126
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2127
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2128
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
2129
|
+
transports_version_send: [:rest]
|
|
2130
|
+
|
|
2131
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2132
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2133
|
+
|
|
2134
|
+
options.apply_defaults timeout: @config.rpcs.update_kms_key.timeout,
|
|
2135
|
+
metadata: call_metadata,
|
|
2136
|
+
retry_policy: @config.rpcs.update_kms_key.retry_policy
|
|
2137
|
+
|
|
2138
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2139
|
+
metadata: @config.metadata,
|
|
2140
|
+
retry_policy: @config.retry_policy
|
|
2141
|
+
|
|
2142
|
+
@region_disks_stub.update_kms_key request, options do |result, response|
|
|
2143
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
|
2144
|
+
operation: result,
|
|
2145
|
+
client: region_operations,
|
|
2146
|
+
request_values: {
|
|
2147
|
+
"project" => request.project,
|
|
2148
|
+
"region" => request.region
|
|
2149
|
+
},
|
|
2150
|
+
options: options
|
|
2151
|
+
)
|
|
2152
|
+
yield result, response if block_given?
|
|
2153
|
+
throw :response, result
|
|
2154
|
+
end
|
|
2155
|
+
rescue ::Gapic::Rest::Error => e
|
|
2156
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2157
|
+
end
|
|
2158
|
+
|
|
1808
2159
|
##
|
|
1809
2160
|
# Configuration class for the RegionDisks REST API.
|
|
1810
2161
|
#
|
|
@@ -2036,6 +2387,11 @@ module Google
|
|
|
2036
2387
|
# @return [::Gapic::Config::Method]
|
|
2037
2388
|
#
|
|
2038
2389
|
attr_reader :update
|
|
2390
|
+
##
|
|
2391
|
+
# RPC-specific configuration for `update_kms_key`
|
|
2392
|
+
# @return [::Gapic::Config::Method]
|
|
2393
|
+
#
|
|
2394
|
+
attr_reader :update_kms_key
|
|
2039
2395
|
|
|
2040
2396
|
# @private
|
|
2041
2397
|
def initialize parent_rpcs = nil
|
|
@@ -2073,6 +2429,8 @@ module Google
|
|
|
2073
2429
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
2074
2430
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
|
2075
2431
|
@update = ::Gapic::Config::Method.new update_config
|
|
2432
|
+
update_kms_key_config = parent_rpcs.update_kms_key if parent_rpcs.respond_to? :update_kms_key
|
|
2433
|
+
@update_kms_key = ::Gapic::Config::Method.new update_kms_key_config
|
|
2076
2434
|
|
|
2077
2435
|
yield self if block_given?
|
|
2078
2436
|
end
|