google-apis-compute_alpha 0.114.0 → 0.115.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.
@@ -27163,9 +27163,11 @@ module Google
|
|
27163
27163
|
execute_or_queue_command(command, &block)
|
27164
27164
|
end
|
27165
27165
|
|
27166
|
-
# Inserts an association for the specified security policy.
|
27167
|
-
#
|
27168
|
-
#
|
27166
|
+
# Inserts an association for the specified security policy. This has billing
|
27167
|
+
# implications. Projects in the hierarchy with effective hierarchical security
|
27168
|
+
# policies will be automatically enrolled into Cloud Armor Enterprise if not
|
27169
|
+
# already enrolled. Use of this API to modify firewall policies is deprecated.
|
27170
|
+
# Use firewallPolicies.addAssociation instead if possible.
|
27169
27171
|
# @param [String] security_policy
|
27170
27172
|
# Name of the security policy to update.
|
27171
27173
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
|
@@ -30297,6 +30299,459 @@ module Google
|
|
30297
30299
|
execute_or_queue_command(command, &block)
|
30298
30300
|
end
|
30299
30301
|
|
30302
|
+
# Retrieves an aggregated list of all of the RecoverableSnapshots in your
|
30303
|
+
# project across all regions and global scope.
|
30304
|
+
# @param [String] project
|
30305
|
+
# Project ID for this request.
|
30306
|
+
# @param [String] filter
|
30307
|
+
# A filter expression that filters resources listed in the response. Most
|
30308
|
+
# Compute resources support two types of filter expressions: expressions that
|
30309
|
+
# support regular expressions and expressions that follow API improvement
|
30310
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30311
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30312
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30313
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30314
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30315
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30316
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30317
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30318
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30319
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30320
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30321
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30322
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30323
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30324
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30325
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30326
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30327
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30328
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30329
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30330
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
30331
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
30332
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
30333
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
30334
|
+
# literal value must match the entire field. For example, to filter for
|
30335
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
30336
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
30337
|
+
# expressions.
|
30338
|
+
# @param [Boolean] include_all_scopes
|
30339
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
30340
|
+
# global) should be included in the response. For new resource types added after
|
30341
|
+
# this field, the flag has no effect as new resource types will always include
|
30342
|
+
# every visible scope for each scope type in response. For resource types which
|
30343
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
30344
|
+
# types where the resource type is expected to be found will be included.
|
30345
|
+
# @param [Fixnum] max_results
|
30346
|
+
# The maximum number of results per page that should be returned. If the number
|
30347
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30348
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30349
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30350
|
+
# @param [String] order_by
|
30351
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30352
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
30353
|
+
# descending order based on the creation timestamp using `orderBy="
|
30354
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
30355
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
30356
|
+
# resources like operations so that the newest operation is returned first.
|
30357
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30358
|
+
# @param [String] page_token
|
30359
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30360
|
+
# by a previous list request to get the next page of results.
|
30361
|
+
# @param [Boolean] return_partial_success
|
30362
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30363
|
+
# failure. The default value is false. For example, when partial success
|
30364
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
30365
|
+
# resources in the zone or no resources, with an error code.
|
30366
|
+
# @param [Fixnum] service_project_number
|
30367
|
+
# The Shared VPC service project id or service project number for which
|
30368
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
30369
|
+
# @param [String] fields
|
30370
|
+
# Selector specifying which fields to include in a partial response.
|
30371
|
+
# @param [String] quota_user
|
30372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30374
|
+
# @param [String] user_ip
|
30375
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30376
|
+
# @param [Google::Apis::RequestOptions] options
|
30377
|
+
# Request-specific options
|
30378
|
+
#
|
30379
|
+
# @yield [result, err] Result & error if block supplied
|
30380
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotAggregatedList] parsed result object
|
30381
|
+
# @yieldparam err [StandardError] error object if request failed
|
30382
|
+
#
|
30383
|
+
# @return [Google::Apis::ComputeAlpha::RecoverableSnapshotAggregatedList]
|
30384
|
+
#
|
30385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30388
|
+
def aggregated_recoverable_snapshot_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)
|
30389
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/recoverableSnapshots', options)
|
30390
|
+
command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotAggregatedList::Representation
|
30391
|
+
command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotAggregatedList
|
30392
|
+
command.params['project'] = project unless project.nil?
|
30393
|
+
command.query['filter'] = filter unless filter.nil?
|
30394
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
30395
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30396
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30397
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30398
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30399
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
30400
|
+
command.query['fields'] = fields unless fields.nil?
|
30401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30403
|
+
execute_or_queue_command(command, &block)
|
30404
|
+
end
|
30405
|
+
|
30406
|
+
# Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
|
30407
|
+
# will delete the underlying PD snapshot and is irreversible.
|
30408
|
+
# @param [String] project
|
30409
|
+
# Project ID for this request.
|
30410
|
+
# @param [String] recoverable_snapshot
|
30411
|
+
# Name of the recoverable Snapshot resource to delete.
|
30412
|
+
# @param [String] request_id
|
30413
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30414
|
+
# that if you must retry your request, the server will know to ignore the
|
30415
|
+
# request if it has already been completed. For example, consider a situation
|
30416
|
+
# where you make an initial request and the request times out. If you make the
|
30417
|
+
# request again with the same request ID, the server can check if original
|
30418
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30419
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30420
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30421
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30422
|
+
# @param [String] fields
|
30423
|
+
# Selector specifying which fields to include in a partial response.
|
30424
|
+
# @param [String] quota_user
|
30425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30427
|
+
# @param [String] user_ip
|
30428
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30429
|
+
# @param [Google::Apis::RequestOptions] options
|
30430
|
+
# Request-specific options
|
30431
|
+
#
|
30432
|
+
# @yield [result, err] Result & error if block supplied
|
30433
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30434
|
+
# @yieldparam err [StandardError] error object if request failed
|
30435
|
+
#
|
30436
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30437
|
+
#
|
30438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30441
|
+
def delete_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30442
|
+
command = make_simple_command(:delete, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
|
30443
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30444
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30445
|
+
command.params['project'] = project unless project.nil?
|
30446
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
30447
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30448
|
+
command.query['fields'] = fields unless fields.nil?
|
30449
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30450
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30451
|
+
execute_or_queue_command(command, &block)
|
30452
|
+
end
|
30453
|
+
|
30454
|
+
# Returns the specified RecoverableSnapshot resource.
|
30455
|
+
# @param [String] project
|
30456
|
+
# Project ID for this request.
|
30457
|
+
# @param [String] recoverable_snapshot
|
30458
|
+
# Name of the Snapshot resource to return.
|
30459
|
+
# @param [String] fields
|
30460
|
+
# Selector specifying which fields to include in a partial response.
|
30461
|
+
# @param [String] quota_user
|
30462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30464
|
+
# @param [String] user_ip
|
30465
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30466
|
+
# @param [Google::Apis::RequestOptions] options
|
30467
|
+
# Request-specific options
|
30468
|
+
#
|
30469
|
+
# @yield [result, err] Result & error if block supplied
|
30470
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object
|
30471
|
+
# @yieldparam err [StandardError] error object if request failed
|
30472
|
+
#
|
30473
|
+
# @return [Google::Apis::ComputeAlpha::RecoverableSnapshot]
|
30474
|
+
#
|
30475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30478
|
+
def get_recoverable_snapshot(project, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30479
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
|
30480
|
+
command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshot::Representation
|
30481
|
+
command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshot
|
30482
|
+
command.params['project'] = project unless project.nil?
|
30483
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
30484
|
+
command.query['fields'] = fields unless fields.nil?
|
30485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30486
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30487
|
+
execute_or_queue_command(command, &block)
|
30488
|
+
end
|
30489
|
+
|
30490
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
30491
|
+
# or resource exists.
|
30492
|
+
# @param [String] project
|
30493
|
+
# Project ID for this request.
|
30494
|
+
# @param [String] resource
|
30495
|
+
# Name or id of the resource for this request.
|
30496
|
+
# @param [Fixnum] options_requested_policy_version
|
30497
|
+
# Requested IAM Policy version.
|
30498
|
+
# @param [String] fields
|
30499
|
+
# Selector specifying which fields to include in a partial response.
|
30500
|
+
# @param [String] quota_user
|
30501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30503
|
+
# @param [String] user_ip
|
30504
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30505
|
+
# @param [Google::Apis::RequestOptions] options
|
30506
|
+
# Request-specific options
|
30507
|
+
#
|
30508
|
+
# @yield [result, err] Result & error if block supplied
|
30509
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
30510
|
+
# @yieldparam err [StandardError] error object if request failed
|
30511
|
+
#
|
30512
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
30513
|
+
#
|
30514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30517
|
+
def get_recoverable_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30518
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{resource}/getIamPolicy', options)
|
30519
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
30520
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
30521
|
+
command.params['project'] = project unless project.nil?
|
30522
|
+
command.params['resource'] = resource unless resource.nil?
|
30523
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
30524
|
+
command.query['fields'] = fields unless fields.nil?
|
30525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30526
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30527
|
+
execute_or_queue_command(command, &block)
|
30528
|
+
end
|
30529
|
+
|
30530
|
+
# Retrieves a list of all of the RecoverableSnapshots in your project.
|
30531
|
+
# @param [String] project
|
30532
|
+
# Project ID for this request.
|
30533
|
+
# @param [String] filter
|
30534
|
+
# A filter expression that filters resources listed in the response. Most
|
30535
|
+
# Compute resources support two types of filter expressions: expressions that
|
30536
|
+
# support regular expressions and expressions that follow API improvement
|
30537
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30538
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30539
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30540
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30541
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30542
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30543
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30544
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30545
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30546
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30547
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30548
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30549
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30550
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30551
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30552
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30553
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30554
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30555
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30556
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30557
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
30558
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
30559
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
30560
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
30561
|
+
# literal value must match the entire field. For example, to filter for
|
30562
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
30563
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
30564
|
+
# expressions.
|
30565
|
+
# @param [Fixnum] max_results
|
30566
|
+
# The maximum number of results per page that should be returned. If the number
|
30567
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30568
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30569
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30570
|
+
# @param [String] order_by
|
30571
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30572
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
30573
|
+
# descending order based on the creation timestamp using `orderBy="
|
30574
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
30575
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
30576
|
+
# resources like operations so that the newest operation is returned first.
|
30577
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30578
|
+
# @param [String] page_token
|
30579
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30580
|
+
# by a previous list request to get the next page of results.
|
30581
|
+
# @param [Boolean] return_partial_success
|
30582
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30583
|
+
# failure. The default value is false. For example, when partial success
|
30584
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
30585
|
+
# resources in the zone or no resources, with an error code.
|
30586
|
+
# @param [String] fields
|
30587
|
+
# Selector specifying which fields to include in a partial response.
|
30588
|
+
# @param [String] quota_user
|
30589
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30590
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30591
|
+
# @param [String] user_ip
|
30592
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30593
|
+
# @param [Google::Apis::RequestOptions] options
|
30594
|
+
# Request-specific options
|
30595
|
+
#
|
30596
|
+
# @yield [result, err] Result & error if block supplied
|
30597
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object
|
30598
|
+
# @yieldparam err [StandardError] error object if request failed
|
30599
|
+
#
|
30600
|
+
# @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList]
|
30601
|
+
#
|
30602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30605
|
+
def list_recoverable_snapshots(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)
|
30606
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots', options)
|
30607
|
+
command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotList::Representation
|
30608
|
+
command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotList
|
30609
|
+
command.params['project'] = project unless project.nil?
|
30610
|
+
command.query['filter'] = filter unless filter.nil?
|
30611
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30612
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30613
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30614
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30615
|
+
command.query['fields'] = fields unless fields.nil?
|
30616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30617
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30618
|
+
execute_or_queue_command(command, &block)
|
30619
|
+
end
|
30620
|
+
|
30621
|
+
# Recovers the specified RecoverableSnapshot.
|
30622
|
+
# @param [String] project
|
30623
|
+
# Project Id of the request
|
30624
|
+
# @param [String] recoverable_snapshot
|
30625
|
+
# Name of the recoverable resource to recover
|
30626
|
+
# @param [String] request_id
|
30627
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30628
|
+
# that if you must retry your request, the server will know to ignore the
|
30629
|
+
# request if it has already been completed. For example, consider a situation
|
30630
|
+
# where you make an initial request and the request times out. If you make the
|
30631
|
+
# request again with the same request ID, the server can check if original
|
30632
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30633
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30634
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30635
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30636
|
+
# @param [String] snapshot_name
|
30637
|
+
# Name of the snapshot after the recovery The name will be 1-63 characters long,
|
30638
|
+
# and comply with RFC1035. Specifically, the name will be 1-63 characters long
|
30639
|
+
# and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
|
30640
|
+
# first character will be a lowercase letter, and all following characters can
|
30641
|
+
# be a dash, lowercase letter, or digit, except the last character, which cannot
|
30642
|
+
# be a dash.
|
30643
|
+
# @param [String] fields
|
30644
|
+
# Selector specifying which fields to include in a partial response.
|
30645
|
+
# @param [String] quota_user
|
30646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30648
|
+
# @param [String] user_ip
|
30649
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30650
|
+
# @param [Google::Apis::RequestOptions] options
|
30651
|
+
# Request-specific options
|
30652
|
+
#
|
30653
|
+
# @yield [result, err] Result & error if block supplied
|
30654
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30655
|
+
# @yieldparam err [StandardError] error object if request failed
|
30656
|
+
#
|
30657
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30658
|
+
#
|
30659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30662
|
+
def recover_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30663
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover', options)
|
30664
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30665
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30666
|
+
command.params['project'] = project unless project.nil?
|
30667
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
30668
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30669
|
+
command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
|
30670
|
+
command.query['fields'] = fields unless fields.nil?
|
30671
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30672
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30673
|
+
execute_or_queue_command(command, &block)
|
30674
|
+
end
|
30675
|
+
|
30676
|
+
# Sets the access control policy on the specified resource. Replaces any
|
30677
|
+
# existing policy.
|
30678
|
+
# @param [String] project
|
30679
|
+
# Project ID for this request.
|
30680
|
+
# @param [String] resource
|
30681
|
+
# Name or id of the resource for this request.
|
30682
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
30683
|
+
# @param [String] fields
|
30684
|
+
# Selector specifying which fields to include in a partial response.
|
30685
|
+
# @param [String] quota_user
|
30686
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30687
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30688
|
+
# @param [String] user_ip
|
30689
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30690
|
+
# @param [Google::Apis::RequestOptions] options
|
30691
|
+
# Request-specific options
|
30692
|
+
#
|
30693
|
+
# @yield [result, err] Result & error if block supplied
|
30694
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
30695
|
+
# @yieldparam err [StandardError] error object if request failed
|
30696
|
+
#
|
30697
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
30698
|
+
#
|
30699
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30700
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30701
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30702
|
+
def set_recoverable_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30703
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/setIamPolicy', options)
|
30704
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
30705
|
+
command.request_object = global_set_policy_request_object
|
30706
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
30707
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
30708
|
+
command.params['project'] = project unless project.nil?
|
30709
|
+
command.params['resource'] = resource unless resource.nil?
|
30710
|
+
command.query['fields'] = fields unless fields.nil?
|
30711
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30712
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30713
|
+
execute_or_queue_command(command, &block)
|
30714
|
+
end
|
30715
|
+
|
30716
|
+
# Returns permissions that a caller has on the specified resource.
|
30717
|
+
# @param [String] project
|
30718
|
+
# Project ID for this request.
|
30719
|
+
# @param [String] resource
|
30720
|
+
# Name or id of the resource for this request.
|
30721
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
30722
|
+
# @param [String] fields
|
30723
|
+
# Selector specifying which fields to include in a partial response.
|
30724
|
+
# @param [String] quota_user
|
30725
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30726
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30727
|
+
# @param [String] user_ip
|
30728
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30729
|
+
# @param [Google::Apis::RequestOptions] options
|
30730
|
+
# Request-specific options
|
30731
|
+
#
|
30732
|
+
# @yield [result, err] Result & error if block supplied
|
30733
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
30734
|
+
# @yieldparam err [StandardError] error object if request failed
|
30735
|
+
#
|
30736
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
30737
|
+
#
|
30738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30741
|
+
def test_recoverable_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30742
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/testIamPermissions', options)
|
30743
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
30744
|
+
command.request_object = test_permissions_request_object
|
30745
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
30746
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
30747
|
+
command.params['project'] = project unless project.nil?
|
30748
|
+
command.params['resource'] = resource unless resource.nil?
|
30749
|
+
command.query['fields'] = fields unless fields.nil?
|
30750
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30751
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30752
|
+
execute_or_queue_command(command, &block)
|
30753
|
+
end
|
30754
|
+
|
30300
30755
|
# Deletes the specified autoscaler.
|
30301
30756
|
# @param [String] project
|
30302
30757
|
# Project ID for this request.
|
@@ -30856,7 +31311,7 @@ module Google
|
|
30856
31311
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30857
31312
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30858
31313
|
def insert_region_backend_bucket(project, region, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30859
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
31314
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets', options)
|
30860
31315
|
command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
|
30861
31316
|
command.request_object = backend_bucket_object
|
30862
31317
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.115.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.115.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|