google-apis-compute_beta 0.146.0 → 0.147.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.
@@ -3774,6 +3774,373 @@ module Google
3774
3774
  execute_or_queue_command(command, &block)
3775
3775
  end
3776
3776
 
3777
+ # Deletes the specified DhcpOptionsConfig in the given location
3778
+ # @param [String] project
3779
+ # Project ID for this request.
3780
+ # @param [String] region
3781
+ # Name of the region of this request.
3782
+ # @param [String] dhcp_options_config
3783
+ # Name of the DhcpOptionsConfig resource to delete.
3784
+ # @param [String] request_id
3785
+ # An optional request ID to identify requests. Specify a unique request ID so
3786
+ # that if you must retry your request, the server will know to ignore the
3787
+ # request if it has already been completed.
3788
+ # For example, consider a situation where you make an initial request and
3789
+ # the request times out. If you make the request again with the same
3790
+ # request ID, the server can check if original operation with the same
3791
+ # request ID was received, and if so, will ignore the second request. This
3792
+ # prevents clients from accidentally creating duplicate commitments.
3793
+ # The request ID must be
3794
+ # a valid UUID with the exception that zero UUID is not supported
3795
+ # (00000000-0000-0000-0000-000000000000).
3796
+ # end_interface: MixerMutationRequestBuilder
3797
+ # @param [String] fields
3798
+ # Selector specifying which fields to include in a partial response.
3799
+ # @param [String] quota_user
3800
+ # Available to use for quota purposes for server-side applications. Can be any
3801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3802
+ # @param [String] user_ip
3803
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3804
+ # @param [Google::Apis::RequestOptions] options
3805
+ # Request-specific options
3806
+ #
3807
+ # @yield [result, err] Result & error if block supplied
3808
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3809
+ # @yieldparam err [StandardError] error object if request failed
3810
+ #
3811
+ # @return [Google::Apis::ComputeBeta::Operation]
3812
+ #
3813
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3814
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3815
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3816
+ def delete_dhcp_options_config(project, region, dhcp_options_config, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3817
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
3818
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3819
+ command.response_class = Google::Apis::ComputeBeta::Operation
3820
+ command.params['project'] = project unless project.nil?
3821
+ command.params['region'] = region unless region.nil?
3822
+ command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
3823
+ command.query['requestId'] = request_id unless request_id.nil?
3824
+ command.query['fields'] = fields unless fields.nil?
3825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3826
+ command.query['userIp'] = user_ip unless user_ip.nil?
3827
+ execute_or_queue_command(command, &block)
3828
+ end
3829
+
3830
+ # Returns the specified DhcpOptionsConfig resource in the given location.
3831
+ # @param [String] project
3832
+ # Project ID for this request.
3833
+ # @param [String] region
3834
+ # Name of the region of this request.
3835
+ # @param [String] dhcp_options_config
3836
+ # Name of the DhcpOptionsConfig resource to return.
3837
+ # @param [String] fields
3838
+ # Selector specifying which fields to include in a partial response.
3839
+ # @param [String] quota_user
3840
+ # Available to use for quota purposes for server-side applications. Can be any
3841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3842
+ # @param [String] user_ip
3843
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3844
+ # @param [Google::Apis::RequestOptions] options
3845
+ # Request-specific options
3846
+ #
3847
+ # @yield [result, err] Result & error if block supplied
3848
+ # @yieldparam result [Google::Apis::ComputeBeta::DhcpOptionsConfig] parsed result object
3849
+ # @yieldparam err [StandardError] error object if request failed
3850
+ #
3851
+ # @return [Google::Apis::ComputeBeta::DhcpOptionsConfig]
3852
+ #
3853
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3854
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3855
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3856
+ def get_dhcp_options_config(project, region, dhcp_options_config, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3857
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
3858
+ command.response_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
3859
+ command.response_class = Google::Apis::ComputeBeta::DhcpOptionsConfig
3860
+ command.params['project'] = project unless project.nil?
3861
+ command.params['region'] = region unless region.nil?
3862
+ command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
3863
+ command.query['fields'] = fields unless fields.nil?
3864
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3865
+ command.query['userIp'] = user_ip unless user_ip.nil?
3866
+ execute_or_queue_command(command, &block)
3867
+ end
3868
+
3869
+ # Creates a DhcpOptionsConfig in the specified project in the given location
3870
+ # using the parameters that are included in the request.
3871
+ # @param [String] project
3872
+ # Project ID for this request.
3873
+ # @param [String] region
3874
+ # Name of the region of this request.
3875
+ # @param [Google::Apis::ComputeBeta::DhcpOptionsConfig] dhcp_options_config_object
3876
+ # @param [String] request_id
3877
+ # An optional request ID to identify requests. Specify a unique request ID so
3878
+ # that if you must retry your request, the server will know to ignore the
3879
+ # request if it has already been completed.
3880
+ # For example, consider a situation where you make an initial request and
3881
+ # the request times out. If you make the request again with the same
3882
+ # request ID, the server can check if original operation with the same
3883
+ # request ID was received, and if so, will ignore the second request. This
3884
+ # prevents clients from accidentally creating duplicate commitments.
3885
+ # The request ID must be
3886
+ # a valid UUID with the exception that zero UUID is not supported
3887
+ # (00000000-0000-0000-0000-000000000000).
3888
+ # end_interface: MixerMutationRequestBuilder
3889
+ # @param [String] fields
3890
+ # Selector specifying which fields to include in a partial response.
3891
+ # @param [String] quota_user
3892
+ # Available to use for quota purposes for server-side applications. Can be any
3893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3894
+ # @param [String] user_ip
3895
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3896
+ # @param [Google::Apis::RequestOptions] options
3897
+ # Request-specific options
3898
+ #
3899
+ # @yield [result, err] Result & error if block supplied
3900
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3901
+ # @yieldparam err [StandardError] error object if request failed
3902
+ #
3903
+ # @return [Google::Apis::ComputeBeta::Operation]
3904
+ #
3905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3908
+ def insert_dhcp_options_config(project, region, dhcp_options_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3909
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
3910
+ command.request_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
3911
+ command.request_object = dhcp_options_config_object
3912
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3913
+ command.response_class = Google::Apis::ComputeBeta::Operation
3914
+ command.params['project'] = project unless project.nil?
3915
+ command.params['region'] = region unless region.nil?
3916
+ command.query['requestId'] = request_id unless request_id.nil?
3917
+ command.query['fields'] = fields unless fields.nil?
3918
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3919
+ command.query['userIp'] = user_ip unless user_ip.nil?
3920
+ execute_or_queue_command(command, &block)
3921
+ end
3922
+
3923
+ # Lists the DhcpOptionsConfigs for a project in the given location.
3924
+ # @param [String] project
3925
+ # Project ID for this request.
3926
+ # @param [String] region
3927
+ # Name of the region of this request.
3928
+ # @param [String] filter
3929
+ # A filter expression that filters resources listed in the response. Most
3930
+ # Compute resources support two types of filter expressions:
3931
+ # expressions that support regular expressions and expressions that follow
3932
+ # API improvement proposal AIP-160.
3933
+ # These two types of filter expressions cannot be mixed in one request.
3934
+ # If you want to use AIP-160, your expression must specify the field name, an
3935
+ # operator, and the value that you want to use for filtering. The value
3936
+ # must be a string, a number, or a boolean. The operator
3937
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
3938
+ # For example, if you are filtering Compute Engine instances, you can
3939
+ # exclude instances named `example-instance` by specifying
3940
+ # `name != example-instance`.
3941
+ # The `:*` comparison can be used to test whether a key has been defined.
3942
+ # For example, to find all objects with `owner` label use:
3943
+ # ```
3944
+ # labels.owner:*
3945
+ # ```
3946
+ # You can also filter nested fields. For example, you could specify
3947
+ # `scheduling.automaticRestart = false` to include instances only
3948
+ # if they are not scheduled for automatic restarts. You can use filtering
3949
+ # on nested fields to filter based onresource labels.
3950
+ # To filter on multiple expressions, provide each separate expression within
3951
+ # parentheses. For example:
3952
+ # ```
3953
+ # (scheduling.automaticRestart = true)
3954
+ # (cpuPlatform = "Intel Skylake")
3955
+ # ```
3956
+ # By default, each expression is an `AND` expression. However, you
3957
+ # can include `AND` and `OR` expressions explicitly.
3958
+ # For example:
3959
+ # ```
3960
+ # (cpuPlatform = "Intel Skylake") OR
3961
+ # (cpuPlatform = "Intel Broadwell") AND
3962
+ # (scheduling.automaticRestart = true)
3963
+ # ```
3964
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
3965
+ # (not equal) operator against a single un-parenthesized expression with or
3966
+ # without quotes or against multiple parenthesized expressions. Examples:
3967
+ # `fieldname eq unquoted literal`
3968
+ # `fieldname eq 'single quoted literal'`
3969
+ # `fieldname eq "double quoted literal"`
3970
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
3971
+ # The literal value is interpreted as a regular expression using GoogleRE2
3972
+ # library syntax.
3973
+ # The literal value must match the entire field.
3974
+ # For example, to filter for instances that do not end with name "instance",
3975
+ # you would use `name ne .*instance`.
3976
+ # You cannot combine constraints on multiple fields using regular
3977
+ # expressions.
3978
+ # @param [Fixnum] max_results
3979
+ # The maximum number of results per page that should be returned.
3980
+ # If the number of available results is larger than `maxResults`,
3981
+ # Compute Engine returns a `nextPageToken` that can be used to get
3982
+ # the next page of results in subsequent list requests. Acceptable values are
3983
+ # `0` to `500`, inclusive. (Default: `500`)
3984
+ # @param [String] order_by
3985
+ # Sorts list results by a certain order. By default, results
3986
+ # are returned in alphanumerical order based on the resource name.
3987
+ # You can also sort results in descending order based on the creation
3988
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
3989
+ # results based on the `creationTimestamp` field in
3990
+ # reverse chronological order (newest result first). Use this to sort
3991
+ # resources like operations so that the newest operation is returned first.
3992
+ # Currently, only sorting by `name` or
3993
+ # `creationTimestamp desc` is supported.
3994
+ # @param [String] page_token
3995
+ # Specifies a page token to use. Set `pageToken` to the
3996
+ # `nextPageToken` returned by a previous list request to get
3997
+ # the next page of results.
3998
+ # @param [Boolean] return_partial_success
3999
+ # Opt-in for partial success behavior which provides partial results in case
4000
+ # of failure. The default value is false.
4001
+ # For example, when partial success behavior is enabled, aggregatedList for a
4002
+ # single zone scope either returns all resources in the zone or no resources,
4003
+ # with an error code.
4004
+ # @param [String] fields
4005
+ # Selector specifying which fields to include in a partial response.
4006
+ # @param [String] quota_user
4007
+ # Available to use for quota purposes for server-side applications. Can be any
4008
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4009
+ # @param [String] user_ip
4010
+ # Legacy name for parameter that has been superseded by `quotaUser`.
4011
+ # @param [Google::Apis::RequestOptions] options
4012
+ # Request-specific options
4013
+ #
4014
+ # @yield [result, err] Result & error if block supplied
4015
+ # @yieldparam result [Google::Apis::ComputeBeta::DhcpOptionsConfigList] parsed result object
4016
+ # @yieldparam err [StandardError] error object if request failed
4017
+ #
4018
+ # @return [Google::Apis::ComputeBeta::DhcpOptionsConfigList]
4019
+ #
4020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4023
+ def list_dhcp_options_configs(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)
4024
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
4025
+ command.response_representation = Google::Apis::ComputeBeta::DhcpOptionsConfigList::Representation
4026
+ command.response_class = Google::Apis::ComputeBeta::DhcpOptionsConfigList
4027
+ command.params['project'] = project unless project.nil?
4028
+ command.params['region'] = region unless region.nil?
4029
+ command.query['filter'] = filter unless filter.nil?
4030
+ command.query['maxResults'] = max_results unless max_results.nil?
4031
+ command.query['orderBy'] = order_by unless order_by.nil?
4032
+ command.query['pageToken'] = page_token unless page_token.nil?
4033
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
4034
+ command.query['fields'] = fields unless fields.nil?
4035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4036
+ command.query['userIp'] = user_ip unless user_ip.nil?
4037
+ execute_or_queue_command(command, &block)
4038
+ end
4039
+
4040
+ # Patches the specified DhcpOptionsConfig resource with the data included in
4041
+ # the request. This method supports PATCH
4042
+ # semantics and usesJSON merge
4043
+ # patch format and processing rules.
4044
+ # @param [String] project
4045
+ # Project ID for this request.
4046
+ # @param [String] region
4047
+ # Name of the region for this request.
4048
+ # @param [String] dhcp_options_config
4049
+ # Name of the DhcpOptionsConfig resource to patch.
4050
+ # @param [Google::Apis::ComputeBeta::DhcpOptionsConfig] dhcp_options_config_object
4051
+ # @param [String] request_id
4052
+ # An optional request ID to identify requests. Specify a unique request ID so
4053
+ # that if you must retry your request, the server will know to ignore the
4054
+ # request if it has already been completed.
4055
+ # For example, consider a situation where you make an initial request and
4056
+ # the request times out. If you make the request again with the same
4057
+ # request ID, the server can check if original operation with the same
4058
+ # request ID was received, and if so, will ignore the second request. This
4059
+ # prevents clients from accidentally creating duplicate commitments.
4060
+ # The request ID must be
4061
+ # a valid UUID with the exception that zero UUID is not supported
4062
+ # (00000000-0000-0000-0000-000000000000).
4063
+ # end_interface: MixerMutationRequestBuilder
4064
+ # @param [String] update_mask
4065
+ # update_mask indicates fields to be updated as part of this request.
4066
+ # @param [String] fields
4067
+ # Selector specifying which fields to include in a partial response.
4068
+ # @param [String] quota_user
4069
+ # Available to use for quota purposes for server-side applications. Can be any
4070
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4071
+ # @param [String] user_ip
4072
+ # Legacy name for parameter that has been superseded by `quotaUser`.
4073
+ # @param [Google::Apis::RequestOptions] options
4074
+ # Request-specific options
4075
+ #
4076
+ # @yield [result, err] Result & error if block supplied
4077
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4078
+ # @yieldparam err [StandardError] error object if request failed
4079
+ #
4080
+ # @return [Google::Apis::ComputeBeta::Operation]
4081
+ #
4082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4085
+ def patch_dhcp_options_config(project, region, dhcp_options_config, dhcp_options_config_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4086
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
4087
+ command.request_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
4088
+ command.request_object = dhcp_options_config_object
4089
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4090
+ command.response_class = Google::Apis::ComputeBeta::Operation
4091
+ command.params['project'] = project unless project.nil?
4092
+ command.params['region'] = region unless region.nil?
4093
+ command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
4094
+ command.query['requestId'] = request_id unless request_id.nil?
4095
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4096
+ command.query['fields'] = fields unless fields.nil?
4097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4098
+ command.query['userIp'] = user_ip unless user_ip.nil?
4099
+ execute_or_queue_command(command, &block)
4100
+ end
4101
+
4102
+ # Returns permissions that a caller has on the specified resource.
4103
+ # @param [String] project
4104
+ # Project ID for this request.
4105
+ # @param [String] region
4106
+ # The name of the region for this request.
4107
+ # @param [String] resource
4108
+ # Name or id of the resource for this request.
4109
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
4110
+ # @param [String] fields
4111
+ # Selector specifying which fields to include in a partial response.
4112
+ # @param [String] quota_user
4113
+ # Available to use for quota purposes for server-side applications. Can be any
4114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4115
+ # @param [String] user_ip
4116
+ # Legacy name for parameter that has been superseded by `quotaUser`.
4117
+ # @param [Google::Apis::RequestOptions] options
4118
+ # Request-specific options
4119
+ #
4120
+ # @yield [result, err] Result & error if block supplied
4121
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
4122
+ # @yieldparam err [StandardError] error object if request failed
4123
+ #
4124
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
4125
+ #
4126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4129
+ def test_dhcp_options_config_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4130
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions', options)
4131
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
4132
+ command.request_object = test_permissions_request_object
4133
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
4134
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
4135
+ command.params['project'] = project unless project.nil?
4136
+ command.params['region'] = region unless region.nil?
4137
+ command.params['resource'] = resource unless resource.nil?
4138
+ command.query['fields'] = fields unless fields.nil?
4139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4140
+ command.query['userIp'] = user_ip unless user_ip.nil?
4141
+ execute_or_queue_command(command, &block)
4142
+ end
4143
+
3777
4144
  # Get Zonal Disk Settings.
3778
4145
  # @param [String] project
3779
4146
  # Project ID for this request.
@@ -9074,6 +9441,78 @@ module Google
9074
9441
  execute_or_queue_command(command, &block)
9075
9442
  end
9076
9443
 
9444
+ # Gets the Global Frontend Billing Bundle Settings for a project.
9445
+ # @param [String] project
9446
+ # @param [String] fields
9447
+ # Selector specifying which fields to include in a partial response.
9448
+ # @param [String] quota_user
9449
+ # Available to use for quota purposes for server-side applications. Can be any
9450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9451
+ # @param [String] user_ip
9452
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9453
+ # @param [Google::Apis::RequestOptions] options
9454
+ # Request-specific options
9455
+ #
9456
+ # @yield [result, err] Result & error if block supplied
9457
+ # @yieldparam result [Google::Apis::ComputeBeta::GlobalFrontendSettings] parsed result object
9458
+ # @yieldparam err [StandardError] error object if request failed
9459
+ #
9460
+ # @return [Google::Apis::ComputeBeta::GlobalFrontendSettings]
9461
+ #
9462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9465
+ def get_global_frontend_setting(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9466
+ command = make_simple_command(:get, 'projects/{project}/global/globalFrontendSettings', options)
9467
+ command.response_representation = Google::Apis::ComputeBeta::GlobalFrontendSettings::Representation
9468
+ command.response_class = Google::Apis::ComputeBeta::GlobalFrontendSettings
9469
+ command.params['project'] = project unless project.nil?
9470
+ command.query['fields'] = fields unless fields.nil?
9471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9472
+ command.query['userIp'] = user_ip unless user_ip.nil?
9473
+ execute_or_queue_command(command, &block)
9474
+ end
9475
+
9476
+ # Updates the Global Frontend Billing Bundle Settings for a project.
9477
+ # @param [String] project
9478
+ # @param [Google::Apis::ComputeBeta::GlobalFrontendSettings] global_frontend_settings_object
9479
+ # @param [String] request_id
9480
+ # @param [String] update_mask
9481
+ # e.g., "type"
9482
+ # @param [String] fields
9483
+ # Selector specifying which fields to include in a partial response.
9484
+ # @param [String] quota_user
9485
+ # Available to use for quota purposes for server-side applications. Can be any
9486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9487
+ # @param [String] user_ip
9488
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9489
+ # @param [Google::Apis::RequestOptions] options
9490
+ # Request-specific options
9491
+ #
9492
+ # @yield [result, err] Result & error if block supplied
9493
+ # @yieldparam result [Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse] parsed result object
9494
+ # @yieldparam err [StandardError] error object if request failed
9495
+ #
9496
+ # @return [Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse]
9497
+ #
9498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9501
+ def patch_global_frontend_setting(project, global_frontend_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9502
+ command = make_simple_command(:patch, 'projects/{project}/global/globalFrontendSettings', options)
9503
+ command.request_representation = Google::Apis::ComputeBeta::GlobalFrontendSettings::Representation
9504
+ command.request_object = global_frontend_settings_object
9505
+ command.response_representation = Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse::Representation
9506
+ command.response_class = Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse
9507
+ command.params['project'] = project unless project.nil?
9508
+ command.query['requestId'] = request_id unless request_id.nil?
9509
+ command.query['updateMask'] = update_mask unless update_mask.nil?
9510
+ command.query['fields'] = fields unless fields.nil?
9511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9512
+ command.query['userIp'] = user_ip unless user_ip.nil?
9513
+ execute_or_queue_command(command, &block)
9514
+ end
9515
+
9077
9516
  # Attach a network endpoint to the specified network endpoint group.
9078
9517
  # @param [String] project
9079
9518
  # Project ID for this request.
@@ -17982,6 +18421,49 @@ module Google
17982
18421
  execute_or_queue_command(command, &block)
17983
18422
  end
17984
18423
 
18424
+ # Retrieves details of a specific VM extension state.
18425
+ # This is a read-only API.
18426
+ # @param [String] project
18427
+ # Project ID for this request.
18428
+ # @param [String] zone
18429
+ # Name of the zone for this request.
18430
+ # @param [String] instance
18431
+ # Name or id of the instance resource.
18432
+ # @param [String] extension_name
18433
+ # The name of the extension to get the state for.
18434
+ # @param [String] fields
18435
+ # Selector specifying which fields to include in a partial response.
18436
+ # @param [String] quota_user
18437
+ # Available to use for quota purposes for server-side applications. Can be any
18438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18439
+ # @param [String] user_ip
18440
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18441
+ # @param [Google::Apis::RequestOptions] options
18442
+ # Request-specific options
18443
+ #
18444
+ # @yield [result, err] Result & error if block supplied
18445
+ # @yieldparam result [Google::Apis::ComputeBeta::VmExtensionState] parsed result object
18446
+ # @yieldparam err [StandardError] error object if request failed
18447
+ #
18448
+ # @return [Google::Apis::ComputeBeta::VmExtensionState]
18449
+ #
18450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18453
+ def get_instance_vm_extension_state(project, zone, instance, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18454
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}', options)
18455
+ command.response_representation = Google::Apis::ComputeBeta::VmExtensionState::Representation
18456
+ command.response_class = Google::Apis::ComputeBeta::VmExtensionState
18457
+ command.params['project'] = project unless project.nil?
18458
+ command.params['zone'] = zone unless zone.nil?
18459
+ command.params['instance'] = instance unless instance.nil?
18460
+ command.params['extensionName'] = extension_name unless extension_name.nil?
18461
+ command.query['fields'] = fields unless fields.nil?
18462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18463
+ command.query['userIp'] = user_ip unless user_ip.nil?
18464
+ execute_or_queue_command(command, &block)
18465
+ end
18466
+
17985
18467
  # Creates an instance resource in the specified project using the data
17986
18468
  # included in the request.
17987
18469
  # @param [String] project
@@ -18303,26 +18785,90 @@ module Google
18303
18785
  execute_or_queue_command(command, &block)
18304
18786
  end
18305
18787
 
18306
- # Patches partner metadata of the specified instance.
18788
+ # Lists all VM extensions states for a specific instance.
18789
+ # This is a read-only API.
18307
18790
  # @param [String] project
18308
18791
  # Project ID for this request.
18309
18792
  # @param [String] zone
18310
- # The name of the zone for this request.
18793
+ # Required. Name of the zone for this request.
18311
18794
  # @param [String] instance
18312
- # Name of the instance scoping this request.
18313
- # @param [Google::Apis::ComputeBeta::PartnerMetadata] partner_metadata_object
18314
- # @param [String] request_id
18315
- # An optional request ID to identify requests. Specify a unique request ID so
18316
- # that if you must retry your request, the server will know to ignore the
18317
- # request if it has already been completed.
18318
- # For example, consider a situation where you make an initial request and
18319
- # the request times out. If you make the request again with the same
18320
- # request ID, the server can check if original operation with the same
18321
- # request ID was received, and if so, will ignore the second request. This
18322
- # prevents clients from accidentally creating duplicate commitments.
18323
- # The request ID must be
18324
- # a valid UUID with the exception that zero UUID is not supported
18325
- # (00000000-0000-0000-0000-000000000000).
18795
+ # Name of the target instance scoping this request.
18796
+ # @param [String] filter
18797
+ # A filter expression that filters resources listed in the response. Most
18798
+ # Compute resources support two types of filter expressions:
18799
+ # expressions that support regular expressions and expressions that follow
18800
+ # API improvement proposal AIP-160.
18801
+ # These two types of filter expressions cannot be mixed in one request.
18802
+ # If you want to use AIP-160, your expression must specify the field name, an
18803
+ # operator, and the value that you want to use for filtering. The value
18804
+ # must be a string, a number, or a boolean. The operator
18805
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
18806
+ # For example, if you are filtering Compute Engine instances, you can
18807
+ # exclude instances named `example-instance` by specifying
18808
+ # `name != example-instance`.
18809
+ # The `:*` comparison can be used to test whether a key has been defined.
18810
+ # For example, to find all objects with `owner` label use:
18811
+ # ```
18812
+ # labels.owner:*
18813
+ # ```
18814
+ # You can also filter nested fields. For example, you could specify
18815
+ # `scheduling.automaticRestart = false` to include instances only
18816
+ # if they are not scheduled for automatic restarts. You can use filtering
18817
+ # on nested fields to filter based onresource labels.
18818
+ # To filter on multiple expressions, provide each separate expression within
18819
+ # parentheses. For example:
18820
+ # ```
18821
+ # (scheduling.automaticRestart = true)
18822
+ # (cpuPlatform = "Intel Skylake")
18823
+ # ```
18824
+ # By default, each expression is an `AND` expression. However, you
18825
+ # can include `AND` and `OR` expressions explicitly.
18826
+ # For example:
18827
+ # ```
18828
+ # (cpuPlatform = "Intel Skylake") OR
18829
+ # (cpuPlatform = "Intel Broadwell") AND
18830
+ # (scheduling.automaticRestart = true)
18831
+ # ```
18832
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
18833
+ # (not equal) operator against a single un-parenthesized expression with or
18834
+ # without quotes or against multiple parenthesized expressions. Examples:
18835
+ # `fieldname eq unquoted literal`
18836
+ # `fieldname eq 'single quoted literal'`
18837
+ # `fieldname eq "double quoted literal"`
18838
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
18839
+ # The literal value is interpreted as a regular expression using GoogleRE2
18840
+ # library syntax.
18841
+ # The literal value must match the entire field.
18842
+ # For example, to filter for instances that do not end with name "instance",
18843
+ # you would use `name ne .*instance`.
18844
+ # You cannot combine constraints on multiple fields using regular
18845
+ # expressions.
18846
+ # @param [Fixnum] max_results
18847
+ # The maximum number of results per page that should be returned.
18848
+ # If the number of available results is larger than `maxResults`,
18849
+ # Compute Engine returns a `nextPageToken` that can be used to get
18850
+ # the next page of results in subsequent list requests. Acceptable values are
18851
+ # `0` to `500`, inclusive. (Default: `500`)
18852
+ # @param [String] order_by
18853
+ # Sorts list results by a certain order. By default, results
18854
+ # are returned in alphanumerical order based on the resource name.
18855
+ # You can also sort results in descending order based on the creation
18856
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
18857
+ # results based on the `creationTimestamp` field in
18858
+ # reverse chronological order (newest result first). Use this to sort
18859
+ # resources like operations so that the newest operation is returned first.
18860
+ # Currently, only sorting by `name` or
18861
+ # `creationTimestamp desc` is supported.
18862
+ # @param [String] page_token
18863
+ # Specifies a page token to use. Set `pageToken` to the
18864
+ # `nextPageToken` returned by a previous list request to get
18865
+ # the next page of results.
18866
+ # @param [Boolean] return_partial_success
18867
+ # Opt-in for partial success behavior which provides partial results in case
18868
+ # of failure. The default value is false.
18869
+ # For example, when partial success behavior is enabled, aggregatedList for a
18870
+ # single zone scope either returns all resources in the zone or no resources,
18871
+ # with an error code.
18326
18872
  # @param [String] fields
18327
18873
  # Selector specifying which fields to include in a partial response.
18328
18874
  # @param [String] quota_user
@@ -18334,37 +18880,40 @@ module Google
18334
18880
  # Request-specific options
18335
18881
  #
18336
18882
  # @yield [result, err] Result & error if block supplied
18337
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18883
+ # @yieldparam result [Google::Apis::ComputeBeta::ListVmExtensionStatesResponse] parsed result object
18338
18884
  # @yieldparam err [StandardError] error object if request failed
18339
18885
  #
18340
- # @return [Google::Apis::ComputeBeta::Operation]
18886
+ # @return [Google::Apis::ComputeBeta::ListVmExtensionStatesResponse]
18341
18887
  #
18342
18888
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18343
18889
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18344
18890
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18345
- def patch_instance_partner_metadata(project, zone, instance, partner_metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18346
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata', options)
18347
- command.request_representation = Google::Apis::ComputeBeta::PartnerMetadata::Representation
18348
- command.request_object = partner_metadata_object
18349
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18350
- command.response_class = Google::Apis::ComputeBeta::Operation
18891
+ def list_instance_vm_extension_states(project, zone, instance, 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)
18892
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates', options)
18893
+ command.response_representation = Google::Apis::ComputeBeta::ListVmExtensionStatesResponse::Representation
18894
+ command.response_class = Google::Apis::ComputeBeta::ListVmExtensionStatesResponse
18351
18895
  command.params['project'] = project unless project.nil?
18352
18896
  command.params['zone'] = zone unless zone.nil?
18353
18897
  command.params['instance'] = instance unless instance.nil?
18354
- command.query['requestId'] = request_id unless request_id.nil?
18898
+ command.query['filter'] = filter unless filter.nil?
18899
+ command.query['maxResults'] = max_results unless max_results.nil?
18900
+ command.query['orderBy'] = order_by unless order_by.nil?
18901
+ command.query['pageToken'] = page_token unless page_token.nil?
18902
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
18355
18903
  command.query['fields'] = fields unless fields.nil?
18356
18904
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18357
18905
  command.query['userIp'] = user_ip unless user_ip.nil?
18358
18906
  execute_or_queue_command(command, &block)
18359
18907
  end
18360
18908
 
18361
- # Perform a manual maintenance on the instance.
18909
+ # Patches partner metadata of the specified instance.
18362
18910
  # @param [String] project
18363
18911
  # Project ID for this request.
18364
18912
  # @param [String] zone
18365
18913
  # The name of the zone for this request.
18366
18914
  # @param [String] instance
18367
18915
  # Name of the instance scoping this request.
18916
+ # @param [Google::Apis::ComputeBeta::PartnerMetadata] partner_metadata_object
18368
18917
  # @param [String] request_id
18369
18918
  # An optional request ID to identify requests. Specify a unique request ID so
18370
18919
  # that if you must retry your request, the server will know to ignore the
@@ -18396,63 +18945,10 @@ module Google
18396
18945
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18397
18946
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18398
18947
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18399
- def perform_instance_maintenance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18400
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/performMaintenance', options)
18401
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18402
- command.response_class = Google::Apis::ComputeBeta::Operation
18403
- command.params['project'] = project unless project.nil?
18404
- command.params['zone'] = zone unless zone.nil?
18405
- command.params['instance'] = instance unless instance.nil?
18406
- command.query['requestId'] = request_id unless request_id.nil?
18407
- command.query['fields'] = fields unless fields.nil?
18408
- command.query['quotaUser'] = quota_user unless quota_user.nil?
18409
- command.query['userIp'] = user_ip unless user_ip.nil?
18410
- execute_or_queue_command(command, &block)
18411
- end
18412
-
18413
- # Removes resource policies from an instance.
18414
- # @param [String] project
18415
- # Project ID for this request.
18416
- # @param [String] zone
18417
- # The name of the zone for this request.
18418
- # @param [String] instance
18419
- # The instance name for this request.
18420
- # @param [Google::Apis::ComputeBeta::InstancesRemoveResourcePoliciesRequest] instances_remove_resource_policies_request_object
18421
- # @param [String] request_id
18422
- # An optional request ID to identify requests. Specify a unique request ID so
18423
- # that if you must retry your request, the server will know to ignore the
18424
- # request if it has already been completed.
18425
- # For example, consider a situation where you make an initial request and
18426
- # the request times out. If you make the request again with the same
18427
- # request ID, the server can check if original operation with the same
18428
- # request ID was received, and if so, will ignore the second request. This
18429
- # prevents clients from accidentally creating duplicate commitments.
18430
- # The request ID must be
18431
- # a valid UUID with the exception that zero UUID is not supported
18432
- # (00000000-0000-0000-0000-000000000000).
18433
- # @param [String] fields
18434
- # Selector specifying which fields to include in a partial response.
18435
- # @param [String] quota_user
18436
- # Available to use for quota purposes for server-side applications. Can be any
18437
- # arbitrary string assigned to a user, but should not exceed 40 characters.
18438
- # @param [String] user_ip
18439
- # Legacy name for parameter that has been superseded by `quotaUser`.
18440
- # @param [Google::Apis::RequestOptions] options
18441
- # Request-specific options
18442
- #
18443
- # @yield [result, err] Result & error if block supplied
18444
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18445
- # @yieldparam err [StandardError] error object if request failed
18446
- #
18447
- # @return [Google::Apis::ComputeBeta::Operation]
18448
- #
18449
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18450
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18451
- # @raise [Google::Apis::AuthorizationError] Authorization is required
18452
- def remove_instance_resource_policies(project, zone, instance, instances_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18453
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies', options)
18454
- command.request_representation = Google::Apis::ComputeBeta::InstancesRemoveResourcePoliciesRequest::Representation
18455
- command.request_object = instances_remove_resource_policies_request_object
18948
+ def patch_instance_partner_metadata(project, zone, instance, partner_metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18949
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata', options)
18950
+ command.request_representation = Google::Apis::ComputeBeta::PartnerMetadata::Representation
18951
+ command.request_object = partner_metadata_object
18456
18952
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18457
18953
  command.response_class = Google::Apis::ComputeBeta::Operation
18458
18954
  command.params['project'] = project unless project.nil?
@@ -18465,14 +18961,13 @@ module Google
18465
18961
  execute_or_queue_command(command, &block)
18466
18962
  end
18467
18963
 
18468
- # Mark the host as faulty and try to restart the instance on a new host.
18964
+ # Perform a manual maintenance on the instance.
18469
18965
  # @param [String] project
18470
18966
  # Project ID for this request.
18471
18967
  # @param [String] zone
18472
18968
  # The name of the zone for this request.
18473
18969
  # @param [String] instance
18474
18970
  # Name of the instance scoping this request.
18475
- # @param [Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
18476
18971
  # @param [String] request_id
18477
18972
  # An optional request ID to identify requests. Specify a unique request ID so
18478
18973
  # that if you must retry your request, the server will know to ignore the
@@ -18504,10 +18999,8 @@ module Google
18504
18999
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18505
19000
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18506
19001
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18507
- def report_instance_host_as_faulty(project, zone, instance, instances_report_host_as_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18508
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
18509
- command.request_representation = Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest::Representation
18510
- command.request_object = instances_report_host_as_faulty_request_object
19002
+ def perform_instance_maintenance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19003
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/performMaintenance', options)
18511
19004
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18512
19005
  command.response_class = Google::Apis::ComputeBeta::Operation
18513
19006
  command.params['project'] = project unless project.nil?
@@ -18520,15 +19013,14 @@ module Google
18520
19013
  execute_or_queue_command(command, &block)
18521
19014
  end
18522
19015
 
18523
- # Performs a reset on the instance. This is a hard reset. The VM
18524
- # does not do a graceful shutdown. For more information, seeResetting
18525
- # an instance.
19016
+ # Removes resource policies from an instance.
18526
19017
  # @param [String] project
18527
19018
  # Project ID for this request.
18528
19019
  # @param [String] zone
18529
19020
  # The name of the zone for this request.
18530
19021
  # @param [String] instance
18531
- # Name of the instance scoping this request.
19022
+ # The instance name for this request.
19023
+ # @param [Google::Apis::ComputeBeta::InstancesRemoveResourcePoliciesRequest] instances_remove_resource_policies_request_object
18532
19024
  # @param [String] request_id
18533
19025
  # An optional request ID to identify requests. Specify a unique request ID so
18534
19026
  # that if you must retry your request, the server will know to ignore the
@@ -18560,8 +19052,10 @@ module Google
18560
19052
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18561
19053
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18562
19054
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18563
- def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18564
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options)
19055
+ def remove_instance_resource_policies(project, zone, instance, instances_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19056
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies', options)
19057
+ command.request_representation = Google::Apis::ComputeBeta::InstancesRemoveResourcePoliciesRequest::Representation
19058
+ command.request_object = instances_remove_resource_policies_request_object
18565
19059
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18566
19060
  command.response_class = Google::Apis::ComputeBeta::Operation
18567
19061
  command.params['project'] = project unless project.nil?
@@ -18574,15 +19068,14 @@ module Google
18574
19068
  execute_or_queue_command(command, &block)
18575
19069
  end
18576
19070
 
18577
- # Resumes an instance that was suspended using theinstances().suspend
18578
- # method.
19071
+ # Mark the host as faulty and try to restart the instance on a new host.
18579
19072
  # @param [String] project
18580
19073
  # Project ID for this request.
18581
19074
  # @param [String] zone
18582
19075
  # The name of the zone for this request.
18583
19076
  # @param [String] instance
18584
- # Name of the instance resource to resume.
18585
- # @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_object
19077
+ # Name of the instance scoping this request.
19078
+ # @param [Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
18586
19079
  # @param [String] request_id
18587
19080
  # An optional request ID to identify requests. Specify a unique request ID so
18588
19081
  # that if you must retry your request, the server will know to ignore the
@@ -18614,10 +19107,10 @@ module Google
18614
19107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18615
19108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18616
19109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18617
- def resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18618
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
18619
- command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
18620
- command.request_object = instances_resume_request_object
19110
+ def report_instance_host_as_faulty(project, zone, instance, instances_report_host_as_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19111
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
19112
+ command.request_representation = Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest::Representation
19113
+ command.request_object = instances_report_host_as_faulty_request_object
18621
19114
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18622
19115
  command.response_class = Google::Apis::ComputeBeta::Operation
18623
19116
  command.params['project'] = project unless project.nil?
@@ -18630,52 +19123,15 @@ module Google
18630
19123
  execute_or_queue_command(command, &block)
18631
19124
  end
18632
19125
 
18633
- # Sends diagnostic interrupt to the instance.
19126
+ # Performs a reset on the instance. This is a hard reset. The VM
19127
+ # does not do a graceful shutdown. For more information, seeResetting
19128
+ # an instance.
18634
19129
  # @param [String] project
18635
19130
  # Project ID for this request.
18636
19131
  # @param [String] zone
18637
19132
  # The name of the zone for this request.
18638
19133
  # @param [String] instance
18639
19134
  # Name of the instance scoping this request.
18640
- # @param [String] fields
18641
- # Selector specifying which fields to include in a partial response.
18642
- # @param [String] quota_user
18643
- # Available to use for quota purposes for server-side applications. Can be any
18644
- # arbitrary string assigned to a user, but should not exceed 40 characters.
18645
- # @param [String] user_ip
18646
- # Legacy name for parameter that has been superseded by `quotaUser`.
18647
- # @param [Google::Apis::RequestOptions] options
18648
- # Request-specific options
18649
- #
18650
- # @yield [result, err] Result & error if block supplied
18651
- # @yieldparam result [NilClass] No result returned for this method
18652
- # @yieldparam err [StandardError] error object if request failed
18653
- #
18654
- # @return [void]
18655
- #
18656
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18657
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18658
- # @raise [Google::Apis::AuthorizationError] Authorization is required
18659
- def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18660
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
18661
- command.params['project'] = project unless project.nil?
18662
- command.params['zone'] = zone unless zone.nil?
18663
- command.params['instance'] = instance unless instance.nil?
18664
- command.query['fields'] = fields unless fields.nil?
18665
- command.query['quotaUser'] = quota_user unless quota_user.nil?
18666
- command.query['userIp'] = user_ip unless user_ip.nil?
18667
- execute_or_queue_command(command, &block)
18668
- end
18669
-
18670
- # Sets deletion protection on the instance.
18671
- # @param [String] project
18672
- # Project ID for this request.
18673
- # @param [String] zone
18674
- # The name of the zone for this request.
18675
- # @param [String] resource
18676
- # Name or id of the resource for this request.
18677
- # @param [Boolean] deletion_protection
18678
- # Whether the resource should be protected against deletion.
18679
19135
  # @param [String] request_id
18680
19136
  # An optional request ID to identify requests. Specify a unique request ID so
18681
19137
  # that if you must retry your request, the server will know to ignore the
@@ -18707,14 +19163,13 @@ module Google
18707
19163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18708
19164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18709
19165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18710
- def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18711
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
19166
+ def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19167
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options)
18712
19168
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18713
19169
  command.response_class = Google::Apis::ComputeBeta::Operation
18714
19170
  command.params['project'] = project unless project.nil?
18715
19171
  command.params['zone'] = zone unless zone.nil?
18716
- command.params['resource'] = resource unless resource.nil?
18717
- command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
19172
+ command.params['instance'] = instance unless instance.nil?
18718
19173
  command.query['requestId'] = request_id unless request_id.nil?
18719
19174
  command.query['fields'] = fields unless fields.nil?
18720
19175
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -18722,18 +19177,15 @@ module Google
18722
19177
  execute_or_queue_command(command, &block)
18723
19178
  end
18724
19179
 
18725
- # Sets the auto-delete flag for a disk attached to an instance.
19180
+ # Resumes an instance that was suspended using theinstances().suspend
19181
+ # method.
18726
19182
  # @param [String] project
18727
19183
  # Project ID for this request.
18728
19184
  # @param [String] zone
18729
19185
  # The name of the zone for this request.
18730
19186
  # @param [String] instance
18731
- # The instance name for this request.
18732
- # @param [Boolean] auto_delete
18733
- # Whether to auto-delete the disk when the instance is deleted.
18734
- # @param [String] device_name
18735
- # The device name of the disk to modify. Make a get() request
18736
- # on the instance to view currently attached disks and device names.
19187
+ # Name of the instance resource to resume.
19188
+ # @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_object
18737
19189
  # @param [String] request_id
18738
19190
  # An optional request ID to identify requests. Specify a unique request ID so
18739
19191
  # that if you must retry your request, the server will know to ignore the
@@ -18765,15 +19217,15 @@ module Google
18765
19217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18766
19218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18767
19219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18768
- def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18769
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options)
19220
+ def resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19221
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
19222
+ command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
19223
+ command.request_object = instances_resume_request_object
18770
19224
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18771
19225
  command.response_class = Google::Apis::ComputeBeta::Operation
18772
19226
  command.params['project'] = project unless project.nil?
18773
19227
  command.params['zone'] = zone unless zone.nil?
18774
19228
  command.params['instance'] = instance unless instance.nil?
18775
- command.query['autoDelete'] = auto_delete unless auto_delete.nil?
18776
- command.query['deviceName'] = device_name unless device_name.nil?
18777
19229
  command.query['requestId'] = request_id unless request_id.nil?
18778
19230
  command.query['fields'] = fields unless fields.nil?
18779
19231
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -18781,15 +19233,13 @@ module Google
18781
19233
  execute_or_queue_command(command, &block)
18782
19234
  end
18783
19235
 
18784
- # Sets the access control policy on the specified resource.
18785
- # Replaces any existing policy.
19236
+ # Sends diagnostic interrupt to the instance.
18786
19237
  # @param [String] project
18787
19238
  # Project ID for this request.
18788
19239
  # @param [String] zone
18789
19240
  # The name of the zone for this request.
18790
- # @param [String] resource
18791
- # Name or id of the resource for this request.
18792
- # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
19241
+ # @param [String] instance
19242
+ # Name of the instance scoping this request.
18793
19243
  # @param [String] fields
18794
19244
  # Selector specifying which fields to include in a partial response.
18795
19245
  # @param [String] quota_user
@@ -18801,38 +19251,34 @@ module Google
18801
19251
  # Request-specific options
18802
19252
  #
18803
19253
  # @yield [result, err] Result & error if block supplied
18804
- # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
19254
+ # @yieldparam result [NilClass] No result returned for this method
18805
19255
  # @yieldparam err [StandardError] error object if request failed
18806
19256
  #
18807
- # @return [Google::Apis::ComputeBeta::Policy]
19257
+ # @return [void]
18808
19258
  #
18809
19259
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18810
19260
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18811
19261
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18812
- def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18813
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
18814
- command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
18815
- command.request_object = zone_set_policy_request_object
18816
- command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
18817
- command.response_class = Google::Apis::ComputeBeta::Policy
19262
+ def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19263
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
18818
19264
  command.params['project'] = project unless project.nil?
18819
19265
  command.params['zone'] = zone unless zone.nil?
18820
- command.params['resource'] = resource unless resource.nil?
19266
+ command.params['instance'] = instance unless instance.nil?
18821
19267
  command.query['fields'] = fields unless fields.nil?
18822
19268
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18823
19269
  command.query['userIp'] = user_ip unless user_ip.nil?
18824
19270
  execute_or_queue_command(command, &block)
18825
19271
  end
18826
19272
 
18827
- # Sets labels on an instance. To learn more about labels, read theLabeling
18828
- # Resources documentation.
19273
+ # Sets deletion protection on the instance.
18829
19274
  # @param [String] project
18830
19275
  # Project ID for this request.
18831
19276
  # @param [String] zone
18832
19277
  # The name of the zone for this request.
18833
- # @param [String] instance
18834
- # Name of the instance scoping this request.
18835
- # @param [Google::Apis::ComputeBeta::InstancesSetLabelsRequest] instances_set_labels_request_object
19278
+ # @param [String] resource
19279
+ # Name or id of the resource for this request.
19280
+ # @param [Boolean] deletion_protection
19281
+ # Whether the resource should be protected against deletion.
18836
19282
  # @param [String] request_id
18837
19283
  # An optional request ID to identify requests. Specify a unique request ID so
18838
19284
  # that if you must retry your request, the server will know to ignore the
@@ -18864,15 +19310,14 @@ module Google
18864
19310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18865
19311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18866
19312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18867
- def set_instance_labels(project, zone, instance, instances_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18868
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setLabels', options)
18869
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetLabelsRequest::Representation
18870
- command.request_object = instances_set_labels_request_object
19313
+ def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19314
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
18871
19315
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18872
19316
  command.response_class = Google::Apis::ComputeBeta::Operation
18873
19317
  command.params['project'] = project unless project.nil?
18874
19318
  command.params['zone'] = zone unless zone.nil?
18875
- command.params['instance'] = instance unless instance.nil?
19319
+ command.params['resource'] = resource unless resource.nil?
19320
+ command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
18876
19321
  command.query['requestId'] = request_id unless request_id.nil?
18877
19322
  command.query['fields'] = fields unless fields.nil?
18878
19323
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -18880,15 +19325,18 @@ module Google
18880
19325
  execute_or_queue_command(command, &block)
18881
19326
  end
18882
19327
 
18883
- # Changes the number and/or type of accelerator for a stopped instance to the
18884
- # values specified in the request.
19328
+ # Sets the auto-delete flag for a disk attached to an instance.
18885
19329
  # @param [String] project
18886
19330
  # Project ID for this request.
18887
19331
  # @param [String] zone
18888
19332
  # The name of the zone for this request.
18889
19333
  # @param [String] instance
18890
- # Name of the instance scoping this request.
18891
- # @param [Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest] instances_set_machine_resources_request_object
19334
+ # The instance name for this request.
19335
+ # @param [Boolean] auto_delete
19336
+ # Whether to auto-delete the disk when the instance is deleted.
19337
+ # @param [String] device_name
19338
+ # The device name of the disk to modify. Make a get() request
19339
+ # on the instance to view currently attached disks and device names.
18892
19340
  # @param [String] request_id
18893
19341
  # An optional request ID to identify requests. Specify a unique request ID so
18894
19342
  # that if you must retry your request, the server will know to ignore the
@@ -18920,15 +19368,15 @@ module Google
18920
19368
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18921
19369
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18922
19370
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18923
- def set_instance_machine_resources(project, zone, instance, instances_set_machine_resources_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18924
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineResources', options)
18925
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation
18926
- command.request_object = instances_set_machine_resources_request_object
19371
+ def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19372
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options)
18927
19373
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18928
19374
  command.response_class = Google::Apis::ComputeBeta::Operation
18929
19375
  command.params['project'] = project unless project.nil?
18930
19376
  command.params['zone'] = zone unless zone.nil?
18931
19377
  command.params['instance'] = instance unless instance.nil?
19378
+ command.query['autoDelete'] = auto_delete unless auto_delete.nil?
19379
+ command.query['deviceName'] = device_name unless device_name.nil?
18932
19380
  command.query['requestId'] = request_id unless request_id.nil?
18933
19381
  command.query['fields'] = fields unless fields.nil?
18934
19382
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -18936,27 +19384,15 @@ module Google
18936
19384
  execute_or_queue_command(command, &block)
18937
19385
  end
18938
19386
 
18939
- # Changes the machine type for a stopped instance to the machine
18940
- # type specified in the request.
19387
+ # Sets the access control policy on the specified resource.
19388
+ # Replaces any existing policy.
18941
19389
  # @param [String] project
18942
19390
  # Project ID for this request.
18943
19391
  # @param [String] zone
18944
19392
  # The name of the zone for this request.
18945
- # @param [String] instance
18946
- # Name of the instance scoping this request.
18947
- # @param [Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest] instances_set_machine_type_request_object
18948
- # @param [String] request_id
18949
- # An optional request ID to identify requests. Specify a unique request ID so
18950
- # that if you must retry your request, the server will know to ignore the
18951
- # request if it has already been completed.
18952
- # For example, consider a situation where you make an initial request and
18953
- # the request times out. If you make the request again with the same
18954
- # request ID, the server can check if original operation with the same
18955
- # request ID was received, and if so, will ignore the second request. This
18956
- # prevents clients from accidentally creating duplicate commitments.
18957
- # The request ID must be
18958
- # a valid UUID with the exception that zero UUID is not supported
18959
- # (00000000-0000-0000-0000-000000000000).
19393
+ # @param [String] resource
19394
+ # Name or id of the resource for this request.
19395
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
18960
19396
  # @param [String] fields
18961
19397
  # Selector specifying which fields to include in a partial response.
18962
19398
  # @param [String] quota_user
@@ -18968,39 +19404,38 @@ module Google
18968
19404
  # Request-specific options
18969
19405
  #
18970
19406
  # @yield [result, err] Result & error if block supplied
18971
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
19407
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
18972
19408
  # @yieldparam err [StandardError] error object if request failed
18973
19409
  #
18974
- # @return [Google::Apis::ComputeBeta::Operation]
19410
+ # @return [Google::Apis::ComputeBeta::Policy]
18975
19411
  #
18976
19412
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18977
19413
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18978
19414
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18979
- def set_instance_machine_type(project, zone, instance, instances_set_machine_type_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18980
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineType', options)
18981
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest::Representation
18982
- command.request_object = instances_set_machine_type_request_object
18983
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18984
- command.response_class = Google::Apis::ComputeBeta::Operation
19415
+ def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19416
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
19417
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
19418
+ command.request_object = zone_set_policy_request_object
19419
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
19420
+ command.response_class = Google::Apis::ComputeBeta::Policy
18985
19421
  command.params['project'] = project unless project.nil?
18986
19422
  command.params['zone'] = zone unless zone.nil?
18987
- command.params['instance'] = instance unless instance.nil?
18988
- command.query['requestId'] = request_id unless request_id.nil?
19423
+ command.params['resource'] = resource unless resource.nil?
18989
19424
  command.query['fields'] = fields unless fields.nil?
18990
19425
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18991
19426
  command.query['userIp'] = user_ip unless user_ip.nil?
18992
19427
  execute_or_queue_command(command, &block)
18993
19428
  end
18994
19429
 
18995
- # Sets metadata for the specified instance to the data included
18996
- # in the request.
19430
+ # Sets labels on an instance. To learn more about labels, read theLabeling
19431
+ # Resources documentation.
18997
19432
  # @param [String] project
18998
19433
  # Project ID for this request.
18999
19434
  # @param [String] zone
19000
19435
  # The name of the zone for this request.
19001
19436
  # @param [String] instance
19002
19437
  # Name of the instance scoping this request.
19003
- # @param [Google::Apis::ComputeBeta::Metadata] metadata_object
19438
+ # @param [Google::Apis::ComputeBeta::InstancesSetLabelsRequest] instances_set_labels_request_object
19004
19439
  # @param [String] request_id
19005
19440
  # An optional request ID to identify requests. Specify a unique request ID so
19006
19441
  # that if you must retry your request, the server will know to ignore the
@@ -19032,10 +19467,10 @@ module Google
19032
19467
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19033
19468
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19034
19469
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19035
- def set_instance_metadata(project, zone, instance, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19036
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMetadata', options)
19037
- command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation
19038
- command.request_object = metadata_object
19470
+ def set_instance_labels(project, zone, instance, instances_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19471
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setLabels', options)
19472
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetLabelsRequest::Representation
19473
+ command.request_object = instances_set_labels_request_object
19039
19474
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19040
19475
  command.response_class = Google::Apis::ComputeBeta::Operation
19041
19476
  command.params['project'] = project unless project.nil?
@@ -19048,17 +19483,15 @@ module Google
19048
19483
  execute_or_queue_command(command, &block)
19049
19484
  end
19050
19485
 
19051
- # Changes the minimum CPU platform that this instance should use.
19052
- # This method can only
19053
- # be called on a stopped instance. For more information, readSpecifying a
19054
- # Minimum CPU Platform.
19486
+ # Changes the number and/or type of accelerator for a stopped instance to the
19487
+ # values specified in the request.
19055
19488
  # @param [String] project
19056
19489
  # Project ID for this request.
19057
19490
  # @param [String] zone
19058
19491
  # The name of the zone for this request.
19059
19492
  # @param [String] instance
19060
19493
  # Name of the instance scoping this request.
19061
- # @param [Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest] instances_set_min_cpu_platform_request_object
19494
+ # @param [Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest] instances_set_machine_resources_request_object
19062
19495
  # @param [String] request_id
19063
19496
  # An optional request ID to identify requests. Specify a unique request ID so
19064
19497
  # that if you must retry your request, the server will know to ignore the
@@ -19090,10 +19523,10 @@ module Google
19090
19523
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19091
19524
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19092
19525
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19093
- def set_instance_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19094
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options)
19095
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest::Representation
19096
- command.request_object = instances_set_min_cpu_platform_request_object
19526
+ def set_instance_machine_resources(project, zone, instance, instances_set_machine_resources_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19527
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineResources', options)
19528
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation
19529
+ command.request_object = instances_set_machine_resources_request_object
19097
19530
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19098
19531
  command.response_class = Google::Apis::ComputeBeta::Operation
19099
19532
  command.params['project'] = project unless project.nil?
@@ -19106,14 +19539,15 @@ module Google
19106
19539
  execute_or_queue_command(command, &block)
19107
19540
  end
19108
19541
 
19109
- # Sets name of an instance.
19542
+ # Changes the machine type for a stopped instance to the machine
19543
+ # type specified in the request.
19110
19544
  # @param [String] project
19111
19545
  # Project ID for this request.
19112
19546
  # @param [String] zone
19113
19547
  # The name of the zone for this request.
19114
19548
  # @param [String] instance
19115
- # The instance name for this request.
19116
- # @param [Google::Apis::ComputeBeta::InstancesSetNameRequest] instances_set_name_request_object
19549
+ # Name of the instance scoping this request.
19550
+ # @param [Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest] instances_set_machine_type_request_object
19117
19551
  # @param [String] request_id
19118
19552
  # An optional request ID to identify requests. Specify a unique request ID so
19119
19553
  # that if you must retry your request, the server will know to ignore the
@@ -19145,10 +19579,10 @@ module Google
19145
19579
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19146
19580
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19147
19581
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19148
- def set_instance_name(project, zone, instance, instances_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19149
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options)
19150
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetNameRequest::Representation
19151
- command.request_object = instances_set_name_request_object
19582
+ def set_instance_machine_type(project, zone, instance, instances_set_machine_type_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19583
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineType', options)
19584
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest::Representation
19585
+ command.request_object = instances_set_machine_type_request_object
19152
19586
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19153
19587
  command.response_class = Google::Apis::ComputeBeta::Operation
19154
19588
  command.params['project'] = project unless project.nil?
@@ -19161,19 +19595,15 @@ module Google
19161
19595
  execute_or_queue_command(command, &block)
19162
19596
  end
19163
19597
 
19164
- # Sets an instance's scheduling options. You can only call this method on
19165
- # astopped instance,
19166
- # that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life
19167
- # Cycle for more information on the possible instance states.
19168
- # For more information about setting scheduling options for a VM, seeSet
19169
- # VM host maintenance policy.
19598
+ # Sets metadata for the specified instance to the data included
19599
+ # in the request.
19170
19600
  # @param [String] project
19171
19601
  # Project ID for this request.
19172
19602
  # @param [String] zone
19173
19603
  # The name of the zone for this request.
19174
19604
  # @param [String] instance
19175
- # Instance name for this request.
19176
- # @param [Google::Apis::ComputeBeta::Scheduling] scheduling_object
19605
+ # Name of the instance scoping this request.
19606
+ # @param [Google::Apis::ComputeBeta::Metadata] metadata_object
19177
19607
  # @param [String] request_id
19178
19608
  # An optional request ID to identify requests. Specify a unique request ID so
19179
19609
  # that if you must retry your request, the server will know to ignore the
@@ -19205,10 +19635,10 @@ module Google
19205
19635
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19206
19636
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19207
19637
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19208
- def set_instance_scheduling(project, zone, instance, scheduling_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19209
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling', options)
19210
- command.request_representation = Google::Apis::ComputeBeta::Scheduling::Representation
19211
- command.request_object = scheduling_object
19638
+ def set_instance_metadata(project, zone, instance, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19639
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMetadata', options)
19640
+ command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation
19641
+ command.request_object = metadata_object
19212
19642
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19213
19643
  command.response_class = Google::Apis::ComputeBeta::Operation
19214
19644
  command.params['project'] = project unless project.nil?
@@ -19221,17 +19651,17 @@ module Google
19221
19651
  execute_or_queue_command(command, &block)
19222
19652
  end
19223
19653
 
19224
- # Sets the Google Cloud Armor security policy for the specified instance.
19225
- # For more information, seeGoogle
19226
- # Cloud Armor Overview
19654
+ # Changes the minimum CPU platform that this instance should use.
19655
+ # This method can only
19656
+ # be called on a stopped instance. For more information, readSpecifying a
19657
+ # Minimum CPU Platform.
19227
19658
  # @param [String] project
19228
19659
  # Project ID for this request.
19229
19660
  # @param [String] zone
19230
- # Name of the zone scoping this request.
19661
+ # The name of the zone for this request.
19231
19662
  # @param [String] instance
19232
- # Name of the Instance resource to which the security policy should be
19233
- # set. The name should conform to RFC1035.
19234
- # @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
19663
+ # Name of the instance scoping this request.
19664
+ # @param [Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest] instances_set_min_cpu_platform_request_object
19235
19665
  # @param [String] request_id
19236
19666
  # An optional request ID to identify requests. Specify a unique request ID so
19237
19667
  # that if you must retry your request, the server will know to ignore the
@@ -19263,10 +19693,10 @@ module Google
19263
19693
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19264
19694
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19265
19695
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19266
- def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19267
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
19268
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest::Representation
19269
- command.request_object = instances_set_security_policy_request_object
19696
+ def set_instance_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19697
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options)
19698
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest::Representation
19699
+ command.request_object = instances_set_min_cpu_platform_request_object
19270
19700
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19271
19701
  command.response_class = Google::Apis::ComputeBeta::Operation
19272
19702
  command.params['project'] = project unless project.nil?
@@ -19279,16 +19709,14 @@ module Google
19279
19709
  execute_or_queue_command(command, &block)
19280
19710
  end
19281
19711
 
19282
- # Sets the service account on the instance. For more information,
19283
- # readChanging
19284
- # the service account and access scopes for an instance.
19712
+ # Sets name of an instance.
19285
19713
  # @param [String] project
19286
19714
  # Project ID for this request.
19287
19715
  # @param [String] zone
19288
19716
  # The name of the zone for this request.
19289
19717
  # @param [String] instance
19290
- # Name of the instance resource to start.
19291
- # @param [Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
19718
+ # The instance name for this request.
19719
+ # @param [Google::Apis::ComputeBeta::InstancesSetNameRequest] instances_set_name_request_object
19292
19720
  # @param [String] request_id
19293
19721
  # An optional request ID to identify requests. Specify a unique request ID so
19294
19722
  # that if you must retry your request, the server will know to ignore the
@@ -19320,10 +19748,10 @@ module Google
19320
19748
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19321
19749
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19322
19750
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19323
- def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19324
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
19325
- command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation
19326
- command.request_object = instances_set_service_account_request_object
19751
+ def set_instance_name(project, zone, instance, instances_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19752
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options)
19753
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetNameRequest::Representation
19754
+ command.request_object = instances_set_name_request_object
19327
19755
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19328
19756
  command.response_class = Google::Apis::ComputeBeta::Operation
19329
19757
  command.params['project'] = project unless project.nil?
@@ -19336,17 +19764,19 @@ module Google
19336
19764
  execute_or_queue_command(command, &block)
19337
19765
  end
19338
19766
 
19339
- # Sets the Shielded Instance integrity policy for an instance. You can
19340
- # only use this method on a running instance. This method
19341
- # supports PATCH semantics and uses the JSON merge
19342
- # patch format and processing rules.
19767
+ # Sets an instance's scheduling options. You can only call this method on
19768
+ # astopped instance,
19769
+ # that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life
19770
+ # Cycle for more information on the possible instance states.
19771
+ # For more information about setting scheduling options for a VM, seeSet
19772
+ # VM host maintenance policy.
19343
19773
  # @param [String] project
19344
19774
  # Project ID for this request.
19345
19775
  # @param [String] zone
19346
19776
  # The name of the zone for this request.
19347
19777
  # @param [String] instance
19348
- # Name or id of the instance scoping this request.
19349
- # @param [Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
19778
+ # Instance name for this request.
19779
+ # @param [Google::Apis::ComputeBeta::Scheduling] scheduling_object
19350
19780
  # @param [String] request_id
19351
19781
  # An optional request ID to identify requests. Specify a unique request ID so
19352
19782
  # that if you must retry your request, the server will know to ignore the
@@ -19378,10 +19808,10 @@ module Google
19378
19808
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19379
19809
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19380
19810
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19381
- def set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19382
- command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
19383
- command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation
19384
- command.request_object = shielded_instance_integrity_policy_object
19811
+ def set_instance_scheduling(project, zone, instance, scheduling_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19812
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling', options)
19813
+ command.request_representation = Google::Apis::ComputeBeta::Scheduling::Representation
19814
+ command.request_object = scheduling_object
19385
19815
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19386
19816
  command.response_class = Google::Apis::ComputeBeta::Operation
19387
19817
  command.params['project'] = project unless project.nil?
@@ -19394,17 +19824,17 @@ module Google
19394
19824
  execute_or_queue_command(command, &block)
19395
19825
  end
19396
19826
 
19397
- # Sets the Shielded VM integrity policy for a VM instance. You can
19398
- # only use this method on a running VM instance. This method
19399
- # supports PATCH semantics and uses the JSON merge
19400
- # patch format and processing rules.
19827
+ # Sets the Google Cloud Armor security policy for the specified instance.
19828
+ # For more information, seeGoogle
19829
+ # Cloud Armor Overview
19401
19830
  # @param [String] project
19402
19831
  # Project ID for this request.
19403
19832
  # @param [String] zone
19404
- # The name of the zone for this request.
19833
+ # Name of the zone scoping this request.
19405
19834
  # @param [String] instance
19406
- # Name of the instance scoping this request.
19407
- # @param [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
19835
+ # Name of the Instance resource to which the security policy should be
19836
+ # set. The name should conform to RFC1035.
19837
+ # @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
19408
19838
  # @param [String] request_id
19409
19839
  # An optional request ID to identify requests. Specify a unique request ID so
19410
19840
  # that if you must retry your request, the server will know to ignore the
@@ -19436,10 +19866,10 @@ module Google
19436
19866
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19437
19867
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19438
19868
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19439
- def set_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19440
- command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
19441
- command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation
19442
- command.request_object = shielded_vm_integrity_policy_object
19869
+ def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19870
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
19871
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest::Representation
19872
+ command.request_object = instances_set_security_policy_request_object
19443
19873
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19444
19874
  command.response_class = Google::Apis::ComputeBeta::Operation
19445
19875
  command.params['project'] = project unless project.nil?
@@ -19452,15 +19882,16 @@ module Google
19452
19882
  execute_or_queue_command(command, &block)
19453
19883
  end
19454
19884
 
19455
- # Sets network tags
19456
- # for the specified instance to the data included in the request.
19885
+ # Sets the service account on the instance. For more information,
19886
+ # readChanging
19887
+ # the service account and access scopes for an instance.
19457
19888
  # @param [String] project
19458
19889
  # Project ID for this request.
19459
19890
  # @param [String] zone
19460
19891
  # The name of the zone for this request.
19461
19892
  # @param [String] instance
19462
- # Name of the instance scoping this request.
19463
- # @param [Google::Apis::ComputeBeta::Tags] tags_object
19893
+ # Name of the instance resource to start.
19894
+ # @param [Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
19464
19895
  # @param [String] request_id
19465
19896
  # An optional request ID to identify requests. Specify a unique request ID so
19466
19897
  # that if you must retry your request, the server will know to ignore the
@@ -19492,10 +19923,10 @@ module Google
19492
19923
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19493
19924
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19494
19925
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19495
- def set_instance_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19496
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options)
19497
- command.request_representation = Google::Apis::ComputeBeta::Tags::Representation
19498
- command.request_object = tags_object
19926
+ def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19927
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
19928
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation
19929
+ command.request_object = instances_set_service_account_request_object
19499
19930
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19500
19931
  command.response_class = Google::Apis::ComputeBeta::Operation
19501
19932
  command.params['project'] = project unless project.nil?
@@ -19508,14 +19939,17 @@ module Google
19508
19939
  execute_or_queue_command(command, &block)
19509
19940
  end
19510
19941
 
19511
- # Simulates a host maintenance event on a VM. For more information, see
19512
- # Simulate a host maintenance event.
19942
+ # Sets the Shielded Instance integrity policy for an instance. You can
19943
+ # only use this method on a running instance. This method
19944
+ # supports PATCH semantics and uses the JSON merge
19945
+ # patch format and processing rules.
19513
19946
  # @param [String] project
19514
19947
  # Project ID for this request.
19515
19948
  # @param [String] zone
19516
19949
  # The name of the zone for this request.
19517
19950
  # @param [String] instance
19518
- # Name of the instance scoping this request.
19951
+ # Name or id of the instance scoping this request.
19952
+ # @param [Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
19519
19953
  # @param [String] request_id
19520
19954
  # An optional request ID to identify requests. Specify a unique request ID so
19521
19955
  # that if you must retry your request, the server will know to ignore the
@@ -19528,9 +19962,6 @@ module Google
19528
19962
  # The request ID must be
19529
19963
  # a valid UUID with the exception that zero UUID is not supported
19530
19964
  # (00000000-0000-0000-0000-000000000000).
19531
- # @param [Boolean] with_extended_notifications
19532
- # Determines whether the customers receive notifications before migration.
19533
- # Only applicable to SF vms.
19534
19965
  # @param [String] fields
19535
19966
  # Selector specifying which fields to include in a partial response.
19536
19967
  # @param [String] quota_user
@@ -19550,30 +19981,33 @@ module Google
19550
19981
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19551
19982
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19552
19983
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19553
- def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, with_extended_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19554
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
19984
+ def set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19985
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
19986
+ command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation
19987
+ command.request_object = shielded_instance_integrity_policy_object
19555
19988
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19556
19989
  command.response_class = Google::Apis::ComputeBeta::Operation
19557
19990
  command.params['project'] = project unless project.nil?
19558
19991
  command.params['zone'] = zone unless zone.nil?
19559
19992
  command.params['instance'] = instance unless instance.nil?
19560
19993
  command.query['requestId'] = request_id unless request_id.nil?
19561
- command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
19562
19994
  command.query['fields'] = fields unless fields.nil?
19563
19995
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19564
19996
  command.query['userIp'] = user_ip unless user_ip.nil?
19565
19997
  execute_or_queue_command(command, &block)
19566
19998
  end
19567
19999
 
19568
- # Starts an instance that was stopped using theinstances().stop
19569
- # method. For more information, seeRestart an
19570
- # instance.
20000
+ # Sets the Shielded VM integrity policy for a VM instance. You can
20001
+ # only use this method on a running VM instance. This method
20002
+ # supports PATCH semantics and uses the JSON merge
20003
+ # patch format and processing rules.
19571
20004
  # @param [String] project
19572
20005
  # Project ID for this request.
19573
20006
  # @param [String] zone
19574
20007
  # The name of the zone for this request.
19575
20008
  # @param [String] instance
19576
- # Name of the instance resource to start.
20009
+ # Name of the instance scoping this request.
20010
+ # @param [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
19577
20011
  # @param [String] request_id
19578
20012
  # An optional request ID to identify requests. Specify a unique request ID so
19579
20013
  # that if you must retry your request, the server will know to ignore the
@@ -19605,8 +20039,10 @@ module Google
19605
20039
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19606
20040
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19607
20041
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19608
- def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19609
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options)
20042
+ def set_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20043
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
20044
+ command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation
20045
+ command.request_object = shielded_vm_integrity_policy_object
19610
20046
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19611
20047
  command.response_class = Google::Apis::ComputeBeta::Operation
19612
20048
  command.params['project'] = project unless project.nil?
@@ -19619,16 +20055,15 @@ module Google
19619
20055
  execute_or_queue_command(command, &block)
19620
20056
  end
19621
20057
 
19622
- # Starts an instance that was stopped using theinstances().stop
19623
- # method. For more information, seeRestart an
19624
- # instance.
20058
+ # Sets network tags
20059
+ # for the specified instance to the data included in the request.
19625
20060
  # @param [String] project
19626
20061
  # Project ID for this request.
19627
20062
  # @param [String] zone
19628
20063
  # The name of the zone for this request.
19629
20064
  # @param [String] instance
19630
- # Name of the instance resource to start.
19631
- # @param [Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
20065
+ # Name of the instance scoping this request.
20066
+ # @param [Google::Apis::ComputeBeta::Tags] tags_object
19632
20067
  # @param [String] request_id
19633
20068
  # An optional request ID to identify requests. Specify a unique request ID so
19634
20069
  # that if you must retry your request, the server will know to ignore the
@@ -19660,10 +20095,10 @@ module Google
19660
20095
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19661
20096
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19662
20097
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19663
- def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19664
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options)
19665
- command.request_representation = Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest::Representation
19666
- command.request_object = instances_start_with_encryption_key_request_object
20098
+ def set_instance_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20099
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options)
20100
+ command.request_representation = Google::Apis::ComputeBeta::Tags::Representation
20101
+ command.request_object = tags_object
19667
20102
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19668
20103
  command.response_class = Google::Apis::ComputeBeta::Operation
19669
20104
  command.params['project'] = project unless project.nil?
@@ -19676,24 +20111,14 @@ module Google
19676
20111
  execute_or_queue_command(command, &block)
19677
20112
  end
19678
20113
 
19679
- # Stops a running instance, shutting it down cleanly, and allows
19680
- # you to restart the instance at a later time. Stopped instances do not incur
19681
- # VM usage charges while they are stopped. However, resources that the VM is
19682
- # using, such as persistent disks and static IP addresses, will continue to
19683
- # be charged until they are deleted. For more information, seeStopping
19684
- # an instance.
20114
+ # Simulates a host maintenance event on a VM. For more information, see
20115
+ # Simulate a host maintenance event.
19685
20116
  # @param [String] project
19686
20117
  # Project ID for this request.
19687
20118
  # @param [String] zone
19688
20119
  # The name of the zone for this request.
19689
20120
  # @param [String] instance
19690
- # Name of the instance resource to stop.
19691
- # @param [Boolean] discard_local_ssd
19692
- # This property is required if the instance has any attached Local SSD disks.
19693
- # If false, Local SSD data will be preserved when the instance is suspended.
19694
- # If true, the contents of any attached Local SSD disks will be discarded.
19695
- # @param [Boolean] no_graceful_shutdown
19696
- # If set to true, Graceful Shutdown is skipped.
20121
+ # Name of the instance scoping this request.
19697
20122
  # @param [String] request_id
19698
20123
  # An optional request ID to identify requests. Specify a unique request ID so
19699
20124
  # that if you must retry your request, the server will know to ignore the
@@ -19706,6 +20131,9 @@ module Google
19706
20131
  # The request ID must be
19707
20132
  # a valid UUID with the exception that zero UUID is not supported
19708
20133
  # (00000000-0000-0000-0000-000000000000).
20134
+ # @param [Boolean] with_extended_notifications
20135
+ # Determines whether the customers receive notifications before migration.
20136
+ # Only applicable to SF vms.
19709
20137
  # @param [String] fields
19710
20138
  # Selector specifying which fields to include in a partial response.
19711
20139
  # @param [String] quota_user
@@ -19725,40 +20153,30 @@ module Google
19725
20153
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19726
20154
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19727
20155
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19728
- def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19729
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
20156
+ def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, with_extended_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20157
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
19730
20158
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19731
20159
  command.response_class = Google::Apis::ComputeBeta::Operation
19732
20160
  command.params['project'] = project unless project.nil?
19733
20161
  command.params['zone'] = zone unless zone.nil?
19734
20162
  command.params['instance'] = instance unless instance.nil?
19735
- command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
19736
- command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
19737
20163
  command.query['requestId'] = request_id unless request_id.nil?
20164
+ command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
19738
20165
  command.query['fields'] = fields unless fields.nil?
19739
20166
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19740
20167
  command.query['userIp'] = user_ip unless user_ip.nil?
19741
20168
  execute_or_queue_command(command, &block)
19742
20169
  end
19743
20170
 
19744
- # This method suspends a running instance, saving its state to persistent
19745
- # storage, and allows you to resume the instance at a later time. Suspended
19746
- # instances have no compute costs (cores or RAM), and incur only storage
19747
- # charges for the saved VM memory and localSSD data. Any charged resources
19748
- # the virtual machine was using, such as persistent disks and static IP
19749
- # addresses, will continue to be charged while the instance is suspended.
19750
- # For more information, see
19751
- # Suspending and resuming an instance.
20171
+ # Starts an instance that was stopped using theinstances().stop
20172
+ # method. For more information, seeRestart an
20173
+ # instance.
19752
20174
  # @param [String] project
19753
20175
  # Project ID for this request.
19754
20176
  # @param [String] zone
19755
20177
  # The name of the zone for this request.
19756
20178
  # @param [String] instance
19757
- # Name of the instance resource to suspend.
19758
- # @param [Boolean] discard_local_ssd
19759
- # This property is required if the instance has any attached Local SSD disks.
19760
- # If false, Local SSD data will be preserved when the instance is suspended.
19761
- # If true, the contents of any attached Local SSD disks will be discarded.
20179
+ # Name of the instance resource to start.
19762
20180
  # @param [String] request_id
19763
20181
  # An optional request ID to identify requests. Specify a unique request ID so
19764
20182
  # that if you must retry your request, the server will know to ignore the
@@ -19790,14 +20208,13 @@ module Google
19790
20208
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19791
20209
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19792
20210
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19793
- def suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19794
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options)
20211
+ def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20212
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options)
19795
20213
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19796
20214
  command.response_class = Google::Apis::ComputeBeta::Operation
19797
20215
  command.params['project'] = project unless project.nil?
19798
20216
  command.params['zone'] = zone unless zone.nil?
19799
20217
  command.params['instance'] = instance unless instance.nil?
19800
- command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
19801
20218
  command.query['requestId'] = request_id unless request_id.nil?
19802
20219
  command.query['fields'] = fields unless fields.nil?
19803
20220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -19805,73 +20222,259 @@ module Google
19805
20222
  execute_or_queue_command(command, &block)
19806
20223
  end
19807
20224
 
19808
- # Returns permissions that a caller has on the specified resource.
19809
- # @param [String] project
19810
- # Project ID for this request.
19811
- # @param [String] zone
19812
- # The name of the zone for this request.
19813
- # @param [String] resource
19814
- # Name or id of the resource for this request.
19815
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
19816
- # @param [String] fields
19817
- # Selector specifying which fields to include in a partial response.
19818
- # @param [String] quota_user
19819
- # Available to use for quota purposes for server-side applications. Can be any
19820
- # arbitrary string assigned to a user, but should not exceed 40 characters.
19821
- # @param [String] user_ip
19822
- # Legacy name for parameter that has been superseded by `quotaUser`.
19823
- # @param [Google::Apis::RequestOptions] options
19824
- # Request-specific options
19825
- #
19826
- # @yield [result, err] Result & error if block supplied
19827
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
19828
- # @yieldparam err [StandardError] error object if request failed
19829
- #
19830
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
19831
- #
19832
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19833
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19834
- # @raise [Google::Apis::AuthorizationError] Authorization is required
19835
- def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19836
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions', options)
19837
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
19838
- command.request_object = test_permissions_request_object
19839
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
19840
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
19841
- command.params['project'] = project unless project.nil?
19842
- command.params['zone'] = zone unless zone.nil?
19843
- command.params['resource'] = resource unless resource.nil?
19844
- command.query['fields'] = fields unless fields.nil?
19845
- command.query['quotaUser'] = quota_user unless quota_user.nil?
19846
- command.query['userIp'] = user_ip unless user_ip.nil?
19847
- execute_or_queue_command(command, &block)
19848
- end
19849
-
19850
- # Updates an instance only if the necessary resources are available. This
19851
- # method can update only a specific set of instance properties. See
19852
- # Updating a running instance for a list of updatable instance
19853
- # properties.
20225
+ # Starts an instance that was stopped using theinstances().stop
20226
+ # method. For more information, seeRestart an
20227
+ # instance.
19854
20228
  # @param [String] project
19855
20229
  # Project ID for this request.
19856
20230
  # @param [String] zone
19857
20231
  # The name of the zone for this request.
19858
20232
  # @param [String] instance
19859
- # Name of the instance resource to update.
19860
- # @param [Google::Apis::ComputeBeta::Instance] instance_object
19861
- # @param [Boolean] discard_local_ssd
19862
- # Whether to discard local SSDs from the instance during restart
19863
- # default value is false.
19864
- # @param [String] minimal_action
19865
- # Specifies the action to take when updating an instance even if the
19866
- # updated properties do not require it. If not specified, then
19867
- # Compute Engine acts based on the minimum action that the updated
19868
- # properties require.
19869
- # @param [String] most_disruptive_allowed_action
19870
- # Specifies the most disruptive action that can be taken on the instance
19871
- # as part of the update. Compute Engine returns an error if the
19872
- # instance properties require a more disruptive action as part of the
19873
- # instance update. Valid options from lowest to highest are
19874
- # NO_EFFECT, REFRESH, and RESTART.
20233
+ # Name of the instance resource to start.
20234
+ # @param [Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
20235
+ # @param [String] request_id
20236
+ # An optional request ID to identify requests. Specify a unique request ID so
20237
+ # that if you must retry your request, the server will know to ignore the
20238
+ # request if it has already been completed.
20239
+ # For example, consider a situation where you make an initial request and
20240
+ # the request times out. If you make the request again with the same
20241
+ # request ID, the server can check if original operation with the same
20242
+ # request ID was received, and if so, will ignore the second request. This
20243
+ # prevents clients from accidentally creating duplicate commitments.
20244
+ # The request ID must be
20245
+ # a valid UUID with the exception that zero UUID is not supported
20246
+ # (00000000-0000-0000-0000-000000000000).
20247
+ # @param [String] fields
20248
+ # Selector specifying which fields to include in a partial response.
20249
+ # @param [String] quota_user
20250
+ # Available to use for quota purposes for server-side applications. Can be any
20251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20252
+ # @param [String] user_ip
20253
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20254
+ # @param [Google::Apis::RequestOptions] options
20255
+ # Request-specific options
20256
+ #
20257
+ # @yield [result, err] Result & error if block supplied
20258
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
20259
+ # @yieldparam err [StandardError] error object if request failed
20260
+ #
20261
+ # @return [Google::Apis::ComputeBeta::Operation]
20262
+ #
20263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20266
+ def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20267
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options)
20268
+ command.request_representation = Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest::Representation
20269
+ command.request_object = instances_start_with_encryption_key_request_object
20270
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
20271
+ command.response_class = Google::Apis::ComputeBeta::Operation
20272
+ command.params['project'] = project unless project.nil?
20273
+ command.params['zone'] = zone unless zone.nil?
20274
+ command.params['instance'] = instance unless instance.nil?
20275
+ command.query['requestId'] = request_id unless request_id.nil?
20276
+ command.query['fields'] = fields unless fields.nil?
20277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20278
+ command.query['userIp'] = user_ip unless user_ip.nil?
20279
+ execute_or_queue_command(command, &block)
20280
+ end
20281
+
20282
+ # Stops a running instance, shutting it down cleanly, and allows
20283
+ # you to restart the instance at a later time. Stopped instances do not incur
20284
+ # VM usage charges while they are stopped. However, resources that the VM is
20285
+ # using, such as persistent disks and static IP addresses, will continue to
20286
+ # be charged until they are deleted. For more information, seeStopping
20287
+ # an instance.
20288
+ # @param [String] project
20289
+ # Project ID for this request.
20290
+ # @param [String] zone
20291
+ # The name of the zone for this request.
20292
+ # @param [String] instance
20293
+ # Name of the instance resource to stop.
20294
+ # @param [Boolean] discard_local_ssd
20295
+ # This property is required if the instance has any attached Local SSD disks.
20296
+ # If false, Local SSD data will be preserved when the instance is suspended.
20297
+ # If true, the contents of any attached Local SSD disks will be discarded.
20298
+ # @param [Boolean] no_graceful_shutdown
20299
+ # If set to true, Graceful Shutdown is skipped.
20300
+ # @param [String] request_id
20301
+ # An optional request ID to identify requests. Specify a unique request ID so
20302
+ # that if you must retry your request, the server will know to ignore the
20303
+ # request if it has already been completed.
20304
+ # For example, consider a situation where you make an initial request and
20305
+ # the request times out. If you make the request again with the same
20306
+ # request ID, the server can check if original operation with the same
20307
+ # request ID was received, and if so, will ignore the second request. This
20308
+ # prevents clients from accidentally creating duplicate commitments.
20309
+ # The request ID must be
20310
+ # a valid UUID with the exception that zero UUID is not supported
20311
+ # (00000000-0000-0000-0000-000000000000).
20312
+ # @param [String] fields
20313
+ # Selector specifying which fields to include in a partial response.
20314
+ # @param [String] quota_user
20315
+ # Available to use for quota purposes for server-side applications. Can be any
20316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20317
+ # @param [String] user_ip
20318
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20319
+ # @param [Google::Apis::RequestOptions] options
20320
+ # Request-specific options
20321
+ #
20322
+ # @yield [result, err] Result & error if block supplied
20323
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
20324
+ # @yieldparam err [StandardError] error object if request failed
20325
+ #
20326
+ # @return [Google::Apis::ComputeBeta::Operation]
20327
+ #
20328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20331
+ def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20332
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
20333
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
20334
+ command.response_class = Google::Apis::ComputeBeta::Operation
20335
+ command.params['project'] = project unless project.nil?
20336
+ command.params['zone'] = zone unless zone.nil?
20337
+ command.params['instance'] = instance unless instance.nil?
20338
+ command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
20339
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
20340
+ command.query['requestId'] = request_id unless request_id.nil?
20341
+ command.query['fields'] = fields unless fields.nil?
20342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20343
+ command.query['userIp'] = user_ip unless user_ip.nil?
20344
+ execute_or_queue_command(command, &block)
20345
+ end
20346
+
20347
+ # This method suspends a running instance, saving its state to persistent
20348
+ # storage, and allows you to resume the instance at a later time. Suspended
20349
+ # instances have no compute costs (cores or RAM), and incur only storage
20350
+ # charges for the saved VM memory and localSSD data. Any charged resources
20351
+ # the virtual machine was using, such as persistent disks and static IP
20352
+ # addresses, will continue to be charged while the instance is suspended.
20353
+ # For more information, see
20354
+ # Suspending and resuming an instance.
20355
+ # @param [String] project
20356
+ # Project ID for this request.
20357
+ # @param [String] zone
20358
+ # The name of the zone for this request.
20359
+ # @param [String] instance
20360
+ # Name of the instance resource to suspend.
20361
+ # @param [Boolean] discard_local_ssd
20362
+ # This property is required if the instance has any attached Local SSD disks.
20363
+ # If false, Local SSD data will be preserved when the instance is suspended.
20364
+ # If true, the contents of any attached Local SSD disks will be discarded.
20365
+ # @param [String] request_id
20366
+ # An optional request ID to identify requests. Specify a unique request ID so
20367
+ # that if you must retry your request, the server will know to ignore the
20368
+ # request if it has already been completed.
20369
+ # For example, consider a situation where you make an initial request and
20370
+ # the request times out. If you make the request again with the same
20371
+ # request ID, the server can check if original operation with the same
20372
+ # request ID was received, and if so, will ignore the second request. This
20373
+ # prevents clients from accidentally creating duplicate commitments.
20374
+ # The request ID must be
20375
+ # a valid UUID with the exception that zero UUID is not supported
20376
+ # (00000000-0000-0000-0000-000000000000).
20377
+ # @param [String] fields
20378
+ # Selector specifying which fields to include in a partial response.
20379
+ # @param [String] quota_user
20380
+ # Available to use for quota purposes for server-side applications. Can be any
20381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20382
+ # @param [String] user_ip
20383
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20384
+ # @param [Google::Apis::RequestOptions] options
20385
+ # Request-specific options
20386
+ #
20387
+ # @yield [result, err] Result & error if block supplied
20388
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
20389
+ # @yieldparam err [StandardError] error object if request failed
20390
+ #
20391
+ # @return [Google::Apis::ComputeBeta::Operation]
20392
+ #
20393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20396
+ def suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20397
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options)
20398
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
20399
+ command.response_class = Google::Apis::ComputeBeta::Operation
20400
+ command.params['project'] = project unless project.nil?
20401
+ command.params['zone'] = zone unless zone.nil?
20402
+ command.params['instance'] = instance unless instance.nil?
20403
+ command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
20404
+ command.query['requestId'] = request_id unless request_id.nil?
20405
+ command.query['fields'] = fields unless fields.nil?
20406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20407
+ command.query['userIp'] = user_ip unless user_ip.nil?
20408
+ execute_or_queue_command(command, &block)
20409
+ end
20410
+
20411
+ # Returns permissions that a caller has on the specified resource.
20412
+ # @param [String] project
20413
+ # Project ID for this request.
20414
+ # @param [String] zone
20415
+ # The name of the zone for this request.
20416
+ # @param [String] resource
20417
+ # Name or id of the resource for this request.
20418
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
20419
+ # @param [String] fields
20420
+ # Selector specifying which fields to include in a partial response.
20421
+ # @param [String] quota_user
20422
+ # Available to use for quota purposes for server-side applications. Can be any
20423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20424
+ # @param [String] user_ip
20425
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20426
+ # @param [Google::Apis::RequestOptions] options
20427
+ # Request-specific options
20428
+ #
20429
+ # @yield [result, err] Result & error if block supplied
20430
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
20431
+ # @yieldparam err [StandardError] error object if request failed
20432
+ #
20433
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
20434
+ #
20435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20438
+ def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20439
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions', options)
20440
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
20441
+ command.request_object = test_permissions_request_object
20442
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
20443
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
20444
+ command.params['project'] = project unless project.nil?
20445
+ command.params['zone'] = zone unless zone.nil?
20446
+ command.params['resource'] = resource unless resource.nil?
20447
+ command.query['fields'] = fields unless fields.nil?
20448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20449
+ command.query['userIp'] = user_ip unless user_ip.nil?
20450
+ execute_or_queue_command(command, &block)
20451
+ end
20452
+
20453
+ # Updates an instance only if the necessary resources are available. This
20454
+ # method can update only a specific set of instance properties. See
20455
+ # Updating a running instance for a list of updatable instance
20456
+ # properties.
20457
+ # @param [String] project
20458
+ # Project ID for this request.
20459
+ # @param [String] zone
20460
+ # The name of the zone for this request.
20461
+ # @param [String] instance
20462
+ # Name of the instance resource to update.
20463
+ # @param [Google::Apis::ComputeBeta::Instance] instance_object
20464
+ # @param [Boolean] discard_local_ssd
20465
+ # Whether to discard local SSDs from the instance during restart
20466
+ # default value is false.
20467
+ # @param [String] minimal_action
20468
+ # Specifies the action to take when updating an instance even if the
20469
+ # updated properties do not require it. If not specified, then
20470
+ # Compute Engine acts based on the minimum action that the updated
20471
+ # properties require.
20472
+ # @param [String] most_disruptive_allowed_action
20473
+ # Specifies the most disruptive action that can be taken on the instance
20474
+ # as part of the update. Compute Engine returns an error if the
20475
+ # instance properties require a more disruptive action as part of the
20476
+ # instance update. Valid options from lowest to highest are
20477
+ # NO_EFFECT, REFRESH, and RESTART.
19875
20478
  # @param [String] request_id
19876
20479
  # An optional request ID to identify requests. Specify a unique request ID so
19877
20480
  # that if you must retry your request, the server will know to ignore the
@@ -32079,6 +32682,88 @@ module Google
32079
32682
  execute_or_queue_command(command, &block)
32080
32683
  end
32081
32684
 
32685
+ # Returns the specified SnapshotRecycleBinPolicy.
32686
+ # @param [String] organization
32687
+ # Organization ID for this request.
32688
+ # @param [String] fields
32689
+ # Selector specifying which fields to include in a partial response.
32690
+ # @param [String] quota_user
32691
+ # Available to use for quota purposes for server-side applications. Can be any
32692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32693
+ # @param [String] user_ip
32694
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32695
+ # @param [Google::Apis::RequestOptions] options
32696
+ # Request-specific options
32697
+ #
32698
+ # @yield [result, err] Result & error if block supplied
32699
+ # @yieldparam result [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] parsed result object
32700
+ # @yieldparam err [StandardError] error object if request failed
32701
+ #
32702
+ # @return [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy]
32703
+ #
32704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32707
+ def get_organization_snapshot_recycle_bin_policy(organization, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32708
+ command = make_simple_command(:get, '{+organization}/global/snapshotRecycleBinPolicy', options)
32709
+ command.response_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
32710
+ command.response_class = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy
32711
+ command.params['organization'] = organization unless organization.nil?
32712
+ command.query['fields'] = fields unless fields.nil?
32713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32714
+ command.query['userIp'] = user_ip unless user_ip.nil?
32715
+ execute_or_queue_command(command, &block)
32716
+ end
32717
+
32718
+ # Patches the SnapshotRecycleBinPolicy.
32719
+ # @param [String] organization
32720
+ # Organization ID for this request.
32721
+ # @param [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
32722
+ # @param [String] request_id
32723
+ # An optional request ID to identify requests. Specify a unique request ID so
32724
+ # that if you must retry your request, the server will know to ignore the
32725
+ # request if it has already been completed.
32726
+ # For example, consider a situation where you make an initial request and
32727
+ # the request times out. If you make the request again with the same
32728
+ # request ID, the server can check if original operation with the same
32729
+ # request ID was received, and if so, will ignore the second request. This
32730
+ # prevents clients from accidentally creating duplicate commitments.
32731
+ # The request ID must be
32732
+ # a valid UUID with the exception that zero UUID is not supported
32733
+ # (00000000-0000-0000-0000-000000000000).
32734
+ # @param [String] fields
32735
+ # Selector specifying which fields to include in a partial response.
32736
+ # @param [String] quota_user
32737
+ # Available to use for quota purposes for server-side applications. Can be any
32738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32739
+ # @param [String] user_ip
32740
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32741
+ # @param [Google::Apis::RequestOptions] options
32742
+ # Request-specific options
32743
+ #
32744
+ # @yield [result, err] Result & error if block supplied
32745
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
32746
+ # @yieldparam err [StandardError] error object if request failed
32747
+ #
32748
+ # @return [Google::Apis::ComputeBeta::Operation]
32749
+ #
32750
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32751
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32752
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32753
+ def patch_organization_snapshot_recycle_bin_policy(organization, snapshot_recycle_bin_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32754
+ command = make_simple_command(:patch, '{+organization}/global/snapshotRecycleBinPolicy', options)
32755
+ command.request_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
32756
+ command.request_object = snapshot_recycle_bin_policy_object
32757
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
32758
+ command.response_class = Google::Apis::ComputeBeta::Operation
32759
+ command.params['organization'] = organization unless organization.nil?
32760
+ command.query['requestId'] = request_id unless request_id.nil?
32761
+ command.query['fields'] = fields unless fields.nil?
32762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32763
+ command.query['userIp'] = user_ip unless user_ip.nil?
32764
+ execute_or_queue_command(command, &block)
32765
+ end
32766
+
32082
32767
  # Retrieves an aggregated list of packetMirrorings.
32083
32768
  # To prevent failure, Google recommends that you set the
32084
32769
  # `returnPartialSuccess` parameter to `true`.
@@ -34312,13 +34997,383 @@ module Google
34312
34997
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34313
34998
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34314
34999
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34315
- def delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34316
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
35000
+ def delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35001
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
35002
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35003
+ command.response_class = Google::Apis::ComputeBeta::Operation
35004
+ command.params['project'] = project unless project.nil?
35005
+ command.params['region'] = region unless region.nil?
35006
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35007
+ command.query['requestId'] = request_id unless request_id.nil?
35008
+ command.query['fields'] = fields unless fields.nil?
35009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35010
+ command.query['userIp'] = user_ip unless user_ip.nil?
35011
+ execute_or_queue_command(command, &block)
35012
+ end
35013
+
35014
+ # Returns the specified PublicDelegatedPrefix resource in the given region.
35015
+ # @param [String] project
35016
+ # Project ID for this request.
35017
+ # @param [String] region
35018
+ # Name of the region of this request.
35019
+ # @param [String] public_delegated_prefix
35020
+ # Name of the PublicDelegatedPrefix resource to return.
35021
+ # @param [String] fields
35022
+ # Selector specifying which fields to include in a partial response.
35023
+ # @param [String] quota_user
35024
+ # Available to use for quota purposes for server-side applications. Can be any
35025
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35026
+ # @param [String] user_ip
35027
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35028
+ # @param [Google::Apis::RequestOptions] options
35029
+ # Request-specific options
35030
+ #
35031
+ # @yield [result, err] Result & error if block supplied
35032
+ # @yieldparam result [Google::Apis::ComputeBeta::PublicDelegatedPrefix] parsed result object
35033
+ # @yieldparam err [StandardError] error object if request failed
35034
+ #
35035
+ # @return [Google::Apis::ComputeBeta::PublicDelegatedPrefix]
35036
+ #
35037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35040
+ def get_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35041
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
35042
+ command.response_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
35043
+ command.response_class = Google::Apis::ComputeBeta::PublicDelegatedPrefix
35044
+ command.params['project'] = project unless project.nil?
35045
+ command.params['region'] = region unless region.nil?
35046
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35047
+ command.query['fields'] = fields unless fields.nil?
35048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35049
+ command.query['userIp'] = user_ip unless user_ip.nil?
35050
+ execute_or_queue_command(command, &block)
35051
+ end
35052
+
35053
+ # Creates a PublicDelegatedPrefix in the specified project in the given
35054
+ # region using the parameters that are included in the request.
35055
+ # @param [String] project
35056
+ # Project ID for this request.
35057
+ # @param [String] region
35058
+ # Name of the region of this request.
35059
+ # @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
35060
+ # @param [String] request_id
35061
+ # An optional request ID to identify requests. Specify a unique request ID so
35062
+ # that if you must retry your request, the server will know to ignore the
35063
+ # request if it has already been completed.
35064
+ # For example, consider a situation where you make an initial request and
35065
+ # the request times out. If you make the request again with the same
35066
+ # request ID, the server can check if original operation with the same
35067
+ # request ID was received, and if so, will ignore the second request. This
35068
+ # prevents clients from accidentally creating duplicate commitments.
35069
+ # The request ID must be
35070
+ # a valid UUID with the exception that zero UUID is not supported
35071
+ # (00000000-0000-0000-0000-000000000000).
35072
+ # @param [String] fields
35073
+ # Selector specifying which fields to include in a partial response.
35074
+ # @param [String] quota_user
35075
+ # Available to use for quota purposes for server-side applications. Can be any
35076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35077
+ # @param [String] user_ip
35078
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35079
+ # @param [Google::Apis::RequestOptions] options
35080
+ # Request-specific options
35081
+ #
35082
+ # @yield [result, err] Result & error if block supplied
35083
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35084
+ # @yieldparam err [StandardError] error object if request failed
35085
+ #
35086
+ # @return [Google::Apis::ComputeBeta::Operation]
35087
+ #
35088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35091
+ def insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35092
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
35093
+ command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
35094
+ command.request_object = public_delegated_prefix_object
35095
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35096
+ command.response_class = Google::Apis::ComputeBeta::Operation
35097
+ command.params['project'] = project unless project.nil?
35098
+ command.params['region'] = region unless region.nil?
35099
+ command.query['requestId'] = request_id unless request_id.nil?
35100
+ command.query['fields'] = fields unless fields.nil?
35101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35102
+ command.query['userIp'] = user_ip unless user_ip.nil?
35103
+ execute_or_queue_command(command, &block)
35104
+ end
35105
+
35106
+ # Lists the PublicDelegatedPrefixes for a project in the given region.
35107
+ # @param [String] project
35108
+ # Project ID for this request.
35109
+ # @param [String] region
35110
+ # Name of the region of this request.
35111
+ # @param [String] filter
35112
+ # A filter expression that filters resources listed in the response. Most
35113
+ # Compute resources support two types of filter expressions:
35114
+ # expressions that support regular expressions and expressions that follow
35115
+ # API improvement proposal AIP-160.
35116
+ # These two types of filter expressions cannot be mixed in one request.
35117
+ # If you want to use AIP-160, your expression must specify the field name, an
35118
+ # operator, and the value that you want to use for filtering. The value
35119
+ # must be a string, a number, or a boolean. The operator
35120
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
35121
+ # For example, if you are filtering Compute Engine instances, you can
35122
+ # exclude instances named `example-instance` by specifying
35123
+ # `name != example-instance`.
35124
+ # The `:*` comparison can be used to test whether a key has been defined.
35125
+ # For example, to find all objects with `owner` label use:
35126
+ # ```
35127
+ # labels.owner:*
35128
+ # ```
35129
+ # You can also filter nested fields. For example, you could specify
35130
+ # `scheduling.automaticRestart = false` to include instances only
35131
+ # if they are not scheduled for automatic restarts. You can use filtering
35132
+ # on nested fields to filter based onresource labels.
35133
+ # To filter on multiple expressions, provide each separate expression within
35134
+ # parentheses. For example:
35135
+ # ```
35136
+ # (scheduling.automaticRestart = true)
35137
+ # (cpuPlatform = "Intel Skylake")
35138
+ # ```
35139
+ # By default, each expression is an `AND` expression. However, you
35140
+ # can include `AND` and `OR` expressions explicitly.
35141
+ # For example:
35142
+ # ```
35143
+ # (cpuPlatform = "Intel Skylake") OR
35144
+ # (cpuPlatform = "Intel Broadwell") AND
35145
+ # (scheduling.automaticRestart = true)
35146
+ # ```
35147
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
35148
+ # (not equal) operator against a single un-parenthesized expression with or
35149
+ # without quotes or against multiple parenthesized expressions. Examples:
35150
+ # `fieldname eq unquoted literal`
35151
+ # `fieldname eq 'single quoted literal'`
35152
+ # `fieldname eq "double quoted literal"`
35153
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
35154
+ # The literal value is interpreted as a regular expression using GoogleRE2
35155
+ # library syntax.
35156
+ # The literal value must match the entire field.
35157
+ # For example, to filter for instances that do not end with name "instance",
35158
+ # you would use `name ne .*instance`.
35159
+ # You cannot combine constraints on multiple fields using regular
35160
+ # expressions.
35161
+ # @param [Fixnum] max_results
35162
+ # The maximum number of results per page that should be returned.
35163
+ # If the number of available results is larger than `maxResults`,
35164
+ # Compute Engine returns a `nextPageToken` that can be used to get
35165
+ # the next page of results in subsequent list requests. Acceptable values are
35166
+ # `0` to `500`, inclusive. (Default: `500`)
35167
+ # @param [String] order_by
35168
+ # Sorts list results by a certain order. By default, results
35169
+ # are returned in alphanumerical order based on the resource name.
35170
+ # You can also sort results in descending order based on the creation
35171
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
35172
+ # results based on the `creationTimestamp` field in
35173
+ # reverse chronological order (newest result first). Use this to sort
35174
+ # resources like operations so that the newest operation is returned first.
35175
+ # Currently, only sorting by `name` or
35176
+ # `creationTimestamp desc` is supported.
35177
+ # @param [String] page_token
35178
+ # Specifies a page token to use. Set `pageToken` to the
35179
+ # `nextPageToken` returned by a previous list request to get
35180
+ # the next page of results.
35181
+ # @param [Boolean] return_partial_success
35182
+ # Opt-in for partial success behavior which provides partial results in case
35183
+ # of failure. The default value is false.
35184
+ # For example, when partial success behavior is enabled, aggregatedList for a
35185
+ # single zone scope either returns all resources in the zone or no resources,
35186
+ # with an error code.
35187
+ # @param [String] fields
35188
+ # Selector specifying which fields to include in a partial response.
35189
+ # @param [String] quota_user
35190
+ # Available to use for quota purposes for server-side applications. Can be any
35191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35192
+ # @param [String] user_ip
35193
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35194
+ # @param [Google::Apis::RequestOptions] options
35195
+ # Request-specific options
35196
+ #
35197
+ # @yield [result, err] Result & error if block supplied
35198
+ # @yieldparam result [Google::Apis::ComputeBeta::PublicDelegatedPrefixList] parsed result object
35199
+ # @yieldparam err [StandardError] error object if request failed
35200
+ #
35201
+ # @return [Google::Apis::ComputeBeta::PublicDelegatedPrefixList]
35202
+ #
35203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35206
+ def list_public_delegated_prefixes(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)
35207
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
35208
+ command.response_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefixList::Representation
35209
+ command.response_class = Google::Apis::ComputeBeta::PublicDelegatedPrefixList
35210
+ command.params['project'] = project unless project.nil?
35211
+ command.params['region'] = region unless region.nil?
35212
+ command.query['filter'] = filter unless filter.nil?
35213
+ command.query['maxResults'] = max_results unless max_results.nil?
35214
+ command.query['orderBy'] = order_by unless order_by.nil?
35215
+ command.query['pageToken'] = page_token unless page_token.nil?
35216
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35217
+ command.query['fields'] = fields unless fields.nil?
35218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35219
+ command.query['userIp'] = user_ip unless user_ip.nil?
35220
+ execute_or_queue_command(command, &block)
35221
+ end
35222
+
35223
+ # Patches the specified PublicDelegatedPrefix resource with the data included
35224
+ # in the request. This method supportsPATCH
35225
+ # semantics and usesJSON merge
35226
+ # patch format and processing rules.
35227
+ # @param [String] project
35228
+ # Project ID for this request.
35229
+ # @param [String] region
35230
+ # Name of the region for this request.
35231
+ # @param [String] public_delegated_prefix
35232
+ # Name of the PublicDelegatedPrefix resource to patch.
35233
+ # @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
35234
+ # @param [String] request_id
35235
+ # An optional request ID to identify requests. Specify a unique request ID so
35236
+ # that if you must retry your request, the server will know to ignore the
35237
+ # request if it has already been completed.
35238
+ # For example, consider a situation where you make an initial request and
35239
+ # the request times out. If you make the request again with the same
35240
+ # request ID, the server can check if original operation with the same
35241
+ # request ID was received, and if so, will ignore the second request. This
35242
+ # prevents clients from accidentally creating duplicate commitments.
35243
+ # The request ID must be
35244
+ # a valid UUID with the exception that zero UUID is not supported
35245
+ # (00000000-0000-0000-0000-000000000000).
35246
+ # @param [String] fields
35247
+ # Selector specifying which fields to include in a partial response.
35248
+ # @param [String] quota_user
35249
+ # Available to use for quota purposes for server-side applications. Can be any
35250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35251
+ # @param [String] user_ip
35252
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35253
+ # @param [Google::Apis::RequestOptions] options
35254
+ # Request-specific options
35255
+ #
35256
+ # @yield [result, err] Result & error if block supplied
35257
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35258
+ # @yieldparam err [StandardError] error object if request failed
35259
+ #
35260
+ # @return [Google::Apis::ComputeBeta::Operation]
35261
+ #
35262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35265
+ def patch_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35266
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
35267
+ command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
35268
+ command.request_object = public_delegated_prefix_object
35269
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35270
+ command.response_class = Google::Apis::ComputeBeta::Operation
35271
+ command.params['project'] = project unless project.nil?
35272
+ command.params['region'] = region unless region.nil?
35273
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35274
+ command.query['requestId'] = request_id unless request_id.nil?
35275
+ command.query['fields'] = fields unless fields.nil?
35276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35277
+ command.query['userIp'] = user_ip unless user_ip.nil?
35278
+ execute_or_queue_command(command, &block)
35279
+ end
35280
+
35281
+ # Withdraws the specified PublicDelegatedPrefix in the given region.
35282
+ # @param [String] project
35283
+ # Project ID for this request.
35284
+ # @param [String] region
35285
+ # The name of theregion where
35286
+ # the public delegated prefix is located. It should comply with RFC1035.
35287
+ # @param [String] public_delegated_prefix
35288
+ # The name of the public delegated prefix. It should comply with RFC1035.
35289
+ # @param [String] request_id
35290
+ # An optional request ID to identify requests. Specify a unique request ID so
35291
+ # that if you must retry your request, the server will know to ignore the
35292
+ # request if it has already been completed.
35293
+ # For example, consider a situation where you make an initial request and
35294
+ # the request times out. If you make the request again with the same
35295
+ # request ID, the server can check if original operation with the same
35296
+ # request ID was received, and if so, will ignore the second request. This
35297
+ # prevents clients from accidentally creating duplicate commitments.
35298
+ # The request ID must be
35299
+ # a valid UUID with the exception that zero UUID is not supported
35300
+ # (00000000-0000-0000-0000-000000000000).
35301
+ # @param [String] fields
35302
+ # Selector specifying which fields to include in a partial response.
35303
+ # @param [String] quota_user
35304
+ # Available to use for quota purposes for server-side applications. Can be any
35305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35306
+ # @param [String] user_ip
35307
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35308
+ # @param [Google::Apis::RequestOptions] options
35309
+ # Request-specific options
35310
+ #
35311
+ # @yield [result, err] Result & error if block supplied
35312
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35313
+ # @yieldparam err [StandardError] error object if request failed
35314
+ #
35315
+ # @return [Google::Apis::ComputeBeta::Operation]
35316
+ #
35317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35320
+ def withdraw_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35321
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw', options)
35322
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35323
+ command.response_class = Google::Apis::ComputeBeta::Operation
35324
+ command.params['project'] = project unless project.nil?
35325
+ command.params['region'] = region unless region.nil?
35326
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35327
+ command.query['requestId'] = request_id unless request_id.nil?
35328
+ command.query['fields'] = fields unless fields.nil?
35329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35330
+ command.query['userIp'] = user_ip unless user_ip.nil?
35331
+ execute_or_queue_command(command, &block)
35332
+ end
35333
+
35334
+ # Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
35335
+ # will delete the underlying PD snapshot and is irreversible.
35336
+ # @param [String] project
35337
+ # Project ID for this request.
35338
+ # @param [String] recoverable_snapshot
35339
+ # Name of the recoverable Snapshot resource to delete.
35340
+ # @param [String] request_id
35341
+ # An optional request ID to identify requests. Specify a unique request ID so
35342
+ # that if you must retry your request, the server will know to ignore the
35343
+ # request if it has already been completed.
35344
+ # For example, consider a situation where you make an initial request and
35345
+ # the request times out. If you make the request again with the same
35346
+ # request ID, the server can check if original operation with the same
35347
+ # request ID was received, and if so, will ignore the second request. This
35348
+ # prevents clients from accidentally creating duplicate commitments.
35349
+ # The request ID must be
35350
+ # a valid UUID with the exception that zero UUID is not supported
35351
+ # (00000000-0000-0000-0000-000000000000).
35352
+ # @param [String] fields
35353
+ # Selector specifying which fields to include in a partial response.
35354
+ # @param [String] quota_user
35355
+ # Available to use for quota purposes for server-side applications. Can be any
35356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35357
+ # @param [String] user_ip
35358
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35359
+ # @param [Google::Apis::RequestOptions] options
35360
+ # Request-specific options
35361
+ #
35362
+ # @yield [result, err] Result & error if block supplied
35363
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35364
+ # @yieldparam err [StandardError] error object if request failed
35365
+ #
35366
+ # @return [Google::Apis::ComputeBeta::Operation]
35367
+ #
35368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35371
+ def delete_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35372
+ command = make_simple_command(:delete, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
34317
35373
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34318
35374
  command.response_class = Google::Apis::ComputeBeta::Operation
34319
35375
  command.params['project'] = project unless project.nil?
34320
- command.params['region'] = region unless region.nil?
34321
- command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35376
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
34322
35377
  command.query['requestId'] = request_id unless request_id.nil?
34323
35378
  command.query['fields'] = fields unless fields.nil?
34324
35379
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -34326,13 +35381,11 @@ module Google
34326
35381
  execute_or_queue_command(command, &block)
34327
35382
  end
34328
35383
 
34329
- # Returns the specified PublicDelegatedPrefix resource in the given region.
35384
+ # Returns the specified RecoverableSnapshot resource.
34330
35385
  # @param [String] project
34331
35386
  # Project ID for this request.
34332
- # @param [String] region
34333
- # Name of the region of this request.
34334
- # @param [String] public_delegated_prefix
34335
- # Name of the PublicDelegatedPrefix resource to return.
35387
+ # @param [String] recoverable_snapshot
35388
+ # Name of the Snapshot resource to return.
34336
35389
  # @param [String] fields
34337
35390
  # Selector specifying which fields to include in a partial response.
34338
35391
  # @param [String] quota_user
@@ -34344,46 +35397,34 @@ module Google
34344
35397
  # Request-specific options
34345
35398
  #
34346
35399
  # @yield [result, err] Result & error if block supplied
34347
- # @yieldparam result [Google::Apis::ComputeBeta::PublicDelegatedPrefix] parsed result object
35400
+ # @yieldparam result [Google::Apis::ComputeBeta::RecoverableSnapshot] parsed result object
34348
35401
  # @yieldparam err [StandardError] error object if request failed
34349
35402
  #
34350
- # @return [Google::Apis::ComputeBeta::PublicDelegatedPrefix]
35403
+ # @return [Google::Apis::ComputeBeta::RecoverableSnapshot]
34351
35404
  #
34352
35405
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34353
35406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34354
35407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34355
- def get_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34356
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
34357
- command.response_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
34358
- command.response_class = Google::Apis::ComputeBeta::PublicDelegatedPrefix
35408
+ def get_recoverable_snapshot(project, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35409
+ command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
35410
+ command.response_representation = Google::Apis::ComputeBeta::RecoverableSnapshot::Representation
35411
+ command.response_class = Google::Apis::ComputeBeta::RecoverableSnapshot
34359
35412
  command.params['project'] = project unless project.nil?
34360
- command.params['region'] = region unless region.nil?
34361
- command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35413
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
34362
35414
  command.query['fields'] = fields unless fields.nil?
34363
35415
  command.query['quotaUser'] = quota_user unless quota_user.nil?
34364
35416
  command.query['userIp'] = user_ip unless user_ip.nil?
34365
35417
  execute_or_queue_command(command, &block)
34366
35418
  end
34367
35419
 
34368
- # Creates a PublicDelegatedPrefix in the specified project in the given
34369
- # region using the parameters that are included in the request.
35420
+ # Gets the access control policy for a resource. May be empty if no such
35421
+ # policy or resource exists.
34370
35422
  # @param [String] project
34371
35423
  # Project ID for this request.
34372
- # @param [String] region
34373
- # Name of the region of this request.
34374
- # @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
34375
- # @param [String] request_id
34376
- # An optional request ID to identify requests. Specify a unique request ID so
34377
- # that if you must retry your request, the server will know to ignore the
34378
- # request if it has already been completed.
34379
- # For example, consider a situation where you make an initial request and
34380
- # the request times out. If you make the request again with the same
34381
- # request ID, the server can check if original operation with the same
34382
- # request ID was received, and if so, will ignore the second request. This
34383
- # prevents clients from accidentally creating duplicate commitments.
34384
- # The request ID must be
34385
- # a valid UUID with the exception that zero UUID is not supported
34386
- # (00000000-0000-0000-0000-000000000000).
35424
+ # @param [String] resource
35425
+ # Name or id of the resource for this request.
35426
+ # @param [Fixnum] options_requested_policy_version
35427
+ # Requested IAM Policy version.
34387
35428
  # @param [String] fields
34388
35429
  # Selector specifying which fields to include in a partial response.
34389
35430
  # @param [String] quota_user
@@ -34395,34 +35436,30 @@ module Google
34395
35436
  # Request-specific options
34396
35437
  #
34397
35438
  # @yield [result, err] Result & error if block supplied
34398
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35439
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
34399
35440
  # @yieldparam err [StandardError] error object if request failed
34400
35441
  #
34401
- # @return [Google::Apis::ComputeBeta::Operation]
35442
+ # @return [Google::Apis::ComputeBeta::Policy]
34402
35443
  #
34403
35444
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34404
35445
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34405
35446
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34406
- def insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34407
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
34408
- command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
34409
- command.request_object = public_delegated_prefix_object
34410
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34411
- command.response_class = Google::Apis::ComputeBeta::Operation
35447
+ def get_recoverable_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35448
+ command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{resource}/getIamPolicy', options)
35449
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
35450
+ command.response_class = Google::Apis::ComputeBeta::Policy
34412
35451
  command.params['project'] = project unless project.nil?
34413
- command.params['region'] = region unless region.nil?
34414
- command.query['requestId'] = request_id unless request_id.nil?
35452
+ command.params['resource'] = resource unless resource.nil?
35453
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
34415
35454
  command.query['fields'] = fields unless fields.nil?
34416
35455
  command.query['quotaUser'] = quota_user unless quota_user.nil?
34417
35456
  command.query['userIp'] = user_ip unless user_ip.nil?
34418
35457
  execute_or_queue_command(command, &block)
34419
35458
  end
34420
35459
 
34421
- # Lists the PublicDelegatedPrefixes for a project in the given region.
35460
+ # Retrieves a list of all of the RecoverableSnapshots in your project.
34422
35461
  # @param [String] project
34423
35462
  # Project ID for this request.
34424
- # @param [String] region
34425
- # Name of the region of this request.
34426
35463
  # @param [String] filter
34427
35464
  # A filter expression that filters resources listed in the response. Most
34428
35465
  # Compute resources support two types of filter expressions:
@@ -34510,20 +35547,19 @@ module Google
34510
35547
  # Request-specific options
34511
35548
  #
34512
35549
  # @yield [result, err] Result & error if block supplied
34513
- # @yieldparam result [Google::Apis::ComputeBeta::PublicDelegatedPrefixList] parsed result object
35550
+ # @yieldparam result [Google::Apis::ComputeBeta::RecoverableSnapshotList] parsed result object
34514
35551
  # @yieldparam err [StandardError] error object if request failed
34515
35552
  #
34516
- # @return [Google::Apis::ComputeBeta::PublicDelegatedPrefixList]
35553
+ # @return [Google::Apis::ComputeBeta::RecoverableSnapshotList]
34517
35554
  #
34518
35555
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34519
35556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34520
35557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34521
- def list_public_delegated_prefixes(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)
34522
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
34523
- command.response_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefixList::Representation
34524
- command.response_class = Google::Apis::ComputeBeta::PublicDelegatedPrefixList
35558
+ 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)
35559
+ command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots', options)
35560
+ command.response_representation = Google::Apis::ComputeBeta::RecoverableSnapshotList::Representation
35561
+ command.response_class = Google::Apis::ComputeBeta::RecoverableSnapshotList
34525
35562
  command.params['project'] = project unless project.nil?
34526
- command.params['region'] = region unless region.nil?
34527
35563
  command.query['filter'] = filter unless filter.nil?
34528
35564
  command.query['maxResults'] = max_results unless max_results.nil?
34529
35565
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -34535,17 +35571,11 @@ module Google
34535
35571
  execute_or_queue_command(command, &block)
34536
35572
  end
34537
35573
 
34538
- # Patches the specified PublicDelegatedPrefix resource with the data included
34539
- # in the request. This method supportsPATCH
34540
- # semantics and usesJSON merge
34541
- # patch format and processing rules.
35574
+ # Recovers the specified RecoverableSnapshot.
34542
35575
  # @param [String] project
34543
- # Project ID for this request.
34544
- # @param [String] region
34545
- # Name of the region for this request.
34546
- # @param [String] public_delegated_prefix
34547
- # Name of the PublicDelegatedPrefix resource to patch.
34548
- # @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
35576
+ # Project Id of the request
35577
+ # @param [String] recoverable_snapshot
35578
+ # Name of the recoverable resource to recover
34549
35579
  # @param [String] request_id
34550
35580
  # An optional request ID to identify requests. Specify a unique request ID so
34551
35581
  # that if you must retry your request, the server will know to ignore the
@@ -34558,6 +35588,14 @@ module Google
34558
35588
  # The request ID must be
34559
35589
  # a valid UUID with the exception that zero UUID is not supported
34560
35590
  # (00000000-0000-0000-0000-000000000000).
35591
+ # @param [String] snapshot_name
35592
+ # Optional. Name of the snapshot after the recovery
35593
+ # The name will be 1-63 characters long, and comply withRFC1035.
35594
+ # Specifically, the name will be 1-63 characters long and match the regular
35595
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
35596
+ # character will be a lowercase letter, and all following characters can be
35597
+ # a dash, lowercase letter, or digit, except the last character, which cannot
35598
+ # be a dash.
34561
35599
  # @param [String] fields
34562
35600
  # Selector specifying which fields to include in a partial response.
34563
35601
  # @param [String] quota_user
@@ -34577,42 +35615,27 @@ module Google
34577
35615
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34578
35616
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34579
35617
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34580
- def patch_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34581
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
34582
- command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
34583
- command.request_object = public_delegated_prefix_object
35618
+ def recover_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35619
+ command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover', options)
34584
35620
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34585
35621
  command.response_class = Google::Apis::ComputeBeta::Operation
34586
35622
  command.params['project'] = project unless project.nil?
34587
- command.params['region'] = region unless region.nil?
34588
- command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
35623
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
34589
35624
  command.query['requestId'] = request_id unless request_id.nil?
35625
+ command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
34590
35626
  command.query['fields'] = fields unless fields.nil?
34591
35627
  command.query['quotaUser'] = quota_user unless quota_user.nil?
34592
35628
  command.query['userIp'] = user_ip unless user_ip.nil?
34593
35629
  execute_or_queue_command(command, &block)
34594
35630
  end
34595
35631
 
34596
- # Withdraws the specified PublicDelegatedPrefix in the given region.
35632
+ # Sets the access control policy on the specified resource.
35633
+ # Replaces any existing policy.
34597
35634
  # @param [String] project
34598
35635
  # Project ID for this request.
34599
- # @param [String] region
34600
- # The name of theregion where
34601
- # the public delegated prefix is located. It should comply with RFC1035.
34602
- # @param [String] public_delegated_prefix
34603
- # The name of the public delegated prefix. It should comply with RFC1035.
34604
- # @param [String] request_id
34605
- # An optional request ID to identify requests. Specify a unique request ID so
34606
- # that if you must retry your request, the server will know to ignore the
34607
- # request if it has already been completed.
34608
- # For example, consider a situation where you make an initial request and
34609
- # the request times out. If you make the request again with the same
34610
- # request ID, the server can check if original operation with the same
34611
- # request ID was received, and if so, will ignore the second request. This
34612
- # prevents clients from accidentally creating duplicate commitments.
34613
- # The request ID must be
34614
- # a valid UUID with the exception that zero UUID is not supported
34615
- # (00000000-0000-0000-0000-000000000000).
35636
+ # @param [String] resource
35637
+ # Name or id of the resource for this request.
35638
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
34616
35639
  # @param [String] fields
34617
35640
  # Selector specifying which fields to include in a partial response.
34618
35641
  # @param [String] quota_user
@@ -34624,22 +35647,61 @@ module Google
34624
35647
  # Request-specific options
34625
35648
  #
34626
35649
  # @yield [result, err] Result & error if block supplied
34627
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35650
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
34628
35651
  # @yieldparam err [StandardError] error object if request failed
34629
35652
  #
34630
- # @return [Google::Apis::ComputeBeta::Operation]
35653
+ # @return [Google::Apis::ComputeBeta::Policy]
34631
35654
  #
34632
35655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34633
35656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34634
35657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34635
- def withdraw_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34636
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw', options)
34637
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
34638
- command.response_class = Google::Apis::ComputeBeta::Operation
35658
+ 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)
35659
+ command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/setIamPolicy', options)
35660
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
35661
+ command.request_object = global_set_policy_request_object
35662
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
35663
+ command.response_class = Google::Apis::ComputeBeta::Policy
34639
35664
  command.params['project'] = project unless project.nil?
34640
- command.params['region'] = region unless region.nil?
34641
- command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
34642
- command.query['requestId'] = request_id unless request_id.nil?
35665
+ command.params['resource'] = resource unless resource.nil?
35666
+ command.query['fields'] = fields unless fields.nil?
35667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35668
+ command.query['userIp'] = user_ip unless user_ip.nil?
35669
+ execute_or_queue_command(command, &block)
35670
+ end
35671
+
35672
+ # Returns permissions that a caller has on the specified resource.
35673
+ # @param [String] project
35674
+ # Project ID for this request.
35675
+ # @param [String] resource
35676
+ # Name or id of the resource for this request.
35677
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
35678
+ # @param [String] fields
35679
+ # Selector specifying which fields to include in a partial response.
35680
+ # @param [String] quota_user
35681
+ # Available to use for quota purposes for server-side applications. Can be any
35682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35683
+ # @param [String] user_ip
35684
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35685
+ # @param [Google::Apis::RequestOptions] options
35686
+ # Request-specific options
35687
+ #
35688
+ # @yield [result, err] Result & error if block supplied
35689
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
35690
+ # @yieldparam err [StandardError] error object if request failed
35691
+ #
35692
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
35693
+ #
35694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35697
+ def test_recoverable_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35698
+ command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/testIamPermissions', options)
35699
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
35700
+ command.request_object = test_permissions_request_object
35701
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
35702
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
35703
+ command.params['project'] = project unless project.nil?
35704
+ command.params['resource'] = resource unless resource.nil?
34643
35705
  command.query['fields'] = fields unless fields.nil?
34644
35706
  command.query['quotaUser'] = quota_user unless quota_user.nil?
34645
35707
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -52293,6 +53355,55 @@ module Google
52293
53355
  execute_or_queue_command(command, &block)
52294
53356
  end
52295
53357
 
53358
+ # Get health info on a reservation slot.
53359
+ # @param [String] project
53360
+ # Project ID for this request.
53361
+ # @param [String] zone
53362
+ # Name of the zone for this request. Zone name should conform to RFC1035.
53363
+ # @param [String] parent_name
53364
+ # The name of the parent reservation, parent block and parent sub-block. In
53365
+ # the format of
53366
+ # reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
53367
+ # reservationSubBlocks/`reservation_sub_block_name`
53368
+ # @param [String] reservation_slot
53369
+ # The name of the reservation slot.
53370
+ # Name should conform to RFC1035 or be a resource ID.
53371
+ # @param [String] request_id
53372
+ # An optional request ID to identify requests.
53373
+ # @param [String] fields
53374
+ # Selector specifying which fields to include in a partial response.
53375
+ # @param [String] quota_user
53376
+ # Available to use for quota purposes for server-side applications. Can be any
53377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53378
+ # @param [String] user_ip
53379
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53380
+ # @param [Google::Apis::RequestOptions] options
53381
+ # Request-specific options
53382
+ #
53383
+ # @yield [result, err] Result & error if block supplied
53384
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
53385
+ # @yieldparam err [StandardError] error object if request failed
53386
+ #
53387
+ # @return [Google::Apis::ComputeBeta::Operation]
53388
+ #
53389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53392
+ def get_reservation_slot_health(project, zone, parent_name, reservation_slot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53393
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth', options)
53394
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
53395
+ command.response_class = Google::Apis::ComputeBeta::Operation
53396
+ command.params['project'] = project unless project.nil?
53397
+ command.params['zone'] = zone unless zone.nil?
53398
+ command.params['parentName'] = parent_name unless parent_name.nil?
53399
+ command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
53400
+ command.query['requestId'] = request_id unless request_id.nil?
53401
+ command.query['fields'] = fields unless fields.nil?
53402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53403
+ command.query['userIp'] = user_ip unless user_ip.nil?
53404
+ execute_or_queue_command(command, &block)
53405
+ end
53406
+
52296
53407
  # Allows customers to get SBOM versions of a reservation slot.
52297
53408
  # @param [String] project
52298
53409
  # Project ID for this request.
@@ -58581,6 +59692,88 @@ module Google
58581
59692
  execute_or_queue_command(command, &block)
58582
59693
  end
58583
59694
 
59695
+ # Returns the specified SnapshotRecycleBinPolicy.
59696
+ # @param [String] project
59697
+ # Project ID for this request.
59698
+ # @param [String] fields
59699
+ # Selector specifying which fields to include in a partial response.
59700
+ # @param [String] quota_user
59701
+ # Available to use for quota purposes for server-side applications. Can be any
59702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59703
+ # @param [String] user_ip
59704
+ # Legacy name for parameter that has been superseded by `quotaUser`.
59705
+ # @param [Google::Apis::RequestOptions] options
59706
+ # Request-specific options
59707
+ #
59708
+ # @yield [result, err] Result & error if block supplied
59709
+ # @yieldparam result [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] parsed result object
59710
+ # @yieldparam err [StandardError] error object if request failed
59711
+ #
59712
+ # @return [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy]
59713
+ #
59714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
59715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
59716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
59717
+ def get_snapshot_recycle_bin_policy(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
59718
+ command = make_simple_command(:get, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
59719
+ command.response_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
59720
+ command.response_class = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy
59721
+ command.params['project'] = project unless project.nil?
59722
+ command.query['fields'] = fields unless fields.nil?
59723
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
59724
+ command.query['userIp'] = user_ip unless user_ip.nil?
59725
+ execute_or_queue_command(command, &block)
59726
+ end
59727
+
59728
+ # Patches the SnapshotRecycleBinPolicy.
59729
+ # @param [String] project
59730
+ # Project ID for this request.
59731
+ # @param [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
59732
+ # @param [String] request_id
59733
+ # An optional request ID to identify requests. Specify a unique request ID so
59734
+ # that if you must retry your request, the server will know to ignore the
59735
+ # request if it has already been completed.
59736
+ # For example, consider a situation where you make an initial request and
59737
+ # the request times out. If you make the request again with the same
59738
+ # request ID, the server can check if original operation with the same
59739
+ # request ID was received, and if so, will ignore the second request. This
59740
+ # prevents clients from accidentally creating duplicate commitments.
59741
+ # The request ID must be
59742
+ # a valid UUID with the exception that zero UUID is not supported
59743
+ # (00000000-0000-0000-0000-000000000000).
59744
+ # @param [String] fields
59745
+ # Selector specifying which fields to include in a partial response.
59746
+ # @param [String] quota_user
59747
+ # Available to use for quota purposes for server-side applications. Can be any
59748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59749
+ # @param [String] user_ip
59750
+ # Legacy name for parameter that has been superseded by `quotaUser`.
59751
+ # @param [Google::Apis::RequestOptions] options
59752
+ # Request-specific options
59753
+ #
59754
+ # @yield [result, err] Result & error if block supplied
59755
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
59756
+ # @yieldparam err [StandardError] error object if request failed
59757
+ #
59758
+ # @return [Google::Apis::ComputeBeta::Operation]
59759
+ #
59760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
59761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
59762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
59763
+ def patch_snapshot_recycle_bin_policy(project, snapshot_recycle_bin_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
59764
+ command = make_simple_command(:patch, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
59765
+ command.request_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
59766
+ command.request_object = snapshot_recycle_bin_policy_object
59767
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
59768
+ command.response_class = Google::Apis::ComputeBeta::Operation
59769
+ command.params['project'] = project unless project.nil?
59770
+ command.query['requestId'] = request_id unless request_id.nil?
59771
+ command.query['fields'] = fields unless fields.nil?
59772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
59773
+ command.query['userIp'] = user_ip unless user_ip.nil?
59774
+ execute_or_queue_command(command, &block)
59775
+ end
59776
+
58584
59777
  # Get snapshot settings.
58585
59778
  # @param [String] project
58586
59779
  # Project ID for this request.
@@ -58887,6 +60080,44 @@ module Google
58887
60080
  execute_or_queue_command(command, &block)
58888
60081
  end
58889
60082
 
60083
+ # Returns the effective recycle bin rule for a snapshot by merging org and
60084
+ # project level rules. If no rules are defined at org and project level, the
60085
+ # standard default rule is returned.
60086
+ # @param [String] project
60087
+ # Project ID for this request.
60088
+ # @param [String] snapshot
60089
+ # Name of the Snapshot resource to get the effective recycle bin rule for.
60090
+ # @param [String] fields
60091
+ # Selector specifying which fields to include in a partial response.
60092
+ # @param [String] quota_user
60093
+ # Available to use for quota purposes for server-side applications. Can be any
60094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60095
+ # @param [String] user_ip
60096
+ # Legacy name for parameter that has been superseded by `quotaUser`.
60097
+ # @param [Google::Apis::RequestOptions] options
60098
+ # Request-specific options
60099
+ #
60100
+ # @yield [result, err] Result & error if block supplied
60101
+ # @yieldparam result [Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse] parsed result object
60102
+ # @yieldparam err [StandardError] error object if request failed
60103
+ #
60104
+ # @return [Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse]
60105
+ #
60106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
60109
+ def get_snapshot_effective_recycle_bin_rule(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
60110
+ command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule', options)
60111
+ command.response_representation = Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse::Representation
60112
+ command.response_class = Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse
60113
+ command.params['project'] = project unless project.nil?
60114
+ command.params['snapshot'] = snapshot unless snapshot.nil?
60115
+ command.query['fields'] = fields unless fields.nil?
60116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
60117
+ command.query['userIp'] = user_ip unless user_ip.nil?
60118
+ execute_or_queue_command(command, &block)
60119
+ end
60120
+
58890
60121
  # Gets the access control policy for a resource. May be empty if no such
58891
60122
  # policy or resource exists.
58892
60123
  # @param [String] project