google-apis-compute_alpha 0.110.0 → 0.112.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 +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/compute_alpha/classes.rb +1583 -220
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +544 -0
- data/lib/google/apis/compute_alpha/service.rb +440 -81
- metadata +5 -5
@@ -20077,45 +20077,6 @@ module Google
|
|
20077
20077
|
execute_or_queue_command(command, &block)
|
20078
20078
|
end
|
20079
20079
|
|
20080
|
-
# Returns permissions that a caller has on the specified resource.
|
20081
|
-
# @param [String] project
|
20082
|
-
# Project ID for this request.
|
20083
|
-
# @param [String] resource
|
20084
|
-
# Name or id of the resource for this request.
|
20085
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
20086
|
-
# @param [String] fields
|
20087
|
-
# Selector specifying which fields to include in a partial response.
|
20088
|
-
# @param [String] quota_user
|
20089
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
20090
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20091
|
-
# @param [String] user_ip
|
20092
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20093
|
-
# @param [Google::Apis::RequestOptions] options
|
20094
|
-
# Request-specific options
|
20095
|
-
#
|
20096
|
-
# @yield [result, err] Result & error if block supplied
|
20097
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
20098
|
-
# @yieldparam err [StandardError] error object if request failed
|
20099
|
-
#
|
20100
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
20101
|
-
#
|
20102
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20103
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20104
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20105
|
-
def test_interconnect_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
20106
|
-
command = make_simple_command(:post, 'projects/{project}/global/interconnectLocations/{resource}/testIamPermissions', options)
|
20107
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
20108
|
-
command.request_object = test_permissions_request_object
|
20109
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
20110
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
20111
|
-
command.params['project'] = project unless project.nil?
|
20112
|
-
command.params['resource'] = resource unless resource.nil?
|
20113
|
-
command.query['fields'] = fields unless fields.nil?
|
20114
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20115
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
20116
|
-
execute_or_queue_command(command, &block)
|
20117
|
-
end
|
20118
|
-
|
20119
20080
|
# Returns the details for the specified interconnect remote location. Gets a
|
20120
20081
|
# list of available interconnect remote locations by making a list() request.
|
20121
20082
|
# @param [String] project
|
@@ -20245,45 +20206,6 @@ module Google
|
|
20245
20206
|
execute_or_queue_command(command, &block)
|
20246
20207
|
end
|
20247
20208
|
|
20248
|
-
# Returns permissions that a caller has on the specified resource.
|
20249
|
-
# @param [String] project
|
20250
|
-
# Project ID for this request.
|
20251
|
-
# @param [String] resource
|
20252
|
-
# Name or id of the resource for this request.
|
20253
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
20254
|
-
# @param [String] fields
|
20255
|
-
# Selector specifying which fields to include in a partial response.
|
20256
|
-
# @param [String] quota_user
|
20257
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
20258
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20259
|
-
# @param [String] user_ip
|
20260
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20261
|
-
# @param [Google::Apis::RequestOptions] options
|
20262
|
-
# Request-specific options
|
20263
|
-
#
|
20264
|
-
# @yield [result, err] Result & error if block supplied
|
20265
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
20266
|
-
# @yieldparam err [StandardError] error object if request failed
|
20267
|
-
#
|
20268
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
20269
|
-
#
|
20270
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20271
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20272
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20273
|
-
def test_interconnect_remote_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
20274
|
-
command = make_simple_command(:post, 'projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions', options)
|
20275
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
20276
|
-
command.request_object = test_permissions_request_object
|
20277
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
20278
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
20279
|
-
command.params['project'] = project unless project.nil?
|
20280
|
-
command.params['resource'] = resource unless resource.nil?
|
20281
|
-
command.query['fields'] = fields unless fields.nil?
|
20282
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20283
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
20284
|
-
execute_or_queue_command(command, &block)
|
20285
|
-
end
|
20286
|
-
|
20287
20209
|
# Deletes the specified Interconnect.
|
20288
20210
|
# @param [String] project
|
20289
20211
|
# Project ID for this request.
|
@@ -25417,6 +25339,57 @@ module Google
|
|
25417
25339
|
execute_or_queue_command(command, &block)
|
25418
25340
|
end
|
25419
25341
|
|
25342
|
+
# Requests to remove a peering from the specified network. Applicable only for
|
25343
|
+
# PeeringConnection with update_strategy=CONSENSUS.
|
25344
|
+
# @param [String] project
|
25345
|
+
# Project ID for this request.
|
25346
|
+
# @param [String] network
|
25347
|
+
# Name of the network resource to remove peering from.
|
25348
|
+
# @param [Google::Apis::ComputeAlpha::NetworksRequestRemovePeeringRequest] networks_request_remove_peering_request_object
|
25349
|
+
# @param [String] request_id
|
25350
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
25351
|
+
# that if you must retry your request, the server will know to ignore the
|
25352
|
+
# request if it has already been completed. For example, consider a situation
|
25353
|
+
# where you make an initial request and the request times out. If you make the
|
25354
|
+
# request again with the same request ID, the server can check if original
|
25355
|
+
# operation with the same request ID was received, and if so, will ignore the
|
25356
|
+
# second request. This prevents clients from accidentally creating duplicate
|
25357
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
25358
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
25359
|
+
# @param [String] fields
|
25360
|
+
# Selector specifying which fields to include in a partial response.
|
25361
|
+
# @param [String] quota_user
|
25362
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
25363
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
25364
|
+
# @param [String] user_ip
|
25365
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
25366
|
+
# @param [Google::Apis::RequestOptions] options
|
25367
|
+
# Request-specific options
|
25368
|
+
#
|
25369
|
+
# @yield [result, err] Result & error if block supplied
|
25370
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
25371
|
+
# @yieldparam err [StandardError] error object if request failed
|
25372
|
+
#
|
25373
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
25374
|
+
#
|
25375
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25376
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25377
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25378
|
+
def request_network_remove_peering(project, network, networks_request_remove_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25379
|
+
command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/requestRemovePeering', options)
|
25380
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworksRequestRemovePeeringRequest::Representation
|
25381
|
+
command.request_object = networks_request_remove_peering_request_object
|
25382
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
25383
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
25384
|
+
command.params['project'] = project unless project.nil?
|
25385
|
+
command.params['network'] = network unless network.nil?
|
25386
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
25387
|
+
command.query['fields'] = fields unless fields.nil?
|
25388
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25389
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25390
|
+
execute_or_queue_command(command, &block)
|
25391
|
+
end
|
25392
|
+
|
25420
25393
|
# Switches the network mode from auto subnet mode to custom subnet mode.
|
25421
25394
|
# @param [String] project
|
25422
25395
|
# Project ID for this request.
|
@@ -28402,6 +28375,184 @@ module Google
|
|
28402
28375
|
execute_or_queue_command(command, &block)
|
28403
28376
|
end
|
28404
28377
|
|
28378
|
+
# Returns the details of the given PreviewFeature.
|
28379
|
+
# @param [String] project
|
28380
|
+
# Project ID for this request.
|
28381
|
+
# @param [String] resource_id
|
28382
|
+
# Name of the PreviewFeature for this request.
|
28383
|
+
# @param [String] fields
|
28384
|
+
# Selector specifying which fields to include in a partial response.
|
28385
|
+
# @param [String] quota_user
|
28386
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28387
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28388
|
+
# @param [String] user_ip
|
28389
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28390
|
+
# @param [Google::Apis::RequestOptions] options
|
28391
|
+
# Request-specific options
|
28392
|
+
#
|
28393
|
+
# @yield [result, err] Result & error if block supplied
|
28394
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::PreviewFeature] parsed result object
|
28395
|
+
# @yieldparam err [StandardError] error object if request failed
|
28396
|
+
#
|
28397
|
+
# @return [Google::Apis::ComputeAlpha::PreviewFeature]
|
28398
|
+
#
|
28399
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28400
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28401
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28402
|
+
def get_preview_feature(project, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28403
|
+
command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{resourceId}', options)
|
28404
|
+
command.response_representation = Google::Apis::ComputeAlpha::PreviewFeature::Representation
|
28405
|
+
command.response_class = Google::Apis::ComputeAlpha::PreviewFeature
|
28406
|
+
command.params['project'] = project unless project.nil?
|
28407
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
28408
|
+
command.query['fields'] = fields unless fields.nil?
|
28409
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28410
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28411
|
+
execute_or_queue_command(command, &block)
|
28412
|
+
end
|
28413
|
+
|
28414
|
+
# Returns the details of the given PreviewFeature.
|
28415
|
+
# @param [String] project
|
28416
|
+
# Project ID for this request.
|
28417
|
+
# @param [String] filter
|
28418
|
+
# A filter expression that filters resources listed in the response. Most
|
28419
|
+
# Compute resources support two types of filter expressions: expressions that
|
28420
|
+
# support regular expressions and expressions that follow API improvement
|
28421
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
28422
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
28423
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
28424
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
28425
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
28426
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
28427
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
28428
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
28429
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
28430
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
28431
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
28432
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
28433
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
28434
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
28435
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
28436
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
28437
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
28438
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
28439
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
28440
|
+
# un-parenthesized expression with or without quotes or against multiple
|
28441
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
28442
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
28443
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
28444
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
28445
|
+
# literal value must match the entire field. For example, to filter for
|
28446
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
28447
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
28448
|
+
# expressions.
|
28449
|
+
# @param [Fixnum] max_results
|
28450
|
+
# The maximum number of results per page that should be returned. If the number
|
28451
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28452
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28453
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28454
|
+
# @param [String] order_by
|
28455
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28456
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
28457
|
+
# descending order based on the creation timestamp using `orderBy="
|
28458
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
28459
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
28460
|
+
# resources like operations so that the newest operation is returned first.
|
28461
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28462
|
+
# @param [String] page_token
|
28463
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28464
|
+
# by a previous list request to get the next page of results.
|
28465
|
+
# @param [Boolean] return_partial_success
|
28466
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28467
|
+
# failure. The default value is false. For example, when partial success
|
28468
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
28469
|
+
# resources in the zone or no resources, with an error code.
|
28470
|
+
# @param [String] fields
|
28471
|
+
# Selector specifying which fields to include in a partial response.
|
28472
|
+
# @param [String] quota_user
|
28473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28475
|
+
# @param [String] user_ip
|
28476
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28477
|
+
# @param [Google::Apis::RequestOptions] options
|
28478
|
+
# Request-specific options
|
28479
|
+
#
|
28480
|
+
# @yield [result, err] Result & error if block supplied
|
28481
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::PreviewFeatureList] parsed result object
|
28482
|
+
# @yieldparam err [StandardError] error object if request failed
|
28483
|
+
#
|
28484
|
+
# @return [Google::Apis::ComputeAlpha::PreviewFeatureList]
|
28485
|
+
#
|
28486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28489
|
+
def list_preview_features(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)
|
28490
|
+
command = make_simple_command(:get, 'projects/{project}/global/previewFeatures', options)
|
28491
|
+
command.response_representation = Google::Apis::ComputeAlpha::PreviewFeatureList::Representation
|
28492
|
+
command.response_class = Google::Apis::ComputeAlpha::PreviewFeatureList
|
28493
|
+
command.params['project'] = project unless project.nil?
|
28494
|
+
command.query['filter'] = filter unless filter.nil?
|
28495
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
28496
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
28497
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
28498
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28499
|
+
command.query['fields'] = fields unless fields.nil?
|
28500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28501
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28502
|
+
execute_or_queue_command(command, &block)
|
28503
|
+
end
|
28504
|
+
|
28505
|
+
# Patches the given PreviewFeature. This method is used to enable or disable a
|
28506
|
+
# PreviewFeature.
|
28507
|
+
# @param [String] project
|
28508
|
+
# Project ID for this request.
|
28509
|
+
# @param [String] resource_id
|
28510
|
+
# Name of the PreviewFeature for this request.
|
28511
|
+
# @param [Google::Apis::ComputeAlpha::PreviewFeature] preview_feature_object
|
28512
|
+
# @param [String] request_id
|
28513
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28514
|
+
# that if you must retry your request, the server will know to ignore the
|
28515
|
+
# request if it has already been completed. For example, consider a situation
|
28516
|
+
# where you make an initial request and the request times out. If you make the
|
28517
|
+
# request again with the same request ID, the server can check if original
|
28518
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28519
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28520
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28521
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28522
|
+
# @param [String] fields
|
28523
|
+
# Selector specifying which fields to include in a partial response.
|
28524
|
+
# @param [String] quota_user
|
28525
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28526
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28527
|
+
# @param [String] user_ip
|
28528
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28529
|
+
# @param [Google::Apis::RequestOptions] options
|
28530
|
+
# Request-specific options
|
28531
|
+
#
|
28532
|
+
# @yield [result, err] Result & error if block supplied
|
28533
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28534
|
+
# @yieldparam err [StandardError] error object if request failed
|
28535
|
+
#
|
28536
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28537
|
+
#
|
28538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28541
|
+
def update_preview_feature(project, resource_id, preview_feature_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28542
|
+
command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{resourceId}', options)
|
28543
|
+
command.request_representation = Google::Apis::ComputeAlpha::PreviewFeature::Representation
|
28544
|
+
command.request_object = preview_feature_object
|
28545
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28546
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28547
|
+
command.params['project'] = project unless project.nil?
|
28548
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
28549
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28550
|
+
command.query['fields'] = fields unless fields.nil?
|
28551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28552
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28553
|
+
execute_or_queue_command(command, &block)
|
28554
|
+
end
|
28555
|
+
|
28405
28556
|
# Disable this project as a shared VPC host project.
|
28406
28557
|
# @param [String] project
|
28407
28558
|
# Project ID for this request.
|
@@ -44541,6 +44692,203 @@ module Google
|
|
44541
44692
|
execute_or_queue_command(command, &block)
|
44542
44693
|
end
|
44543
44694
|
|
44695
|
+
# Retrieves information about the specified reservation subBlock.
|
44696
|
+
# @param [String] project
|
44697
|
+
# Project ID for this request.
|
44698
|
+
# @param [String] zone
|
44699
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
44700
|
+
# @param [String] parent_name
|
44701
|
+
# The name of the parent reservation and parent block. In the format of
|
44702
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
|
44703
|
+
# @param [String] reservation_sub_block
|
44704
|
+
# The name of the reservation subBlock. Name should conform to RFC1035 or be a
|
44705
|
+
# resource ID.
|
44706
|
+
# @param [String] fields
|
44707
|
+
# Selector specifying which fields to include in a partial response.
|
44708
|
+
# @param [String] quota_user
|
44709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44711
|
+
# @param [String] user_ip
|
44712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44713
|
+
# @param [Google::Apis::RequestOptions] options
|
44714
|
+
# Request-specific options
|
44715
|
+
#
|
44716
|
+
# @yield [result, err] Result & error if block supplied
|
44717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationSubBlocksGetResponse] parsed result object
|
44718
|
+
# @yieldparam err [StandardError] error object if request failed
|
44719
|
+
#
|
44720
|
+
# @return [Google::Apis::ComputeAlpha::ReservationSubBlocksGetResponse]
|
44721
|
+
#
|
44722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44725
|
+
def get_reservation_sub_block(project, zone, parent_name, reservation_sub_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
44726
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}', options)
|
44727
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationSubBlocksGetResponse::Representation
|
44728
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationSubBlocksGetResponse
|
44729
|
+
command.params['project'] = project unless project.nil?
|
44730
|
+
command.params['zone'] = zone unless zone.nil?
|
44731
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
44732
|
+
command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
|
44733
|
+
command.query['fields'] = fields unless fields.nil?
|
44734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44735
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44736
|
+
execute_or_queue_command(command, &block)
|
44737
|
+
end
|
44738
|
+
|
44739
|
+
# Retrieves a list of reservation subBlocks under a single reservation.
|
44740
|
+
# @param [String] project
|
44741
|
+
# Project ID for this request.
|
44742
|
+
# @param [String] zone
|
44743
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
44744
|
+
# @param [String] parent_name
|
44745
|
+
# The name of the parent reservation and parent block. In the format of
|
44746
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
|
44747
|
+
# @param [String] filter
|
44748
|
+
# A filter expression that filters resources listed in the response. Most
|
44749
|
+
# Compute resources support two types of filter expressions: expressions that
|
44750
|
+
# support regular expressions and expressions that follow API improvement
|
44751
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
44752
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
44753
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
44754
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
44755
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
44756
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
44757
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
44758
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
44759
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
44760
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
44761
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
44762
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
44763
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
44764
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
44765
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
44766
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
44767
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
44768
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
44769
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
44770
|
+
# un-parenthesized expression with or without quotes or against multiple
|
44771
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
44772
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
44773
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
44774
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
44775
|
+
# literal value must match the entire field. For example, to filter for
|
44776
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
44777
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
44778
|
+
# expressions.
|
44779
|
+
# @param [Fixnum] max_results
|
44780
|
+
# The maximum number of results per page that should be returned. If the number
|
44781
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
44782
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
44783
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
44784
|
+
# @param [String] order_by
|
44785
|
+
# Sorts list results by a certain order. By default, results are returned in
|
44786
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
44787
|
+
# descending order based on the creation timestamp using `orderBy="
|
44788
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
44789
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
44790
|
+
# resources like operations so that the newest operation is returned first.
|
44791
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
44792
|
+
# @param [String] page_token
|
44793
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
44794
|
+
# by a previous list request to get the next page of results.
|
44795
|
+
# @param [Boolean] return_partial_success
|
44796
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
44797
|
+
# failure. The default value is false. For example, when partial success
|
44798
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
44799
|
+
# resources in the zone or no resources, with an error code.
|
44800
|
+
# @param [String] fields
|
44801
|
+
# Selector specifying which fields to include in a partial response.
|
44802
|
+
# @param [String] quota_user
|
44803
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44804
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44805
|
+
# @param [String] user_ip
|
44806
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44807
|
+
# @param [Google::Apis::RequestOptions] options
|
44808
|
+
# Request-specific options
|
44809
|
+
#
|
44810
|
+
# @yield [result, err] Result & error if block supplied
|
44811
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationSubBlocksListResponse] parsed result object
|
44812
|
+
# @yieldparam err [StandardError] error object if request failed
|
44813
|
+
#
|
44814
|
+
# @return [Google::Apis::ComputeAlpha::ReservationSubBlocksListResponse]
|
44815
|
+
#
|
44816
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44817
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44818
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44819
|
+
def list_reservation_sub_blocks(project, zone, parent_name, 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)
|
44820
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks', options)
|
44821
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationSubBlocksListResponse::Representation
|
44822
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationSubBlocksListResponse
|
44823
|
+
command.params['project'] = project unless project.nil?
|
44824
|
+
command.params['zone'] = zone unless zone.nil?
|
44825
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
44826
|
+
command.query['filter'] = filter unless filter.nil?
|
44827
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
44828
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
44829
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
44830
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
44831
|
+
command.query['fields'] = fields unless fields.nil?
|
44832
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44833
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44834
|
+
execute_or_queue_command(command, &block)
|
44835
|
+
end
|
44836
|
+
|
44837
|
+
# Allows customers to perform maintenance on a reservation subBlock
|
44838
|
+
# @param [String] project
|
44839
|
+
# Project ID for this request.
|
44840
|
+
# @param [String] zone
|
44841
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
44842
|
+
# @param [String] parent_name
|
44843
|
+
# The name of the parent reservation and parent block. In the format of
|
44844
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
|
44845
|
+
# @param [String] reservation_sub_block
|
44846
|
+
# The name of the reservation subBlock. Name should conform to RFC1035 or be a
|
44847
|
+
# resource ID.
|
44848
|
+
# @param [String] request_id
|
44849
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
44850
|
+
# that if you must retry your request, the server will know to ignore the
|
44851
|
+
# request if it has already been completed. For example, consider a situation
|
44852
|
+
# where you make an initial request and the request times out. If you make the
|
44853
|
+
# request again with the same request ID, the server can check if original
|
44854
|
+
# operation with the same request ID was received, and if so, will ignore the
|
44855
|
+
# second request. This prevents clients from accidentally creating duplicate
|
44856
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
44857
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
44858
|
+
# @param [String] fields
|
44859
|
+
# Selector specifying which fields to include in a partial response.
|
44860
|
+
# @param [String] quota_user
|
44861
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44862
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44863
|
+
# @param [String] user_ip
|
44864
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44865
|
+
# @param [Google::Apis::RequestOptions] options
|
44866
|
+
# Request-specific options
|
44867
|
+
#
|
44868
|
+
# @yield [result, err] Result & error if block supplied
|
44869
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
44870
|
+
# @yieldparam err [StandardError] error object if request failed
|
44871
|
+
#
|
44872
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
44873
|
+
#
|
44874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44877
|
+
def perform_reservation_sub_block_maintenance(project, zone, parent_name, reservation_sub_block, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
44878
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance', options)
|
44879
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
44880
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
44881
|
+
command.params['project'] = project unless project.nil?
|
44882
|
+
command.params['zone'] = zone unless zone.nil?
|
44883
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
44884
|
+
command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
|
44885
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
44886
|
+
command.query['fields'] = fields unless fields.nil?
|
44887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44888
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44889
|
+
execute_or_queue_command(command, &block)
|
44890
|
+
end
|
44891
|
+
|
44544
44892
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
44545
44893
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
44546
44894
|
# @param [String] project
|
@@ -48283,6 +48631,8 @@ module Google
|
|
48283
48631
|
# Name of the region of this request.
|
48284
48632
|
# @param [String] service_attachment
|
48285
48633
|
# Name of the ServiceAttachment resource to return.
|
48634
|
+
# @param [Boolean] show_nat_ips
|
48635
|
+
# Indicates whether NAT IPs should be included in the response.
|
48286
48636
|
# @param [String] fields
|
48287
48637
|
# Selector specifying which fields to include in a partial response.
|
48288
48638
|
# @param [String] quota_user
|
@@ -48302,13 +48652,14 @@ module Google
|
|
48302
48652
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48303
48653
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48304
48654
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48305
|
-
def get_service_attachment(project, region, service_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48655
|
+
def get_service_attachment(project, region, service_attachment, show_nat_ips: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48306
48656
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
48307
48657
|
command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
48308
48658
|
command.response_class = Google::Apis::ComputeAlpha::ServiceAttachment
|
48309
48659
|
command.params['project'] = project unless project.nil?
|
48310
48660
|
command.params['region'] = region unless region.nil?
|
48311
48661
|
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
48662
|
+
command.query['showNatIps'] = show_nat_ips unless show_nat_ips.nil?
|
48312
48663
|
command.query['fields'] = fields unless fields.nil?
|
48313
48664
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48314
48665
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -51570,6 +51921,9 @@ module Google
|
|
51570
51921
|
# Name of the region scoping this request.
|
51571
51922
|
# @param [String] subnetwork
|
51572
51923
|
# Name of the Subnetwork resource to return.
|
51924
|
+
# @param [Array<String>, String] views
|
51925
|
+
# Defines the extra views returned back in the subnetwork resource. Supported
|
51926
|
+
# values: - WITH_UTILIZATION: Utilization data is included in the response.
|
51573
51927
|
# @param [String] fields
|
51574
51928
|
# Selector specifying which fields to include in a partial response.
|
51575
51929
|
# @param [String] quota_user
|
@@ -51589,13 +51943,14 @@ module Google
|
|
51589
51943
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
51590
51944
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
51591
51945
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
51592
|
-
def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
51946
|
+
def get_subnetwork(project, region, subnetwork, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
51593
51947
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options)
|
51594
51948
|
command.response_representation = Google::Apis::ComputeAlpha::Subnetwork::Representation
|
51595
51949
|
command.response_class = Google::Apis::ComputeAlpha::Subnetwork
|
51596
51950
|
command.params['project'] = project unless project.nil?
|
51597
51951
|
command.params['region'] = region unless region.nil?
|
51598
51952
|
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
51953
|
+
command.query['views'] = views unless views.nil?
|
51599
51954
|
command.query['fields'] = fields unless fields.nil?
|
51600
51955
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
51601
51956
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -51754,6 +52109,9 @@ module Google
|
|
51754
52109
|
# failure. The default value is false. For example, when partial success
|
51755
52110
|
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
51756
52111
|
# resources in the zone or no resources, with an error code.
|
52112
|
+
# @param [Array<String>, String] views
|
52113
|
+
# Defines the extra views returned back in the subnetwork resource. Supported
|
52114
|
+
# values: - WITH_UTILIZATION: Utilization data is included in the response.
|
51757
52115
|
# @param [String] fields
|
51758
52116
|
# Selector specifying which fields to include in a partial response.
|
51759
52117
|
# @param [String] quota_user
|
@@ -51773,7 +52131,7 @@ module Google
|
|
51773
52131
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
51774
52132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
51775
52133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
51776
|
-
def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
52134
|
+
def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
51777
52135
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks', options)
|
51778
52136
|
command.response_representation = Google::Apis::ComputeAlpha::SubnetworkList::Representation
|
51779
52137
|
command.response_class = Google::Apis::ComputeAlpha::SubnetworkList
|
@@ -51784,6 +52142,7 @@ module Google
|
|
51784
52142
|
command.query['orderBy'] = order_by unless order_by.nil?
|
51785
52143
|
command.query['pageToken'] = page_token unless page_token.nil?
|
51786
52144
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
52145
|
+
command.query['views'] = views unless views.nil?
|
51787
52146
|
command.query['fields'] = fields unless fields.nil?
|
51788
52147
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
51789
52148
|
command.query['userIp'] = user_ip unless user_ip.nil?
|