google-apis-compute_alpha 0.113.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.
@@ -821,6 +821,49 @@ module Google
821
821
  execute_or_queue_command(command, &block)
822
822
  end
823
823
 
824
+ # Advice on making real-time decisions (such as choosing zone or machine types)
825
+ # during deployment to maximize your chances of obtaining capacity.
826
+ # @param [String] project
827
+ # Project ID for this request.
828
+ # @param [String] region
829
+ # Name of the region for this request.
830
+ # @param [Fixnum] size
831
+ # Size of requested capacity.
832
+ # @param [Google::Apis::ComputeAlpha::CapacityAdviceRequest] capacity_advice_request_object
833
+ # @param [String] fields
834
+ # Selector specifying which fields to include in a partial response.
835
+ # @param [String] quota_user
836
+ # Available to use for quota purposes for server-side applications. Can be any
837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
838
+ # @param [String] user_ip
839
+ # Legacy name for parameter that has been superseded by `quotaUser`.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::ComputeAlpha::CapacityAdviceResponse] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::ComputeAlpha::CapacityAdviceResponse]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def capacity_advice(project, region, size, capacity_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
853
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/capacity', options)
854
+ command.request_representation = Google::Apis::ComputeAlpha::CapacityAdviceRequest::Representation
855
+ command.request_object = capacity_advice_request_object
856
+ command.response_representation = Google::Apis::ComputeAlpha::CapacityAdviceResponse::Representation
857
+ command.response_class = Google::Apis::ComputeAlpha::CapacityAdviceResponse
858
+ command.params['project'] = project unless project.nil?
859
+ command.params['region'] = region unless region.nil?
860
+ command.query['size'] = size unless size.nil?
861
+ command.query['fields'] = fields unless fields.nil?
862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
863
+ command.query['userIp'] = user_ip unless user_ip.nil?
864
+ execute_or_queue_command(command, &block)
865
+ end
866
+
824
867
  # Retrieves an aggregated list of autoscalers. To prevent failure, Google
825
868
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
826
869
  # @param [String] project
@@ -27120,9 +27163,11 @@ module Google
27120
27163
  execute_or_queue_command(command, &block)
27121
27164
  end
27122
27165
 
27123
- # Inserts an association for the specified security policy. Use of this API to
27124
- # modify firewall policies is deprecated. Use firewallPolicies.addAssociation
27125
- # instead if possible.
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.
27126
27171
  # @param [String] security_policy
27127
27172
  # Name of the security policy to update.
27128
27173
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
@@ -30254,13 +30299,116 @@ module Google
30254
30299
  execute_or_queue_command(command, &block)
30255
30300
  end
30256
30301
 
30257
- # Deletes the specified autoscaler.
30302
+ # Retrieves an aggregated list of all of the RecoverableSnapshots in your
30303
+ # project across all regions and global scope.
30258
30304
  # @param [String] project
30259
30305
  # Project ID for this request.
30260
- # @param [String] region
30261
- # Name of the region scoping this request.
30262
- # @param [String] autoscaler
30263
- # Name of the autoscaler to delete.
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.
30264
30412
  # @param [String] request_id
30265
30413
  # An optional request ID to identify requests. Specify a unique request ID so
30266
30414
  # that if you must retry your request, the server will know to ignore the
@@ -30290,13 +30438,12 @@ module Google
30290
30438
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30291
30439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30292
30440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30293
- def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30294
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
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)
30295
30443
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30296
30444
  command.response_class = Google::Apis::ComputeAlpha::Operation
30297
30445
  command.params['project'] = project unless project.nil?
30298
- command.params['region'] = region unless region.nil?
30299
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
30446
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
30300
30447
  command.query['requestId'] = request_id unless request_id.nil?
30301
30448
  command.query['fields'] = fields unless fields.nil?
30302
30449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30304,13 +30451,11 @@ module Google
30304
30451
  execute_or_queue_command(command, &block)
30305
30452
  end
30306
30453
 
30307
- # Returns the specified autoscaler.
30454
+ # Returns the specified RecoverableSnapshot resource.
30308
30455
  # @param [String] project
30309
30456
  # Project ID for this request.
30310
- # @param [String] region
30311
- # Name of the region scoping this request.
30312
- # @param [String] autoscaler
30313
- # Name of the autoscaler to return.
30457
+ # @param [String] recoverable_snapshot
30458
+ # Name of the Snapshot resource to return.
30314
30459
  # @param [String] fields
30315
30460
  # Selector specifying which fields to include in a partial response.
30316
30461
  # @param [String] quota_user
@@ -30322,44 +30467,34 @@ module Google
30322
30467
  # Request-specific options
30323
30468
  #
30324
30469
  # @yield [result, err] Result & error if block supplied
30325
- # @yieldparam result [Google::Apis::ComputeAlpha::Autoscaler] parsed result object
30470
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object
30326
30471
  # @yieldparam err [StandardError] error object if request failed
30327
30472
  #
30328
- # @return [Google::Apis::ComputeAlpha::Autoscaler]
30473
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshot]
30329
30474
  #
30330
30475
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30331
30476
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30332
30477
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30333
- def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30334
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
30335
- command.response_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
30336
- command.response_class = Google::Apis::ComputeAlpha::Autoscaler
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
30337
30482
  command.params['project'] = project unless project.nil?
30338
- command.params['region'] = region unless region.nil?
30339
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
30483
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
30340
30484
  command.query['fields'] = fields unless fields.nil?
30341
30485
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30342
30486
  command.query['userIp'] = user_ip unless user_ip.nil?
30343
30487
  execute_or_queue_command(command, &block)
30344
30488
  end
30345
30489
 
30346
- # Creates an autoscaler in the specified project using the data included in the
30347
- # request.
30490
+ # Gets the access control policy for a resource. May be empty if no such policy
30491
+ # or resource exists.
30348
30492
  # @param [String] project
30349
30493
  # Project ID for this request.
30350
- # @param [String] region
30351
- # Name of the region scoping this request.
30352
- # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
30353
- # @param [String] request_id
30354
- # An optional request ID to identify requests. Specify a unique request ID so
30355
- # that if you must retry your request, the server will know to ignore the
30356
- # request if it has already been completed. For example, consider a situation
30357
- # where you make an initial request and the request times out. If you make the
30358
- # request again with the same request ID, the server can check if original
30359
- # operation with the same request ID was received, and if so, will ignore the
30360
- # second request. This prevents clients from accidentally creating duplicate
30361
- # commitments. The request ID must be a valid UUID with the exception that zero
30362
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
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.
30363
30498
  # @param [String] fields
30364
30499
  # Selector specifying which fields to include in a partial response.
30365
30500
  # @param [String] quota_user
@@ -30371,34 +30506,30 @@ module Google
30371
30506
  # Request-specific options
30372
30507
  #
30373
30508
  # @yield [result, err] Result & error if block supplied
30374
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30509
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30375
30510
  # @yieldparam err [StandardError] error object if request failed
30376
30511
  #
30377
- # @return [Google::Apis::ComputeAlpha::Operation]
30512
+ # @return [Google::Apis::ComputeAlpha::Policy]
30378
30513
  #
30379
30514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30380
30515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30381
30516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30382
- def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30383
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options)
30384
- command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
30385
- command.request_object = autoscaler_object
30386
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30387
- command.response_class = Google::Apis::ComputeAlpha::Operation
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
30388
30521
  command.params['project'] = project unless project.nil?
30389
- command.params['region'] = region unless region.nil?
30390
- command.query['requestId'] = request_id unless request_id.nil?
30522
+ command.params['resource'] = resource unless resource.nil?
30523
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
30391
30524
  command.query['fields'] = fields unless fields.nil?
30392
30525
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30393
30526
  command.query['userIp'] = user_ip unless user_ip.nil?
30394
30527
  execute_or_queue_command(command, &block)
30395
30528
  end
30396
30529
 
30397
- # Retrieves a list of autoscalers contained within the specified region.
30530
+ # Retrieves a list of all of the RecoverableSnapshots in your project.
30398
30531
  # @param [String] project
30399
30532
  # Project ID for this request.
30400
- # @param [String] region
30401
- # Name of the region scoping this request.
30402
30533
  # @param [String] filter
30403
30534
  # A filter expression that filters resources listed in the response. Most
30404
30535
  # Compute resources support two types of filter expressions: expressions that
@@ -30463,20 +30594,19 @@ module Google
30463
30594
  # Request-specific options
30464
30595
  #
30465
30596
  # @yield [result, err] Result & error if block supplied
30466
- # @yieldparam result [Google::Apis::ComputeAlpha::RegionAutoscalerList] parsed result object
30597
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object
30467
30598
  # @yieldparam err [StandardError] error object if request failed
30468
30599
  #
30469
- # @return [Google::Apis::ComputeAlpha::RegionAutoscalerList]
30600
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList]
30470
30601
  #
30471
30602
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30472
30603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30473
30604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30474
- def list_region_autoscalers(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)
30475
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options)
30476
- command.response_representation = Google::Apis::ComputeAlpha::RegionAutoscalerList::Representation
30477
- command.response_class = Google::Apis::ComputeAlpha::RegionAutoscalerList
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
30478
30609
  command.params['project'] = project unless project.nil?
30479
- command.params['region'] = region unless region.nil?
30480
30610
  command.query['filter'] = filter unless filter.nil?
30481
30611
  command.query['maxResults'] = max_results unless max_results.nil?
30482
30612
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -30488,16 +30618,11 @@ module Google
30488
30618
  execute_or_queue_command(command, &block)
30489
30619
  end
30490
30620
 
30491
- # Updates an autoscaler in the specified project using the data included in the
30492
- # request. This method supports PATCH semantics and uses the JSON merge patch
30493
- # format and processing rules.
30621
+ # Recovers the specified RecoverableSnapshot.
30494
30622
  # @param [String] project
30495
- # Project ID for this request.
30496
- # @param [String] region
30497
- # Name of the region scoping this request.
30498
- # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
30499
- # @param [String] autoscaler
30500
- # Name of the autoscaler to patch.
30623
+ # Project Id of the request
30624
+ # @param [String] recoverable_snapshot
30625
+ # Name of the recoverable resource to recover
30501
30626
  # @param [String] request_id
30502
30627
  # An optional request ID to identify requests. Specify a unique request ID so
30503
30628
  # that if you must retry your request, the server will know to ignore the
@@ -30508,6 +30633,13 @@ module Google
30508
30633
  # second request. This prevents clients from accidentally creating duplicate
30509
30634
  # commitments. The request ID must be a valid UUID with the exception that zero
30510
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.
30511
30643
  # @param [String] fields
30512
30644
  # Selector specifying which fields to include in a partial response.
30513
30645
  # @param [String] quota_user
@@ -30527,30 +30659,27 @@ module Google
30527
30659
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30528
30660
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30529
30661
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30530
- def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30531
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options)
30532
- command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
30533
- command.request_object = autoscaler_object
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)
30534
30664
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30535
30665
  command.response_class = Google::Apis::ComputeAlpha::Operation
30536
30666
  command.params['project'] = project unless project.nil?
30537
- command.params['region'] = region unless region.nil?
30538
- command.query['autoscaler'] = autoscaler unless autoscaler.nil?
30667
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
30539
30668
  command.query['requestId'] = request_id unless request_id.nil?
30669
+ command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
30540
30670
  command.query['fields'] = fields unless fields.nil?
30541
30671
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30542
30672
  command.query['userIp'] = user_ip unless user_ip.nil?
30543
30673
  execute_or_queue_command(command, &block)
30544
30674
  end
30545
30675
 
30546
- # Returns permissions that a caller has on the specified resource.
30676
+ # Sets the access control policy on the specified resource. Replaces any
30677
+ # existing policy.
30547
30678
  # @param [String] project
30548
30679
  # Project ID for this request.
30549
- # @param [String] region
30550
- # The name of the region for this request.
30551
30680
  # @param [String] resource
30552
30681
  # Name or id of the resource for this request.
30553
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30682
+ # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
30554
30683
  # @param [String] fields
30555
30684
  # Selector specifying which fields to include in a partial response.
30556
30685
  # @param [String] quota_user
@@ -30562,22 +30691,21 @@ module Google
30562
30691
  # Request-specific options
30563
30692
  #
30564
30693
  # @yield [result, err] Result & error if block supplied
30565
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30694
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30566
30695
  # @yieldparam err [StandardError] error object if request failed
30567
30696
  #
30568
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30697
+ # @return [Google::Apis::ComputeAlpha::Policy]
30569
30698
  #
30570
30699
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30571
30700
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30572
30701
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30573
- def test_region_autoscaler_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30574
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions', options)
30575
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
30576
- command.request_object = test_permissions_request_object
30577
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
30578
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
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
30579
30708
  command.params['project'] = project unless project.nil?
30580
- command.params['region'] = region unless region.nil?
30581
30709
  command.params['resource'] = resource unless resource.nil?
30582
30710
  command.query['fields'] = fields unless fields.nil?
30583
30711
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30585,25 +30713,62 @@ module Google
30585
30713
  execute_or_queue_command(command, &block)
30586
30714
  end
30587
30715
 
30588
- # Updates an autoscaler in the specified project using the data included in the
30589
- # request.
30716
+ # Returns permissions that a caller has on the specified resource.
30590
30717
  # @param [String] project
30591
30718
  # Project ID for this request.
30592
- # @param [String] region
30593
- # Name of the region scoping this request.
30594
- # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
30595
- # @param [String] autoscaler
30596
- # Name of the autoscaler to update.
30597
- # @param [String] request_id
30598
- # An optional request ID to identify requests. Specify a unique request ID so
30599
- # that if you must retry your request, the server will know to ignore the
30600
- # request if it has already been completed. For example, consider a situation
30601
- # where you make an initial request and the request times out. If you make the
30602
- # request again with the same request ID, the server can check if original
30603
- # operation with the same request ID was received, and if so, will ignore the
30604
- # second request. This prevents clients from accidentally creating duplicate
30605
- # commitments. The request ID must be a valid UUID with the exception that zero
30606
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
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
+
30755
+ # Deletes the specified autoscaler.
30756
+ # @param [String] project
30757
+ # Project ID for this request.
30758
+ # @param [String] region
30759
+ # Name of the region scoping this request.
30760
+ # @param [String] autoscaler
30761
+ # Name of the autoscaler to delete.
30762
+ # @param [String] request_id
30763
+ # An optional request ID to identify requests. Specify a unique request ID so
30764
+ # that if you must retry your request, the server will know to ignore the
30765
+ # request if it has already been completed. For example, consider a situation
30766
+ # where you make an initial request and the request times out. If you make the
30767
+ # request again with the same request ID, the server can check if original
30768
+ # operation with the same request ID was received, and if so, will ignore the
30769
+ # second request. This prevents clients from accidentally creating duplicate
30770
+ # commitments. The request ID must be a valid UUID with the exception that zero
30771
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30607
30772
  # @param [String] fields
30608
30773
  # Selector specifying which fields to include in a partial response.
30609
30774
  # @param [String] quota_user
@@ -30623,15 +30788,103 @@ module Google
30623
30788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30624
30789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30625
30790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30626
- def update_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30627
- command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options)
30791
+ def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30792
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
30793
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30794
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30795
+ command.params['project'] = project unless project.nil?
30796
+ command.params['region'] = region unless region.nil?
30797
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
30798
+ command.query['requestId'] = request_id unless request_id.nil?
30799
+ command.query['fields'] = fields unless fields.nil?
30800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30801
+ command.query['userIp'] = user_ip unless user_ip.nil?
30802
+ execute_or_queue_command(command, &block)
30803
+ end
30804
+
30805
+ # Returns the specified autoscaler.
30806
+ # @param [String] project
30807
+ # Project ID for this request.
30808
+ # @param [String] region
30809
+ # Name of the region scoping this request.
30810
+ # @param [String] autoscaler
30811
+ # Name of the autoscaler to return.
30812
+ # @param [String] fields
30813
+ # Selector specifying which fields to include in a partial response.
30814
+ # @param [String] quota_user
30815
+ # Available to use for quota purposes for server-side applications. Can be any
30816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30817
+ # @param [String] user_ip
30818
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30819
+ # @param [Google::Apis::RequestOptions] options
30820
+ # Request-specific options
30821
+ #
30822
+ # @yield [result, err] Result & error if block supplied
30823
+ # @yieldparam result [Google::Apis::ComputeAlpha::Autoscaler] parsed result object
30824
+ # @yieldparam err [StandardError] error object if request failed
30825
+ #
30826
+ # @return [Google::Apis::ComputeAlpha::Autoscaler]
30827
+ #
30828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30831
+ def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30832
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
30833
+ command.response_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
30834
+ command.response_class = Google::Apis::ComputeAlpha::Autoscaler
30835
+ command.params['project'] = project unless project.nil?
30836
+ command.params['region'] = region unless region.nil?
30837
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
30838
+ command.query['fields'] = fields unless fields.nil?
30839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30840
+ command.query['userIp'] = user_ip unless user_ip.nil?
30841
+ execute_or_queue_command(command, &block)
30842
+ end
30843
+
30844
+ # Creates an autoscaler in the specified project using the data included in the
30845
+ # request.
30846
+ # @param [String] project
30847
+ # Project ID for this request.
30848
+ # @param [String] region
30849
+ # Name of the region scoping this request.
30850
+ # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
30851
+ # @param [String] request_id
30852
+ # An optional request ID to identify requests. Specify a unique request ID so
30853
+ # that if you must retry your request, the server will know to ignore the
30854
+ # request if it has already been completed. For example, consider a situation
30855
+ # where you make an initial request and the request times out. If you make the
30856
+ # request again with the same request ID, the server can check if original
30857
+ # operation with the same request ID was received, and if so, will ignore the
30858
+ # second request. This prevents clients from accidentally creating duplicate
30859
+ # commitments. The request ID must be a valid UUID with the exception that zero
30860
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30861
+ # @param [String] fields
30862
+ # Selector specifying which fields to include in a partial response.
30863
+ # @param [String] quota_user
30864
+ # Available to use for quota purposes for server-side applications. Can be any
30865
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30866
+ # @param [String] user_ip
30867
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30868
+ # @param [Google::Apis::RequestOptions] options
30869
+ # Request-specific options
30870
+ #
30871
+ # @yield [result, err] Result & error if block supplied
30872
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30873
+ # @yieldparam err [StandardError] error object if request failed
30874
+ #
30875
+ # @return [Google::Apis::ComputeAlpha::Operation]
30876
+ #
30877
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30878
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30879
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30880
+ def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30881
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options)
30628
30882
  command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
30629
30883
  command.request_object = autoscaler_object
30630
30884
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30631
30885
  command.response_class = Google::Apis::ComputeAlpha::Operation
30632
30886
  command.params['project'] = project unless project.nil?
30633
30887
  command.params['region'] = region unless region.nil?
30634
- command.query['autoscaler'] = autoscaler unless autoscaler.nil?
30635
30888
  command.query['requestId'] = request_id unless request_id.nil?
30636
30889
  command.query['fields'] = fields unless fields.nil?
30637
30890
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30639,6 +30892,771 @@ module Google
30639
30892
  execute_or_queue_command(command, &block)
30640
30893
  end
30641
30894
 
30895
+ # Retrieves a list of autoscalers contained within the specified region.
30896
+ # @param [String] project
30897
+ # Project ID for this request.
30898
+ # @param [String] region
30899
+ # Name of the region scoping this request.
30900
+ # @param [String] filter
30901
+ # A filter expression that filters resources listed in the response. Most
30902
+ # Compute resources support two types of filter expressions: expressions that
30903
+ # support regular expressions and expressions that follow API improvement
30904
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
30905
+ # request. If you want to use AIP-160, your expression must specify the field
30906
+ # name, an operator, and the value that you want to use for filtering. The value
30907
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
30908
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30909
+ # Engine instances, you can exclude instances named `example-instance` by
30910
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
30911
+ # whether a key has been defined. For example, to find all objects with `owner`
30912
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
30913
+ # example, you could specify `scheduling.automaticRestart = false` to include
30914
+ # instances only if they are not scheduled for automatic restarts. You can use
30915
+ # filtering on nested fields to filter based on resource labels. To filter on
30916
+ # multiple expressions, provide each separate expression within parentheses. For
30917
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
30918
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
30919
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
30920
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
30921
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
30922
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
30923
+ # un-parenthesized expression with or without quotes or against multiple
30924
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
30925
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
30926
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
30927
+ # interpreted as a regular expression using Google RE2 library syntax. The
30928
+ # literal value must match the entire field. For example, to filter for
30929
+ # instances that do not end with name "instance", you would use `name ne .*
30930
+ # instance`. You cannot combine constraints on multiple fields using regular
30931
+ # expressions.
30932
+ # @param [Fixnum] max_results
30933
+ # The maximum number of results per page that should be returned. If the number
30934
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30935
+ # nextPageToken` that can be used to get the next page of results in subsequent
30936
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30937
+ # @param [String] order_by
30938
+ # Sorts list results by a certain order. By default, results are returned in
30939
+ # alphanumerical order based on the resource name. You can also sort results in
30940
+ # descending order based on the creation timestamp using `orderBy="
30941
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30942
+ # field in reverse chronological order (newest result first). Use this to sort
30943
+ # resources like operations so that the newest operation is returned first.
30944
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30945
+ # @param [String] page_token
30946
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30947
+ # by a previous list request to get the next page of results.
30948
+ # @param [Boolean] return_partial_success
30949
+ # Opt-in for partial success behavior which provides partial results in case of
30950
+ # failure. The default value is false. For example, when partial success
30951
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
30952
+ # resources in the zone or no resources, with an error code.
30953
+ # @param [String] fields
30954
+ # Selector specifying which fields to include in a partial response.
30955
+ # @param [String] quota_user
30956
+ # Available to use for quota purposes for server-side applications. Can be any
30957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30958
+ # @param [String] user_ip
30959
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30960
+ # @param [Google::Apis::RequestOptions] options
30961
+ # Request-specific options
30962
+ #
30963
+ # @yield [result, err] Result & error if block supplied
30964
+ # @yieldparam result [Google::Apis::ComputeAlpha::RegionAutoscalerList] parsed result object
30965
+ # @yieldparam err [StandardError] error object if request failed
30966
+ #
30967
+ # @return [Google::Apis::ComputeAlpha::RegionAutoscalerList]
30968
+ #
30969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30972
+ def list_region_autoscalers(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)
30973
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options)
30974
+ command.response_representation = Google::Apis::ComputeAlpha::RegionAutoscalerList::Representation
30975
+ command.response_class = Google::Apis::ComputeAlpha::RegionAutoscalerList
30976
+ command.params['project'] = project unless project.nil?
30977
+ command.params['region'] = region unless region.nil?
30978
+ command.query['filter'] = filter unless filter.nil?
30979
+ command.query['maxResults'] = max_results unless max_results.nil?
30980
+ command.query['orderBy'] = order_by unless order_by.nil?
30981
+ command.query['pageToken'] = page_token unless page_token.nil?
30982
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30983
+ command.query['fields'] = fields unless fields.nil?
30984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30985
+ command.query['userIp'] = user_ip unless user_ip.nil?
30986
+ execute_or_queue_command(command, &block)
30987
+ end
30988
+
30989
+ # Updates an autoscaler in the specified project using the data included in the
30990
+ # request. This method supports PATCH semantics and uses the JSON merge patch
30991
+ # format and processing rules.
30992
+ # @param [String] project
30993
+ # Project ID for this request.
30994
+ # @param [String] region
30995
+ # Name of the region scoping this request.
30996
+ # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
30997
+ # @param [String] autoscaler
30998
+ # Name of the autoscaler to patch.
30999
+ # @param [String] request_id
31000
+ # An optional request ID to identify requests. Specify a unique request ID so
31001
+ # that if you must retry your request, the server will know to ignore the
31002
+ # request if it has already been completed. For example, consider a situation
31003
+ # where you make an initial request and the request times out. If you make the
31004
+ # request again with the same request ID, the server can check if original
31005
+ # operation with the same request ID was received, and if so, will ignore the
31006
+ # second request. This prevents clients from accidentally creating duplicate
31007
+ # commitments. The request ID must be a valid UUID with the exception that zero
31008
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
31009
+ # @param [String] fields
31010
+ # Selector specifying which fields to include in a partial response.
31011
+ # @param [String] quota_user
31012
+ # Available to use for quota purposes for server-side applications. Can be any
31013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31014
+ # @param [String] user_ip
31015
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31016
+ # @param [Google::Apis::RequestOptions] options
31017
+ # Request-specific options
31018
+ #
31019
+ # @yield [result, err] Result & error if block supplied
31020
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31021
+ # @yieldparam err [StandardError] error object if request failed
31022
+ #
31023
+ # @return [Google::Apis::ComputeAlpha::Operation]
31024
+ #
31025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31028
+ def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31029
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options)
31030
+ command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
31031
+ command.request_object = autoscaler_object
31032
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31033
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31034
+ command.params['project'] = project unless project.nil?
31035
+ command.params['region'] = region unless region.nil?
31036
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
31037
+ command.query['requestId'] = request_id unless request_id.nil?
31038
+ command.query['fields'] = fields unless fields.nil?
31039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31040
+ command.query['userIp'] = user_ip unless user_ip.nil?
31041
+ execute_or_queue_command(command, &block)
31042
+ end
31043
+
31044
+ # Returns permissions that a caller has on the specified resource.
31045
+ # @param [String] project
31046
+ # Project ID for this request.
31047
+ # @param [String] region
31048
+ # The name of the region for this request.
31049
+ # @param [String] resource
31050
+ # Name or id of the resource for this request.
31051
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
31052
+ # @param [String] fields
31053
+ # Selector specifying which fields to include in a partial response.
31054
+ # @param [String] quota_user
31055
+ # Available to use for quota purposes for server-side applications. Can be any
31056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31057
+ # @param [String] user_ip
31058
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31059
+ # @param [Google::Apis::RequestOptions] options
31060
+ # Request-specific options
31061
+ #
31062
+ # @yield [result, err] Result & error if block supplied
31063
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
31064
+ # @yieldparam err [StandardError] error object if request failed
31065
+ #
31066
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
31067
+ #
31068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31071
+ def test_region_autoscaler_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31072
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions', options)
31073
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
31074
+ command.request_object = test_permissions_request_object
31075
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
31076
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
31077
+ command.params['project'] = project unless project.nil?
31078
+ command.params['region'] = region unless region.nil?
31079
+ command.params['resource'] = resource unless resource.nil?
31080
+ command.query['fields'] = fields unless fields.nil?
31081
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31082
+ command.query['userIp'] = user_ip unless user_ip.nil?
31083
+ execute_or_queue_command(command, &block)
31084
+ end
31085
+
31086
+ # Updates an autoscaler in the specified project using the data included in the
31087
+ # request.
31088
+ # @param [String] project
31089
+ # Project ID for this request.
31090
+ # @param [String] region
31091
+ # Name of the region scoping this request.
31092
+ # @param [Google::Apis::ComputeAlpha::Autoscaler] autoscaler_object
31093
+ # @param [String] autoscaler
31094
+ # Name of the autoscaler to update.
31095
+ # @param [String] request_id
31096
+ # An optional request ID to identify requests. Specify a unique request ID so
31097
+ # that if you must retry your request, the server will know to ignore the
31098
+ # request if it has already been completed. For example, consider a situation
31099
+ # where you make an initial request and the request times out. If you make the
31100
+ # request again with the same request ID, the server can check if original
31101
+ # operation with the same request ID was received, and if so, will ignore the
31102
+ # second request. This prevents clients from accidentally creating duplicate
31103
+ # commitments. The request ID must be a valid UUID with the exception that zero
31104
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
31105
+ # @param [String] fields
31106
+ # Selector specifying which fields to include in a partial response.
31107
+ # @param [String] quota_user
31108
+ # Available to use for quota purposes for server-side applications. Can be any
31109
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31110
+ # @param [String] user_ip
31111
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31112
+ # @param [Google::Apis::RequestOptions] options
31113
+ # Request-specific options
31114
+ #
31115
+ # @yield [result, err] Result & error if block supplied
31116
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31117
+ # @yieldparam err [StandardError] error object if request failed
31118
+ #
31119
+ # @return [Google::Apis::ComputeAlpha::Operation]
31120
+ #
31121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31124
+ def update_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31125
+ command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options)
31126
+ command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation
31127
+ command.request_object = autoscaler_object
31128
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31129
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31130
+ command.params['project'] = project unless project.nil?
31131
+ command.params['region'] = region unless region.nil?
31132
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
31133
+ command.query['requestId'] = request_id unless request_id.nil?
31134
+ command.query['fields'] = fields unless fields.nil?
31135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31136
+ command.query['userIp'] = user_ip unless user_ip.nil?
31137
+ execute_or_queue_command(command, &block)
31138
+ end
31139
+
31140
+ # Deletes the specified regional BackendBucket resource.
31141
+ # @param [String] project
31142
+ # Project ID for this request.
31143
+ # @param [String] region
31144
+ # Name of the region scoping this request.
31145
+ # @param [String] backend_bucket
31146
+ # Name of the BackendBucket resource to delete.
31147
+ # @param [Boolean] force_delete
31148
+ # Force delete the backend bucket even if it is still in use by other resources.
31149
+ # It's intended to be used internally only for requests from wipeout.
31150
+ # @param [String] request_id
31151
+ # An optional request ID to identify requests. Specify a unique request ID so
31152
+ # that if you must retry your request, the server will know to ignore the
31153
+ # request if it has already been completed. For example, consider a situation
31154
+ # where you make an initial request and the request times out. If you make the
31155
+ # request again with the same request ID, the server can check if original
31156
+ # operation with the same request ID was received, and if so, will ignore the
31157
+ # second request. This prevents clients from accidentally creating duplicate
31158
+ # commitments. The request ID must be a valid UUID with the exception that zero
31159
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
31160
+ # MixerMutationRequestBuilder
31161
+ # @param [String] fields
31162
+ # Selector specifying which fields to include in a partial response.
31163
+ # @param [String] quota_user
31164
+ # Available to use for quota purposes for server-side applications. Can be any
31165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31166
+ # @param [String] user_ip
31167
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31168
+ # @param [Google::Apis::RequestOptions] options
31169
+ # Request-specific options
31170
+ #
31171
+ # @yield [result, err] Result & error if block supplied
31172
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31173
+ # @yieldparam err [StandardError] error object if request failed
31174
+ #
31175
+ # @return [Google::Apis::ComputeAlpha::Operation]
31176
+ #
31177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31180
+ def delete_region_backend_bucket(project, region, backend_bucket, force_delete: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31181
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
31182
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31183
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31184
+ command.params['project'] = project unless project.nil?
31185
+ command.params['region'] = region unless region.nil?
31186
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
31187
+ command.query['forceDelete'] = force_delete unless force_delete.nil?
31188
+ command.query['requestId'] = request_id unless request_id.nil?
31189
+ command.query['fields'] = fields unless fields.nil?
31190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31191
+ command.query['userIp'] = user_ip unless user_ip.nil?
31192
+ execute_or_queue_command(command, &block)
31193
+ end
31194
+
31195
+ # Returns the specified regional BackendBucket resource.
31196
+ # @param [String] project
31197
+ # Project ID for this request.
31198
+ # @param [String] region
31199
+ # Name of the region scoping this request.
31200
+ # @param [String] backend_bucket
31201
+ # Name of the BackendBucket resource to return.
31202
+ # @param [String] fields
31203
+ # Selector specifying which fields to include in a partial response.
31204
+ # @param [String] quota_user
31205
+ # Available to use for quota purposes for server-side applications. Can be any
31206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31207
+ # @param [String] user_ip
31208
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31209
+ # @param [Google::Apis::RequestOptions] options
31210
+ # Request-specific options
31211
+ #
31212
+ # @yield [result, err] Result & error if block supplied
31213
+ # @yieldparam result [Google::Apis::ComputeAlpha::BackendBucket] parsed result object
31214
+ # @yieldparam err [StandardError] error object if request failed
31215
+ #
31216
+ # @return [Google::Apis::ComputeAlpha::BackendBucket]
31217
+ #
31218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31221
+ def get_region_backend_bucket(project, region, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31222
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
31223
+ command.response_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
31224
+ command.response_class = Google::Apis::ComputeAlpha::BackendBucket
31225
+ command.params['project'] = project unless project.nil?
31226
+ command.params['region'] = region unless region.nil?
31227
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
31228
+ command.query['fields'] = fields unless fields.nil?
31229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31230
+ command.query['userIp'] = user_ip unless user_ip.nil?
31231
+ execute_or_queue_command(command, &block)
31232
+ end
31233
+
31234
+ # Gets the access control policy for a resource. May be empty if no such policy
31235
+ # or resource exists.
31236
+ # @param [String] project
31237
+ # Project ID for this request.
31238
+ # @param [String] region
31239
+ # The name of the region for this request.
31240
+ # @param [String] resource
31241
+ # Name or id of the resource for this request.
31242
+ # @param [Fixnum] options_requested_policy_version
31243
+ # Requested IAM Policy version.
31244
+ # @param [String] fields
31245
+ # Selector specifying which fields to include in a partial response.
31246
+ # @param [String] quota_user
31247
+ # Available to use for quota purposes for server-side applications. Can be any
31248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31249
+ # @param [String] user_ip
31250
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31251
+ # @param [Google::Apis::RequestOptions] options
31252
+ # Request-specific options
31253
+ #
31254
+ # @yield [result, err] Result & error if block supplied
31255
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
31256
+ # @yieldparam err [StandardError] error object if request failed
31257
+ #
31258
+ # @return [Google::Apis::ComputeAlpha::Policy]
31259
+ #
31260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31263
+ def get_region_backend_bucket_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31264
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy', options)
31265
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
31266
+ command.response_class = Google::Apis::ComputeAlpha::Policy
31267
+ command.params['project'] = project unless project.nil?
31268
+ command.params['region'] = region unless region.nil?
31269
+ command.params['resource'] = resource unless resource.nil?
31270
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
31271
+ command.query['fields'] = fields unless fields.nil?
31272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31273
+ command.query['userIp'] = user_ip unless user_ip.nil?
31274
+ execute_or_queue_command(command, &block)
31275
+ end
31276
+
31277
+ # Creates a RegionBackendBucket in the specified project in the given scope
31278
+ # using the parameters that are included in the request.
31279
+ # @param [String] project
31280
+ # Project ID for this request.
31281
+ # @param [String] region
31282
+ # Name of the region of this request.
31283
+ # @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
31284
+ # @param [String] request_id
31285
+ # An optional request ID to identify requests. Specify a unique request ID so
31286
+ # that if you must retry your request, the server will know to ignore the
31287
+ # request if it has already been completed. For example, consider a situation
31288
+ # where you make an initial request and the request times out. If you make the
31289
+ # request again with the same request ID, the server can check if original
31290
+ # operation with the same request ID was received, and if so, will ignore the
31291
+ # second request. This prevents clients from accidentally creating duplicate
31292
+ # commitments. The request ID must be a valid UUID with the exception that zero
31293
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
31294
+ # @param [String] fields
31295
+ # Selector specifying which fields to include in a partial response.
31296
+ # @param [String] quota_user
31297
+ # Available to use for quota purposes for server-side applications. Can be any
31298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31299
+ # @param [String] user_ip
31300
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31301
+ # @param [Google::Apis::RequestOptions] options
31302
+ # Request-specific options
31303
+ #
31304
+ # @yield [result, err] Result & error if block supplied
31305
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31306
+ # @yieldparam err [StandardError] error object if request failed
31307
+ #
31308
+ # @return [Google::Apis::ComputeAlpha::Operation]
31309
+ #
31310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
31314
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets', options)
31315
+ command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
31316
+ command.request_object = backend_bucket_object
31317
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31318
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31319
+ command.params['project'] = project unless project.nil?
31320
+ command.params['region'] = region unless region.nil?
31321
+ command.query['requestId'] = request_id unless request_id.nil?
31322
+ command.query['fields'] = fields unless fields.nil?
31323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31324
+ command.query['userIp'] = user_ip unless user_ip.nil?
31325
+ execute_or_queue_command(command, &block)
31326
+ end
31327
+
31328
+ # Retrieves the list of BackendBucket resources available to the specified
31329
+ # project in the given region.
31330
+ # @param [String] project
31331
+ # Project ID for this request.
31332
+ # @param [String] region
31333
+ # Name of the region of this request.
31334
+ # @param [String] filter
31335
+ # A filter expression that filters resources listed in the response. Most
31336
+ # Compute resources support two types of filter expressions: expressions that
31337
+ # support regular expressions and expressions that follow API improvement
31338
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
31339
+ # request. If you want to use AIP-160, your expression must specify the field
31340
+ # name, an operator, and the value that you want to use for filtering. The value
31341
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
31342
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
31343
+ # Engine instances, you can exclude instances named `example-instance` by
31344
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
31345
+ # whether a key has been defined. For example, to find all objects with `owner`
31346
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
31347
+ # example, you could specify `scheduling.automaticRestart = false` to include
31348
+ # instances only if they are not scheduled for automatic restarts. You can use
31349
+ # filtering on nested fields to filter based on resource labels. To filter on
31350
+ # multiple expressions, provide each separate expression within parentheses. For
31351
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
31352
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
31353
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
31354
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
31355
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
31356
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
31357
+ # un-parenthesized expression with or without quotes or against multiple
31358
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
31359
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
31360
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
31361
+ # interpreted as a regular expression using Google RE2 library syntax. The
31362
+ # literal value must match the entire field. For example, to filter for
31363
+ # instances that do not end with name "instance", you would use `name ne .*
31364
+ # instance`. You cannot combine constraints on multiple fields using regular
31365
+ # expressions.
31366
+ # @param [Fixnum] max_results
31367
+ # The maximum number of results per page that should be returned. If the number
31368
+ # of available results is larger than `maxResults`, Compute Engine returns a `
31369
+ # nextPageToken` that can be used to get the next page of results in subsequent
31370
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
31371
+ # @param [String] order_by
31372
+ # Sorts list results by a certain order. By default, results are returned in
31373
+ # alphanumerical order based on the resource name. You can also sort results in
31374
+ # descending order based on the creation timestamp using `orderBy="
31375
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
31376
+ # field in reverse chronological order (newest result first). Use this to sort
31377
+ # resources like operations so that the newest operation is returned first.
31378
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
31379
+ # @param [String] page_token
31380
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
31381
+ # by a previous list request to get the next page of results.
31382
+ # @param [Boolean] return_partial_success
31383
+ # Opt-in for partial success behavior which provides partial results in case of
31384
+ # failure. The default value is false. For example, when partial success
31385
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
31386
+ # resources in the zone or no resources, with an error code.
31387
+ # @param [String] fields
31388
+ # Selector specifying which fields to include in a partial response.
31389
+ # @param [String] quota_user
31390
+ # Available to use for quota purposes for server-side applications. Can be any
31391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31392
+ # @param [String] user_ip
31393
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31394
+ # @param [Google::Apis::RequestOptions] options
31395
+ # Request-specific options
31396
+ #
31397
+ # @yield [result, err] Result & error if block supplied
31398
+ # @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketList] parsed result object
31399
+ # @yieldparam err [StandardError] error object if request failed
31400
+ #
31401
+ # @return [Google::Apis::ComputeAlpha::BackendBucketList]
31402
+ #
31403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31406
+ def list_region_backend_buckets(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)
31407
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets', options)
31408
+ command.response_representation = Google::Apis::ComputeAlpha::BackendBucketList::Representation
31409
+ command.response_class = Google::Apis::ComputeAlpha::BackendBucketList
31410
+ command.params['project'] = project unless project.nil?
31411
+ command.params['region'] = region unless region.nil?
31412
+ command.query['filter'] = filter unless filter.nil?
31413
+ command.query['maxResults'] = max_results unless max_results.nil?
31414
+ command.query['orderBy'] = order_by unless order_by.nil?
31415
+ command.query['pageToken'] = page_token unless page_token.nil?
31416
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31417
+ command.query['fields'] = fields unless fields.nil?
31418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31419
+ command.query['userIp'] = user_ip unless user_ip.nil?
31420
+ execute_or_queue_command(command, &block)
31421
+ end
31422
+
31423
+ # Retrieves a list of all usable backend buckets in the specified project in the
31424
+ # given region.
31425
+ # @param [String] project
31426
+ # Project ID for this request.
31427
+ # @param [String] region
31428
+ # Name of the region scoping this request. It must be a string that meets the
31429
+ # requirements in RFC1035.
31430
+ # @param [String] filter
31431
+ # A filter expression that filters resources listed in the response. Most
31432
+ # Compute resources support two types of filter expressions: expressions that
31433
+ # support regular expressions and expressions that follow API improvement
31434
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
31435
+ # request. If you want to use AIP-160, your expression must specify the field
31436
+ # name, an operator, and the value that you want to use for filtering. The value
31437
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
31438
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
31439
+ # Engine instances, you can exclude instances named `example-instance` by
31440
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
31441
+ # whether a key has been defined. For example, to find all objects with `owner`
31442
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
31443
+ # example, you could specify `scheduling.automaticRestart = false` to include
31444
+ # instances only if they are not scheduled for automatic restarts. You can use
31445
+ # filtering on nested fields to filter based on resource labels. To filter on
31446
+ # multiple expressions, provide each separate expression within parentheses. For
31447
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
31448
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
31449
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
31450
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
31451
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
31452
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
31453
+ # un-parenthesized expression with or without quotes or against multiple
31454
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
31455
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
31456
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
31457
+ # interpreted as a regular expression using Google RE2 library syntax. The
31458
+ # literal value must match the entire field. For example, to filter for
31459
+ # instances that do not end with name "instance", you would use `name ne .*
31460
+ # instance`. You cannot combine constraints on multiple fields using regular
31461
+ # expressions.
31462
+ # @param [Fixnum] max_results
31463
+ # The maximum number of results per page that should be returned. If the number
31464
+ # of available results is larger than `maxResults`, Compute Engine returns a `
31465
+ # nextPageToken` that can be used to get the next page of results in subsequent
31466
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
31467
+ # @param [String] order_by
31468
+ # Sorts list results by a certain order. By default, results are returned in
31469
+ # alphanumerical order based on the resource name. You can also sort results in
31470
+ # descending order based on the creation timestamp using `orderBy="
31471
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
31472
+ # field in reverse chronological order (newest result first). Use this to sort
31473
+ # resources like operations so that the newest operation is returned first.
31474
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
31475
+ # @param [String] page_token
31476
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
31477
+ # by a previous list request to get the next page of results.
31478
+ # @param [Boolean] return_partial_success
31479
+ # Opt-in for partial success behavior which provides partial results in case of
31480
+ # failure. The default value is false. For example, when partial success
31481
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
31482
+ # resources in the zone or no resources, with an error code.
31483
+ # @param [String] fields
31484
+ # Selector specifying which fields to include in a partial response.
31485
+ # @param [String] quota_user
31486
+ # Available to use for quota purposes for server-side applications. Can be any
31487
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31488
+ # @param [String] user_ip
31489
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31490
+ # @param [Google::Apis::RequestOptions] options
31491
+ # Request-specific options
31492
+ #
31493
+ # @yield [result, err] Result & error if block supplied
31494
+ # @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketListUsable] parsed result object
31495
+ # @yieldparam err [StandardError] error object if request failed
31496
+ #
31497
+ # @return [Google::Apis::ComputeAlpha::BackendBucketListUsable]
31498
+ #
31499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31502
+ def list_region_backend_bucket_usable(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)
31503
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendBuckets/listUsable', options)
31504
+ command.response_representation = Google::Apis::ComputeAlpha::BackendBucketListUsable::Representation
31505
+ command.response_class = Google::Apis::ComputeAlpha::BackendBucketListUsable
31506
+ command.params['project'] = project unless project.nil?
31507
+ command.params['region'] = region unless region.nil?
31508
+ command.query['filter'] = filter unless filter.nil?
31509
+ command.query['maxResults'] = max_results unless max_results.nil?
31510
+ command.query['orderBy'] = order_by unless order_by.nil?
31511
+ command.query['pageToken'] = page_token unless page_token.nil?
31512
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31513
+ command.query['fields'] = fields unless fields.nil?
31514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31515
+ command.query['userIp'] = user_ip unless user_ip.nil?
31516
+ execute_or_queue_command(command, &block)
31517
+ end
31518
+
31519
+ # Updates the specified BackendBucket resource with the data included in the
31520
+ # request. This method supports PATCH semantics and uses the JSON merge patch
31521
+ # format and processing rules.
31522
+ # @param [String] project
31523
+ # Project ID for this request.
31524
+ # @param [String] region
31525
+ # Name of the region scoping this request.
31526
+ # @param [String] backend_bucket
31527
+ # Name of the BackendBucket resource to patch.
31528
+ # @param [Google::Apis::ComputeAlpha::BackendBucket] backend_bucket_object
31529
+ # @param [String] request_id
31530
+ # An optional request ID to identify requests. Specify a unique request ID so
31531
+ # that if you must retry your request, the server will know to ignore the
31532
+ # request if it has already been completed. For example, consider a situation
31533
+ # where you make an initial request and the request times out. If you make the
31534
+ # request again with the same request ID, the server can check if original
31535
+ # operation with the same request ID was received, and if so, will ignore the
31536
+ # second request. This prevents clients from accidentally creating duplicate
31537
+ # commitments. The request ID must be a valid UUID with the exception that zero
31538
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
31539
+ # MixerMutationRequestBuilder
31540
+ # @param [String] fields
31541
+ # Selector specifying which fields to include in a partial response.
31542
+ # @param [String] quota_user
31543
+ # Available to use for quota purposes for server-side applications. Can be any
31544
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31545
+ # @param [String] user_ip
31546
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31547
+ # @param [Google::Apis::RequestOptions] options
31548
+ # Request-specific options
31549
+ #
31550
+ # @yield [result, err] Result & error if block supplied
31551
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31552
+ # @yieldparam err [StandardError] error object if request failed
31553
+ #
31554
+ # @return [Google::Apis::ComputeAlpha::Operation]
31555
+ #
31556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31559
+ def patch_region_backend_bucket(project, region, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31560
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/backendBuckets/{backendBucket}', options)
31561
+ command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation
31562
+ command.request_object = backend_bucket_object
31563
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31564
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31565
+ command.params['project'] = project unless project.nil?
31566
+ command.params['region'] = region unless region.nil?
31567
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
31568
+ command.query['requestId'] = request_id unless request_id.nil?
31569
+ command.query['fields'] = fields unless fields.nil?
31570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31571
+ command.query['userIp'] = user_ip unless user_ip.nil?
31572
+ execute_or_queue_command(command, &block)
31573
+ end
31574
+
31575
+ # Sets the access control policy on the specified resource. Replaces any
31576
+ # existing policy.
31577
+ # @param [String] project
31578
+ # Project ID for this request.
31579
+ # @param [String] region
31580
+ # The name of the region for this request.
31581
+ # @param [String] resource
31582
+ # Name or id of the resource for this request.
31583
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
31584
+ # @param [String] fields
31585
+ # Selector specifying which fields to include in a partial response.
31586
+ # @param [String] quota_user
31587
+ # Available to use for quota purposes for server-side applications. Can be any
31588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31589
+ # @param [String] user_ip
31590
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31591
+ # @param [Google::Apis::RequestOptions] options
31592
+ # Request-specific options
31593
+ #
31594
+ # @yield [result, err] Result & error if block supplied
31595
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
31596
+ # @yieldparam err [StandardError] error object if request failed
31597
+ #
31598
+ # @return [Google::Apis::ComputeAlpha::Policy]
31599
+ #
31600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31603
+ def set_region_backend_bucket_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31604
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy', options)
31605
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
31606
+ command.request_object = region_set_policy_request_object
31607
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
31608
+ command.response_class = Google::Apis::ComputeAlpha::Policy
31609
+ command.params['project'] = project unless project.nil?
31610
+ command.params['region'] = region unless region.nil?
31611
+ command.params['resource'] = resource unless resource.nil?
31612
+ command.query['fields'] = fields unless fields.nil?
31613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31614
+ command.query['userIp'] = user_ip unless user_ip.nil?
31615
+ execute_or_queue_command(command, &block)
31616
+ end
31617
+
31618
+ # Returns permissions that a caller has on the specified resource.
31619
+ # @param [String] project
31620
+ # Project ID for this request.
31621
+ # @param [String] region
31622
+ # The name of the region for this request.
31623
+ # @param [String] resource
31624
+ # Name or id of the resource for this request.
31625
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
31626
+ # @param [String] fields
31627
+ # Selector specifying which fields to include in a partial response.
31628
+ # @param [String] quota_user
31629
+ # Available to use for quota purposes for server-side applications. Can be any
31630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31631
+ # @param [String] user_ip
31632
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31633
+ # @param [Google::Apis::RequestOptions] options
31634
+ # Request-specific options
31635
+ #
31636
+ # @yield [result, err] Result & error if block supplied
31637
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
31638
+ # @yieldparam err [StandardError] error object if request failed
31639
+ #
31640
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
31641
+ #
31642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31645
+ def test_region_backend_bucket_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31646
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions', options)
31647
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
31648
+ command.request_object = test_permissions_request_object
31649
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
31650
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
31651
+ command.params['project'] = project unless project.nil?
31652
+ command.params['region'] = region unless region.nil?
31653
+ command.params['resource'] = resource unless resource.nil?
31654
+ command.query['fields'] = fields unless fields.nil?
31655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31656
+ command.query['userIp'] = user_ip unless user_ip.nil?
31657
+ execute_or_queue_command(command, &block)
31658
+ end
31659
+
30642
31660
  # Deletes the specified regional BackendService resource.
30643
31661
  # @param [String] project
30644
31662
  # Project ID for this request.