google-apis-compute_alpha 0.67.0 → 0.69.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.
@@ -2615,6 +2615,95 @@ module Google
|
|
2615
2615
|
execute_or_queue_command(command, &block)
|
2616
2616
|
end
|
2617
2617
|
|
2618
|
+
# Get Zonal Disk Settings.
|
2619
|
+
# @param [String] project
|
2620
|
+
# Project ID for this request.
|
2621
|
+
# @param [String] zone
|
2622
|
+
# Name of the zone for this request.
|
2623
|
+
# @param [String] fields
|
2624
|
+
# Selector specifying which fields to include in a partial response.
|
2625
|
+
# @param [String] quota_user
|
2626
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2627
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2628
|
+
# @param [String] user_ip
|
2629
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2630
|
+
# @param [Google::Apis::RequestOptions] options
|
2631
|
+
# Request-specific options
|
2632
|
+
#
|
2633
|
+
# @yield [result, err] Result & error if block supplied
|
2634
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
2635
|
+
# @yieldparam err [StandardError] error object if request failed
|
2636
|
+
#
|
2637
|
+
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
2638
|
+
#
|
2639
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2640
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2641
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2642
|
+
def get_disk_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2643
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskSettings', options)
|
2644
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
2645
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
2646
|
+
command.params['project'] = project unless project.nil?
|
2647
|
+
command.params['zone'] = zone unless zone.nil?
|
2648
|
+
command.query['fields'] = fields unless fields.nil?
|
2649
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2650
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2651
|
+
execute_or_queue_command(command, &block)
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
# Patch Zonal Disk Settings
|
2655
|
+
# @param [String] project
|
2656
|
+
# Project ID for this request.
|
2657
|
+
# @param [String] zone
|
2658
|
+
# The name of the zone for this request.
|
2659
|
+
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
2660
|
+
# @param [String] request_id
|
2661
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
2662
|
+
# that if you must retry your request, the server will know to ignore the
|
2663
|
+
# request if it has already been completed. For example, consider a situation
|
2664
|
+
# where you make an initial request and the request times out. If you make the
|
2665
|
+
# request again with the same request ID, the server can check if original
|
2666
|
+
# operation with the same request ID was received, and if so, will ignore the
|
2667
|
+
# second request. This prevents clients from accidentally creating duplicate
|
2668
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
2669
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
2670
|
+
# @param [String] update_mask
|
2671
|
+
# update_mask indicates fields to be updated as part of this request.
|
2672
|
+
# @param [String] fields
|
2673
|
+
# Selector specifying which fields to include in a partial response.
|
2674
|
+
# @param [String] quota_user
|
2675
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2676
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2677
|
+
# @param [String] user_ip
|
2678
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2679
|
+
# @param [Google::Apis::RequestOptions] options
|
2680
|
+
# Request-specific options
|
2681
|
+
#
|
2682
|
+
# @yield [result, err] Result & error if block supplied
|
2683
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
2684
|
+
# @yieldparam err [StandardError] error object if request failed
|
2685
|
+
#
|
2686
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
2687
|
+
#
|
2688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2691
|
+
def patch_disk_setting(project, zone, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2692
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/diskSettings', options)
|
2693
|
+
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
2694
|
+
command.request_object = disk_settings_object
|
2695
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
2696
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
2697
|
+
command.params['project'] = project unless project.nil?
|
2698
|
+
command.params['zone'] = zone unless zone.nil?
|
2699
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2700
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2701
|
+
command.query['fields'] = fields unless fields.nil?
|
2702
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2703
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2704
|
+
execute_or_queue_command(command, &block)
|
2705
|
+
end
|
2706
|
+
|
2618
2707
|
# Retrieves an aggregated list of disk types.
|
2619
2708
|
# @param [String] project
|
2620
2709
|
# Project ID for this request.
|
@@ -3648,7 +3737,6 @@ module Google
|
|
3648
3737
|
# The name of the zone for this request.
|
3649
3738
|
# @param [String] disk
|
3650
3739
|
# The name of the persistent disk.
|
3651
|
-
# @param [Google::Apis::ComputeAlpha::DisksStopAsyncReplicationRequest] disks_stop_async_replication_request_object
|
3652
3740
|
# @param [String] request_id
|
3653
3741
|
# An optional request ID to identify requests. Specify a unique request ID so
|
3654
3742
|
# that if you must retry your request, the server will know to ignore the
|
@@ -3678,10 +3766,8 @@ module Google
|
|
3678
3766
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3679
3767
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3680
3768
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3681
|
-
def stop_disk_async_replication(project, zone, disk,
|
3769
|
+
def stop_disk_async_replication(project, zone, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3682
3770
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication', options)
|
3683
|
-
command.request_representation = Google::Apis::ComputeAlpha::DisksStopAsyncReplicationRequest::Representation
|
3684
|
-
command.request_object = disks_stop_async_replication_request_object
|
3685
3771
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3686
3772
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3687
3773
|
command.params['project'] = project unless project.nil?
|
@@ -13924,6 +14010,48 @@ module Google
|
|
13924
14010
|
execute_or_queue_command(command, &block)
|
13925
14011
|
end
|
13926
14012
|
|
14013
|
+
# Gets partner metadata of the specified instance and namespaces.
|
14014
|
+
# @param [String] project
|
14015
|
+
# Project ID for this request.
|
14016
|
+
# @param [String] zone
|
14017
|
+
# The name of the zone for this request.
|
14018
|
+
# @param [String] instance
|
14019
|
+
# Name of the instance scoping this request.
|
14020
|
+
# @param [String] namespaces
|
14021
|
+
# Comma separated partner metadata namespaces.
|
14022
|
+
# @param [String] fields
|
14023
|
+
# Selector specifying which fields to include in a partial response.
|
14024
|
+
# @param [String] quota_user
|
14025
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14026
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14027
|
+
# @param [String] user_ip
|
14028
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14029
|
+
# @param [Google::Apis::RequestOptions] options
|
14030
|
+
# Request-specific options
|
14031
|
+
#
|
14032
|
+
# @yield [result, err] Result & error if block supplied
|
14033
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::PartnerMetadata] parsed result object
|
14034
|
+
# @yieldparam err [StandardError] error object if request failed
|
14035
|
+
#
|
14036
|
+
# @return [Google::Apis::ComputeAlpha::PartnerMetadata]
|
14037
|
+
#
|
14038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14041
|
+
def get_instance_partner_metadata(project, zone, instance, namespaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14042
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata', options)
|
14043
|
+
command.response_representation = Google::Apis::ComputeAlpha::PartnerMetadata::Representation
|
14044
|
+
command.response_class = Google::Apis::ComputeAlpha::PartnerMetadata
|
14045
|
+
command.params['project'] = project unless project.nil?
|
14046
|
+
command.params['zone'] = zone unless zone.nil?
|
14047
|
+
command.params['instance'] = instance unless instance.nil?
|
14048
|
+
command.query['namespaces'] = namespaces unless namespaces.nil?
|
14049
|
+
command.query['fields'] = fields unless fields.nil?
|
14050
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14051
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14052
|
+
execute_or_queue_command(command, &block)
|
14053
|
+
end
|
14054
|
+
|
13927
14055
|
# Returns the screenshot from the specified instance.
|
13928
14056
|
# @param [String] project
|
13929
14057
|
# Project ID for this request.
|
@@ -14350,6 +14478,59 @@ module Google
|
|
14350
14478
|
execute_or_queue_command(command, &block)
|
14351
14479
|
end
|
14352
14480
|
|
14481
|
+
# Patches partner metadata of the specified instance.
|
14482
|
+
# @param [String] project
|
14483
|
+
# Project ID for this request.
|
14484
|
+
# @param [String] zone
|
14485
|
+
# The name of the zone for this request.
|
14486
|
+
# @param [String] instance
|
14487
|
+
# Name of the instance scoping this request.
|
14488
|
+
# @param [Google::Apis::ComputeAlpha::PartnerMetadata] partner_metadata_object
|
14489
|
+
# @param [String] request_id
|
14490
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14491
|
+
# that if you must retry your request, the server will know to ignore the
|
14492
|
+
# request if it has already been completed. For example, consider a situation
|
14493
|
+
# where you make an initial request and the request times out. If you make the
|
14494
|
+
# request again with the same request ID, the server can check if original
|
14495
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14496
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14497
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14498
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14499
|
+
# @param [String] fields
|
14500
|
+
# Selector specifying which fields to include in a partial response.
|
14501
|
+
# @param [String] quota_user
|
14502
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14503
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14504
|
+
# @param [String] user_ip
|
14505
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14506
|
+
# @param [Google::Apis::RequestOptions] options
|
14507
|
+
# Request-specific options
|
14508
|
+
#
|
14509
|
+
# @yield [result, err] Result & error if block supplied
|
14510
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
14511
|
+
# @yieldparam err [StandardError] error object if request failed
|
14512
|
+
#
|
14513
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
14514
|
+
#
|
14515
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14516
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14517
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14518
|
+
def patch_instance_partner_metadata(project, zone, instance, partner_metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14519
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata', options)
|
14520
|
+
command.request_representation = Google::Apis::ComputeAlpha::PartnerMetadata::Representation
|
14521
|
+
command.request_object = partner_metadata_object
|
14522
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
14523
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
14524
|
+
command.params['project'] = project unless project.nil?
|
14525
|
+
command.params['zone'] = zone unless zone.nil?
|
14526
|
+
command.params['instance'] = instance unless instance.nil?
|
14527
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14528
|
+
command.query['fields'] = fields unless fields.nil?
|
14529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14530
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14531
|
+
execute_or_queue_command(command, &block)
|
14532
|
+
end
|
14533
|
+
|
14353
14534
|
# Perform a manual maintenance on the instance.
|
14354
14535
|
# @param [String] project
|
14355
14536
|
# Project ID for this request.
|
@@ -27465,6 +27646,106 @@ module Google
|
|
27465
27646
|
execute_or_queue_command(command, &block)
|
27466
27647
|
end
|
27467
27648
|
|
27649
|
+
# Calculate cancellation fee for the specified commitment.
|
27650
|
+
# @param [String] project
|
27651
|
+
# Project ID for this request.
|
27652
|
+
# @param [String] region
|
27653
|
+
# Name of the region for this request.
|
27654
|
+
# @param [String] commitment
|
27655
|
+
# Name of the commitment to delete.
|
27656
|
+
# @param [String] request_id
|
27657
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27658
|
+
# that if you must retry your request, the server will know to ignore the
|
27659
|
+
# request if it has already been completed. For example, consider a situation
|
27660
|
+
# where you make an initial request and the request times out. If you make the
|
27661
|
+
# request again with the same request ID, the server can check if original
|
27662
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27663
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27664
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27665
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27666
|
+
# @param [String] fields
|
27667
|
+
# Selector specifying which fields to include in a partial response.
|
27668
|
+
# @param [String] quota_user
|
27669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27671
|
+
# @param [String] user_ip
|
27672
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27673
|
+
# @param [Google::Apis::RequestOptions] options
|
27674
|
+
# Request-specific options
|
27675
|
+
#
|
27676
|
+
# @yield [result, err] Result & error if block supplied
|
27677
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27678
|
+
# @yieldparam err [StandardError] error object if request failed
|
27679
|
+
#
|
27680
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27681
|
+
#
|
27682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27685
|
+
def calculate_region_commitment_cancellation_fee(project, region, commitment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27686
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{commitment}/calculateCancellationFee', options)
|
27687
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27688
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27689
|
+
command.params['project'] = project unless project.nil?
|
27690
|
+
command.params['region'] = region unless region.nil?
|
27691
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
27692
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27693
|
+
command.query['fields'] = fields unless fields.nil?
|
27694
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27695
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27696
|
+
execute_or_queue_command(command, &block)
|
27697
|
+
end
|
27698
|
+
|
27699
|
+
# Cancel the specified commitment.
|
27700
|
+
# @param [String] project
|
27701
|
+
# Project ID for this request.
|
27702
|
+
# @param [String] region
|
27703
|
+
# Name of the region for this request.
|
27704
|
+
# @param [String] commitment
|
27705
|
+
# Name of the commitment to delete.
|
27706
|
+
# @param [String] request_id
|
27707
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27708
|
+
# that if you must retry your request, the server will know to ignore the
|
27709
|
+
# request if it has already been completed. For example, consider a situation
|
27710
|
+
# where you make an initial request and the request times out. If you make the
|
27711
|
+
# request again with the same request ID, the server can check if original
|
27712
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27713
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27714
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27715
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27716
|
+
# @param [String] fields
|
27717
|
+
# Selector specifying which fields to include in a partial response.
|
27718
|
+
# @param [String] quota_user
|
27719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27721
|
+
# @param [String] user_ip
|
27722
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27723
|
+
# @param [Google::Apis::RequestOptions] options
|
27724
|
+
# Request-specific options
|
27725
|
+
#
|
27726
|
+
# @yield [result, err] Result & error if block supplied
|
27727
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27728
|
+
# @yieldparam err [StandardError] error object if request failed
|
27729
|
+
#
|
27730
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27731
|
+
#
|
27732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27735
|
+
def cancel_region_commitment(project, region, commitment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27736
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{commitment}/cancel', options)
|
27737
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27738
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27739
|
+
command.params['project'] = project unless project.nil?
|
27740
|
+
command.params['region'] = region unless region.nil?
|
27741
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
27742
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27743
|
+
command.query['fields'] = fields unless fields.nil?
|
27744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27745
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27746
|
+
execute_or_queue_command(command, &block)
|
27747
|
+
end
|
27748
|
+
|
27468
27749
|
# Returns the specified commitment resource.
|
27469
27750
|
# @param [String] project
|
27470
27751
|
# Project ID for this request.
|
@@ -27801,6 +28082,95 @@ module Google
|
|
27801
28082
|
execute_or_queue_command(command, &block)
|
27802
28083
|
end
|
27803
28084
|
|
28085
|
+
# Get Regional Disk Settings.
|
28086
|
+
# @param [String] project
|
28087
|
+
# Project ID for this request.
|
28088
|
+
# @param [String] region
|
28089
|
+
# Name of the region for this request.
|
28090
|
+
# @param [String] fields
|
28091
|
+
# Selector specifying which fields to include in a partial response.
|
28092
|
+
# @param [String] quota_user
|
28093
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28094
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28095
|
+
# @param [String] user_ip
|
28096
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28097
|
+
# @param [Google::Apis::RequestOptions] options
|
28098
|
+
# Request-specific options
|
28099
|
+
#
|
28100
|
+
# @yield [result, err] Result & error if block supplied
|
28101
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
28102
|
+
# @yieldparam err [StandardError] error object if request failed
|
28103
|
+
#
|
28104
|
+
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
28105
|
+
#
|
28106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28109
|
+
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28110
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
28111
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
28112
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
28113
|
+
command.params['project'] = project unless project.nil?
|
28114
|
+
command.params['region'] = region unless region.nil?
|
28115
|
+
command.query['fields'] = fields unless fields.nil?
|
28116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28117
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28118
|
+
execute_or_queue_command(command, &block)
|
28119
|
+
end
|
28120
|
+
|
28121
|
+
# Patch Regional Disk Settings
|
28122
|
+
# @param [String] project
|
28123
|
+
# Project ID for this request.
|
28124
|
+
# @param [String] region
|
28125
|
+
# Name of the region for this request.
|
28126
|
+
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
28127
|
+
# @param [String] request_id
|
28128
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28129
|
+
# that if you must retry your request, the server will know to ignore the
|
28130
|
+
# request if it has already been completed. For example, consider a situation
|
28131
|
+
# where you make an initial request and the request times out. If you make the
|
28132
|
+
# request again with the same request ID, the server can check if original
|
28133
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28134
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28135
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28136
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28137
|
+
# @param [String] update_mask
|
28138
|
+
# update_mask indicates fields to be updated as part of this request.
|
28139
|
+
# @param [String] fields
|
28140
|
+
# Selector specifying which fields to include in a partial response.
|
28141
|
+
# @param [String] quota_user
|
28142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28144
|
+
# @param [String] user_ip
|
28145
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28146
|
+
# @param [Google::Apis::RequestOptions] options
|
28147
|
+
# Request-specific options
|
28148
|
+
#
|
28149
|
+
# @yield [result, err] Result & error if block supplied
|
28150
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28151
|
+
# @yieldparam err [StandardError] error object if request failed
|
28152
|
+
#
|
28153
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28154
|
+
#
|
28155
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28156
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28157
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28158
|
+
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28159
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
28160
|
+
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
28161
|
+
command.request_object = disk_settings_object
|
28162
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28163
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28164
|
+
command.params['project'] = project unless project.nil?
|
28165
|
+
command.params['region'] = region unless region.nil?
|
28166
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28167
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
28168
|
+
command.query['fields'] = fields unless fields.nil?
|
28169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28170
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28171
|
+
execute_or_queue_command(command, &block)
|
28172
|
+
end
|
28173
|
+
|
27804
28174
|
# Returns the specified regional disk type.
|
27805
28175
|
# @param [String] project
|
27806
28176
|
# Project ID for this request.
|
@@ -28638,7 +29008,6 @@ module Google
|
|
28638
29008
|
# The name of the region for this request.
|
28639
29009
|
# @param [String] disk
|
28640
29010
|
# The name of the persistent disk.
|
28641
|
-
# @param [Google::Apis::ComputeAlpha::RegionDisksStopAsyncReplicationRequest] region_disks_stop_async_replication_request_object
|
28642
29011
|
# @param [String] request_id
|
28643
29012
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28644
29013
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28668,10 +29037,8 @@ module Google
|
|
28668
29037
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28669
29038
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28670
29039
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28671
|
-
def stop_region_disk_async_replication(project, region, disk,
|
29040
|
+
def stop_region_disk_async_replication(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28672
29041
|
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication', options)
|
28673
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksStopAsyncReplicationRequest::Representation
|
28674
|
-
command.request_object = region_disks_stop_async_replication_request_object
|
28675
29042
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28676
29043
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28677
29044
|
command.params['project'] = project unless project.nil?
|
@@ -37026,6 +37393,98 @@ module Google
|
|
37026
37393
|
execute_or_queue_command(command, &block)
|
37027
37394
|
end
|
37028
37395
|
|
37396
|
+
# Retrieves the list of Zone resources under the specific region available to
|
37397
|
+
# the specified project.
|
37398
|
+
# @param [String] project
|
37399
|
+
# Project ID for this request.
|
37400
|
+
# @param [String] region
|
37401
|
+
# Region for this request.
|
37402
|
+
# @param [String] filter
|
37403
|
+
# A filter expression that filters resources listed in the response. Most
|
37404
|
+
# Compute resources support two types of filter expressions: expressions that
|
37405
|
+
# support regular expressions and expressions that follow API improvement
|
37406
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
37407
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
37408
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
37409
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37410
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37411
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
37412
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
37413
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
37414
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
37415
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
37416
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
37417
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
37418
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
37419
|
+
# provide each separate expression within parentheses. For example: ``` (
|
37420
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
37421
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
37422
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
37423
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
37424
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
37425
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
37426
|
+
# expression with or without quotes or against multiple parenthesized
|
37427
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
37428
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
37429
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
37430
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
37431
|
+
# match the entire field. For example, to filter for instances that do not end
|
37432
|
+
# with name "instance", you would use `name ne .*instance`.
|
37433
|
+
# @param [Fixnum] max_results
|
37434
|
+
# The maximum number of results per page that should be returned. If the number
|
37435
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37436
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37437
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37438
|
+
# @param [String] order_by
|
37439
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37440
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37441
|
+
# descending order based on the creation timestamp using `orderBy="
|
37442
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37443
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37444
|
+
# resources like operations so that the newest operation is returned first.
|
37445
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37446
|
+
# @param [String] page_token
|
37447
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37448
|
+
# by a previous list request to get the next page of results.
|
37449
|
+
# @param [Boolean] return_partial_success
|
37450
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37451
|
+
# failure. The default value is false.
|
37452
|
+
# @param [String] fields
|
37453
|
+
# Selector specifying which fields to include in a partial response.
|
37454
|
+
# @param [String] quota_user
|
37455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37457
|
+
# @param [String] user_ip
|
37458
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37459
|
+
# @param [Google::Apis::RequestOptions] options
|
37460
|
+
# Request-specific options
|
37461
|
+
#
|
37462
|
+
# @yield [result, err] Result & error if block supplied
|
37463
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ZoneList] parsed result object
|
37464
|
+
# @yieldparam err [StandardError] error object if request failed
|
37465
|
+
#
|
37466
|
+
# @return [Google::Apis::ComputeAlpha::ZoneList]
|
37467
|
+
#
|
37468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37471
|
+
def list_region_zones(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37472
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/zones', options)
|
37473
|
+
command.response_representation = Google::Apis::ComputeAlpha::ZoneList::Representation
|
37474
|
+
command.response_class = Google::Apis::ComputeAlpha::ZoneList
|
37475
|
+
command.params['project'] = project unless project.nil?
|
37476
|
+
command.params['region'] = region unless region.nil?
|
37477
|
+
command.query['filter'] = filter unless filter.nil?
|
37478
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
37479
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
37480
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
37481
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
37482
|
+
command.query['fields'] = fields unless fields.nil?
|
37483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37484
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37485
|
+
execute_or_queue_command(command, &block)
|
37486
|
+
end
|
37487
|
+
|
37029
37488
|
# Returns the specified Region resource. To decrease latency for this method,
|
37030
37489
|
# you can optionally omit any unneeded information from the response by using a
|
37031
37490
|
# field mask. This practice is especially recommended for unused quota
|
@@ -42044,6 +42503,100 @@ module Google
|
|
42044
42503
|
execute_or_queue_command(command, &block)
|
42045
42504
|
end
|
42046
42505
|
|
42506
|
+
# Lists the disks in a specified storage pool.
|
42507
|
+
# @param [String] project
|
42508
|
+
# Project ID for this request.
|
42509
|
+
# @param [String] zone
|
42510
|
+
# The name of the zone for this request.
|
42511
|
+
# @param [String] storage_pool
|
42512
|
+
# Name of the storage pool to list disks of.
|
42513
|
+
# @param [String] filter
|
42514
|
+
# A filter expression that filters resources listed in the response. Most
|
42515
|
+
# Compute resources support two types of filter expressions: expressions that
|
42516
|
+
# support regular expressions and expressions that follow API improvement
|
42517
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
42518
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
42519
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
42520
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
42521
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
42522
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
42523
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
42524
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
42525
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
42526
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
42527
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
42528
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
42529
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
42530
|
+
# provide each separate expression within parentheses. For example: ``` (
|
42531
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
42532
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
42533
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
42534
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
42535
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
42536
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
42537
|
+
# expression with or without quotes or against multiple parenthesized
|
42538
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
42539
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
42540
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
42541
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
42542
|
+
# match the entire field. For example, to filter for instances that do not end
|
42543
|
+
# with name "instance", you would use `name ne .*instance`.
|
42544
|
+
# @param [Fixnum] max_results
|
42545
|
+
# The maximum number of results per page that should be returned. If the number
|
42546
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
42547
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
42548
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
42549
|
+
# @param [String] order_by
|
42550
|
+
# Sorts list results by a certain order. By default, results are returned in
|
42551
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
42552
|
+
# descending order based on the creation timestamp using `orderBy="
|
42553
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
42554
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
42555
|
+
# resources like operations so that the newest operation is returned first.
|
42556
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
42557
|
+
# @param [String] page_token
|
42558
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
42559
|
+
# by a previous list request to get the next page of results.
|
42560
|
+
# @param [Boolean] return_partial_success
|
42561
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
42562
|
+
# failure. The default value is false.
|
42563
|
+
# @param [String] fields
|
42564
|
+
# Selector specifying which fields to include in a partial response.
|
42565
|
+
# @param [String] quota_user
|
42566
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42567
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42568
|
+
# @param [String] user_ip
|
42569
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42570
|
+
# @param [Google::Apis::RequestOptions] options
|
42571
|
+
# Request-specific options
|
42572
|
+
#
|
42573
|
+
# @yield [result, err] Result & error if block supplied
|
42574
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::StoragePoolListDisks] parsed result object
|
42575
|
+
# @yieldparam err [StandardError] error object if request failed
|
42576
|
+
#
|
42577
|
+
# @return [Google::Apis::ComputeAlpha::StoragePoolListDisks]
|
42578
|
+
#
|
42579
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42580
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42581
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42582
|
+
def list_storage_pool_disks(project, zone, storage_pool, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42583
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks', options)
|
42584
|
+
command.response_representation = Google::Apis::ComputeAlpha::StoragePoolListDisks::Representation
|
42585
|
+
command.response_class = Google::Apis::ComputeAlpha::StoragePoolListDisks
|
42586
|
+
command.params['project'] = project unless project.nil?
|
42587
|
+
command.params['zone'] = zone unless zone.nil?
|
42588
|
+
command.params['storagePool'] = storage_pool unless storage_pool.nil?
|
42589
|
+
command.query['filter'] = filter unless filter.nil?
|
42590
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
42591
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
42592
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
42593
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
42594
|
+
command.query['fields'] = fields unless fields.nil?
|
42595
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42596
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42597
|
+
execute_or_queue_command(command, &block)
|
42598
|
+
end
|
42599
|
+
|
42047
42600
|
# Sets the access control policy on the specified resource. Replaces any
|
42048
42601
|
# existing policy.
|
42049
42602
|
# @param [String] project
|