google-apis-compute_alpha 0.117.0 → 0.119.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.
@@ -5280,6 +5280,40 @@ module Google
5280
5280
  execute_or_queue_command(command, &block)
5281
5281
  end
5282
5282
 
5283
+ # Starts a brand new progressive rollout of hierarchical firewall policy. This
5284
+ # API will return an error when there is an ongoing progressive rollout.
5285
+ # @param [String] firewall_policy
5286
+ # Name of the target firewall policy.
5287
+ # @param [String] fields
5288
+ # Selector specifying which fields to include in a partial response.
5289
+ # @param [String] quota_user
5290
+ # Available to use for quota purposes for server-side applications. Can be any
5291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5292
+ # @param [String] user_ip
5293
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5294
+ # @param [Google::Apis::RequestOptions] options
5295
+ # Request-specific options
5296
+ #
5297
+ # @yield [result, err] Result & error if block supplied
5298
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5299
+ # @yieldparam err [StandardError] error object if request failed
5300
+ #
5301
+ # @return [Google::Apis::ComputeAlpha::Operation]
5302
+ #
5303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5306
+ def force_firewall_policy_start_progressive_rollout(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5307
+ command = make_simple_command(:post, 'locations/global/{+firewallPolicy}/forceStartProgressiveRollout', options)
5308
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5309
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5310
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
5311
+ command.query['fields'] = fields unless fields.nil?
5312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5313
+ command.query['userIp'] = user_ip unless user_ip.nil?
5314
+ execute_or_queue_command(command, &block)
5315
+ end
5316
+
5283
5317
  # Returns the specified firewall policy.
5284
5318
  # @param [String] firewall_policy
5285
5319
  # Name of the firewall policy to get.
@@ -8962,9 +8996,9 @@ module Google
8962
8996
  # Retrieves the specified Operations resource. Gets a list of operations by
8963
8997
  # making a `list()` request.
8964
8998
  # @param [String] operation
8965
- # Name of the Operations resource to return, or its unique numeric identifier.
8999
+ # Name of the Operations resource to return. Parent is derived from this field.
8966
9000
  # @param [String] parent_id
8967
- # Parent ID for this request.
9001
+ # Parent ID for this request. Not used. Parent is derived from resource_id.
8968
9002
  # @param [String] fields
8969
9003
  # Selector specifying which fields to include in a partial response.
8970
9004
  # @param [String] quota_user
@@ -9362,6 +9396,324 @@ module Google
9362
9396
  execute_or_queue_command(command, &block)
9363
9397
  end
9364
9398
 
9399
+ # Deletes an HaController in the specified project.
9400
+ # @param [String] project
9401
+ # Project ID for this request.
9402
+ # @param [String] region
9403
+ # Name of the region for this request.
9404
+ # @param [String] ha_controller
9405
+ # Name of the HaController resource to delete.
9406
+ # @param [String] request_id
9407
+ # An optional request ID to identify requests. Specify a unique request ID so
9408
+ # that if you must retry your request, the server will know to ignore the
9409
+ # request if it has already been completed.
9410
+ # @param [String] fields
9411
+ # Selector specifying which fields to include in a partial response.
9412
+ # @param [String] quota_user
9413
+ # Available to use for quota purposes for server-side applications. Can be any
9414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9415
+ # @param [String] user_ip
9416
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9417
+ # @param [Google::Apis::RequestOptions] options
9418
+ # Request-specific options
9419
+ #
9420
+ # @yield [result, err] Result & error if block supplied
9421
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9422
+ # @yieldparam err [StandardError] error object if request failed
9423
+ #
9424
+ # @return [Google::Apis::ComputeAlpha::Operation]
9425
+ #
9426
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9427
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9428
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9429
+ def delete_ha_controller(project, region, ha_controller, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9430
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
9431
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9432
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9433
+ command.params['project'] = project unless project.nil?
9434
+ command.params['region'] = region unless region.nil?
9435
+ command.params['haController'] = ha_controller unless ha_controller.nil?
9436
+ command.query['requestId'] = request_id unless request_id.nil?
9437
+ command.query['fields'] = fields unless fields.nil?
9438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9439
+ command.query['userIp'] = user_ip unless user_ip.nil?
9440
+ execute_or_queue_command(command, &block)
9441
+ end
9442
+
9443
+ # Fails over a VM targeted by the specified HaController to the selected zone.
9444
+ # @param [String] project
9445
+ # Project ID for this request.
9446
+ # @param [String] region
9447
+ # Name of the region for this request.
9448
+ # @param [String] ha_controller
9449
+ # ID of the HaController resource to update.
9450
+ # @param [Google::Apis::ComputeAlpha::HaControllersFailoverRequest] ha_controllers_failover_request_object
9451
+ # @param [String] request_id
9452
+ # An optional request ID to identify requests. Specify a unique request ID so
9453
+ # that if you must retry your request, the server will know to ignore the
9454
+ # request if it has already been completed.
9455
+ # @param [String] fields
9456
+ # Selector specifying which fields to include in a partial response.
9457
+ # @param [String] quota_user
9458
+ # Available to use for quota purposes for server-side applications. Can be any
9459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9460
+ # @param [String] user_ip
9461
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9462
+ # @param [Google::Apis::RequestOptions] options
9463
+ # Request-specific options
9464
+ #
9465
+ # @yield [result, err] Result & error if block supplied
9466
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9467
+ # @yieldparam err [StandardError] error object if request failed
9468
+ #
9469
+ # @return [Google::Apis::ComputeAlpha::Operation]
9470
+ #
9471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9474
+ def failover_ha_controller(project, region, ha_controller, ha_controllers_failover_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9475
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers/{haController}/failover', options)
9476
+ command.request_representation = Google::Apis::ComputeAlpha::HaControllersFailoverRequest::Representation
9477
+ command.request_object = ha_controllers_failover_request_object
9478
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9479
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9480
+ command.params['project'] = project unless project.nil?
9481
+ command.params['region'] = region unless region.nil?
9482
+ command.params['haController'] = ha_controller unless ha_controller.nil?
9483
+ command.query['requestId'] = request_id unless request_id.nil?
9484
+ command.query['fields'] = fields unless fields.nil?
9485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9486
+ command.query['userIp'] = user_ip unless user_ip.nil?
9487
+ execute_or_queue_command(command, &block)
9488
+ end
9489
+
9490
+ # Returns all the details of a specific HaController.
9491
+ # @param [String] project
9492
+ # Project ID for this request.
9493
+ # @param [String] region
9494
+ # Name of the region for this request.
9495
+ # @param [String] ha_controller
9496
+ # Name of the HaController resource to return.
9497
+ # @param [String] fields
9498
+ # Selector specifying which fields to include in a partial response.
9499
+ # @param [String] quota_user
9500
+ # Available to use for quota purposes for server-side applications. Can be any
9501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9502
+ # @param [String] user_ip
9503
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9504
+ # @param [Google::Apis::RequestOptions] options
9505
+ # Request-specific options
9506
+ #
9507
+ # @yield [result, err] Result & error if block supplied
9508
+ # @yieldparam result [Google::Apis::ComputeAlpha::HaController] parsed result object
9509
+ # @yieldparam err [StandardError] error object if request failed
9510
+ #
9511
+ # @return [Google::Apis::ComputeAlpha::HaController]
9512
+ #
9513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9516
+ def get_ha_controller(project, region, ha_controller, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9517
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
9518
+ command.response_representation = Google::Apis::ComputeAlpha::HaController::Representation
9519
+ command.response_class = Google::Apis::ComputeAlpha::HaController
9520
+ command.params['project'] = project unless project.nil?
9521
+ command.params['region'] = region unless region.nil?
9522
+ command.params['haController'] = ha_controller unless ha_controller.nil?
9523
+ command.query['fields'] = fields unless fields.nil?
9524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9525
+ command.query['userIp'] = user_ip unless user_ip.nil?
9526
+ execute_or_queue_command(command, &block)
9527
+ end
9528
+
9529
+ # Creates HaController in the specified project.
9530
+ # @param [String] project
9531
+ # Project ID for this request.
9532
+ # @param [String] region
9533
+ # Name of the region for this request.
9534
+ # @param [Google::Apis::ComputeAlpha::HaController] ha_controller_object
9535
+ # @param [String] request_id
9536
+ # An optional request ID to identify requests. Specify a unique request ID so
9537
+ # that if you must retry your request, the server will know to ignore the
9538
+ # request if it has already been completed.
9539
+ # @param [String] fields
9540
+ # Selector specifying which fields to include in a partial response.
9541
+ # @param [String] quota_user
9542
+ # Available to use for quota purposes for server-side applications. Can be any
9543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9544
+ # @param [String] user_ip
9545
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9546
+ # @param [Google::Apis::RequestOptions] options
9547
+ # Request-specific options
9548
+ #
9549
+ # @yield [result, err] Result & error if block supplied
9550
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9551
+ # @yieldparam err [StandardError] error object if request failed
9552
+ #
9553
+ # @return [Google::Apis::ComputeAlpha::Operation]
9554
+ #
9555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9558
+ def insert_ha_controller(project, region, ha_controller_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9559
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers', options)
9560
+ command.request_representation = Google::Apis::ComputeAlpha::HaController::Representation
9561
+ command.request_object = ha_controller_object
9562
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9563
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9564
+ command.params['project'] = project unless project.nil?
9565
+ command.params['region'] = region unless region.nil?
9566
+ command.query['requestId'] = request_id unless request_id.nil?
9567
+ command.query['fields'] = fields unless fields.nil?
9568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9569
+ command.query['userIp'] = user_ip unless user_ip.nil?
9570
+ execute_or_queue_command(command, &block)
9571
+ end
9572
+
9573
+ # Lists all HaControllers in the specified project in the specified region.
9574
+ # @param [String] project
9575
+ # Project ID for this request.
9576
+ # @param [String] region
9577
+ # Name of the region for this request.
9578
+ # @param [String] filter
9579
+ # A filter expression that filters resources listed in the response. Most
9580
+ # Compute resources support two types of filter expressions: expressions that
9581
+ # support regular expressions and expressions that follow API improvement
9582
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
9583
+ # request. If you want to use AIP-160, your expression must specify the field
9584
+ # name, an operator, and the value that you want to use for filtering. The value
9585
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
9586
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
9587
+ # Engine instances, you can exclude instances named `example-instance` by
9588
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
9589
+ # whether a key has been defined. For example, to find all objects with `owner`
9590
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
9591
+ # example, you could specify `scheduling.automaticRestart = false` to include
9592
+ # instances only if they are not scheduled for automatic restarts. You can use
9593
+ # filtering on nested fields to filter based on resource labels. To filter on
9594
+ # multiple expressions, provide each separate expression within parentheses. For
9595
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
9596
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
9597
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
9598
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
9599
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
9600
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
9601
+ # un-parenthesized expression with or without quotes or against multiple
9602
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
9603
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
9604
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
9605
+ # interpreted as a regular expression using Google RE2 library syntax. The
9606
+ # literal value must match the entire field. For example, to filter for
9607
+ # instances that do not end with name "instance", you would use `name ne .*
9608
+ # instance`. You cannot combine constraints on multiple fields using regular
9609
+ # expressions.
9610
+ # @param [Fixnum] max_results
9611
+ # The maximum number of results per page that should be returned. If the number
9612
+ # of available results is larger than `maxResults`, Compute Engine returns a `
9613
+ # nextPageToken` that can be used to get the next page of results in subsequent
9614
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
9615
+ # @param [String] order_by
9616
+ # Sorts list results by a certain order. By default, results are returned in
9617
+ # alphanumerical order based on the resource name. You can also sort results in
9618
+ # descending order based on the creation timestamp using `orderBy="
9619
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
9620
+ # field in reverse chronological order (newest result first). Use this to sort
9621
+ # resources like operations so that the newest operation is returned first.
9622
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
9623
+ # @param [String] page_token
9624
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
9625
+ # by a previous list request to get the next page of results.
9626
+ # @param [Boolean] return_partial_success
9627
+ # Opt-in for partial success behavior which provides partial results in case of
9628
+ # failure. The default value is false. For example, when partial success
9629
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
9630
+ # resources in the zone or no resources, with an error code.
9631
+ # @param [String] fields
9632
+ # Selector specifying which fields to include in a partial response.
9633
+ # @param [String] quota_user
9634
+ # Available to use for quota purposes for server-side applications. Can be any
9635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9636
+ # @param [String] user_ip
9637
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9638
+ # @param [Google::Apis::RequestOptions] options
9639
+ # Request-specific options
9640
+ #
9641
+ # @yield [result, err] Result & error if block supplied
9642
+ # @yieldparam result [Google::Apis::ComputeAlpha::HaControllersList] parsed result object
9643
+ # @yieldparam err [StandardError] error object if request failed
9644
+ #
9645
+ # @return [Google::Apis::ComputeAlpha::HaControllersList]
9646
+ #
9647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9650
+ def list_ha_controllers(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)
9651
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/haControllers', options)
9652
+ command.response_representation = Google::Apis::ComputeAlpha::HaControllersList::Representation
9653
+ command.response_class = Google::Apis::ComputeAlpha::HaControllersList
9654
+ command.params['project'] = project unless project.nil?
9655
+ command.params['region'] = region unless region.nil?
9656
+ command.query['filter'] = filter unless filter.nil?
9657
+ command.query['maxResults'] = max_results unless max_results.nil?
9658
+ command.query['orderBy'] = order_by unless order_by.nil?
9659
+ command.query['pageToken'] = page_token unless page_token.nil?
9660
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
9661
+ command.query['fields'] = fields unless fields.nil?
9662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9663
+ command.query['userIp'] = user_ip unless user_ip.nil?
9664
+ execute_or_queue_command(command, &block)
9665
+ end
9666
+
9667
+ # Updates HaController in the specified project.
9668
+ # @param [String] project
9669
+ # Project ID for this request.
9670
+ # @param [String] region
9671
+ # Name of the region for this request.
9672
+ # @param [String] ha_controller
9673
+ # ID of the HaController resource to update.
9674
+ # @param [Google::Apis::ComputeAlpha::HaController] ha_controller_object
9675
+ # @param [String] request_id
9676
+ # An optional request ID to identify requests. Specify a unique request ID so
9677
+ # that if you must retry your request, the server will know to ignore the
9678
+ # request if it has already been completed.
9679
+ # @param [String] update_mask
9680
+ # update_mask indicates fields to be updated as part of this request.
9681
+ # @param [String] fields
9682
+ # Selector specifying which fields to include in a partial response.
9683
+ # @param [String] quota_user
9684
+ # Available to use for quota purposes for server-side applications. Can be any
9685
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9686
+ # @param [String] user_ip
9687
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9688
+ # @param [Google::Apis::RequestOptions] options
9689
+ # Request-specific options
9690
+ #
9691
+ # @yield [result, err] Result & error if block supplied
9692
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9693
+ # @yieldparam err [StandardError] error object if request failed
9694
+ #
9695
+ # @return [Google::Apis::ComputeAlpha::Operation]
9696
+ #
9697
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9698
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9699
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9700
+ def patch_ha_controller(project, region, ha_controller, ha_controller_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9701
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
9702
+ command.request_representation = Google::Apis::ComputeAlpha::HaController::Representation
9703
+ command.request_object = ha_controller_object
9704
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9705
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9706
+ command.params['project'] = project unless project.nil?
9707
+ command.params['region'] = region unless region.nil?
9708
+ command.params['haController'] = ha_controller unless ha_controller.nil?
9709
+ command.query['requestId'] = request_id unless request_id.nil?
9710
+ command.query['updateMask'] = update_mask unless update_mask.nil?
9711
+ command.query['fields'] = fields unless fields.nil?
9712
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9713
+ command.query['userIp'] = user_ip unless user_ip.nil?
9714
+ execute_or_queue_command(command, &block)
9715
+ end
9716
+
9365
9717
  # Retrieves the list of all HealthCheck resources, regional and global,
9366
9718
  # available to the specified project. To prevent failure, Google recommends that
9367
9719
  # you set the `returnPartialSuccess` parameter to `true`.
@@ -30634,12 +30986,12 @@ module Google
30634
30986
  # commitments. The request ID must be a valid UUID with the exception that zero
30635
30987
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30636
30988
  # @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.
30989
+ # Optional. Name of the snapshot after the recovery The name will be 1-63
30990
+ # characters long, and comply with RFC1035. Specifically, the name will be 1-63
30991
+ # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
30992
+ # which means the first character will be a lowercase letter, and all following
30993
+ # characters can be a dash, lowercase letter, or digit, except the last
30994
+ # character, which cannot be a dash.
30643
30995
  # @param [String] fields
30644
30996
  # Selector specifying which fields to include in a partial response.
30645
30997
  # @param [String] quota_user
@@ -34527,6 +34879,111 @@ module Google
34527
34879
  execute_or_queue_command(command, &block)
34528
34880
  end
34529
34881
 
34882
+ # Retrieves the list of all HealthAggregationPolicy resources, regional and
34883
+ # global, available to the specified project. To prevent failure, Google
34884
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
34885
+ # @param [String] project
34886
+ # Name of the project scoping this request.
34887
+ # @param [String] filter
34888
+ # A filter expression that filters resources listed in the response. Most
34889
+ # Compute resources support two types of filter expressions: expressions that
34890
+ # support regular expressions and expressions that follow API improvement
34891
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
34892
+ # request. If you want to use AIP-160, your expression must specify the field
34893
+ # name, an operator, and the value that you want to use for filtering. The value
34894
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
34895
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
34896
+ # Engine instances, you can exclude instances named `example-instance` by
34897
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
34898
+ # whether a key has been defined. For example, to find all objects with `owner`
34899
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
34900
+ # example, you could specify `scheduling.automaticRestart = false` to include
34901
+ # instances only if they are not scheduled for automatic restarts. You can use
34902
+ # filtering on nested fields to filter based on resource labels. To filter on
34903
+ # multiple expressions, provide each separate expression within parentheses. For
34904
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
34905
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
34906
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
34907
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
34908
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
34909
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
34910
+ # un-parenthesized expression with or without quotes or against multiple
34911
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
34912
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
34913
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
34914
+ # interpreted as a regular expression using Google RE2 library syntax. The
34915
+ # literal value must match the entire field. For example, to filter for
34916
+ # instances that do not end with name "instance", you would use `name ne .*
34917
+ # instance`. You cannot combine constraints on multiple fields using regular
34918
+ # expressions.
34919
+ # @param [Boolean] include_all_scopes
34920
+ # Indicates whether every visible scope for each scope type (zone, region,
34921
+ # global) should be included in the response. For new resource types added after
34922
+ # this field, the flag has no effect as new resource types will always include
34923
+ # every visible scope for each scope type in response. For resource types which
34924
+ # predate this field, if this flag is omitted or false, only scopes of the scope
34925
+ # types where the resource type is expected to be found will be included.
34926
+ # @param [Fixnum] max_results
34927
+ # The maximum number of results per page that should be returned. If the number
34928
+ # of available results is larger than `maxResults`, Compute Engine returns a `
34929
+ # nextPageToken` that can be used to get the next page of results in subsequent
34930
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
34931
+ # @param [String] order_by
34932
+ # Sorts list results by a certain order. By default, results are returned in
34933
+ # alphanumerical order based on the resource name. You can also sort results in
34934
+ # descending order based on the creation timestamp using `orderBy="
34935
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
34936
+ # field in reverse chronological order (newest result first). Use this to sort
34937
+ # resources like operations so that the newest operation is returned first.
34938
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
34939
+ # @param [String] page_token
34940
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
34941
+ # by a previous list request to get the next page of results.
34942
+ # @param [Boolean] return_partial_success
34943
+ # Opt-in for partial success behavior which provides partial results in case of
34944
+ # failure. The default value is false. For example, when partial success
34945
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
34946
+ # resources in the zone or no resources, with an error code.
34947
+ # @param [Fixnum] service_project_number
34948
+ # The Shared VPC service project id or service project number for which
34949
+ # aggregated list request is invoked for subnetworks list-usable api.
34950
+ # @param [String] fields
34951
+ # Selector specifying which fields to include in a partial response.
34952
+ # @param [String] quota_user
34953
+ # Available to use for quota purposes for server-side applications. Can be any
34954
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34955
+ # @param [String] user_ip
34956
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34957
+ # @param [Google::Apis::RequestOptions] options
34958
+ # Request-specific options
34959
+ #
34960
+ # @yield [result, err] Result & error if block supplied
34961
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList] parsed result object
34962
+ # @yieldparam err [StandardError] error object if request failed
34963
+ #
34964
+ # @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList]
34965
+ #
34966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34969
+ def aggregated_region_health_aggregation_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34970
+ command = make_simple_command(:get, 'projects/{project}/aggregated/healthAggregationPolicies', options)
34971
+ command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList::Representation
34972
+ command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList
34973
+ command.params['project'] = project unless project.nil?
34974
+ command.query['filter'] = filter unless filter.nil?
34975
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
34976
+ command.query['maxResults'] = max_results unless max_results.nil?
34977
+ command.query['orderBy'] = order_by unless order_by.nil?
34978
+ command.query['pageToken'] = page_token unless page_token.nil?
34979
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
34980
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
34981
+ command.query['fields'] = fields unless fields.nil?
34982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34983
+ command.query['userIp'] = user_ip unless user_ip.nil?
34984
+ execute_or_queue_command(command, &block)
34985
+ end
34986
+
34530
34987
  # Deletes the specified HealthAggregationPolicy in the given region.
34531
34988
  # @param [String] project
34532
34989
  # Project ID for this request.
@@ -45910,6 +46367,64 @@ module Google
45910
46367
  execute_or_queue_command(command, &block)
45911
46368
  end
45912
46369
 
46370
+ # Allows customers to report a faulty subBlock.
46371
+ # @param [String] project
46372
+ # Project ID for this request.
46373
+ # @param [String] zone
46374
+ # Name of the zone for this request. Zone name should conform to RFC1035.
46375
+ # @param [String] parent_name
46376
+ # The name of the parent reservation and parent block. In the format of
46377
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
46378
+ # @param [String] reservation_sub_block
46379
+ # The name of the reservation subBlock. Name should conform to RFC1035 or be a
46380
+ # resource ID.
46381
+ # @param [Google::Apis::ComputeAlpha::ReservationSubBlocksReportFaultyRequest] reservation_sub_blocks_report_faulty_request_object
46382
+ # @param [String] request_id
46383
+ # An optional request ID to identify requests. Specify a unique request ID so
46384
+ # that if you must retry your request, the server will know to ignore the
46385
+ # request if it has already been completed. For example, consider a situation
46386
+ # where you make an initial request and the request times out. If you make the
46387
+ # request again with the same request ID, the server can check if original
46388
+ # operation with the same request ID was received, and if so, will ignore the
46389
+ # second request. This prevents clients from accidentally creating duplicate
46390
+ # commitments. The request ID must be a valid UUID with the exception that zero
46391
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
46392
+ # @param [String] fields
46393
+ # Selector specifying which fields to include in a partial response.
46394
+ # @param [String] quota_user
46395
+ # Available to use for quota purposes for server-side applications. Can be any
46396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46397
+ # @param [String] user_ip
46398
+ # Legacy name for parameter that has been superseded by `quotaUser`.
46399
+ # @param [Google::Apis::RequestOptions] options
46400
+ # Request-specific options
46401
+ #
46402
+ # @yield [result, err] Result & error if block supplied
46403
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
46404
+ # @yieldparam err [StandardError] error object if request failed
46405
+ #
46406
+ # @return [Google::Apis::ComputeAlpha::Operation]
46407
+ #
46408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
46409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
46410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
46411
+ def report_reservation_sub_block_faulty(project, zone, parent_name, reservation_sub_block, reservation_sub_blocks_report_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
46412
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty', options)
46413
+ command.request_representation = Google::Apis::ComputeAlpha::ReservationSubBlocksReportFaultyRequest::Representation
46414
+ command.request_object = reservation_sub_blocks_report_faulty_request_object
46415
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
46416
+ command.response_class = Google::Apis::ComputeAlpha::Operation
46417
+ command.params['project'] = project unless project.nil?
46418
+ command.params['zone'] = zone unless zone.nil?
46419
+ command.params['parentName'] = parent_name unless parent_name.nil?
46420
+ command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
46421
+ command.query['requestId'] = request_id unless request_id.nil?
46422
+ command.query['fields'] = fields unless fields.nil?
46423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
46424
+ command.query['userIp'] = user_ip unless user_ip.nil?
46425
+ execute_or_queue_command(command, &block)
46426
+ end
46427
+
45913
46428
  # Retrieves an aggregated list of reservations. To prevent failure, Google
45914
46429
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
45915
46430
  # @param [String] project
@@ -59901,6 +60416,292 @@ module Google
59901
60416
  execute_or_queue_command(command, &block)
59902
60417
  end
59903
60418
 
60419
+ # Deletes a specified zone VM extension policy.
60420
+ # @param [String] project
60421
+ # Project ID for this request.
60422
+ # @param [String] zone
60423
+ # Name of the zone for this request.
60424
+ # @param [String] vm_extension_policy
60425
+ # Name of the zone VM extension policy to delete.
60426
+ # @param [String] request_id
60427
+ # An optional request ID to identify requests. Specify a unique request ID so
60428
+ # that if you must retry your request, the server will know to ignore the
60429
+ # request if it has already been completed. For example, consider a situation
60430
+ # where you make an initial request and the request times out. If you make the
60431
+ # request again with the same request ID, the server can check if original
60432
+ # operation with the same request ID was received, and if so, will ignore the
60433
+ # second request. This prevents clients from accidentally creating duplicate
60434
+ # commitments. The request ID must be a valid UUID with the exception that zero
60435
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
60436
+ # @param [String] fields
60437
+ # Selector specifying which fields to include in a partial response.
60438
+ # @param [String] quota_user
60439
+ # Available to use for quota purposes for server-side applications. Can be any
60440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60441
+ # @param [String] user_ip
60442
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60443
+ # @param [Google::Apis::RequestOptions] options
60444
+ # Request-specific options
60445
+ #
60446
+ # @yield [result, err] Result & error if block supplied
60447
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
60448
+ # @yieldparam err [StandardError] error object if request failed
60449
+ #
60450
+ # @return [Google::Apis::ComputeAlpha::Operation]
60451
+ #
60452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60455
+ def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60456
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
60457
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
60458
+ command.response_class = Google::Apis::ComputeAlpha::Operation
60459
+ command.params['project'] = project unless project.nil?
60460
+ command.params['zone'] = zone unless zone.nil?
60461
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
60462
+ command.query['requestId'] = request_id unless request_id.nil?
60463
+ command.query['fields'] = fields unless fields.nil?
60464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60465
+ command.query['userIp'] = user_ip unless user_ip.nil?
60466
+ execute_or_queue_command(command, &block)
60467
+ end
60468
+
60469
+ # Retrieves details of a specific zone VM extension policy.
60470
+ # @param [String] project
60471
+ # Project ID for this request.
60472
+ # @param [String] zone
60473
+ # Name of the zone for this request.
60474
+ # @param [String] vm_extension_policy
60475
+ # Name of the VM extension policy resource to return.
60476
+ # @param [String] fields
60477
+ # Selector specifying which fields to include in a partial response.
60478
+ # @param [String] quota_user
60479
+ # Available to use for quota purposes for server-side applications. Can be any
60480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60481
+ # @param [String] user_ip
60482
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60483
+ # @param [Google::Apis::RequestOptions] options
60484
+ # Request-specific options
60485
+ #
60486
+ # @yield [result, err] Result & error if block supplied
60487
+ # @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionPolicy] parsed result object
60488
+ # @yieldparam err [StandardError] error object if request failed
60489
+ #
60490
+ # @return [Google::Apis::ComputeAlpha::VmExtensionPolicy]
60491
+ #
60492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60495
+ def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60496
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
60497
+ command.response_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
60498
+ command.response_class = Google::Apis::ComputeAlpha::VmExtensionPolicy
60499
+ command.params['project'] = project unless project.nil?
60500
+ command.params['zone'] = zone unless zone.nil?
60501
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
60502
+ command.query['fields'] = fields unless fields.nil?
60503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60504
+ command.query['userIp'] = user_ip unless user_ip.nil?
60505
+ execute_or_queue_command(command, &block)
60506
+ end
60507
+
60508
+ # Creates a new zone-level VM extension policy within a project.
60509
+ # @param [String] project
60510
+ # Project ID for this request.
60511
+ # @param [String] zone
60512
+ # Name of the zone for this request.
60513
+ # @param [Google::Apis::ComputeAlpha::VmExtensionPolicy] vm_extension_policy_object
60514
+ # @param [String] request_id
60515
+ # An optional request ID to identify requests. Specify a unique request ID so
60516
+ # that if you must retry your request, the server will know to ignore the
60517
+ # request if it has already been completed. For example, consider a situation
60518
+ # where you make an initial request and the request times out. If you make the
60519
+ # request again with the same request ID, the server can check if original
60520
+ # operation with the same request ID was received, and if so, will ignore the
60521
+ # second request. This prevents clients from accidentally creating duplicate
60522
+ # commitments. The request ID must be a valid UUID with the exception that zero
60523
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
60524
+ # @param [String] fields
60525
+ # Selector specifying which fields to include in a partial response.
60526
+ # @param [String] quota_user
60527
+ # Available to use for quota purposes for server-side applications. Can be any
60528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60529
+ # @param [String] user_ip
60530
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60531
+ # @param [Google::Apis::RequestOptions] options
60532
+ # Request-specific options
60533
+ #
60534
+ # @yield [result, err] Result & error if block supplied
60535
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
60536
+ # @yieldparam err [StandardError] error object if request failed
60537
+ #
60538
+ # @return [Google::Apis::ComputeAlpha::Operation]
60539
+ #
60540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60543
+ def insert_zone_vm_extension_policy(project, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60544
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
60545
+ command.request_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
60546
+ command.request_object = vm_extension_policy_object
60547
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
60548
+ command.response_class = Google::Apis::ComputeAlpha::Operation
60549
+ command.params['project'] = project unless project.nil?
60550
+ command.params['zone'] = zone unless zone.nil?
60551
+ command.query['requestId'] = request_id unless request_id.nil?
60552
+ command.query['fields'] = fields unless fields.nil?
60553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60554
+ command.query['userIp'] = user_ip unless user_ip.nil?
60555
+ execute_or_queue_command(command, &block)
60556
+ end
60557
+
60558
+ # Lists all VM extension policies within a specific zone for a project.
60559
+ # @param [String] project
60560
+ # Project ID for this request.
60561
+ # @param [String] zone
60562
+ # Name of the zone for this request.
60563
+ # @param [String] filter
60564
+ # A filter expression that filters resources listed in the response. Most
60565
+ # Compute resources support two types of filter expressions: expressions that
60566
+ # support regular expressions and expressions that follow API improvement
60567
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
60568
+ # request. If you want to use AIP-160, your expression must specify the field
60569
+ # name, an operator, and the value that you want to use for filtering. The value
60570
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
60571
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
60572
+ # Engine instances, you can exclude instances named `example-instance` by
60573
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
60574
+ # whether a key has been defined. For example, to find all objects with `owner`
60575
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
60576
+ # example, you could specify `scheduling.automaticRestart = false` to include
60577
+ # instances only if they are not scheduled for automatic restarts. You can use
60578
+ # filtering on nested fields to filter based on resource labels. To filter on
60579
+ # multiple expressions, provide each separate expression within parentheses. For
60580
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
60581
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
60582
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
60583
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
60584
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
60585
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
60586
+ # un-parenthesized expression with or without quotes or against multiple
60587
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
60588
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
60589
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
60590
+ # interpreted as a regular expression using Google RE2 library syntax. The
60591
+ # literal value must match the entire field. For example, to filter for
60592
+ # instances that do not end with name "instance", you would use `name ne .*
60593
+ # instance`. You cannot combine constraints on multiple fields using regular
60594
+ # expressions.
60595
+ # @param [Fixnum] max_results
60596
+ # The maximum number of results per page that should be returned. If the number
60597
+ # of available results is larger than `maxResults`, Compute Engine returns a `
60598
+ # nextPageToken` that can be used to get the next page of results in subsequent
60599
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
60600
+ # @param [String] order_by
60601
+ # Sorts list results by a certain order. By default, results are returned in
60602
+ # alphanumerical order based on the resource name. You can also sort results in
60603
+ # descending order based on the creation timestamp using `orderBy="
60604
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
60605
+ # field in reverse chronological order (newest result first). Use this to sort
60606
+ # resources like operations so that the newest operation is returned first.
60607
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
60608
+ # @param [String] page_token
60609
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
60610
+ # by a previous list request to get the next page of results.
60611
+ # @param [Boolean] return_partial_success
60612
+ # Opt-in for partial success behavior which provides partial results in case of
60613
+ # failure. The default value is false. For example, when partial success
60614
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
60615
+ # resources in the zone or no resources, with an error code.
60616
+ # @param [String] fields
60617
+ # Selector specifying which fields to include in a partial response.
60618
+ # @param [String] quota_user
60619
+ # Available to use for quota purposes for server-side applications. Can be any
60620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60621
+ # @param [String] user_ip
60622
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60623
+ # @param [Google::Apis::RequestOptions] options
60624
+ # Request-specific options
60625
+ #
60626
+ # @yield [result, err] Result & error if block supplied
60627
+ # @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionPolicyList] parsed result object
60628
+ # @yieldparam err [StandardError] error object if request failed
60629
+ #
60630
+ # @return [Google::Apis::ComputeAlpha::VmExtensionPolicyList]
60631
+ #
60632
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60633
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60634
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60635
+ def list_zone_vm_extension_policies(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60636
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
60637
+ command.response_representation = Google::Apis::ComputeAlpha::VmExtensionPolicyList::Representation
60638
+ command.response_class = Google::Apis::ComputeAlpha::VmExtensionPolicyList
60639
+ command.params['project'] = project unless project.nil?
60640
+ command.params['zone'] = zone unless zone.nil?
60641
+ command.query['filter'] = filter unless filter.nil?
60642
+ command.query['maxResults'] = max_results unless max_results.nil?
60643
+ command.query['orderBy'] = order_by unless order_by.nil?
60644
+ command.query['pageToken'] = page_token unless page_token.nil?
60645
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
60646
+ command.query['fields'] = fields unless fields.nil?
60647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60648
+ command.query['userIp'] = user_ip unless user_ip.nil?
60649
+ execute_or_queue_command(command, &block)
60650
+ end
60651
+
60652
+ # Modifies an existing zone VM extension policy.
60653
+ # @param [String] project
60654
+ # Project ID for this request.
60655
+ # @param [String] zone
60656
+ # Name of the zone for this request.
60657
+ # @param [String] vm_extension_policy
60658
+ # Name of the zone VM extension policy to update.
60659
+ # @param [Google::Apis::ComputeAlpha::VmExtensionPolicy] vm_extension_policy_object
60660
+ # @param [String] request_id
60661
+ # An optional request ID to identify requests. Specify a unique request ID so
60662
+ # that if you must retry your request, the server will know to ignore the
60663
+ # request if it has already been completed. For example, consider a situation
60664
+ # where you make an initial request and the request times out. If you make the
60665
+ # request again with the same request ID, the server can check if original
60666
+ # operation with the same request ID was received, and if so, will ignore the
60667
+ # second request. This prevents clients from accidentally creating duplicate
60668
+ # commitments. The request ID must be a valid UUID with the exception that zero
60669
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
60670
+ # @param [String] fields
60671
+ # Selector specifying which fields to include in a partial response.
60672
+ # @param [String] quota_user
60673
+ # Available to use for quota purposes for server-side applications. Can be any
60674
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60675
+ # @param [String] user_ip
60676
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60677
+ # @param [Google::Apis::RequestOptions] options
60678
+ # Request-specific options
60679
+ #
60680
+ # @yield [result, err] Result & error if block supplied
60681
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
60682
+ # @yieldparam err [StandardError] error object if request failed
60683
+ #
60684
+ # @return [Google::Apis::ComputeAlpha::Operation]
60685
+ #
60686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60689
+ def update_zone_vm_extension_policy(project, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60690
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
60691
+ command.request_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
60692
+ command.request_object = vm_extension_policy_object
60693
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
60694
+ command.response_class = Google::Apis::ComputeAlpha::Operation
60695
+ command.params['project'] = project unless project.nil?
60696
+ command.params['zone'] = zone unless zone.nil?
60697
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
60698
+ command.query['requestId'] = request_id unless request_id.nil?
60699
+ command.query['fields'] = fields unless fields.nil?
60700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60701
+ command.query['userIp'] = user_ip unless user_ip.nil?
60702
+ execute_or_queue_command(command, &block)
60703
+ end
60704
+
59904
60705
  # Returns the specified Zone resource.
59905
60706
  # @param [String] project
59906
60707
  # Project ID for this request.