google-apis-compute_v1 0.91.0 → 0.93.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9376,6 +9376,322 @@ module Google
9376
9376
  execute_or_queue_command(command, &block)
9377
9377
  end
9378
9378
 
9379
+ # Cancels the specified resize request and removes it from the queue. Cancelled
9380
+ # resize request does no longer wait for the resources to be provisioned. Cancel
9381
+ # is only possible for requests that are accepted in the queue.
9382
+ # @param [String] project
9383
+ # Project ID for this request.
9384
+ # @param [String] zone
9385
+ # The name of the zone where the managed instance group is located. The name
9386
+ # should conform to RFC1035.
9387
+ # @param [String] instance_group_manager
9388
+ # The name of the managed instance group. The name should conform to RFC1035 or
9389
+ # be a resource ID.
9390
+ # @param [String] resize_request
9391
+ # The name of the resize request to cancel. The name should conform to RFC1035
9392
+ # or be a resource ID.
9393
+ # @param [String] request_id
9394
+ # An optional request ID to identify requests. Specify a unique request ID so
9395
+ # that if you must retry your request, the server will know to ignore the
9396
+ # request if it has already been completed. For example, consider a situation
9397
+ # where you make an initial request and the request times out. If you make the
9398
+ # request again with the same request ID, the server can check if original
9399
+ # operation with the same request ID was received, and if so, will ignore the
9400
+ # second request. This prevents clients from accidentally creating duplicate
9401
+ # commitments. The request ID must be a valid UUID with the exception that zero
9402
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9403
+ # @param [String] fields
9404
+ # Selector specifying which fields to include in a partial response.
9405
+ # @param [String] quota_user
9406
+ # Available to use for quota purposes for server-side applications. Can be any
9407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9408
+ # @param [String] user_ip
9409
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9410
+ # @param [Google::Apis::RequestOptions] options
9411
+ # Request-specific options
9412
+ #
9413
+ # @yield [result, err] Result & error if block supplied
9414
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
9415
+ # @yieldparam err [StandardError] error object if request failed
9416
+ #
9417
+ # @return [Google::Apis::ComputeV1::Operation]
9418
+ #
9419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9422
+ def cancel_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9423
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
9424
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
9425
+ command.response_class = Google::Apis::ComputeV1::Operation
9426
+ command.params['project'] = project unless project.nil?
9427
+ command.params['zone'] = zone unless zone.nil?
9428
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9429
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9430
+ command.query['requestId'] = request_id unless request_id.nil?
9431
+ command.query['fields'] = fields unless fields.nil?
9432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9433
+ command.query['userIp'] = user_ip unless user_ip.nil?
9434
+ execute_or_queue_command(command, &block)
9435
+ end
9436
+
9437
+ # Deletes the specified, inactive resize request. Requests that are still active
9438
+ # cannot be deleted. Deleting request does not delete instances that were
9439
+ # provisioned previously.
9440
+ # @param [String] project
9441
+ # Project ID for this request.
9442
+ # @param [String] zone
9443
+ # The name of the zone where the managed instance group is located. The name
9444
+ # should conform to RFC1035.
9445
+ # @param [String] instance_group_manager
9446
+ # The name of the managed instance group. The name should conform to RFC1035 or
9447
+ # be a resource ID.
9448
+ # @param [String] resize_request
9449
+ # The name of the resize request to delete. The name should conform to RFC1035
9450
+ # or be a resource ID.
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. For example, consider a situation
9455
+ # where you make an initial request and the request times out. If you make the
9456
+ # request again with the same request ID, the server can check if original
9457
+ # operation with the same request ID was received, and if so, will ignore the
9458
+ # second request. This prevents clients from accidentally creating duplicate
9459
+ # commitments. The request ID must be a valid UUID with the exception that zero
9460
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9461
+ # @param [String] fields
9462
+ # Selector specifying which fields to include in a partial response.
9463
+ # @param [String] quota_user
9464
+ # Available to use for quota purposes for server-side applications. Can be any
9465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9466
+ # @param [String] user_ip
9467
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9468
+ # @param [Google::Apis::RequestOptions] options
9469
+ # Request-specific options
9470
+ #
9471
+ # @yield [result, err] Result & error if block supplied
9472
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
9473
+ # @yieldparam err [StandardError] error object if request failed
9474
+ #
9475
+ # @return [Google::Apis::ComputeV1::Operation]
9476
+ #
9477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9480
+ def delete_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9481
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9482
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
9483
+ command.response_class = Google::Apis::ComputeV1::Operation
9484
+ command.params['project'] = project unless project.nil?
9485
+ command.params['zone'] = zone unless zone.nil?
9486
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9487
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9488
+ command.query['requestId'] = request_id unless request_id.nil?
9489
+ command.query['fields'] = fields unless fields.nil?
9490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9491
+ command.query['userIp'] = user_ip unless user_ip.nil?
9492
+ execute_or_queue_command(command, &block)
9493
+ end
9494
+
9495
+ # Returns all of the details about the specified resize request.
9496
+ # @param [String] project
9497
+ # Project ID for this request.
9498
+ # @param [String] zone
9499
+ # Name of the href="/compute/docs/regions-zones/#available">zone scoping this
9500
+ # request. Name should conform to RFC1035.
9501
+ # @param [String] instance_group_manager
9502
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
9503
+ # resource ID.
9504
+ # @param [String] resize_request
9505
+ # The name of the resize request. Name should conform to RFC1035 or be a
9506
+ # resource ID.
9507
+ # @param [String] fields
9508
+ # Selector specifying which fields to include in a partial response.
9509
+ # @param [String] quota_user
9510
+ # Available to use for quota purposes for server-side applications. Can be any
9511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9512
+ # @param [String] user_ip
9513
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9514
+ # @param [Google::Apis::RequestOptions] options
9515
+ # Request-specific options
9516
+ #
9517
+ # @yield [result, err] Result & error if block supplied
9518
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest] parsed result object
9519
+ # @yieldparam err [StandardError] error object if request failed
9520
+ #
9521
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest]
9522
+ #
9523
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9524
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9525
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9526
+ def get_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9527
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9528
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest::Representation
9529
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest
9530
+ command.params['project'] = project unless project.nil?
9531
+ command.params['zone'] = zone unless zone.nil?
9532
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9533
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9534
+ command.query['fields'] = fields unless fields.nil?
9535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9536
+ command.query['userIp'] = user_ip unless user_ip.nil?
9537
+ execute_or_queue_command(command, &block)
9538
+ end
9539
+
9540
+ # Creates a new resize request that starts provisioning VMs immediately or
9541
+ # queues VM creation.
9542
+ # @param [String] project
9543
+ # Project ID for this request.
9544
+ # @param [String] zone
9545
+ # The name of the zone where the managed instance group is located and where the
9546
+ # resize request will be created. Name should conform to RFC1035.
9547
+ # @param [String] instance_group_manager
9548
+ # The name of the managed instance group to which the resize request will be
9549
+ # added. Name should conform to RFC1035 or be a resource ID.
9550
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
9551
+ # @param [String] request_id
9552
+ # An optional request ID to identify requests. Specify a unique request ID so
9553
+ # that if you must retry your request, the server will know to ignore the
9554
+ # request if it has already been completed. For example, consider a situation
9555
+ # where you make an initial request and the request times out. If you make the
9556
+ # request again with the same request ID, the server can check if original
9557
+ # operation with the same request ID was received, and if so, will ignore the
9558
+ # second request. This prevents clients from accidentally creating duplicate
9559
+ # commitments. The request ID must be a valid UUID with the exception that zero
9560
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9561
+ # @param [String] fields
9562
+ # Selector specifying which fields to include in a partial response.
9563
+ # @param [String] quota_user
9564
+ # Available to use for quota purposes for server-side applications. Can be any
9565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9566
+ # @param [String] user_ip
9567
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9568
+ # @param [Google::Apis::RequestOptions] options
9569
+ # Request-specific options
9570
+ #
9571
+ # @yield [result, err] Result & error if block supplied
9572
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
9573
+ # @yieldparam err [StandardError] error object if request failed
9574
+ #
9575
+ # @return [Google::Apis::ComputeV1::Operation]
9576
+ #
9577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9580
+ def insert_instance_group_manager_resize_request(project, zone, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9581
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
9582
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequest::Representation
9583
+ command.request_object = instance_group_manager_resize_request_object
9584
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
9585
+ command.response_class = Google::Apis::ComputeV1::Operation
9586
+ command.params['project'] = project unless project.nil?
9587
+ command.params['zone'] = zone unless zone.nil?
9588
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9589
+ command.query['requestId'] = request_id unless request_id.nil?
9590
+ command.query['fields'] = fields unless fields.nil?
9591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9592
+ command.query['userIp'] = user_ip unless user_ip.nil?
9593
+ execute_or_queue_command(command, &block)
9594
+ end
9595
+
9596
+ # Retrieves a list of resize requests that are contained in the managed instance
9597
+ # group.
9598
+ # @param [String] project
9599
+ # Project ID for this request.
9600
+ # @param [String] zone
9601
+ # The name of the zone where the managed instance group is located. The name
9602
+ # should conform to RFC1035.
9603
+ # @param [String] instance_group_manager
9604
+ # The name of the managed instance group. The name should conform to RFC1035.
9605
+ # @param [String] filter
9606
+ # A filter expression that filters resources listed in the response. Most
9607
+ # Compute resources support two types of filter expressions: expressions that
9608
+ # support regular expressions and expressions that follow API improvement
9609
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
9610
+ # request. If you want to use AIP-160, your expression must specify the field
9611
+ # name, an operator, and the value that you want to use for filtering. The value
9612
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
9613
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
9614
+ # Engine instances, you can exclude instances named `example-instance` by
9615
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
9616
+ # whether a key has been defined. For example, to find all objects with `owner`
9617
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
9618
+ # example, you could specify `scheduling.automaticRestart = false` to include
9619
+ # instances only if they are not scheduled for automatic restarts. You can use
9620
+ # filtering on nested fields to filter based on resource labels. To filter on
9621
+ # multiple expressions, provide each separate expression within parentheses. For
9622
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
9623
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
9624
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
9625
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
9626
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
9627
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
9628
+ # un-parenthesized expression with or without quotes or against multiple
9629
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
9630
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
9631
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
9632
+ # interpreted as a regular expression using Google RE2 library syntax. The
9633
+ # literal value must match the entire field. For example, to filter for
9634
+ # instances that do not end with name "instance", you would use `name ne .*
9635
+ # instance`. You cannot combine constraints on multiple fields using regular
9636
+ # expressions.
9637
+ # @param [Fixnum] max_results
9638
+ # The maximum number of results per page that should be returned. If the number
9639
+ # of available results is larger than `maxResults`, Compute Engine returns a `
9640
+ # nextPageToken` that can be used to get the next page of results in subsequent
9641
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
9642
+ # @param [String] order_by
9643
+ # Sorts list results by a certain order. By default, results are returned in
9644
+ # alphanumerical order based on the resource name. You can also sort results in
9645
+ # descending order based on the creation timestamp using `orderBy="
9646
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
9647
+ # field in reverse chronological order (newest result first). Use this to sort
9648
+ # resources like operations so that the newest operation is returned first.
9649
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
9650
+ # @param [String] page_token
9651
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
9652
+ # by a previous list request to get the next page of results.
9653
+ # @param [Boolean] return_partial_success
9654
+ # Opt-in for partial success behavior which provides partial results in case of
9655
+ # failure. The default value is false. For example, when partial success
9656
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
9657
+ # resources in the zone or no resources, with an error code.
9658
+ # @param [String] fields
9659
+ # Selector specifying which fields to include in a partial response.
9660
+ # @param [String] quota_user
9661
+ # Available to use for quota purposes for server-side applications. Can be any
9662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9663
+ # @param [String] user_ip
9664
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9665
+ # @param [Google::Apis::RequestOptions] options
9666
+ # Request-specific options
9667
+ #
9668
+ # @yield [result, err] Result & error if block supplied
9669
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse] parsed result object
9670
+ # @yieldparam err [StandardError] error object if request failed
9671
+ #
9672
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse]
9673
+ #
9674
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9675
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9676
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9677
+ def list_instance_group_manager_resize_requests(project, zone, instance_group_manager, 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)
9678
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
9679
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse::Representation
9680
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerResizeRequestsListResponse
9681
+ command.params['project'] = project unless project.nil?
9682
+ command.params['zone'] = zone unless zone.nil?
9683
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9684
+ command.query['filter'] = filter unless filter.nil?
9685
+ command.query['maxResults'] = max_results unless max_results.nil?
9686
+ command.query['orderBy'] = order_by unless order_by.nil?
9687
+ command.query['pageToken'] = page_token unless page_token.nil?
9688
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
9689
+ command.query['fields'] = fields unless fields.nil?
9690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9691
+ command.query['userIp'] = user_ip unless user_ip.nil?
9692
+ execute_or_queue_command(command, &block)
9693
+ end
9694
+
9379
9695
  # Flags the specified instances to be removed from the managed instance group.
9380
9696
  # Abandoning an instance does not delete the instance, but it does remove the
9381
9697
  # instance from any target pools that are applied by the managed instance group.
@@ -11329,6 +11645,95 @@ module Google
11329
11645
  execute_or_queue_command(command, &block)
11330
11646
  end
11331
11647
 
11648
+ # Get Instance settings.
11649
+ # @param [String] project
11650
+ # Project ID for this request.
11651
+ # @param [String] zone
11652
+ # Name of the zone for this request.
11653
+ # @param [String] fields
11654
+ # Selector specifying which fields to include in a partial response.
11655
+ # @param [String] quota_user
11656
+ # Available to use for quota purposes for server-side applications. Can be any
11657
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11658
+ # @param [String] user_ip
11659
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11660
+ # @param [Google::Apis::RequestOptions] options
11661
+ # Request-specific options
11662
+ #
11663
+ # @yield [result, err] Result & error if block supplied
11664
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceSettings] parsed result object
11665
+ # @yieldparam err [StandardError] error object if request failed
11666
+ #
11667
+ # @return [Google::Apis::ComputeV1::InstanceSettings]
11668
+ #
11669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11672
+ def get_instance_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11673
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceSettings', options)
11674
+ command.response_representation = Google::Apis::ComputeV1::InstanceSettings::Representation
11675
+ command.response_class = Google::Apis::ComputeV1::InstanceSettings
11676
+ command.params['project'] = project unless project.nil?
11677
+ command.params['zone'] = zone unless zone.nil?
11678
+ command.query['fields'] = fields unless fields.nil?
11679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11680
+ command.query['userIp'] = user_ip unless user_ip.nil?
11681
+ execute_or_queue_command(command, &block)
11682
+ end
11683
+
11684
+ # Patch Instance settings
11685
+ # @param [String] project
11686
+ # Project ID for this request.
11687
+ # @param [String] zone
11688
+ # The zone scoping this request. It should conform to RFC1035.
11689
+ # @param [Google::Apis::ComputeV1::InstanceSettings] instance_settings_object
11690
+ # @param [String] request_id
11691
+ # An optional request ID to identify requests. Specify a unique request ID so
11692
+ # that if you must retry your request, the server will know to ignore the
11693
+ # request if it has already been completed. For example, consider a situation
11694
+ # where you make an initial request and the request times out. If you make the
11695
+ # request again with the same request ID, the server can check if original
11696
+ # operation with the same request ID was received, and if so, will ignore the
11697
+ # second request. This prevents clients from accidentally creating duplicate
11698
+ # commitments. The request ID must be a valid UUID with the exception that zero
11699
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11700
+ # @param [String] update_mask
11701
+ # update_mask indicates fields to be updated as part of this request.
11702
+ # @param [String] fields
11703
+ # Selector specifying which fields to include in a partial response.
11704
+ # @param [String] quota_user
11705
+ # Available to use for quota purposes for server-side applications. Can be any
11706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11707
+ # @param [String] user_ip
11708
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11709
+ # @param [Google::Apis::RequestOptions] options
11710
+ # Request-specific options
11711
+ #
11712
+ # @yield [result, err] Result & error if block supplied
11713
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11714
+ # @yieldparam err [StandardError] error object if request failed
11715
+ #
11716
+ # @return [Google::Apis::ComputeV1::Operation]
11717
+ #
11718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11721
+ def patch_instance_setting(project, zone, instance_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11722
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instanceSettings', options)
11723
+ command.request_representation = Google::Apis::ComputeV1::InstanceSettings::Representation
11724
+ command.request_object = instance_settings_object
11725
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11726
+ command.response_class = Google::Apis::ComputeV1::Operation
11727
+ command.params['project'] = project unless project.nil?
11728
+ command.params['zone'] = zone unless zone.nil?
11729
+ command.query['requestId'] = request_id unless request_id.nil?
11730
+ command.query['updateMask'] = update_mask unless update_mask.nil?
11731
+ command.query['fields'] = fields unless fields.nil?
11732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11733
+ command.query['userIp'] = user_ip unless user_ip.nil?
11734
+ execute_or_queue_command(command, &block)
11735
+ end
11736
+
11332
11737
  # Retrieves the list of all InstanceTemplates resources, regional and global,
11333
11738
  # available to the specified project. To prevent failure, Google recommends that
11334
11739
  # you set the `returnPartialSuccess` parameter to `true`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.91.0
4
+ version: 0.93.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-10 00:00:00.000000000 Z
11
+ date: 2024-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.91.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.93.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []