google-apis-compute_beta 0.125.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/lib/google/apis/compute_beta/classes.rb +1701 -339
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +517 -0
- data/lib/google/apis/compute_beta/service.rb +963 -149
- metadata +2 -2
|
@@ -56,7 +56,7 @@ module Google
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Retrieves an aggregated list of accelerator types.
|
|
59
|
-
# To prevent failure,
|
|
59
|
+
# To prevent failure, it is recommended that you set the
|
|
60
60
|
# `returnPartialSuccess` parameter to `true`.
|
|
61
61
|
# @param [String] project
|
|
62
62
|
# Project ID for this request.
|
|
@@ -342,7 +342,7 @@ module Google
|
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
# Retrieves an aggregated list of addresses.
|
|
345
|
-
# To prevent failure,
|
|
345
|
+
# To prevent failure, it is recommended that you set the
|
|
346
346
|
# `returnPartialSuccess` parameter to `true`.
|
|
347
347
|
# @param [String] project
|
|
348
348
|
# Project ID for this request.
|
|
@@ -928,7 +928,7 @@ module Google
|
|
|
928
928
|
end
|
|
929
929
|
|
|
930
930
|
# Retrieves an aggregated list of autoscalers.
|
|
931
|
-
# To prevent failure,
|
|
931
|
+
# To prevent failure, it is recommended that you set the
|
|
932
932
|
# `returnPartialSuccess` parameter to `true`.
|
|
933
933
|
# @param [String] project
|
|
934
934
|
# Project ID for this request.
|
|
@@ -2412,7 +2412,7 @@ module Google
|
|
|
2412
2412
|
|
|
2413
2413
|
# Retrieves the list of all BackendService resources, regional and global,
|
|
2414
2414
|
# available to the specified project.
|
|
2415
|
-
# To prevent failure,
|
|
2415
|
+
# To prevent failure, it is recommended that you set the
|
|
2416
2416
|
# `returnPartialSuccess` parameter to `true`.
|
|
2417
2417
|
# @param [String] project
|
|
2418
2418
|
# Name of the project scoping this request.
|
|
@@ -3783,7 +3783,7 @@ module Google
|
|
|
3783
3783
|
end
|
|
3784
3784
|
|
|
3785
3785
|
# Retrieves an aggregated list of disk types.
|
|
3786
|
-
# To prevent failure,
|
|
3786
|
+
# To prevent failure, it is recommended that you set the
|
|
3787
3787
|
# `returnPartialSuccess` parameter to `true`.
|
|
3788
3788
|
# @param [String] project
|
|
3789
3789
|
# Project ID for this request.
|
|
@@ -4126,7 +4126,7 @@ module Google
|
|
|
4126
4126
|
end
|
|
4127
4127
|
|
|
4128
4128
|
# Retrieves an aggregated list of persistent disks.
|
|
4129
|
-
# To prevent failure,
|
|
4129
|
+
# To prevent failure, it is recommended that you set the
|
|
4130
4130
|
# `returnPartialSuccess` parameter to `true`.
|
|
4131
4131
|
# @param [String] project
|
|
4132
4132
|
# Project ID for this request.
|
|
@@ -6144,6 +6144,10 @@ module Google
|
|
|
6144
6144
|
end
|
|
6145
6145
|
|
|
6146
6146
|
# Lists associations of a specified target, i.e., organization or folder.
|
|
6147
|
+
# @param [Boolean] include_inherited_policies
|
|
6148
|
+
# If set to "true", the response will contain a list of all associations for
|
|
6149
|
+
# the containing folders and the containing organization of the target. The
|
|
6150
|
+
# parameter has no effect if the target is an organization.
|
|
6147
6151
|
# @param [String] target_resource
|
|
6148
6152
|
# The target resource to list associations. It is an organization, or a
|
|
6149
6153
|
# folder.
|
|
@@ -6166,10 +6170,11 @@ module Google
|
|
|
6166
6170
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6167
6171
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6168
6172
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6169
|
-
def list_firewall_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6173
|
+
def list_firewall_policy_associations(include_inherited_policies: nil, target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6170
6174
|
command = make_simple_command(:get, 'locations/global/firewallPolicies/listAssociations', options)
|
|
6171
6175
|
command.response_representation = Google::Apis::ComputeBeta::FirewallPoliciesListAssociationsResponse::Representation
|
|
6172
6176
|
command.response_class = Google::Apis::ComputeBeta::FirewallPoliciesListAssociationsResponse
|
|
6177
|
+
command.query['includeInheritedPolicies'] = include_inherited_policies unless include_inherited_policies.nil?
|
|
6173
6178
|
command.query['targetResource'] = target_resource unless target_resource.nil?
|
|
6174
6179
|
command.query['fields'] = fields unless fields.nil?
|
|
6175
6180
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -7001,7 +7006,7 @@ module Google
|
|
|
7001
7006
|
end
|
|
7002
7007
|
|
|
7003
7008
|
# Retrieves an aggregated list of forwarding rules.
|
|
7004
|
-
# To prevent failure,
|
|
7009
|
+
# To prevent failure, it is recommended that you set the
|
|
7005
7010
|
# `returnPartialSuccess` parameter to `true`.
|
|
7006
7011
|
# @param [String] project
|
|
7007
7012
|
# Project ID for this request.
|
|
@@ -7606,7 +7611,7 @@ module Google
|
|
|
7606
7611
|
end
|
|
7607
7612
|
|
|
7608
7613
|
# Retrieves an aggregated list of future reservations.
|
|
7609
|
-
# To prevent failure,
|
|
7614
|
+
# To prevent failure, it is recommended that you set the
|
|
7610
7615
|
# `returnPartialSuccess` parameter to `true`.
|
|
7611
7616
|
# @param [String] project
|
|
7612
7617
|
# Project ID for this request.
|
|
@@ -10261,9 +10266,9 @@ module Google
|
|
|
10261
10266
|
execute_or_queue_command(command, &block)
|
|
10262
10267
|
end
|
|
10263
10268
|
|
|
10264
|
-
# Retrieves the list of all
|
|
10269
|
+
# Retrieves the list of all VM Extension Policy resources
|
|
10265
10270
|
# available to the specified project.
|
|
10266
|
-
# To prevent failure,
|
|
10271
|
+
# To prevent failure, it's recommended that you set the
|
|
10267
10272
|
# `returnPartialSuccess` parameter to `true`.
|
|
10268
10273
|
# @param [String] project
|
|
10269
10274
|
# Name of the project scoping this request.
|
|
@@ -10365,18 +10370,18 @@ module Google
|
|
|
10365
10370
|
# Request-specific options
|
|
10366
10371
|
#
|
|
10367
10372
|
# @yield [result, err] Result & error if block supplied
|
|
10368
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
10373
|
+
# @yieldparam result [Google::Apis::ComputeBeta::VmExtensionPolicyAggregatedListResponse] parsed result object
|
|
10369
10374
|
# @yieldparam err [StandardError] error object if request failed
|
|
10370
10375
|
#
|
|
10371
|
-
# @return [Google::Apis::ComputeBeta::
|
|
10376
|
+
# @return [Google::Apis::ComputeBeta::VmExtensionPolicyAggregatedListResponse]
|
|
10372
10377
|
#
|
|
10373
10378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10374
10379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10375
10380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10376
|
-
def
|
|
10377
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/
|
|
10378
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
|
10379
|
-
command.response_class = Google::Apis::ComputeBeta::
|
|
10381
|
+
def aggregated_global_vm_extension_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10382
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/vmExtensionPolicies', options)
|
|
10383
|
+
command.response_representation = Google::Apis::ComputeBeta::VmExtensionPolicyAggregatedListResponse::Representation
|
|
10384
|
+
command.response_class = Google::Apis::ComputeBeta::VmExtensionPolicyAggregatedListResponse
|
|
10380
10385
|
command.params['project'] = project unless project.nil?
|
|
10381
10386
|
command.query['filter'] = filter unless filter.nil?
|
|
10382
10387
|
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
@@ -10391,23 +10396,11 @@ module Google
|
|
|
10391
10396
|
execute_or_queue_command(command, &block)
|
|
10392
10397
|
end
|
|
10393
10398
|
|
|
10394
|
-
#
|
|
10399
|
+
# Gets details of a global VM extension policy.
|
|
10395
10400
|
# @param [String] project
|
|
10396
10401
|
# Project ID for this request.
|
|
10397
|
-
# @param [String]
|
|
10398
|
-
# Name of the
|
|
10399
|
-
# @param [String] request_id
|
|
10400
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10401
|
-
# that if you must retry your request, the server will know to ignore the
|
|
10402
|
-
# request if it has already been completed.
|
|
10403
|
-
# For example, consider a situation where you make an initial request and
|
|
10404
|
-
# the request times out. If you make the request again with the same
|
|
10405
|
-
# request ID, the server can check if original operation with the same
|
|
10406
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
10407
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
10408
|
-
# The request ID must be
|
|
10409
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
10410
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
10402
|
+
# @param [String] global_vm_extension_policy
|
|
10403
|
+
# Name of the GlobalVmExtensionPolicy resource to return.
|
|
10411
10404
|
# @param [String] fields
|
|
10412
10405
|
# Selector specifying which fields to include in a partial response.
|
|
10413
10406
|
# @param [String] quota_user
|
|
@@ -10419,117 +10412,32 @@ module Google
|
|
|
10419
10412
|
# Request-specific options
|
|
10420
10413
|
#
|
|
10421
10414
|
# @yield [result, err] Result & error if block supplied
|
|
10422
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
10415
|
+
# @yieldparam result [Google::Apis::ComputeBeta::GlobalVmExtensionPolicy] parsed result object
|
|
10423
10416
|
# @yieldparam err [StandardError] error object if request failed
|
|
10424
10417
|
#
|
|
10425
|
-
# @return [Google::Apis::ComputeBeta::
|
|
10418
|
+
# @return [Google::Apis::ComputeBeta::GlobalVmExtensionPolicy]
|
|
10426
10419
|
#
|
|
10427
10420
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10428
10421
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10429
10422
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10430
|
-
def
|
|
10431
|
-
command = make_simple_command(:
|
|
10432
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
|
10433
|
-
command.response_class = Google::Apis::ComputeBeta::
|
|
10423
|
+
def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10424
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
10425
|
+
command.response_representation = Google::Apis::ComputeBeta::GlobalVmExtensionPolicy::Representation
|
|
10426
|
+
command.response_class = Google::Apis::ComputeBeta::GlobalVmExtensionPolicy
|
|
10434
10427
|
command.params['project'] = project unless project.nil?
|
|
10435
|
-
command.params['
|
|
10436
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
10428
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
10437
10429
|
command.query['fields'] = fields unless fields.nil?
|
|
10438
10430
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10439
10431
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10440
10432
|
execute_or_queue_command(command, &block)
|
|
10441
10433
|
end
|
|
10442
10434
|
|
|
10443
|
-
#
|
|
10444
|
-
#
|
|
10445
|
-
#
|
|
10446
|
-
#
|
|
10447
|
-
# Name of the HealthCheck resource to return.
|
|
10448
|
-
# @param [String] fields
|
|
10449
|
-
# Selector specifying which fields to include in a partial response.
|
|
10450
|
-
# @param [String] quota_user
|
|
10451
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
10452
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10453
|
-
# @param [String] user_ip
|
|
10454
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10455
|
-
# @param [Google::Apis::RequestOptions] options
|
|
10456
|
-
# Request-specific options
|
|
10457
|
-
#
|
|
10458
|
-
# @yield [result, err] Result & error if block supplied
|
|
10459
|
-
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
|
|
10460
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
10461
|
-
#
|
|
10462
|
-
# @return [Google::Apis::ComputeBeta::HealthCheck]
|
|
10463
|
-
#
|
|
10464
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10465
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10466
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10467
|
-
def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10468
|
-
command = make_simple_command(:get, 'projects/{project}/global/healthChecks/{healthCheck}', options)
|
|
10469
|
-
command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
|
10470
|
-
command.response_class = Google::Apis::ComputeBeta::HealthCheck
|
|
10471
|
-
command.params['project'] = project unless project.nil?
|
|
10472
|
-
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
10473
|
-
command.query['fields'] = fields unless fields.nil?
|
|
10474
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10475
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10476
|
-
execute_or_queue_command(command, &block)
|
|
10477
|
-
end
|
|
10478
|
-
|
|
10479
|
-
# Creates a HealthCheck resource in the specified project using the data
|
|
10480
|
-
# included in the request.
|
|
10481
|
-
# @param [String] project
|
|
10482
|
-
# Project ID for this request.
|
|
10483
|
-
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
|
10484
|
-
# @param [String] request_id
|
|
10485
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10486
|
-
# that if you must retry your request, the server will know to ignore the
|
|
10487
|
-
# request if it has already been completed.
|
|
10488
|
-
# For example, consider a situation where you make an initial request and
|
|
10489
|
-
# the request times out. If you make the request again with the same
|
|
10490
|
-
# request ID, the server can check if original operation with the same
|
|
10491
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
10492
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
10493
|
-
# The request ID must be
|
|
10494
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
10495
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
10496
|
-
# @param [String] fields
|
|
10497
|
-
# Selector specifying which fields to include in a partial response.
|
|
10498
|
-
# @param [String] quota_user
|
|
10499
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
10500
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10501
|
-
# @param [String] user_ip
|
|
10502
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10503
|
-
# @param [Google::Apis::RequestOptions] options
|
|
10504
|
-
# Request-specific options
|
|
10505
|
-
#
|
|
10506
|
-
# @yield [result, err] Result & error if block supplied
|
|
10507
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
10508
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
10509
|
-
#
|
|
10510
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
|
10511
|
-
#
|
|
10512
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10513
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10514
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10515
|
-
def insert_health_check(project, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10516
|
-
command = make_simple_command(:post, 'projects/{project}/global/healthChecks', options)
|
|
10517
|
-
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
|
10518
|
-
command.request_object = health_check_object
|
|
10519
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
10520
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
10521
|
-
command.params['project'] = project unless project.nil?
|
|
10522
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
10523
|
-
command.query['fields'] = fields unless fields.nil?
|
|
10524
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10525
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10526
|
-
execute_or_queue_command(command, &block)
|
|
10527
|
-
end
|
|
10528
|
-
|
|
10529
|
-
# Retrieves the list of HealthCheck resources available to the specified
|
|
10530
|
-
# project.
|
|
10435
|
+
# Retrieves the list of all HealthCheck resources, regional and global,
|
|
10436
|
+
# available to the specified project.
|
|
10437
|
+
# To prevent failure, Google recommends that you set the
|
|
10438
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
10531
10439
|
# @param [String] project
|
|
10532
|
-
#
|
|
10440
|
+
# Name of the project scoping this request.
|
|
10533
10441
|
# @param [String] filter
|
|
10534
10442
|
# A filter expression that filters resources listed in the response. Most
|
|
10535
10443
|
# Compute resources support two types of filter expressions:
|
|
@@ -10580,6 +10488,14 @@ module Google
|
|
|
10580
10488
|
# you would use `name ne .*instance`.
|
|
10581
10489
|
# You cannot combine constraints on multiple fields using regular
|
|
10582
10490
|
# expressions.
|
|
10491
|
+
# @param [Boolean] include_all_scopes
|
|
10492
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
10493
|
+
# global) should be included in the response. For new resource types added
|
|
10494
|
+
# after this field, the flag has no effect as new resource types will always
|
|
10495
|
+
# include every visible scope for each scope type in response. For resource
|
|
10496
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
10497
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
10498
|
+
# will be included.
|
|
10583
10499
|
# @param [Fixnum] max_results
|
|
10584
10500
|
# The maximum number of results per page that should be returned.
|
|
10585
10501
|
# If the number of available results is larger than `maxResults`,
|
|
@@ -10606,6 +10522,9 @@ module Google
|
|
|
10606
10522
|
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
10607
10523
|
# single zone scope either returns all resources in the zone or no resources,
|
|
10608
10524
|
# with an error code.
|
|
10525
|
+
# @param [Fixnum] service_project_number
|
|
10526
|
+
# The Shared VPC service project id or service project number for which
|
|
10527
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
10609
10528
|
# @param [String] fields
|
|
10610
10529
|
# Selector specifying which fields to include in a partial response.
|
|
10611
10530
|
# @param [String] quota_user
|
|
@@ -10617,38 +10536,290 @@ module Google
|
|
|
10617
10536
|
# Request-specific options
|
|
10618
10537
|
#
|
|
10619
10538
|
# @yield [result, err] Result & error if block supplied
|
|
10620
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
10539
|
+
# @yieldparam result [Google::Apis::ComputeBeta::HealthChecksAggregatedList] parsed result object
|
|
10621
10540
|
# @yieldparam err [StandardError] error object if request failed
|
|
10622
10541
|
#
|
|
10623
|
-
# @return [Google::Apis::ComputeBeta::
|
|
10542
|
+
# @return [Google::Apis::ComputeBeta::HealthChecksAggregatedList]
|
|
10624
10543
|
#
|
|
10625
10544
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10626
10545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10627
10546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10628
|
-
def
|
|
10629
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
10630
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
|
10631
|
-
command.response_class = Google::Apis::ComputeBeta::
|
|
10547
|
+
def aggregated_health_check_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10548
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/healthChecks', options)
|
|
10549
|
+
command.response_representation = Google::Apis::ComputeBeta::HealthChecksAggregatedList::Representation
|
|
10550
|
+
command.response_class = Google::Apis::ComputeBeta::HealthChecksAggregatedList
|
|
10632
10551
|
command.params['project'] = project unless project.nil?
|
|
10633
10552
|
command.query['filter'] = filter unless filter.nil?
|
|
10553
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
10634
10554
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
10635
10555
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
10636
10556
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10637
10557
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
10558
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
10638
10559
|
command.query['fields'] = fields unless fields.nil?
|
|
10639
10560
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10640
10561
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10641
10562
|
execute_or_queue_command(command, &block)
|
|
10642
10563
|
end
|
|
10643
10564
|
|
|
10644
|
-
#
|
|
10645
|
-
# included in the request. This method supportsPATCH
|
|
10646
|
-
# semantics and uses theJSON merge
|
|
10647
|
-
# patch format and processing rules.
|
|
10565
|
+
# Deletes the specified HealthCheck resource.
|
|
10648
10566
|
# @param [String] project
|
|
10649
10567
|
# Project ID for this request.
|
|
10650
10568
|
# @param [String] health_check
|
|
10651
|
-
# Name of the HealthCheck resource to
|
|
10569
|
+
# Name of the HealthCheck resource to delete.
|
|
10570
|
+
# @param [String] request_id
|
|
10571
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10572
|
+
# that if you must retry your request, the server will know to ignore the
|
|
10573
|
+
# request if it has already been completed.
|
|
10574
|
+
# For example, consider a situation where you make an initial request and
|
|
10575
|
+
# the request times out. If you make the request again with the same
|
|
10576
|
+
# request ID, the server can check if original operation with the same
|
|
10577
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
10578
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
10579
|
+
# The request ID must be
|
|
10580
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
10581
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
10582
|
+
# @param [String] fields
|
|
10583
|
+
# Selector specifying which fields to include in a partial response.
|
|
10584
|
+
# @param [String] quota_user
|
|
10585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10587
|
+
# @param [String] user_ip
|
|
10588
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10589
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10590
|
+
# Request-specific options
|
|
10591
|
+
#
|
|
10592
|
+
# @yield [result, err] Result & error if block supplied
|
|
10593
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
10594
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10595
|
+
#
|
|
10596
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
10597
|
+
#
|
|
10598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10601
|
+
def delete_health_check(project, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10602
|
+
command = make_simple_command(:delete, 'projects/{project}/global/healthChecks/{healthCheck}', options)
|
|
10603
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
10604
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
10605
|
+
command.params['project'] = project unless project.nil?
|
|
10606
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
10607
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
10608
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10610
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10611
|
+
execute_or_queue_command(command, &block)
|
|
10612
|
+
end
|
|
10613
|
+
|
|
10614
|
+
# Returns the specified HealthCheck resource.
|
|
10615
|
+
# @param [String] project
|
|
10616
|
+
# Project ID for this request.
|
|
10617
|
+
# @param [String] health_check
|
|
10618
|
+
# Name of the HealthCheck resource to return.
|
|
10619
|
+
# @param [String] fields
|
|
10620
|
+
# Selector specifying which fields to include in a partial response.
|
|
10621
|
+
# @param [String] quota_user
|
|
10622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10624
|
+
# @param [String] user_ip
|
|
10625
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10626
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10627
|
+
# Request-specific options
|
|
10628
|
+
#
|
|
10629
|
+
# @yield [result, err] Result & error if block supplied
|
|
10630
|
+
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
|
|
10631
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10632
|
+
#
|
|
10633
|
+
# @return [Google::Apis::ComputeBeta::HealthCheck]
|
|
10634
|
+
#
|
|
10635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10638
|
+
def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10639
|
+
command = make_simple_command(:get, 'projects/{project}/global/healthChecks/{healthCheck}', options)
|
|
10640
|
+
command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
|
10641
|
+
command.response_class = Google::Apis::ComputeBeta::HealthCheck
|
|
10642
|
+
command.params['project'] = project unless project.nil?
|
|
10643
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
10644
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10645
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10646
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10647
|
+
execute_or_queue_command(command, &block)
|
|
10648
|
+
end
|
|
10649
|
+
|
|
10650
|
+
# Creates a HealthCheck resource in the specified project using the data
|
|
10651
|
+
# included in the request.
|
|
10652
|
+
# @param [String] project
|
|
10653
|
+
# Project ID for this request.
|
|
10654
|
+
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
|
10655
|
+
# @param [String] request_id
|
|
10656
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10657
|
+
# that if you must retry your request, the server will know to ignore the
|
|
10658
|
+
# request if it has already been completed.
|
|
10659
|
+
# For example, consider a situation where you make an initial request and
|
|
10660
|
+
# the request times out. If you make the request again with the same
|
|
10661
|
+
# request ID, the server can check if original operation with the same
|
|
10662
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
10663
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
10664
|
+
# The request ID must be
|
|
10665
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
10666
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
10667
|
+
# @param [String] fields
|
|
10668
|
+
# Selector specifying which fields to include in a partial response.
|
|
10669
|
+
# @param [String] quota_user
|
|
10670
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10671
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10672
|
+
# @param [String] user_ip
|
|
10673
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10674
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10675
|
+
# Request-specific options
|
|
10676
|
+
#
|
|
10677
|
+
# @yield [result, err] Result & error if block supplied
|
|
10678
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
10679
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10680
|
+
#
|
|
10681
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
10682
|
+
#
|
|
10683
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10684
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10685
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10686
|
+
def insert_health_check(project, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10687
|
+
command = make_simple_command(:post, 'projects/{project}/global/healthChecks', options)
|
|
10688
|
+
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
|
10689
|
+
command.request_object = health_check_object
|
|
10690
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
10691
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
10692
|
+
command.params['project'] = project unless project.nil?
|
|
10693
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
10694
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10695
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10696
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10697
|
+
execute_or_queue_command(command, &block)
|
|
10698
|
+
end
|
|
10699
|
+
|
|
10700
|
+
# Retrieves the list of HealthCheck resources available to the specified
|
|
10701
|
+
# project.
|
|
10702
|
+
# @param [String] project
|
|
10703
|
+
# Project ID for this request.
|
|
10704
|
+
# @param [String] filter
|
|
10705
|
+
# A filter expression that filters resources listed in the response. Most
|
|
10706
|
+
# Compute resources support two types of filter expressions:
|
|
10707
|
+
# expressions that support regular expressions and expressions that follow
|
|
10708
|
+
# API improvement proposal AIP-160.
|
|
10709
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
10710
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
10711
|
+
# operator, and the value that you want to use for filtering. The value
|
|
10712
|
+
# must be a string, a number, or a boolean. The operator
|
|
10713
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
10714
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
10715
|
+
# exclude instances named `example-instance` by specifying
|
|
10716
|
+
# `name != example-instance`.
|
|
10717
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
10718
|
+
# For example, to find all objects with `owner` label use:
|
|
10719
|
+
# ```
|
|
10720
|
+
# labels.owner:*
|
|
10721
|
+
# ```
|
|
10722
|
+
# You can also filter nested fields. For example, you could specify
|
|
10723
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
10724
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
10725
|
+
# on nested fields to filter based onresource labels.
|
|
10726
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10727
|
+
# parentheses. For example:
|
|
10728
|
+
# ```
|
|
10729
|
+
# (scheduling.automaticRestart = true)
|
|
10730
|
+
# (cpuPlatform = "Intel Skylake")
|
|
10731
|
+
# ```
|
|
10732
|
+
# By default, each expression is an `AND` expression. However, you
|
|
10733
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
10734
|
+
# For example:
|
|
10735
|
+
# ```
|
|
10736
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
10737
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
10738
|
+
# (scheduling.automaticRestart = true)
|
|
10739
|
+
# ```
|
|
10740
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
10741
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
10742
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
10743
|
+
# `fieldname eq unquoted literal`
|
|
10744
|
+
# `fieldname eq 'single quoted literal'`
|
|
10745
|
+
# `fieldname eq "double quoted literal"`
|
|
10746
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
10747
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
10748
|
+
# library syntax.
|
|
10749
|
+
# The literal value must match the entire field.
|
|
10750
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
10751
|
+
# you would use `name ne .*instance`.
|
|
10752
|
+
# You cannot combine constraints on multiple fields using regular
|
|
10753
|
+
# expressions.
|
|
10754
|
+
# @param [Fixnum] max_results
|
|
10755
|
+
# The maximum number of results per page that should be returned.
|
|
10756
|
+
# If the number of available results is larger than `maxResults`,
|
|
10757
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
10758
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
10759
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
10760
|
+
# @param [String] order_by
|
|
10761
|
+
# Sorts list results by a certain order. By default, results
|
|
10762
|
+
# are returned in alphanumerical order based on the resource name.
|
|
10763
|
+
# You can also sort results in descending order based on the creation
|
|
10764
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
10765
|
+
# results based on the `creationTimestamp` field in
|
|
10766
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
10767
|
+
# resources like operations so that the newest operation is returned first.
|
|
10768
|
+
# Currently, only sorting by `name` or
|
|
10769
|
+
# `creationTimestamp desc` is supported.
|
|
10770
|
+
# @param [String] page_token
|
|
10771
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
10772
|
+
# `nextPageToken` returned by a previous list request to get
|
|
10773
|
+
# the next page of results.
|
|
10774
|
+
# @param [Boolean] return_partial_success
|
|
10775
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
10776
|
+
# of failure. The default value is false.
|
|
10777
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
10778
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
10779
|
+
# with an error code.
|
|
10780
|
+
# @param [String] fields
|
|
10781
|
+
# Selector specifying which fields to include in a partial response.
|
|
10782
|
+
# @param [String] quota_user
|
|
10783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10785
|
+
# @param [String] user_ip
|
|
10786
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10787
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10788
|
+
# Request-specific options
|
|
10789
|
+
#
|
|
10790
|
+
# @yield [result, err] Result & error if block supplied
|
|
10791
|
+
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheckList] parsed result object
|
|
10792
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10793
|
+
#
|
|
10794
|
+
# @return [Google::Apis::ComputeBeta::HealthCheckList]
|
|
10795
|
+
#
|
|
10796
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10797
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10798
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10799
|
+
def list_health_checks(project, 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)
|
|
10800
|
+
command = make_simple_command(:get, 'projects/{project}/global/healthChecks', options)
|
|
10801
|
+
command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation
|
|
10802
|
+
command.response_class = Google::Apis::ComputeBeta::HealthCheckList
|
|
10803
|
+
command.params['project'] = project unless project.nil?
|
|
10804
|
+
command.query['filter'] = filter unless filter.nil?
|
|
10805
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
10806
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
10807
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10808
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
10809
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10811
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10812
|
+
execute_or_queue_command(command, &block)
|
|
10813
|
+
end
|
|
10814
|
+
|
|
10815
|
+
# Updates a HealthCheck resource in the specified project using the data
|
|
10816
|
+
# included in the request. This method supportsPATCH
|
|
10817
|
+
# semantics and uses theJSON merge
|
|
10818
|
+
# patch format and processing rules.
|
|
10819
|
+
# @param [String] project
|
|
10820
|
+
# Project ID for this request.
|
|
10821
|
+
# @param [String] health_check
|
|
10822
|
+
# Name of the HealthCheck resource to patch.
|
|
10652
10823
|
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
|
10653
10824
|
# @param [String] request_id
|
|
10654
10825
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
@@ -13054,6 +13225,48 @@ module Google
|
|
|
13054
13225
|
execute_or_queue_command(command, &block)
|
|
13055
13226
|
end
|
|
13056
13227
|
|
|
13228
|
+
# Returns information about available accelerator topologies for a given MIG.
|
|
13229
|
+
# @param [String] project
|
|
13230
|
+
# Required. Project ID for this request.
|
|
13231
|
+
# @param [String] zone
|
|
13232
|
+
# Required. The name of thezone where the managed
|
|
13233
|
+
# instance group is located.
|
|
13234
|
+
# Name should conform to RFC1035.
|
|
13235
|
+
# @param [String] resource_id
|
|
13236
|
+
# Required. The name of the managed instance group.
|
|
13237
|
+
# It should conform to RFC1035.
|
|
13238
|
+
# @param [String] fields
|
|
13239
|
+
# Selector specifying which fields to include in a partial response.
|
|
13240
|
+
# @param [String] quota_user
|
|
13241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
13242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
13243
|
+
# @param [String] user_ip
|
|
13244
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
13245
|
+
# @param [Google::Apis::RequestOptions] options
|
|
13246
|
+
# Request-specific options
|
|
13247
|
+
#
|
|
13248
|
+
# @yield [result, err] Result & error if block supplied
|
|
13249
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse] parsed result object
|
|
13250
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
13251
|
+
#
|
|
13252
|
+
# @return [Google::Apis::ComputeBeta::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse]
|
|
13253
|
+
#
|
|
13254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
13255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
13256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
13257
|
+
def get_instance_group_manager_available_accelerator_topologies(project, zone, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
13258
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/getAvailableAcceleratorTopologies', options)
|
|
13259
|
+
command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse::Representation
|
|
13260
|
+
command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse
|
|
13261
|
+
command.params['project'] = project unless project.nil?
|
|
13262
|
+
command.params['zone'] = zone unless zone.nil?
|
|
13263
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
13264
|
+
command.query['fields'] = fields unless fields.nil?
|
|
13265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
13266
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
13267
|
+
execute_or_queue_command(command, &block)
|
|
13268
|
+
end
|
|
13269
|
+
|
|
13057
13270
|
# Creates a managed instance group using the information that you specify
|
|
13058
13271
|
# in the request. After the group is created, instances in the group are
|
|
13059
13272
|
# created using the specified instance template.
|
|
@@ -25129,7 +25342,7 @@ module Google
|
|
|
25129
25342
|
# Retrieves an aggregated list of network firewall policies, listing network
|
|
25130
25343
|
# firewall policies from all applicable scopes (global and regional) and
|
|
25131
25344
|
# grouping the results per scope.
|
|
25132
|
-
# To prevent failure,
|
|
25345
|
+
# To prevent failure, it is recommended that you set the
|
|
25133
25346
|
# `returnPartialSuccess` parameter to `true`.
|
|
25134
25347
|
# @param [String] project
|
|
25135
25348
|
# Project ID for this request.
|
|
@@ -30904,11 +31117,13 @@ module Google
|
|
|
30904
31117
|
execute_or_queue_command(command, &block)
|
|
30905
31118
|
end
|
|
30906
31119
|
|
|
31120
|
+
# Moves a persistent disk from one zone to another.
|
|
31121
|
+
# *Note*: The moveDisk API will be deprecated on September 29, 2026.
|
|
30907
31122
|
# Starting September 29, 2025, you can't use the moveDisk API on new
|
|
30908
31123
|
# projects. To move a disk to a different region or zone, follow the steps in
|
|
30909
31124
|
# [Change the location of a
|
|
30910
|
-
# disk](https
|
|
30911
|
-
#
|
|
31125
|
+
# disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-
|
|
31126
|
+
# to-hd).
|
|
30912
31127
|
# Projects that already use the moveDisk API can continue usage until
|
|
30913
31128
|
# September 29, 2026.
|
|
30914
31129
|
# Starting November 1, 2025, API responses will include a warning message in
|
|
@@ -33952,7 +34167,7 @@ module Google
|
|
|
33952
34167
|
end
|
|
33953
34168
|
|
|
33954
34169
|
# Retrieves an aggregated list of commitments by region.
|
|
33955
|
-
# To prevent failure,
|
|
34170
|
+
# To prevent failure, it is recommended that you set the
|
|
33956
34171
|
# `returnPartialSuccess` parameter to `true`.
|
|
33957
34172
|
# @param [String] project
|
|
33958
34173
|
# Project ID for this request.
|
|
@@ -34452,7 +34667,7 @@ module Google
|
|
|
34452
34667
|
|
|
34453
34668
|
# Retrieves the list of all CompositeHealthCheck resources (all
|
|
34454
34669
|
# regional) available to the specified project.
|
|
34455
|
-
# To prevent failure,
|
|
34670
|
+
# To prevent failure, it is recommended that you set the
|
|
34456
34671
|
# `returnPartialSuccess` parameter to `true`.
|
|
34457
34672
|
# @param [String] project
|
|
34458
34673
|
# Name of the project scoping this request.
|
|
@@ -36145,7 +36360,7 @@ module Google
|
|
|
36145
36360
|
|
|
36146
36361
|
# Retrieves the list of all HealthAggregationPolicy resources,
|
|
36147
36362
|
# regional and global, available to the specified project.
|
|
36148
|
-
# To prevent failure,
|
|
36363
|
+
# To prevent failure, it is recommended that you set the
|
|
36149
36364
|
# `returnPartialSuccess` parameter to `true`.
|
|
36150
36365
|
# @param [String] project
|
|
36151
36366
|
# Name of the project scoping this request.
|
|
@@ -48265,6 +48480,52 @@ module Google
|
|
|
48265
48480
|
execute_or_queue_command(command, &block)
|
|
48266
48481
|
end
|
|
48267
48482
|
|
|
48483
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
48484
|
+
# policy or resource exists.
|
|
48485
|
+
# @param [String] project
|
|
48486
|
+
# Project ID for this request.
|
|
48487
|
+
# @param [String] zone
|
|
48488
|
+
# The name of the zone for this request.
|
|
48489
|
+
# @param [String] parent_resource
|
|
48490
|
+
# Name or id of parent resource of the resource for this request.
|
|
48491
|
+
# @param [String] resource
|
|
48492
|
+
# Name or id of the resource for this request.
|
|
48493
|
+
# @param [Fixnum] options_requested_policy_version
|
|
48494
|
+
# Requested IAM Policy version.
|
|
48495
|
+
# @param [String] fields
|
|
48496
|
+
# Selector specifying which fields to include in a partial response.
|
|
48497
|
+
# @param [String] quota_user
|
|
48498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48500
|
+
# @param [String] user_ip
|
|
48501
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48502
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48503
|
+
# Request-specific options
|
|
48504
|
+
#
|
|
48505
|
+
# @yield [result, err] Result & error if block supplied
|
|
48506
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
48507
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48508
|
+
#
|
|
48509
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
48510
|
+
#
|
|
48511
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48512
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48513
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48514
|
+
def get_reservation_block_iam_policy(project, zone, parent_resource, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48515
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy', options)
|
|
48516
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
48517
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
48518
|
+
command.params['project'] = project unless project.nil?
|
|
48519
|
+
command.params['zone'] = zone unless zone.nil?
|
|
48520
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
48521
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48522
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
48523
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48525
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48526
|
+
execute_or_queue_command(command, &block)
|
|
48527
|
+
end
|
|
48528
|
+
|
|
48268
48529
|
# Retrieves a list of reservation blocks under a single reservation.
|
|
48269
48530
|
# @param [String] project
|
|
48270
48531
|
# Project ID for this request.
|
|
@@ -48446,6 +48707,97 @@ module Google
|
|
|
48446
48707
|
execute_or_queue_command(command, &block)
|
|
48447
48708
|
end
|
|
48448
48709
|
|
|
48710
|
+
# Sets the access control policy on the specified resource.
|
|
48711
|
+
# Replaces any existing policy.
|
|
48712
|
+
# @param [String] project
|
|
48713
|
+
# Project ID for this request.
|
|
48714
|
+
# @param [String] zone
|
|
48715
|
+
# The name of the zone for this request.
|
|
48716
|
+
# @param [String] parent_resource
|
|
48717
|
+
# Name or id of parent resource of the resource for this request.
|
|
48718
|
+
# @param [String] resource
|
|
48719
|
+
# Name or id of the resource for this request.
|
|
48720
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
|
|
48721
|
+
# @param [String] fields
|
|
48722
|
+
# Selector specifying which fields to include in a partial response.
|
|
48723
|
+
# @param [String] quota_user
|
|
48724
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48725
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48726
|
+
# @param [String] user_ip
|
|
48727
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48728
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48729
|
+
# Request-specific options
|
|
48730
|
+
#
|
|
48731
|
+
# @yield [result, err] Result & error if block supplied
|
|
48732
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
48733
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48734
|
+
#
|
|
48735
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
48736
|
+
#
|
|
48737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48740
|
+
def set_reservation_block_iam_policy(project, zone, parent_resource, resource, zone_set_nested_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48741
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy', options)
|
|
48742
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetNestedPolicyRequest::Representation
|
|
48743
|
+
command.request_object = zone_set_nested_policy_request_object
|
|
48744
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
48745
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
48746
|
+
command.params['project'] = project unless project.nil?
|
|
48747
|
+
command.params['zone'] = zone unless zone.nil?
|
|
48748
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
48749
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48750
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48752
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48753
|
+
execute_or_queue_command(command, &block)
|
|
48754
|
+
end
|
|
48755
|
+
|
|
48756
|
+
# Returns permissions that a caller has on the specified resource.
|
|
48757
|
+
# @param [String] project
|
|
48758
|
+
# Project ID for this request.
|
|
48759
|
+
# @param [String] zone
|
|
48760
|
+
# The name of the zone for this request.
|
|
48761
|
+
# @param [String] parent_resource
|
|
48762
|
+
# Name or id of parent resource of the resource for this request.
|
|
48763
|
+
# @param [String] resource
|
|
48764
|
+
# Name or id of the resource for this request.
|
|
48765
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
48766
|
+
# @param [String] fields
|
|
48767
|
+
# Selector specifying which fields to include in a partial response.
|
|
48768
|
+
# @param [String] quota_user
|
|
48769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48771
|
+
# @param [String] user_ip
|
|
48772
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48773
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48774
|
+
# Request-specific options
|
|
48775
|
+
#
|
|
48776
|
+
# @yield [result, err] Result & error if block supplied
|
|
48777
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
48778
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48779
|
+
#
|
|
48780
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
48781
|
+
#
|
|
48782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48785
|
+
def test_reservation_block_iam_permissions(project, zone, parent_resource, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48786
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions', options)
|
|
48787
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
48788
|
+
command.request_object = test_permissions_request_object
|
|
48789
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
48790
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
48791
|
+
command.params['project'] = project unless project.nil?
|
|
48792
|
+
command.params['zone'] = zone unless zone.nil?
|
|
48793
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
48794
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48795
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48796
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48797
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48798
|
+
execute_or_queue_command(command, &block)
|
|
48799
|
+
end
|
|
48800
|
+
|
|
48449
48801
|
# Retrieves information about the specified reservation subBlock.
|
|
48450
48802
|
# @param [String] project
|
|
48451
48803
|
# Project ID for this request.
|
|
@@ -48457,6 +48809,8 @@ module Google
|
|
|
48457
48809
|
# @param [String] reservation_sub_block
|
|
48458
48810
|
# The name of the reservation subBlock.
|
|
48459
48811
|
# Name should conform to RFC1035 or be a resource ID.
|
|
48812
|
+
# @param [String] view
|
|
48813
|
+
# View of the subBlock.
|
|
48460
48814
|
# @param [String] fields
|
|
48461
48815
|
# Selector specifying which fields to include in a partial response.
|
|
48462
48816
|
# @param [String] quota_user
|
|
@@ -48476,7 +48830,7 @@ module Google
|
|
|
48476
48830
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48477
48831
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48478
48832
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48479
|
-
def get_reservation_sub_block(project, zone, parent_name, reservation_sub_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48833
|
+
def get_reservation_sub_block(project, zone, parent_name, reservation_sub_block, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48480
48834
|
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}', options)
|
|
48481
48835
|
command.response_representation = Google::Apis::ComputeBeta::ReservationSubBlocksGetResponse::Representation
|
|
48482
48836
|
command.response_class = Google::Apis::ComputeBeta::ReservationSubBlocksGetResponse
|
|
@@ -48484,6 +48838,53 @@ module Google
|
|
|
48484
48838
|
command.params['zone'] = zone unless zone.nil?
|
|
48485
48839
|
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
48486
48840
|
command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
|
|
48841
|
+
command.query['view'] = view unless view.nil?
|
|
48842
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48844
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48845
|
+
execute_or_queue_command(command, &block)
|
|
48846
|
+
end
|
|
48847
|
+
|
|
48848
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
48849
|
+
# policy or resource exists.
|
|
48850
|
+
# @param [String] project
|
|
48851
|
+
# Project ID for this request.
|
|
48852
|
+
# @param [String] zone
|
|
48853
|
+
# The name of the zone for this request.
|
|
48854
|
+
# @param [String] parent_resource
|
|
48855
|
+
# Name or id of parent resource of the resource for this request.
|
|
48856
|
+
# @param [String] resource
|
|
48857
|
+
# Name or id of the resource for this request.
|
|
48858
|
+
# @param [Fixnum] options_requested_policy_version
|
|
48859
|
+
# Requested IAM Policy version.
|
|
48860
|
+
# @param [String] fields
|
|
48861
|
+
# Selector specifying which fields to include in a partial response.
|
|
48862
|
+
# @param [String] quota_user
|
|
48863
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48864
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48865
|
+
# @param [String] user_ip
|
|
48866
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48867
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48868
|
+
# Request-specific options
|
|
48869
|
+
#
|
|
48870
|
+
# @yield [result, err] Result & error if block supplied
|
|
48871
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
48872
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48873
|
+
#
|
|
48874
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
48875
|
+
#
|
|
48876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48879
|
+
def get_reservation_sub_block_iam_policy(project, zone, parent_resource, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48880
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy', options)
|
|
48881
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
48882
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
48883
|
+
command.params['project'] = project unless project.nil?
|
|
48884
|
+
command.params['zone'] = zone unless zone.nil?
|
|
48885
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
48886
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48887
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
48487
48888
|
command.query['fields'] = fields unless fields.nil?
|
|
48488
48889
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48489
48890
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -48728,8 +49129,99 @@ module Google
|
|
|
48728
49129
|
execute_or_queue_command(command, &block)
|
|
48729
49130
|
end
|
|
48730
49131
|
|
|
49132
|
+
# Sets the access control policy on the specified resource.
|
|
49133
|
+
# Replaces any existing policy.
|
|
49134
|
+
# @param [String] project
|
|
49135
|
+
# Project ID for this request.
|
|
49136
|
+
# @param [String] zone
|
|
49137
|
+
# The name of the zone for this request.
|
|
49138
|
+
# @param [String] parent_resource
|
|
49139
|
+
# Name or id of parent resource of the resource for this request.
|
|
49140
|
+
# @param [String] resource
|
|
49141
|
+
# Name or id of the resource for this request.
|
|
49142
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
|
|
49143
|
+
# @param [String] fields
|
|
49144
|
+
# Selector specifying which fields to include in a partial response.
|
|
49145
|
+
# @param [String] quota_user
|
|
49146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49148
|
+
# @param [String] user_ip
|
|
49149
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49150
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49151
|
+
# Request-specific options
|
|
49152
|
+
#
|
|
49153
|
+
# @yield [result, err] Result & error if block supplied
|
|
49154
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
49155
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49156
|
+
#
|
|
49157
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
49158
|
+
#
|
|
49159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49162
|
+
def set_reservation_sub_block_iam_policy(project, zone, parent_resource, resource, zone_set_nested_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49163
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy', options)
|
|
49164
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetNestedPolicyRequest::Representation
|
|
49165
|
+
command.request_object = zone_set_nested_policy_request_object
|
|
49166
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
49167
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
49168
|
+
command.params['project'] = project unless project.nil?
|
|
49169
|
+
command.params['zone'] = zone unless zone.nil?
|
|
49170
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
49171
|
+
command.params['resource'] = resource unless resource.nil?
|
|
49172
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49174
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49175
|
+
execute_or_queue_command(command, &block)
|
|
49176
|
+
end
|
|
49177
|
+
|
|
49178
|
+
# Returns permissions that a caller has on the specified resource.
|
|
49179
|
+
# @param [String] project
|
|
49180
|
+
# Project ID for this request.
|
|
49181
|
+
# @param [String] zone
|
|
49182
|
+
# The name of the zone for this request.
|
|
49183
|
+
# @param [String] parent_resource
|
|
49184
|
+
# Name or id of parent resource of the resource for this request.
|
|
49185
|
+
# @param [String] resource
|
|
49186
|
+
# Name or id of the resource for this request.
|
|
49187
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
49188
|
+
# @param [String] fields
|
|
49189
|
+
# Selector specifying which fields to include in a partial response.
|
|
49190
|
+
# @param [String] quota_user
|
|
49191
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49192
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49193
|
+
# @param [String] user_ip
|
|
49194
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49195
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49196
|
+
# Request-specific options
|
|
49197
|
+
#
|
|
49198
|
+
# @yield [result, err] Result & error if block supplied
|
|
49199
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
49200
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49201
|
+
#
|
|
49202
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
49203
|
+
#
|
|
49204
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49205
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49206
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49207
|
+
def test_reservation_sub_block_iam_permissions(project, zone, parent_resource, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49208
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions', options)
|
|
49209
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
49210
|
+
command.request_object = test_permissions_request_object
|
|
49211
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
49212
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
49213
|
+
command.params['project'] = project unless project.nil?
|
|
49214
|
+
command.params['zone'] = zone unless zone.nil?
|
|
49215
|
+
command.params['parentResource'] = parent_resource unless parent_resource.nil?
|
|
49216
|
+
command.params['resource'] = resource unless resource.nil?
|
|
49217
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49219
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49220
|
+
execute_or_queue_command(command, &block)
|
|
49221
|
+
end
|
|
49222
|
+
|
|
48731
49223
|
# Retrieves an aggregated list of reservations.
|
|
48732
|
-
# To prevent failure,
|
|
49224
|
+
# To prevent failure, it is recommended that you set the
|
|
48733
49225
|
# `returnPartialSuccess` parameter to `true`.
|
|
48734
49226
|
# @param [String] project
|
|
48735
49227
|
# Project ID for this request.
|
|
@@ -55667,6 +56159,12 @@ module Google
|
|
|
55667
56159
|
# @param [Fixnum] service_project_number
|
|
55668
56160
|
# The Shared VPC service project id or service project number for which
|
|
55669
56161
|
# aggregated list request is invoked for subnetworks list-usable api.
|
|
56162
|
+
# @param [Array<String>, String] views
|
|
56163
|
+
# Defines the extra views returned back in the subnetwork resource.
|
|
56164
|
+
# Supported values:
|
|
56165
|
+
#
|
|
56166
|
+
# - WITH_UTILIZATION: Utilization data is included in the
|
|
56167
|
+
# response.
|
|
55670
56168
|
# @param [String] fields
|
|
55671
56169
|
# Selector specifying which fields to include in a partial response.
|
|
55672
56170
|
# @param [String] quota_user
|
|
@@ -55686,7 +56184,7 @@ module Google
|
|
|
55686
56184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
55687
56185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
55688
56186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
55689
|
-
def list_aggregated_subnetworks(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
56187
|
+
def list_aggregated_subnetworks(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
55690
56188
|
command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options)
|
|
55691
56189
|
command.response_representation = Google::Apis::ComputeBeta::SubnetworkAggregatedList::Representation
|
|
55692
56190
|
command.response_class = Google::Apis::ComputeBeta::SubnetworkAggregatedList
|
|
@@ -55698,6 +56196,7 @@ module Google
|
|
|
55698
56196
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
55699
56197
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
55700
56198
|
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
56199
|
+
command.query['views'] = views unless views.nil?
|
|
55701
56200
|
command.query['fields'] = fields unless fields.nil?
|
|
55702
56201
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
55703
56202
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -63107,6 +63606,321 @@ module Google
|
|
|
63107
63606
|
execute_or_queue_command(command, &block)
|
|
63108
63607
|
end
|
|
63109
63608
|
|
|
63609
|
+
# Deletes a specified zone VM extension policy.
|
|
63610
|
+
# @param [String] project
|
|
63611
|
+
# Project ID for this request.
|
|
63612
|
+
# @param [String] zone
|
|
63613
|
+
# Name of the zone for this request.
|
|
63614
|
+
# @param [String] vm_extension_policy
|
|
63615
|
+
# Name of the zone VM extension policy to delete.
|
|
63616
|
+
# @param [String] request_id
|
|
63617
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
63618
|
+
# that if you must retry your request, the server will know to ignore the
|
|
63619
|
+
# request if it has already been completed.
|
|
63620
|
+
# For example, consider a situation where you make an initial request and
|
|
63621
|
+
# the request times out. If you make the request again with the same
|
|
63622
|
+
# request ID, the server can check if original operation with the same
|
|
63623
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
63624
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
63625
|
+
# The request ID must be
|
|
63626
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
63627
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
63628
|
+
# @param [String] fields
|
|
63629
|
+
# Selector specifying which fields to include in a partial response.
|
|
63630
|
+
# @param [String] quota_user
|
|
63631
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63632
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63633
|
+
# @param [String] user_ip
|
|
63634
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
63635
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63636
|
+
# Request-specific options
|
|
63637
|
+
#
|
|
63638
|
+
# @yield [result, err] Result & error if block supplied
|
|
63639
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
63640
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63641
|
+
#
|
|
63642
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
63643
|
+
#
|
|
63644
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
63645
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
63646
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
63647
|
+
def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
63648
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
63649
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
63650
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
63651
|
+
command.params['project'] = project unless project.nil?
|
|
63652
|
+
command.params['zone'] = zone unless zone.nil?
|
|
63653
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
63654
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
63655
|
+
command.query['fields'] = fields unless fields.nil?
|
|
63656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
63657
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
63658
|
+
execute_or_queue_command(command, &block)
|
|
63659
|
+
end
|
|
63660
|
+
|
|
63661
|
+
# Retrieves details of a specific zone VM extension policy.
|
|
63662
|
+
# @param [String] project
|
|
63663
|
+
# Project ID for this request.
|
|
63664
|
+
# @param [String] zone
|
|
63665
|
+
# Name of the zone for this request.
|
|
63666
|
+
# @param [String] vm_extension_policy
|
|
63667
|
+
# Name of the VM extension policy resource to return.
|
|
63668
|
+
# @param [String] fields
|
|
63669
|
+
# Selector specifying which fields to include in a partial response.
|
|
63670
|
+
# @param [String] quota_user
|
|
63671
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63672
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63673
|
+
# @param [String] user_ip
|
|
63674
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
63675
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63676
|
+
# Request-specific options
|
|
63677
|
+
#
|
|
63678
|
+
# @yield [result, err] Result & error if block supplied
|
|
63679
|
+
# @yieldparam result [Google::Apis::ComputeBeta::VmExtensionPolicy] parsed result object
|
|
63680
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63681
|
+
#
|
|
63682
|
+
# @return [Google::Apis::ComputeBeta::VmExtensionPolicy]
|
|
63683
|
+
#
|
|
63684
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
63685
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
63686
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
63687
|
+
def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
63688
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
63689
|
+
command.response_representation = Google::Apis::ComputeBeta::VmExtensionPolicy::Representation
|
|
63690
|
+
command.response_class = Google::Apis::ComputeBeta::VmExtensionPolicy
|
|
63691
|
+
command.params['project'] = project unless project.nil?
|
|
63692
|
+
command.params['zone'] = zone unless zone.nil?
|
|
63693
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
63694
|
+
command.query['fields'] = fields unless fields.nil?
|
|
63695
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
63696
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
63697
|
+
execute_or_queue_command(command, &block)
|
|
63698
|
+
end
|
|
63699
|
+
|
|
63700
|
+
# Creates a new zone-level VM extension policy within a project.
|
|
63701
|
+
# @param [String] project
|
|
63702
|
+
# Project ID for this request.
|
|
63703
|
+
# @param [String] zone
|
|
63704
|
+
# Name of the zone for this request.
|
|
63705
|
+
# @param [Google::Apis::ComputeBeta::VmExtensionPolicy] vm_extension_policy_object
|
|
63706
|
+
# @param [String] request_id
|
|
63707
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
63708
|
+
# that if you must retry your request, the server will know to ignore the
|
|
63709
|
+
# request if it has already been completed.
|
|
63710
|
+
# For example, consider a situation where you make an initial request and
|
|
63711
|
+
# the request times out. If you make the request again with the same
|
|
63712
|
+
# request ID, the server can check if original operation with the same
|
|
63713
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
63714
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
63715
|
+
# The request ID must be
|
|
63716
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
63717
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
63718
|
+
# @param [String] fields
|
|
63719
|
+
# Selector specifying which fields to include in a partial response.
|
|
63720
|
+
# @param [String] quota_user
|
|
63721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63723
|
+
# @param [String] user_ip
|
|
63724
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
63725
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63726
|
+
# Request-specific options
|
|
63727
|
+
#
|
|
63728
|
+
# @yield [result, err] Result & error if block supplied
|
|
63729
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
63730
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63731
|
+
#
|
|
63732
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
63733
|
+
#
|
|
63734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
63735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
63736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
63737
|
+
def insert_zone_vm_extension_policy(project, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
63738
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
|
|
63739
|
+
command.request_representation = Google::Apis::ComputeBeta::VmExtensionPolicy::Representation
|
|
63740
|
+
command.request_object = vm_extension_policy_object
|
|
63741
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
63742
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
63743
|
+
command.params['project'] = project unless project.nil?
|
|
63744
|
+
command.params['zone'] = zone unless zone.nil?
|
|
63745
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
63746
|
+
command.query['fields'] = fields unless fields.nil?
|
|
63747
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
63748
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
63749
|
+
execute_or_queue_command(command, &block)
|
|
63750
|
+
end
|
|
63751
|
+
|
|
63752
|
+
# Lists all VM extension policies within a specific zone for a project.
|
|
63753
|
+
# @param [String] project
|
|
63754
|
+
# Project ID for this request.
|
|
63755
|
+
# @param [String] zone
|
|
63756
|
+
# Name of the zone for this request.
|
|
63757
|
+
# @param [String] filter
|
|
63758
|
+
# A filter expression that filters resources listed in the response. Most
|
|
63759
|
+
# Compute resources support two types of filter expressions:
|
|
63760
|
+
# expressions that support regular expressions and expressions that follow
|
|
63761
|
+
# API improvement proposal AIP-160.
|
|
63762
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
63763
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
63764
|
+
# operator, and the value that you want to use for filtering. The value
|
|
63765
|
+
# must be a string, a number, or a boolean. The operator
|
|
63766
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
63767
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
63768
|
+
# exclude instances named `example-instance` by specifying
|
|
63769
|
+
# `name != example-instance`.
|
|
63770
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
63771
|
+
# For example, to find all objects with `owner` label use:
|
|
63772
|
+
# ```
|
|
63773
|
+
# labels.owner:*
|
|
63774
|
+
# ```
|
|
63775
|
+
# You can also filter nested fields. For example, you could specify
|
|
63776
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
63777
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
63778
|
+
# on nested fields to filter based onresource labels.
|
|
63779
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
63780
|
+
# parentheses. For example:
|
|
63781
|
+
# ```
|
|
63782
|
+
# (scheduling.automaticRestart = true)
|
|
63783
|
+
# (cpuPlatform = "Intel Skylake")
|
|
63784
|
+
# ```
|
|
63785
|
+
# By default, each expression is an `AND` expression. However, you
|
|
63786
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
63787
|
+
# For example:
|
|
63788
|
+
# ```
|
|
63789
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
63790
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
63791
|
+
# (scheduling.automaticRestart = true)
|
|
63792
|
+
# ```
|
|
63793
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
63794
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
63795
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
63796
|
+
# `fieldname eq unquoted literal`
|
|
63797
|
+
# `fieldname eq 'single quoted literal'`
|
|
63798
|
+
# `fieldname eq "double quoted literal"`
|
|
63799
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
63800
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
63801
|
+
# library syntax.
|
|
63802
|
+
# The literal value must match the entire field.
|
|
63803
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
63804
|
+
# you would use `name ne .*instance`.
|
|
63805
|
+
# You cannot combine constraints on multiple fields using regular
|
|
63806
|
+
# expressions.
|
|
63807
|
+
# @param [Fixnum] max_results
|
|
63808
|
+
# The maximum number of results per page that should be returned.
|
|
63809
|
+
# If the number of available results is larger than `maxResults`,
|
|
63810
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
63811
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
63812
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
63813
|
+
# @param [String] order_by
|
|
63814
|
+
# Sorts list results by a certain order. By default, results
|
|
63815
|
+
# are returned in alphanumerical order based on the resource name.
|
|
63816
|
+
# You can also sort results in descending order based on the creation
|
|
63817
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
63818
|
+
# results based on the `creationTimestamp` field in
|
|
63819
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
63820
|
+
# resources like operations so that the newest operation is returned first.
|
|
63821
|
+
# Currently, only sorting by `name` or
|
|
63822
|
+
# `creationTimestamp desc` is supported.
|
|
63823
|
+
# @param [String] page_token
|
|
63824
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
63825
|
+
# `nextPageToken` returned by a previous list request to get
|
|
63826
|
+
# the next page of results.
|
|
63827
|
+
# @param [Boolean] return_partial_success
|
|
63828
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
63829
|
+
# of failure. The default value is false.
|
|
63830
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
63831
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
63832
|
+
# with an error code.
|
|
63833
|
+
# @param [String] fields
|
|
63834
|
+
# Selector specifying which fields to include in a partial response.
|
|
63835
|
+
# @param [String] quota_user
|
|
63836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63838
|
+
# @param [String] user_ip
|
|
63839
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
63840
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63841
|
+
# Request-specific options
|
|
63842
|
+
#
|
|
63843
|
+
# @yield [result, err] Result & error if block supplied
|
|
63844
|
+
# @yieldparam result [Google::Apis::ComputeBeta::VmExtensionPolicyList] parsed result object
|
|
63845
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63846
|
+
#
|
|
63847
|
+
# @return [Google::Apis::ComputeBeta::VmExtensionPolicyList]
|
|
63848
|
+
#
|
|
63849
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
63850
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
63851
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
63852
|
+
def list_zone_vm_extension_policies(project, zone, 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)
|
|
63853
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
|
|
63854
|
+
command.response_representation = Google::Apis::ComputeBeta::VmExtensionPolicyList::Representation
|
|
63855
|
+
command.response_class = Google::Apis::ComputeBeta::VmExtensionPolicyList
|
|
63856
|
+
command.params['project'] = project unless project.nil?
|
|
63857
|
+
command.params['zone'] = zone unless zone.nil?
|
|
63858
|
+
command.query['filter'] = filter unless filter.nil?
|
|
63859
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
63860
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
63861
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
63862
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
63863
|
+
command.query['fields'] = fields unless fields.nil?
|
|
63864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
63865
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
63866
|
+
execute_or_queue_command(command, &block)
|
|
63867
|
+
end
|
|
63868
|
+
|
|
63869
|
+
# Modifies an existing zone VM extension policy.
|
|
63870
|
+
# @param [String] project
|
|
63871
|
+
# Project ID for this request.
|
|
63872
|
+
# @param [String] zone
|
|
63873
|
+
# Name of the zone for this request.
|
|
63874
|
+
# @param [String] vm_extension_policy
|
|
63875
|
+
# Name of the zone VM extension policy to update.
|
|
63876
|
+
# @param [Google::Apis::ComputeBeta::VmExtensionPolicy] vm_extension_policy_object
|
|
63877
|
+
# @param [String] request_id
|
|
63878
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
63879
|
+
# that if you must retry your request, the server will know to ignore the
|
|
63880
|
+
# request if it has already been completed.
|
|
63881
|
+
# For example, consider a situation where you make an initial request and
|
|
63882
|
+
# the request times out. If you make the request again with the same
|
|
63883
|
+
# request ID, the server can check if original operation with the same
|
|
63884
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
63885
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
63886
|
+
# The request ID must be
|
|
63887
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
63888
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
63889
|
+
# @param [String] fields
|
|
63890
|
+
# Selector specifying which fields to include in a partial response.
|
|
63891
|
+
# @param [String] quota_user
|
|
63892
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63893
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63894
|
+
# @param [String] user_ip
|
|
63895
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
63896
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63897
|
+
# Request-specific options
|
|
63898
|
+
#
|
|
63899
|
+
# @yield [result, err] Result & error if block supplied
|
|
63900
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
63901
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63902
|
+
#
|
|
63903
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
63904
|
+
#
|
|
63905
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
63906
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
63907
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
63908
|
+
def update_zone_vm_extension_policy(project, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
63909
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
63910
|
+
command.request_representation = Google::Apis::ComputeBeta::VmExtensionPolicy::Representation
|
|
63911
|
+
command.request_object = vm_extension_policy_object
|
|
63912
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
63913
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
63914
|
+
command.params['project'] = project unless project.nil?
|
|
63915
|
+
command.params['zone'] = zone unless zone.nil?
|
|
63916
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
63917
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
63918
|
+
command.query['fields'] = fields unless fields.nil?
|
|
63919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
63920
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
63921
|
+
execute_or_queue_command(command, &block)
|
|
63922
|
+
end
|
|
63923
|
+
|
|
63110
63924
|
# Returns the specified Zone resource.
|
|
63111
63925
|
# @param [String] project
|
|
63112
63926
|
# Project ID for this request.
|