google-apis-compute_alpha 0.26.0 → 0.27.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.
@@ -2823,8 +2823,7 @@ module Google
|
|
2823
2823
|
# @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
|
2824
2824
|
# @param [Boolean] guest_flush
|
2825
2825
|
# [Input Only] Whether to attempt an application consistent snapshot by
|
2826
|
-
# informing the OS to prepare for the snapshot process.
|
2827
|
-
# on Windows instances using the Volume Shadow Copy Service (VSS).
|
2826
|
+
# informing the OS to prepare for the snapshot process.
|
2828
2827
|
# @param [String] request_id
|
2829
2828
|
# An optional request ID to identify requests. Specify a unique request ID so
|
2830
2829
|
# that if you must retry your request, the server will know to ignore the
|
@@ -3347,6 +3346,165 @@ module Google
|
|
3347
3346
|
execute_or_queue_command(command, &block)
|
3348
3347
|
end
|
3349
3348
|
|
3349
|
+
# Starts asynchronous replication. Must be invoked on the primary disk.
|
3350
|
+
# @param [String] project
|
3351
|
+
# Project ID for this request.
|
3352
|
+
# @param [String] zone
|
3353
|
+
# The name of the zone for this request.
|
3354
|
+
# @param [String] disk
|
3355
|
+
# The name of the persistent disk.
|
3356
|
+
# @param [Google::Apis::ComputeAlpha::DisksStartAsyncReplicationRequest] disks_start_async_replication_request_object
|
3357
|
+
# @param [String] request_id
|
3358
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3359
|
+
# that if you must retry your request, the server will know to ignore the
|
3360
|
+
# request if it has already been completed. For example, consider a situation
|
3361
|
+
# where you make an initial request and the request times out. If you make the
|
3362
|
+
# request again with the same request ID, the server can check if original
|
3363
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3364
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3365
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3366
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3367
|
+
# @param [String] fields
|
3368
|
+
# Selector specifying which fields to include in a partial response.
|
3369
|
+
# @param [String] quota_user
|
3370
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3371
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3372
|
+
# @param [String] user_ip
|
3373
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3374
|
+
# @param [Google::Apis::RequestOptions] options
|
3375
|
+
# Request-specific options
|
3376
|
+
#
|
3377
|
+
# @yield [result, err] Result & error if block supplied
|
3378
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3379
|
+
# @yieldparam err [StandardError] error object if request failed
|
3380
|
+
#
|
3381
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3382
|
+
#
|
3383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3386
|
+
def start_disk_async_replication(project, zone, disk, disks_start_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3387
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication', options)
|
3388
|
+
command.request_representation = Google::Apis::ComputeAlpha::DisksStartAsyncReplicationRequest::Representation
|
3389
|
+
command.request_object = disks_start_async_replication_request_object
|
3390
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3391
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3392
|
+
command.params['project'] = project unless project.nil?
|
3393
|
+
command.params['zone'] = zone unless zone.nil?
|
3394
|
+
command.params['disk'] = disk unless disk.nil?
|
3395
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3396
|
+
command.query['fields'] = fields unless fields.nil?
|
3397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3398
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3399
|
+
execute_or_queue_command(command, &block)
|
3400
|
+
end
|
3401
|
+
|
3402
|
+
# Stops asynchronous replication. Can be invoked either on the primary or on the
|
3403
|
+
# secondary disk.
|
3404
|
+
# @param [String] project
|
3405
|
+
# Project ID for this request.
|
3406
|
+
# @param [String] zone
|
3407
|
+
# The name of the zone for this request.
|
3408
|
+
# @param [String] disk
|
3409
|
+
# The name of the persistent disk.
|
3410
|
+
# @param [Google::Apis::ComputeAlpha::DisksStopAsyncReplicationRequest] disks_stop_async_replication_request_object
|
3411
|
+
# @param [String] request_id
|
3412
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3413
|
+
# that if you must retry your request, the server will know to ignore the
|
3414
|
+
# request if it has already been completed. For example, consider a situation
|
3415
|
+
# where you make an initial request and the request times out. If you make the
|
3416
|
+
# request again with the same request ID, the server can check if original
|
3417
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3418
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3419
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3420
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3421
|
+
# @param [String] fields
|
3422
|
+
# Selector specifying which fields to include in a partial response.
|
3423
|
+
# @param [String] quota_user
|
3424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3426
|
+
# @param [String] user_ip
|
3427
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3428
|
+
# @param [Google::Apis::RequestOptions] options
|
3429
|
+
# Request-specific options
|
3430
|
+
#
|
3431
|
+
# @yield [result, err] Result & error if block supplied
|
3432
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3433
|
+
# @yieldparam err [StandardError] error object if request failed
|
3434
|
+
#
|
3435
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3436
|
+
#
|
3437
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3438
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3439
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3440
|
+
def stop_disk_async_replication(project, zone, disk, disks_stop_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3441
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication', options)
|
3442
|
+
command.request_representation = Google::Apis::ComputeAlpha::DisksStopAsyncReplicationRequest::Representation
|
3443
|
+
command.request_object = disks_stop_async_replication_request_object
|
3444
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3445
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3446
|
+
command.params['project'] = project unless project.nil?
|
3447
|
+
command.params['zone'] = zone unless zone.nil?
|
3448
|
+
command.params['disk'] = disk unless disk.nil?
|
3449
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3450
|
+
command.query['fields'] = fields unless fields.nil?
|
3451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3452
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3453
|
+
execute_or_queue_command(command, &block)
|
3454
|
+
end
|
3455
|
+
|
3456
|
+
# Stops asynchronous replication for a consistency group of disks. Can be
|
3457
|
+
# invoked either in the primary or secondary scope.
|
3458
|
+
# @param [String] project
|
3459
|
+
# Project ID for this request.
|
3460
|
+
# @param [String] zone
|
3461
|
+
# The name of the zone for this request. This must be the zone of the primary or
|
3462
|
+
# secondary disks in the consistency group.
|
3463
|
+
# @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationRequest] disks_stop_group_async_replication_request_object
|
3464
|
+
# @param [String] request_id
|
3465
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3466
|
+
# that if you must retry your request, the server will know to ignore the
|
3467
|
+
# request if it has already been completed. For example, consider a situation
|
3468
|
+
# where you make an initial request and the request times out. If you make the
|
3469
|
+
# request again with the same request ID, the server can check if original
|
3470
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3471
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3472
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3473
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3474
|
+
# @param [String] fields
|
3475
|
+
# Selector specifying which fields to include in a partial response.
|
3476
|
+
# @param [String] quota_user
|
3477
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3478
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3479
|
+
# @param [String] user_ip
|
3480
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3481
|
+
# @param [Google::Apis::RequestOptions] options
|
3482
|
+
# Request-specific options
|
3483
|
+
#
|
3484
|
+
# @yield [result, err] Result & error if block supplied
|
3485
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3486
|
+
# @yieldparam err [StandardError] error object if request failed
|
3487
|
+
#
|
3488
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3489
|
+
#
|
3490
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3491
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3492
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3493
|
+
def stop_disk_group_async_replication(project, zone, disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3494
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication', options)
|
3495
|
+
command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationRequest::Representation
|
3496
|
+
command.request_object = disks_stop_group_async_replication_request_object
|
3497
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3498
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3499
|
+
command.params['project'] = project unless project.nil?
|
3500
|
+
command.params['zone'] = zone unless zone.nil?
|
3501
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3502
|
+
command.query['fields'] = fields unless fields.nil?
|
3503
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3504
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3505
|
+
execute_or_queue_command(command, &block)
|
3506
|
+
end
|
3507
|
+
|
3350
3508
|
# Returns permissions that a caller has on the specified resource.
|
3351
3509
|
# @param [String] project
|
3352
3510
|
# Project ID for this request.
|
@@ -14052,6 +14210,16 @@ module Google
|
|
14052
14210
|
# The name of the zone for this request.
|
14053
14211
|
# @param [String] instance
|
14054
14212
|
# Name of the instance scoping this request.
|
14213
|
+
# @param [String] request_id
|
14214
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14215
|
+
# that if you must retry your request, the server will know to ignore the
|
14216
|
+
# request if it has already been completed. For example, consider a situation
|
14217
|
+
# where you make an initial request and the request times out. If you make the
|
14218
|
+
# request again with the same request ID, the server can check if original
|
14219
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14220
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14221
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14222
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14055
14223
|
# @param [String] fields
|
14056
14224
|
# Selector specifying which fields to include in a partial response.
|
14057
14225
|
# @param [String] quota_user
|
@@ -14071,13 +14239,14 @@ module Google
|
|
14071
14239
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14072
14240
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14073
14241
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14074
|
-
def simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14242
|
+
def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14075
14243
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
|
14076
14244
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
14077
14245
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
14078
14246
|
command.params['project'] = project unless project.nil?
|
14079
14247
|
command.params['zone'] = zone unless zone.nil?
|
14080
14248
|
command.params['instance'] = instance unless instance.nil?
|
14249
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14081
14250
|
command.query['fields'] = fields unless fields.nil?
|
14082
14251
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14083
14252
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -25688,14 +25857,24 @@ module Google
|
|
25688
25857
|
execute_or_queue_command(command, &block)
|
25689
25858
|
end
|
25690
25859
|
|
25691
|
-
#
|
25860
|
+
# Starts asynchronous replication. Must be invoked on the primary disk.
|
25692
25861
|
# @param [String] project
|
25693
25862
|
# Project ID for this request.
|
25694
25863
|
# @param [String] region
|
25695
25864
|
# The name of the region for this request.
|
25696
|
-
# @param [String]
|
25697
|
-
#
|
25698
|
-
# @param [Google::Apis::ComputeAlpha::
|
25865
|
+
# @param [String] disk
|
25866
|
+
# The name of the persistent disk.
|
25867
|
+
# @param [Google::Apis::ComputeAlpha::RegionDisksStartAsyncReplicationRequest] region_disks_start_async_replication_request_object
|
25868
|
+
# @param [String] request_id
|
25869
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25870
|
+
# that if you must retry your request, the server will know to ignore the
|
25871
|
+
# request if it has already been completed. For example, consider a situation
|
25872
|
+
# where you make an initial request and the request times out. If you make the
|
25873
|
+
# request again with the same request ID, the server can check if original
|
25874
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25875
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25876
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25877
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25699
25878
|
# @param [String] fields
|
25700
25879
|
# Selector specifying which fields to include in a partial response.
|
25701
25880
|
# @param [String] quota_user
|
@@ -25707,40 +25886,39 @@ module Google
|
|
25707
25886
|
# Request-specific options
|
25708
25887
|
#
|
25709
25888
|
# @yield [result, err] Result & error if block supplied
|
25710
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
25889
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
25711
25890
|
# @yieldparam err [StandardError] error object if request failed
|
25712
25891
|
#
|
25713
|
-
# @return [Google::Apis::ComputeAlpha::
|
25892
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
25714
25893
|
#
|
25715
25894
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25716
25895
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25717
25896
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25718
|
-
def
|
25719
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{
|
25720
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
25721
|
-
command.request_object =
|
25722
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
25723
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
25897
|
+
def start_region_disk_async_replication(project, region, disk, region_disks_start_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25898
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication', options)
|
25899
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksStartAsyncReplicationRequest::Representation
|
25900
|
+
command.request_object = region_disks_start_async_replication_request_object
|
25901
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25902
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25724
25903
|
command.params['project'] = project unless project.nil?
|
25725
25904
|
command.params['region'] = region unless region.nil?
|
25726
|
-
command.params['
|
25905
|
+
command.params['disk'] = disk unless disk.nil?
|
25906
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
25727
25907
|
command.query['fields'] = fields unless fields.nil?
|
25728
25908
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25729
25909
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
25730
25910
|
execute_or_queue_command(command, &block)
|
25731
25911
|
end
|
25732
25912
|
|
25733
|
-
#
|
25734
|
-
#
|
25735
|
-
# following fields can be modified: user_license.
|
25913
|
+
# Stops asynchronous replication. Can be invoked either on the primary or on the
|
25914
|
+
# secondary disk.
|
25736
25915
|
# @param [String] project
|
25737
25916
|
# Project ID for this request.
|
25738
25917
|
# @param [String] region
|
25739
25918
|
# The name of the region for this request.
|
25740
25919
|
# @param [String] disk
|
25741
|
-
# The
|
25742
|
-
# @param [Google::Apis::ComputeAlpha::
|
25743
|
-
# @param [Array<String>, String] paths
|
25920
|
+
# The name of the persistent disk.
|
25921
|
+
# @param [Google::Apis::ComputeAlpha::RegionDisksStopAsyncReplicationRequest] region_disks_stop_async_replication_request_object
|
25744
25922
|
# @param [String] request_id
|
25745
25923
|
# An optional request ID to identify requests. Specify a unique request ID so
|
25746
25924
|
# that if you must retry your request, the server will know to ignore the
|
@@ -25751,8 +25929,6 @@ module Google
|
|
25751
25929
|
# second request. This prevents clients from accidentally creating duplicate
|
25752
25930
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
25753
25931
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25754
|
-
# @param [String] update_mask
|
25755
|
-
# update_mask indicates fields to be updated as part of this request.
|
25756
25932
|
# @param [String] fields
|
25757
25933
|
# Selector specifying which fields to include in a partial response.
|
25758
25934
|
# @param [String] quota_user
|
@@ -25772,85 +25948,237 @@ module Google
|
|
25772
25948
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25773
25949
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25774
25950
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25775
|
-
def
|
25776
|
-
command = make_simple_command(:
|
25777
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
25778
|
-
command.request_object =
|
25951
|
+
def stop_region_disk_async_replication(project, region, disk, region_disks_stop_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25952
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication', options)
|
25953
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksStopAsyncReplicationRequest::Representation
|
25954
|
+
command.request_object = region_disks_stop_async_replication_request_object
|
25779
25955
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25780
25956
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25781
25957
|
command.params['project'] = project unless project.nil?
|
25782
25958
|
command.params['region'] = region unless region.nil?
|
25783
25959
|
command.params['disk'] = disk unless disk.nil?
|
25784
|
-
command.query['paths'] = paths unless paths.nil?
|
25785
25960
|
command.query['requestId'] = request_id unless request_id.nil?
|
25786
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
25787
25961
|
command.query['fields'] = fields unless fields.nil?
|
25788
25962
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25789
25963
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
25790
25964
|
execute_or_queue_command(command, &block)
|
25791
25965
|
end
|
25792
25966
|
|
25793
|
-
#
|
25794
|
-
#
|
25967
|
+
# Stops asynchronous replication for a consistency group of disks. Can be
|
25968
|
+
# invoked either in the primary or secondary scope.
|
25795
25969
|
# @param [String] project
|
25796
|
-
#
|
25797
|
-
# @param [String]
|
25798
|
-
#
|
25799
|
-
#
|
25800
|
-
#
|
25801
|
-
#
|
25802
|
-
#
|
25803
|
-
#
|
25804
|
-
#
|
25805
|
-
#
|
25806
|
-
#
|
25807
|
-
# with
|
25808
|
-
#
|
25809
|
-
#
|
25810
|
-
#
|
25811
|
-
#
|
25812
|
-
#
|
25813
|
-
#
|
25814
|
-
#
|
25815
|
-
#
|
25816
|
-
#
|
25817
|
-
#
|
25818
|
-
#
|
25819
|
-
#
|
25820
|
-
#
|
25821
|
-
#
|
25822
|
-
#
|
25823
|
-
#
|
25824
|
-
#
|
25825
|
-
#
|
25826
|
-
#
|
25827
|
-
#
|
25828
|
-
#
|
25829
|
-
# @
|
25830
|
-
|
25831
|
-
|
25832
|
-
|
25833
|
-
|
25834
|
-
|
25835
|
-
|
25836
|
-
|
25837
|
-
|
25838
|
-
|
25839
|
-
|
25840
|
-
|
25841
|
-
|
25842
|
-
|
25843
|
-
|
25844
|
-
|
25845
|
-
#
|
25846
|
-
#
|
25847
|
-
#
|
25848
|
-
# @param [String]
|
25849
|
-
#
|
25850
|
-
# @param [
|
25851
|
-
#
|
25852
|
-
#
|
25853
|
-
# @
|
25970
|
+
# Project ID for this request.
|
25971
|
+
# @param [String] region
|
25972
|
+
# The name of the region for this request. This must be the region of the
|
25973
|
+
# primary or secondary disks in the consistency group.
|
25974
|
+
# @param [Google::Apis::ComputeAlpha::RegionDisksStopGroupAsyncReplicationRequest] region_disks_stop_group_async_replication_request_object
|
25975
|
+
# @param [String] request_id
|
25976
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25977
|
+
# that if you must retry your request, the server will know to ignore the
|
25978
|
+
# request if it has already been completed. For example, consider a situation
|
25979
|
+
# where you make an initial request and the request times out. If you make the
|
25980
|
+
# request again with the same request ID, the server can check if original
|
25981
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25982
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25983
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25984
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25985
|
+
# @param [String] fields
|
25986
|
+
# Selector specifying which fields to include in a partial response.
|
25987
|
+
# @param [String] quota_user
|
25988
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25989
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25990
|
+
# @param [String] user_ip
|
25991
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25992
|
+
# @param [Google::Apis::RequestOptions] options
|
25993
|
+
# Request-specific options
|
25994
|
+
#
|
25995
|
+
# @yield [result, err] Result & error if block supplied
|
25996
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
25997
|
+
# @yieldparam err [StandardError] error object if request failed
|
25998
|
+
#
|
25999
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26000
|
+
#
|
26001
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26002
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26003
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26004
|
+
def stop_region_disk_group_async_replication(project, region, region_disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26005
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/stopGroupAsyncReplication', options)
|
26006
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksStopGroupAsyncReplicationRequest::Representation
|
26007
|
+
command.request_object = region_disks_stop_group_async_replication_request_object
|
26008
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26009
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26010
|
+
command.params['project'] = project unless project.nil?
|
26011
|
+
command.params['region'] = region unless region.nil?
|
26012
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26013
|
+
command.query['fields'] = fields unless fields.nil?
|
26014
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26015
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26016
|
+
execute_or_queue_command(command, &block)
|
26017
|
+
end
|
26018
|
+
|
26019
|
+
# Returns permissions that a caller has on the specified resource.
|
26020
|
+
# @param [String] project
|
26021
|
+
# Project ID for this request.
|
26022
|
+
# @param [String] region
|
26023
|
+
# The name of the region for this request.
|
26024
|
+
# @param [String] resource
|
26025
|
+
# Name or id of the resource for this request.
|
26026
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
26027
|
+
# @param [String] fields
|
26028
|
+
# Selector specifying which fields to include in a partial response.
|
26029
|
+
# @param [String] quota_user
|
26030
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26031
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26032
|
+
# @param [String] user_ip
|
26033
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26034
|
+
# @param [Google::Apis::RequestOptions] options
|
26035
|
+
# Request-specific options
|
26036
|
+
#
|
26037
|
+
# @yield [result, err] Result & error if block supplied
|
26038
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
26039
|
+
# @yieldparam err [StandardError] error object if request failed
|
26040
|
+
#
|
26041
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
26042
|
+
#
|
26043
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26044
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26045
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26046
|
+
def test_region_disk_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26047
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{resource}/testIamPermissions', options)
|
26048
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
26049
|
+
command.request_object = test_permissions_request_object
|
26050
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
26051
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
26052
|
+
command.params['project'] = project unless project.nil?
|
26053
|
+
command.params['region'] = region unless region.nil?
|
26054
|
+
command.params['resource'] = resource unless resource.nil?
|
26055
|
+
command.query['fields'] = fields unless fields.nil?
|
26056
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26057
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26058
|
+
execute_or_queue_command(command, &block)
|
26059
|
+
end
|
26060
|
+
|
26061
|
+
# Update the specified disk with the data included in the request. Update is
|
26062
|
+
# performed only on selected fields included as part of update-mask. Only the
|
26063
|
+
# following fields can be modified: user_license.
|
26064
|
+
# @param [String] project
|
26065
|
+
# Project ID for this request.
|
26066
|
+
# @param [String] region
|
26067
|
+
# The name of the region for this request.
|
26068
|
+
# @param [String] disk
|
26069
|
+
# The disk name for this request.
|
26070
|
+
# @param [Google::Apis::ComputeAlpha::Disk] disk_object
|
26071
|
+
# @param [Array<String>, String] paths
|
26072
|
+
# @param [String] request_id
|
26073
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26074
|
+
# that if you must retry your request, the server will know to ignore the
|
26075
|
+
# request if it has already been completed. For example, consider a situation
|
26076
|
+
# where you make an initial request and the request times out. If you make the
|
26077
|
+
# request again with the same request ID, the server can check if original
|
26078
|
+
# operation with the same request ID was received, and if so, will ignore the
|
26079
|
+
# second request. This prevents clients from accidentally creating duplicate
|
26080
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
26081
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
26082
|
+
# @param [String] update_mask
|
26083
|
+
# update_mask indicates fields to be updated as part of this request.
|
26084
|
+
# @param [String] fields
|
26085
|
+
# Selector specifying which fields to include in a partial response.
|
26086
|
+
# @param [String] quota_user
|
26087
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26088
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26089
|
+
# @param [String] user_ip
|
26090
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26091
|
+
# @param [Google::Apis::RequestOptions] options
|
26092
|
+
# Request-specific options
|
26093
|
+
#
|
26094
|
+
# @yield [result, err] Result & error if block supplied
|
26095
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26096
|
+
# @yieldparam err [StandardError] error object if request failed
|
26097
|
+
#
|
26098
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26099
|
+
#
|
26100
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26101
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26102
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26103
|
+
def update_region_disk(project, region, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26104
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/disks/{disk}', options)
|
26105
|
+
command.request_representation = Google::Apis::ComputeAlpha::Disk::Representation
|
26106
|
+
command.request_object = disk_object
|
26107
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26108
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26109
|
+
command.params['project'] = project unless project.nil?
|
26110
|
+
command.params['region'] = region unless region.nil?
|
26111
|
+
command.params['disk'] = disk unless disk.nil?
|
26112
|
+
command.query['paths'] = paths unless paths.nil?
|
26113
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26114
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
26115
|
+
command.query['fields'] = fields unless fields.nil?
|
26116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26117
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26118
|
+
execute_or_queue_command(command, &block)
|
26119
|
+
end
|
26120
|
+
|
26121
|
+
# Retrieves the list of all HealthCheckService resources, regional and global,
|
26122
|
+
# available to the specified project.
|
26123
|
+
# @param [String] project
|
26124
|
+
# Name of the project scoping this request.
|
26125
|
+
# @param [String] filter
|
26126
|
+
# A filter expression that filters resources listed in the response. The
|
26127
|
+
# expression must specify the field name, an operator, and the value that you
|
26128
|
+
# want to use for filtering. The value must be a string, a number, or a boolean.
|
26129
|
+
# The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
|
26130
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
26131
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
26132
|
+
# The `:` operator can be used with string fields to match substrings. For non-
|
26133
|
+
# string fields it is equivalent to the `=` operator. The `:*` comparison can be
|
26134
|
+
# used to test whether a key has been defined. For example, to find all objects
|
26135
|
+
# with `owner` label use: ``` labels.owner:* ``` You can also filter nested
|
26136
|
+
# fields. For example, you could specify `scheduling.automaticRestart = false`
|
26137
|
+
# to include instances only if they are not scheduled for automatic restarts.
|
26138
|
+
# You can use filtering on nested fields to filter based on resource labels. To
|
26139
|
+
# filter on multiple expressions, provide each separate expression within
|
26140
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
26141
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
26142
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
26143
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
26144
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
26145
|
+
# @param [Boolean] include_all_scopes
|
26146
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
26147
|
+
# global) should be included in the response. For new resource types added after
|
26148
|
+
# this field, the flag has no effect as new resource types will always include
|
26149
|
+
# every visible scope for each scope type in response. For resource types which
|
26150
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
26151
|
+
# types where the resource type is expected to be found will be included.
|
26152
|
+
# @param [Fixnum] max_results
|
26153
|
+
# The maximum number of results per page that should be returned. If the number
|
26154
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
26155
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
26156
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
26157
|
+
# @param [String] order_by
|
26158
|
+
# Sorts list results by a certain order. By default, results are returned in
|
26159
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
26160
|
+
# descending order based on the creation timestamp using `orderBy="
|
26161
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
26162
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
26163
|
+
# resources like operations so that the newest operation is returned first.
|
26164
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
26165
|
+
# @param [String] page_token
|
26166
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
26167
|
+
# by a previous list request to get the next page of results.
|
26168
|
+
# @param [Boolean] return_partial_success
|
26169
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
26170
|
+
# failure. The default value is false.
|
26171
|
+
# @param [String] fields
|
26172
|
+
# Selector specifying which fields to include in a partial response.
|
26173
|
+
# @param [String] quota_user
|
26174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
26175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
26176
|
+
# @param [String] user_ip
|
26177
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
26178
|
+
# @param [Google::Apis::RequestOptions] options
|
26179
|
+
# Request-specific options
|
26180
|
+
#
|
26181
|
+
# @yield [result, err] Result & error if block supplied
|
25854
26182
|
# @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList] parsed result object
|
25855
26183
|
# @yieldparam err [StandardError] error object if request failed
|
25856
26184
|
#
|
@@ -31650,49 +31978,6 @@ module Google
|
|
31650
31978
|
execute_or_queue_command(command, &block)
|
31651
31979
|
end
|
31652
31980
|
|
31653
|
-
# Gets the access control policy for a resource. May be empty if no such policy
|
31654
|
-
# or resource exists.
|
31655
|
-
# @param [String] project
|
31656
|
-
# Project ID for this request.
|
31657
|
-
# @param [String] region
|
31658
|
-
# The name of the region for this request.
|
31659
|
-
# @param [String] resource
|
31660
|
-
# Name or id of the resource for this request.
|
31661
|
-
# @param [Fixnum] options_requested_policy_version
|
31662
|
-
# Requested IAM Policy version.
|
31663
|
-
# @param [String] fields
|
31664
|
-
# Selector specifying which fields to include in a partial response.
|
31665
|
-
# @param [String] quota_user
|
31666
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31667
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31668
|
-
# @param [String] user_ip
|
31669
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31670
|
-
# @param [Google::Apis::RequestOptions] options
|
31671
|
-
# Request-specific options
|
31672
|
-
#
|
31673
|
-
# @yield [result, err] Result & error if block supplied
|
31674
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
31675
|
-
# @yieldparam err [StandardError] error object if request failed
|
31676
|
-
#
|
31677
|
-
# @return [Google::Apis::ComputeAlpha::Policy]
|
31678
|
-
#
|
31679
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31680
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31681
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31682
|
-
def get_region_ssl_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31683
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{resource}/getIamPolicy', options)
|
31684
|
-
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
31685
|
-
command.response_class = Google::Apis::ComputeAlpha::Policy
|
31686
|
-
command.params['project'] = project unless project.nil?
|
31687
|
-
command.params['region'] = region unless region.nil?
|
31688
|
-
command.params['resource'] = resource unless resource.nil?
|
31689
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
31690
|
-
command.query['fields'] = fields unless fields.nil?
|
31691
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31692
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31693
|
-
execute_or_queue_command(command, &block)
|
31694
|
-
end
|
31695
|
-
|
31696
31981
|
# Creates a new policy in the specified project and region using the data
|
31697
31982
|
# included in the request.
|
31698
31983
|
# @param [String] project
|
@@ -32744,6 +33029,269 @@ module Google
|
|
32744
33029
|
execute_or_queue_command(command, &block)
|
32745
33030
|
end
|
32746
33031
|
|
33032
|
+
# Deletes the specified TargetTcpProxy resource.
|
33033
|
+
# @param [String] project
|
33034
|
+
# Project ID for this request.
|
33035
|
+
# @param [String] region
|
33036
|
+
# Name of the region scoping this request.
|
33037
|
+
# @param [String] target_tcp_proxy
|
33038
|
+
# Name of the TargetTcpProxy resource to delete.
|
33039
|
+
# @param [String] request_id
|
33040
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33041
|
+
# that if you must retry your request, the server will know to ignore the
|
33042
|
+
# request if it has already been completed. For example, consider a situation
|
33043
|
+
# where you make an initial request and the request times out. If you make the
|
33044
|
+
# request again with the same request ID, the server can check if original
|
33045
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33046
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33047
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33048
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33049
|
+
# @param [String] fields
|
33050
|
+
# Selector specifying which fields to include in a partial response.
|
33051
|
+
# @param [String] quota_user
|
33052
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33053
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33054
|
+
# @param [String] user_ip
|
33055
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33056
|
+
# @param [Google::Apis::RequestOptions] options
|
33057
|
+
# Request-specific options
|
33058
|
+
#
|
33059
|
+
# @yield [result, err] Result & error if block supplied
|
33060
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33061
|
+
# @yieldparam err [StandardError] error object if request failed
|
33062
|
+
#
|
33063
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33064
|
+
#
|
33065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33068
|
+
def delete_region_target_tcp_proxy(project, region, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33069
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}', options)
|
33070
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33071
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33072
|
+
command.params['project'] = project unless project.nil?
|
33073
|
+
command.params['region'] = region unless region.nil?
|
33074
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
33075
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33076
|
+
command.query['fields'] = fields unless fields.nil?
|
33077
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33078
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33079
|
+
execute_or_queue_command(command, &block)
|
33080
|
+
end
|
33081
|
+
|
33082
|
+
# Returns the specified TargetTcpProxy resource.
|
33083
|
+
# @param [String] project
|
33084
|
+
# Project ID for this request.
|
33085
|
+
# @param [String] region
|
33086
|
+
# Name of the region scoping this request.
|
33087
|
+
# @param [String] target_tcp_proxy
|
33088
|
+
# Name of the TargetTcpProxy resource to return.
|
33089
|
+
# @param [String] fields
|
33090
|
+
# Selector specifying which fields to include in a partial response.
|
33091
|
+
# @param [String] quota_user
|
33092
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33093
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33094
|
+
# @param [String] user_ip
|
33095
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33096
|
+
# @param [Google::Apis::RequestOptions] options
|
33097
|
+
# Request-specific options
|
33098
|
+
#
|
33099
|
+
# @yield [result, err] Result & error if block supplied
|
33100
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxy] parsed result object
|
33101
|
+
# @yieldparam err [StandardError] error object if request failed
|
33102
|
+
#
|
33103
|
+
# @return [Google::Apis::ComputeAlpha::TargetTcpProxy]
|
33104
|
+
#
|
33105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33108
|
+
def get_region_target_tcp_proxy(project, region, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33109
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}', options)
|
33110
|
+
command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
|
33111
|
+
command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxy
|
33112
|
+
command.params['project'] = project unless project.nil?
|
33113
|
+
command.params['region'] = region unless region.nil?
|
33114
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
33115
|
+
command.query['fields'] = fields unless fields.nil?
|
33116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33117
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33118
|
+
execute_or_queue_command(command, &block)
|
33119
|
+
end
|
33120
|
+
|
33121
|
+
# Creates a TargetTcpProxy resource in the specified project and region using
|
33122
|
+
# the data included in the request.
|
33123
|
+
# @param [String] project
|
33124
|
+
# Project ID for this request.
|
33125
|
+
# @param [String] region
|
33126
|
+
# Name of the region scoping this request.
|
33127
|
+
# @param [Google::Apis::ComputeAlpha::TargetTcpProxy] target_tcp_proxy_object
|
33128
|
+
# @param [String] request_id
|
33129
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33130
|
+
# that if you must retry your request, the server will know to ignore the
|
33131
|
+
# request if it has already been completed. For example, consider a situation
|
33132
|
+
# where you make an initial request and the request times out. If you make the
|
33133
|
+
# request again with the same request ID, the server can check if original
|
33134
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33135
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33136
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33137
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33138
|
+
# @param [String] fields
|
33139
|
+
# Selector specifying which fields to include in a partial response.
|
33140
|
+
# @param [String] quota_user
|
33141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33143
|
+
# @param [String] user_ip
|
33144
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33145
|
+
# @param [Google::Apis::RequestOptions] options
|
33146
|
+
# Request-specific options
|
33147
|
+
#
|
33148
|
+
# @yield [result, err] Result & error if block supplied
|
33149
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33150
|
+
# @yieldparam err [StandardError] error object if request failed
|
33151
|
+
#
|
33152
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33153
|
+
#
|
33154
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33155
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33156
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33157
|
+
def insert_region_target_tcp_proxy(project, region, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33158
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetTcpProxies', options)
|
33159
|
+
command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
|
33160
|
+
command.request_object = target_tcp_proxy_object
|
33161
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33162
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33163
|
+
command.params['project'] = project unless project.nil?
|
33164
|
+
command.params['region'] = region unless region.nil?
|
33165
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33166
|
+
command.query['fields'] = fields unless fields.nil?
|
33167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33168
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33169
|
+
execute_or_queue_command(command, &block)
|
33170
|
+
end
|
33171
|
+
|
33172
|
+
# Retrieves a list of TargetTcpProxy resources available to the specified
|
33173
|
+
# project in a given region.
|
33174
|
+
# @param [String] project
|
33175
|
+
# Project ID for this request.
|
33176
|
+
# @param [String] region
|
33177
|
+
# Name of the region scoping this request.
|
33178
|
+
# @param [String] filter
|
33179
|
+
# A filter expression that filters resources listed in the response. The
|
33180
|
+
# expression must specify the field name, an operator, and the value that you
|
33181
|
+
# want to use for filtering. The value must be a string, a number, or a boolean.
|
33182
|
+
# The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
|
33183
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
33184
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
33185
|
+
# The `:` operator can be used with string fields to match substrings. For non-
|
33186
|
+
# string fields it is equivalent to the `=` operator. The `:*` comparison can be
|
33187
|
+
# used to test whether a key has been defined. For example, to find all objects
|
33188
|
+
# with `owner` label use: ``` labels.owner:* ``` You can also filter nested
|
33189
|
+
# fields. For example, you could specify `scheduling.automaticRestart = false`
|
33190
|
+
# to include instances only if they are not scheduled for automatic restarts.
|
33191
|
+
# You can use filtering on nested fields to filter based on resource labels. To
|
33192
|
+
# filter on multiple expressions, provide each separate expression within
|
33193
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
33194
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
33195
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
33196
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
33197
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
33198
|
+
# @param [Fixnum] max_results
|
33199
|
+
# The maximum number of results per page that should be returned. If the number
|
33200
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33201
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33202
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33203
|
+
# @param [String] order_by
|
33204
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33205
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
33206
|
+
# descending order based on the creation timestamp using `orderBy="
|
33207
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33208
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
33209
|
+
# resources like operations so that the newest operation is returned first.
|
33210
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33211
|
+
# @param [String] page_token
|
33212
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33213
|
+
# by a previous list request to get the next page of results.
|
33214
|
+
# @param [Boolean] return_partial_success
|
33215
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33216
|
+
# failure. The default value is false.
|
33217
|
+
# @param [String] fields
|
33218
|
+
# Selector specifying which fields to include in a partial response.
|
33219
|
+
# @param [String] quota_user
|
33220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33222
|
+
# @param [String] user_ip
|
33223
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33224
|
+
# @param [Google::Apis::RequestOptions] options
|
33225
|
+
# Request-specific options
|
33226
|
+
#
|
33227
|
+
# @yield [result, err] Result & error if block supplied
|
33228
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxyList] parsed result object
|
33229
|
+
# @yieldparam err [StandardError] error object if request failed
|
33230
|
+
#
|
33231
|
+
# @return [Google::Apis::ComputeAlpha::TargetTcpProxyList]
|
33232
|
+
#
|
33233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33236
|
+
def list_region_target_tcp_proxies(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)
|
33237
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetTcpProxies', options)
|
33238
|
+
command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxyList::Representation
|
33239
|
+
command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxyList
|
33240
|
+
command.params['project'] = project unless project.nil?
|
33241
|
+
command.params['region'] = region unless region.nil?
|
33242
|
+
command.query['filter'] = filter unless filter.nil?
|
33243
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33244
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33245
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33246
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33247
|
+
command.query['fields'] = fields unless fields.nil?
|
33248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33249
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33250
|
+
execute_or_queue_command(command, &block)
|
33251
|
+
end
|
33252
|
+
|
33253
|
+
# Returns permissions that a caller has on the specified resource.
|
33254
|
+
# @param [String] project
|
33255
|
+
# Project ID for this request.
|
33256
|
+
# @param [String] region
|
33257
|
+
# The name of the region for this request.
|
33258
|
+
# @param [String] resource
|
33259
|
+
# Name or id of the resource for this request.
|
33260
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
33261
|
+
# @param [String] fields
|
33262
|
+
# Selector specifying which fields to include in a partial response.
|
33263
|
+
# @param [String] quota_user
|
33264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33266
|
+
# @param [String] user_ip
|
33267
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33268
|
+
# @param [Google::Apis::RequestOptions] options
|
33269
|
+
# Request-specific options
|
33270
|
+
#
|
33271
|
+
# @yield [result, err] Result & error if block supplied
|
33272
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
33273
|
+
# @yieldparam err [StandardError] error object if request failed
|
33274
|
+
#
|
33275
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
33276
|
+
#
|
33277
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33278
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33279
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33280
|
+
def test_region_target_tcp_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33281
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions', options)
|
33282
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
33283
|
+
command.request_object = test_permissions_request_object
|
33284
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
33285
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
33286
|
+
command.params['project'] = project unless project.nil?
|
33287
|
+
command.params['region'] = region unless region.nil?
|
33288
|
+
command.params['resource'] = resource unless resource.nil?
|
33289
|
+
command.query['fields'] = fields unless fields.nil?
|
33290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33291
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33292
|
+
execute_or_queue_command(command, &block)
|
33293
|
+
end
|
33294
|
+
|
32747
33295
|
# Deletes the specified UrlMap resource.
|
32748
33296
|
# @param [String] project
|
32749
33297
|
# Project ID for this request.
|