google-apis-compute_beta 0.146.0 → 0.148.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_beta/classes.rb +2092 -537
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +491 -0
- data/lib/google/apis/compute_beta/service.rb +1526 -87
- metadata +2 -2
|
@@ -927,6 +927,48 @@ module Google
|
|
|
927
927
|
execute_or_queue_command(command, &block)
|
|
928
928
|
end
|
|
929
929
|
|
|
930
|
+
# Advises on whether extending an existing future reservation is possible
|
|
931
|
+
# based on the desired extension end time. If capacity isn't available for
|
|
932
|
+
# the entire requested duration, the method recommends the longest possible
|
|
933
|
+
# extension.
|
|
934
|
+
# @param [String] project
|
|
935
|
+
# Project ID for this request.
|
|
936
|
+
# @param [String] region
|
|
937
|
+
# Name of the region for this request.
|
|
938
|
+
# @param [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest] calendar_mode_extension_advice_request_object
|
|
939
|
+
# @param [String] fields
|
|
940
|
+
# Selector specifying which fields to include in a partial response.
|
|
941
|
+
# @param [String] quota_user
|
|
942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
944
|
+
# @param [String] user_ip
|
|
945
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
946
|
+
# @param [Google::Apis::RequestOptions] options
|
|
947
|
+
# Request-specific options
|
|
948
|
+
#
|
|
949
|
+
# @yield [result, err] Result & error if block supplied
|
|
950
|
+
# @yieldparam result [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse] parsed result object
|
|
951
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
952
|
+
#
|
|
953
|
+
# @return [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse]
|
|
954
|
+
#
|
|
955
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
956
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
957
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
958
|
+
def calendar_mode_extension_advice(project, region, calendar_mode_extension_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
959
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarModeExtension', options)
|
|
960
|
+
command.request_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest::Representation
|
|
961
|
+
command.request_object = calendar_mode_extension_advice_request_object
|
|
962
|
+
command.response_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse::Representation
|
|
963
|
+
command.response_class = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse
|
|
964
|
+
command.params['project'] = project unless project.nil?
|
|
965
|
+
command.params['region'] = region unless region.nil?
|
|
966
|
+
command.query['fields'] = fields unless fields.nil?
|
|
967
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
968
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
969
|
+
execute_or_queue_command(command, &block)
|
|
970
|
+
end
|
|
971
|
+
|
|
930
972
|
# Advice on making real-time decisions (such as choosing zone or
|
|
931
973
|
# machine types) during deployment to maximize your chances of obtaining
|
|
932
974
|
# capacity.
|
|
@@ -3774,11 +3816,26 @@ module Google
|
|
|
3774
3816
|
execute_or_queue_command(command, &block)
|
|
3775
3817
|
end
|
|
3776
3818
|
|
|
3777
|
-
#
|
|
3819
|
+
# Deletes the specified DhcpOptionsConfig in the given location
|
|
3778
3820
|
# @param [String] project
|
|
3779
3821
|
# Project ID for this request.
|
|
3780
|
-
# @param [String]
|
|
3781
|
-
# Name of the
|
|
3822
|
+
# @param [String] region
|
|
3823
|
+
# Name of the region of this request.
|
|
3824
|
+
# @param [String] dhcp_options_config
|
|
3825
|
+
# Name of the DhcpOptionsConfig resource to delete.
|
|
3826
|
+
# @param [String] request_id
|
|
3827
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
3828
|
+
# that if you must retry your request, the server will know to ignore the
|
|
3829
|
+
# request if it has already been completed.
|
|
3830
|
+
# For example, consider a situation where you make an initial request and
|
|
3831
|
+
# the request times out. If you make the request again with the same
|
|
3832
|
+
# request ID, the server can check if original operation with the same
|
|
3833
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
3834
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
3835
|
+
# The request ID must be
|
|
3836
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
3837
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
3838
|
+
# end_interface: MixerMutationRequestBuilder
|
|
3782
3839
|
# @param [String] fields
|
|
3783
3840
|
# Selector specifying which fields to include in a partial response.
|
|
3784
3841
|
# @param [String] quota_user
|
|
@@ -3790,32 +3847,384 @@ module Google
|
|
|
3790
3847
|
# Request-specific options
|
|
3791
3848
|
#
|
|
3792
3849
|
# @yield [result, err] Result & error if block supplied
|
|
3793
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
3850
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
3794
3851
|
# @yieldparam err [StandardError] error object if request failed
|
|
3795
3852
|
#
|
|
3796
|
-
# @return [Google::Apis::ComputeBeta::
|
|
3853
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
3797
3854
|
#
|
|
3798
3855
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3799
3856
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3800
3857
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3801
|
-
def
|
|
3802
|
-
command = make_simple_command(:
|
|
3803
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
|
3804
|
-
command.response_class = Google::Apis::ComputeBeta::
|
|
3858
|
+
def delete_dhcp_options_config(project, region, dhcp_options_config, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3859
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
3860
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
3861
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
3805
3862
|
command.params['project'] = project unless project.nil?
|
|
3806
|
-
command.params['
|
|
3863
|
+
command.params['region'] = region unless region.nil?
|
|
3864
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
3865
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
3807
3866
|
command.query['fields'] = fields unless fields.nil?
|
|
3808
3867
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3809
3868
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3810
3869
|
execute_or_queue_command(command, &block)
|
|
3811
3870
|
end
|
|
3812
3871
|
|
|
3813
|
-
#
|
|
3872
|
+
# Returns the specified DhcpOptionsConfig resource in the given location.
|
|
3814
3873
|
# @param [String] project
|
|
3815
3874
|
# Project ID for this request.
|
|
3816
|
-
# @param [String]
|
|
3817
|
-
#
|
|
3818
|
-
# @param [
|
|
3875
|
+
# @param [String] region
|
|
3876
|
+
# Name of the region of this request.
|
|
3877
|
+
# @param [String] dhcp_options_config
|
|
3878
|
+
# Name of the DhcpOptionsConfig resource to return.
|
|
3879
|
+
# @param [String] fields
|
|
3880
|
+
# Selector specifying which fields to include in a partial response.
|
|
3881
|
+
# @param [String] quota_user
|
|
3882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3884
|
+
# @param [String] user_ip
|
|
3885
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
3886
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3887
|
+
# Request-specific options
|
|
3888
|
+
#
|
|
3889
|
+
# @yield [result, err] Result & error if block supplied
|
|
3890
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DhcpOptionsConfig] parsed result object
|
|
3891
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3892
|
+
#
|
|
3893
|
+
# @return [Google::Apis::ComputeBeta::DhcpOptionsConfig]
|
|
3894
|
+
#
|
|
3895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3898
|
+
def get_dhcp_options_config(project, region, dhcp_options_config, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3899
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
3900
|
+
command.response_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
|
|
3901
|
+
command.response_class = Google::Apis::ComputeBeta::DhcpOptionsConfig
|
|
3902
|
+
command.params['project'] = project unless project.nil?
|
|
3903
|
+
command.params['region'] = region unless region.nil?
|
|
3904
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
3905
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3906
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3907
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3908
|
+
execute_or_queue_command(command, &block)
|
|
3909
|
+
end
|
|
3910
|
+
|
|
3911
|
+
# Creates a DhcpOptionsConfig in the specified project in the given location
|
|
3912
|
+
# using the parameters that are included in the request.
|
|
3913
|
+
# @param [String] project
|
|
3914
|
+
# Project ID for this request.
|
|
3915
|
+
# @param [String] region
|
|
3916
|
+
# Name of the region of this request.
|
|
3917
|
+
# @param [Google::Apis::ComputeBeta::DhcpOptionsConfig] dhcp_options_config_object
|
|
3918
|
+
# @param [String] request_id
|
|
3919
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
3920
|
+
# that if you must retry your request, the server will know to ignore the
|
|
3921
|
+
# request if it has already been completed.
|
|
3922
|
+
# For example, consider a situation where you make an initial request and
|
|
3923
|
+
# the request times out. If you make the request again with the same
|
|
3924
|
+
# request ID, the server can check if original operation with the same
|
|
3925
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
3926
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
3927
|
+
# The request ID must be
|
|
3928
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
3929
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
3930
|
+
# end_interface: MixerMutationRequestBuilder
|
|
3931
|
+
# @param [String] fields
|
|
3932
|
+
# Selector specifying which fields to include in a partial response.
|
|
3933
|
+
# @param [String] quota_user
|
|
3934
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3935
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3936
|
+
# @param [String] user_ip
|
|
3937
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
3938
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3939
|
+
# Request-specific options
|
|
3940
|
+
#
|
|
3941
|
+
# @yield [result, err] Result & error if block supplied
|
|
3942
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
3943
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3944
|
+
#
|
|
3945
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
3946
|
+
#
|
|
3947
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3948
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3949
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3950
|
+
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)
|
|
3951
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
|
|
3952
|
+
command.request_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
|
|
3953
|
+
command.request_object = dhcp_options_config_object
|
|
3954
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
3955
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
3956
|
+
command.params['project'] = project unless project.nil?
|
|
3957
|
+
command.params['region'] = region unless region.nil?
|
|
3958
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
3959
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3960
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3961
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3962
|
+
execute_or_queue_command(command, &block)
|
|
3963
|
+
end
|
|
3964
|
+
|
|
3965
|
+
# Lists the DhcpOptionsConfigs for a project in the given location.
|
|
3966
|
+
# @param [String] project
|
|
3967
|
+
# Project ID for this request.
|
|
3968
|
+
# @param [String] region
|
|
3969
|
+
# Name of the region of this request.
|
|
3970
|
+
# @param [String] filter
|
|
3971
|
+
# A filter expression that filters resources listed in the response. Most
|
|
3972
|
+
# Compute resources support two types of filter expressions:
|
|
3973
|
+
# expressions that support regular expressions and expressions that follow
|
|
3974
|
+
# API improvement proposal AIP-160.
|
|
3975
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
3976
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
3977
|
+
# operator, and the value that you want to use for filtering. The value
|
|
3978
|
+
# must be a string, a number, or a boolean. The operator
|
|
3979
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
3980
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
3981
|
+
# exclude instances named `example-instance` by specifying
|
|
3982
|
+
# `name != example-instance`.
|
|
3983
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
3984
|
+
# For example, to find all objects with `owner` label use:
|
|
3985
|
+
# ```
|
|
3986
|
+
# labels.owner:*
|
|
3987
|
+
# ```
|
|
3988
|
+
# You can also filter nested fields. For example, you could specify
|
|
3989
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
3990
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
3991
|
+
# on nested fields to filter based onresource labels.
|
|
3992
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
3993
|
+
# parentheses. For example:
|
|
3994
|
+
# ```
|
|
3995
|
+
# (scheduling.automaticRestart = true)
|
|
3996
|
+
# (cpuPlatform = "Intel Skylake")
|
|
3997
|
+
# ```
|
|
3998
|
+
# By default, each expression is an `AND` expression. However, you
|
|
3999
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
4000
|
+
# For example:
|
|
4001
|
+
# ```
|
|
4002
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
4003
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
4004
|
+
# (scheduling.automaticRestart = true)
|
|
4005
|
+
# ```
|
|
4006
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
4007
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
4008
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
4009
|
+
# `fieldname eq unquoted literal`
|
|
4010
|
+
# `fieldname eq 'single quoted literal'`
|
|
4011
|
+
# `fieldname eq "double quoted literal"`
|
|
4012
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
4013
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
4014
|
+
# library syntax.
|
|
4015
|
+
# The literal value must match the entire field.
|
|
4016
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
4017
|
+
# you would use `name ne .*instance`.
|
|
4018
|
+
# You cannot combine constraints on multiple fields using regular
|
|
4019
|
+
# expressions.
|
|
4020
|
+
# @param [Fixnum] max_results
|
|
4021
|
+
# The maximum number of results per page that should be returned.
|
|
4022
|
+
# If the number of available results is larger than `maxResults`,
|
|
4023
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
4024
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
4025
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
4026
|
+
# @param [String] order_by
|
|
4027
|
+
# Sorts list results by a certain order. By default, results
|
|
4028
|
+
# are returned in alphanumerical order based on the resource name.
|
|
4029
|
+
# You can also sort results in descending order based on the creation
|
|
4030
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
4031
|
+
# results based on the `creationTimestamp` field in
|
|
4032
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
4033
|
+
# resources like operations so that the newest operation is returned first.
|
|
4034
|
+
# Currently, only sorting by `name` or
|
|
4035
|
+
# `creationTimestamp desc` is supported.
|
|
4036
|
+
# @param [String] page_token
|
|
4037
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
4038
|
+
# `nextPageToken` returned by a previous list request to get
|
|
4039
|
+
# the next page of results.
|
|
4040
|
+
# @param [Boolean] return_partial_success
|
|
4041
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
4042
|
+
# of failure. The default value is false.
|
|
4043
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
4044
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
4045
|
+
# with an error code.
|
|
4046
|
+
# @param [String] fields
|
|
4047
|
+
# Selector specifying which fields to include in a partial response.
|
|
4048
|
+
# @param [String] quota_user
|
|
4049
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4050
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4051
|
+
# @param [String] user_ip
|
|
4052
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4053
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4054
|
+
# Request-specific options
|
|
4055
|
+
#
|
|
4056
|
+
# @yield [result, err] Result & error if block supplied
|
|
4057
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DhcpOptionsConfigList] parsed result object
|
|
4058
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4059
|
+
#
|
|
4060
|
+
# @return [Google::Apis::ComputeBeta::DhcpOptionsConfigList]
|
|
4061
|
+
#
|
|
4062
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4063
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4064
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4065
|
+
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)
|
|
4066
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
|
|
4067
|
+
command.response_representation = Google::Apis::ComputeBeta::DhcpOptionsConfigList::Representation
|
|
4068
|
+
command.response_class = Google::Apis::ComputeBeta::DhcpOptionsConfigList
|
|
4069
|
+
command.params['project'] = project unless project.nil?
|
|
4070
|
+
command.params['region'] = region unless region.nil?
|
|
4071
|
+
command.query['filter'] = filter unless filter.nil?
|
|
4072
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
4073
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
4074
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
4075
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
4076
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4077
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4078
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4079
|
+
execute_or_queue_command(command, &block)
|
|
4080
|
+
end
|
|
4081
|
+
|
|
4082
|
+
# Patches the specified DhcpOptionsConfig resource with the data included in
|
|
4083
|
+
# the request. This method supports PATCH
|
|
4084
|
+
# semantics and usesJSON merge
|
|
4085
|
+
# patch format and processing rules.
|
|
4086
|
+
# @param [String] project
|
|
4087
|
+
# Project ID for this request.
|
|
4088
|
+
# @param [String] region
|
|
4089
|
+
# Name of the region for this request.
|
|
4090
|
+
# @param [String] dhcp_options_config
|
|
4091
|
+
# Name of the DhcpOptionsConfig resource to patch.
|
|
4092
|
+
# @param [Google::Apis::ComputeBeta::DhcpOptionsConfig] dhcp_options_config_object
|
|
4093
|
+
# @param [String] request_id
|
|
4094
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
4095
|
+
# that if you must retry your request, the server will know to ignore the
|
|
4096
|
+
# request if it has already been completed.
|
|
4097
|
+
# For example, consider a situation where you make an initial request and
|
|
4098
|
+
# the request times out. If you make the request again with the same
|
|
4099
|
+
# request ID, the server can check if original operation with the same
|
|
4100
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
4101
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
4102
|
+
# The request ID must be
|
|
4103
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
4104
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
4105
|
+
# end_interface: MixerMutationRequestBuilder
|
|
4106
|
+
# @param [String] update_mask
|
|
4107
|
+
# update_mask indicates fields to be updated as part of this request.
|
|
4108
|
+
# @param [String] fields
|
|
4109
|
+
# Selector specifying which fields to include in a partial response.
|
|
4110
|
+
# @param [String] quota_user
|
|
4111
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4112
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4113
|
+
# @param [String] user_ip
|
|
4114
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4115
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4116
|
+
# Request-specific options
|
|
4117
|
+
#
|
|
4118
|
+
# @yield [result, err] Result & error if block supplied
|
|
4119
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
4120
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4121
|
+
#
|
|
4122
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
4123
|
+
#
|
|
4124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4127
|
+
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)
|
|
4128
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
4129
|
+
command.request_representation = Google::Apis::ComputeBeta::DhcpOptionsConfig::Representation
|
|
4130
|
+
command.request_object = dhcp_options_config_object
|
|
4131
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
4132
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
4133
|
+
command.params['project'] = project unless project.nil?
|
|
4134
|
+
command.params['region'] = region unless region.nil?
|
|
4135
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
4136
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
4137
|
+
command.query['updateMask'] = update_mask unless update_mask.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
|
+
|
|
4144
|
+
# Returns permissions that a caller has on the specified resource.
|
|
4145
|
+
# @param [String] project
|
|
4146
|
+
# Project ID for this request.
|
|
4147
|
+
# @param [String] region
|
|
4148
|
+
# The name of the region for this request.
|
|
4149
|
+
# @param [String] resource
|
|
4150
|
+
# Name or id of the resource for this request.
|
|
4151
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
4152
|
+
# @param [String] fields
|
|
4153
|
+
# Selector specifying which fields to include in a partial response.
|
|
4154
|
+
# @param [String] quota_user
|
|
4155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4157
|
+
# @param [String] user_ip
|
|
4158
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4159
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4160
|
+
# Request-specific options
|
|
4161
|
+
#
|
|
4162
|
+
# @yield [result, err] Result & error if block supplied
|
|
4163
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
4164
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4165
|
+
#
|
|
4166
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
4167
|
+
#
|
|
4168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4171
|
+
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)
|
|
4172
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions', options)
|
|
4173
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
4174
|
+
command.request_object = test_permissions_request_object
|
|
4175
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
4176
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
4177
|
+
command.params['project'] = project unless project.nil?
|
|
4178
|
+
command.params['region'] = region unless region.nil?
|
|
4179
|
+
command.params['resource'] = resource unless resource.nil?
|
|
4180
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4182
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4183
|
+
execute_or_queue_command(command, &block)
|
|
4184
|
+
end
|
|
4185
|
+
|
|
4186
|
+
# Get Zonal Disk Settings.
|
|
4187
|
+
# @param [String] project
|
|
4188
|
+
# Project ID for this request.
|
|
4189
|
+
# @param [String] zone
|
|
4190
|
+
# Name of the zone for this request.
|
|
4191
|
+
# @param [String] fields
|
|
4192
|
+
# Selector specifying which fields to include in a partial response.
|
|
4193
|
+
# @param [String] quota_user
|
|
4194
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4195
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4196
|
+
# @param [String] user_ip
|
|
4197
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4198
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4199
|
+
# Request-specific options
|
|
4200
|
+
#
|
|
4201
|
+
# @yield [result, err] Result & error if block supplied
|
|
4202
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskSettings] parsed result object
|
|
4203
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4204
|
+
#
|
|
4205
|
+
# @return [Google::Apis::ComputeBeta::DiskSettings]
|
|
4206
|
+
#
|
|
4207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4210
|
+
def get_disk_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4211
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskSettings', options)
|
|
4212
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
|
4213
|
+
command.response_class = Google::Apis::ComputeBeta::DiskSettings
|
|
4214
|
+
command.params['project'] = project unless project.nil?
|
|
4215
|
+
command.params['zone'] = zone unless zone.nil?
|
|
4216
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4218
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4219
|
+
execute_or_queue_command(command, &block)
|
|
4220
|
+
end
|
|
4221
|
+
|
|
4222
|
+
# Patch Zonal Disk Settings
|
|
4223
|
+
# @param [String] project
|
|
4224
|
+
# Project ID for this request.
|
|
4225
|
+
# @param [String] zone
|
|
4226
|
+
# The name of the zone for this request.
|
|
4227
|
+
# @param [Google::Apis::ComputeBeta::DiskSettings] disk_settings_object
|
|
3819
4228
|
# @param [String] request_id
|
|
3820
4229
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
3821
4230
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -9074,6 +9483,78 @@ module Google
|
|
|
9074
9483
|
execute_or_queue_command(command, &block)
|
|
9075
9484
|
end
|
|
9076
9485
|
|
|
9486
|
+
# Gets the Global Frontend Billing Bundle Settings for a project.
|
|
9487
|
+
# @param [String] project
|
|
9488
|
+
# @param [String] fields
|
|
9489
|
+
# Selector specifying which fields to include in a partial response.
|
|
9490
|
+
# @param [String] quota_user
|
|
9491
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9492
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9493
|
+
# @param [String] user_ip
|
|
9494
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
9495
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9496
|
+
# Request-specific options
|
|
9497
|
+
#
|
|
9498
|
+
# @yield [result, err] Result & error if block supplied
|
|
9499
|
+
# @yieldparam result [Google::Apis::ComputeBeta::GlobalFrontendSettings] parsed result object
|
|
9500
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9501
|
+
#
|
|
9502
|
+
# @return [Google::Apis::ComputeBeta::GlobalFrontendSettings]
|
|
9503
|
+
#
|
|
9504
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9505
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9506
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9507
|
+
def get_global_frontend_setting(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9508
|
+
command = make_simple_command(:get, 'projects/{project}/global/globalFrontendSettings', options)
|
|
9509
|
+
command.response_representation = Google::Apis::ComputeBeta::GlobalFrontendSettings::Representation
|
|
9510
|
+
command.response_class = Google::Apis::ComputeBeta::GlobalFrontendSettings
|
|
9511
|
+
command.params['project'] = project unless project.nil?
|
|
9512
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9514
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9515
|
+
execute_or_queue_command(command, &block)
|
|
9516
|
+
end
|
|
9517
|
+
|
|
9518
|
+
# Updates the Global Frontend Billing Bundle Settings for a project.
|
|
9519
|
+
# @param [String] project
|
|
9520
|
+
# @param [Google::Apis::ComputeBeta::GlobalFrontendSettings] global_frontend_settings_object
|
|
9521
|
+
# @param [String] request_id
|
|
9522
|
+
# @param [String] update_mask
|
|
9523
|
+
# e.g., "type"
|
|
9524
|
+
# @param [String] fields
|
|
9525
|
+
# Selector specifying which fields to include in a partial response.
|
|
9526
|
+
# @param [String] quota_user
|
|
9527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9529
|
+
# @param [String] user_ip
|
|
9530
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
9531
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9532
|
+
# Request-specific options
|
|
9533
|
+
#
|
|
9534
|
+
# @yield [result, err] Result & error if block supplied
|
|
9535
|
+
# @yieldparam result [Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse] parsed result object
|
|
9536
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9537
|
+
#
|
|
9538
|
+
# @return [Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse]
|
|
9539
|
+
#
|
|
9540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9543
|
+
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)
|
|
9544
|
+
command = make_simple_command(:patch, 'projects/{project}/global/globalFrontendSettings', options)
|
|
9545
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalFrontendSettings::Representation
|
|
9546
|
+
command.request_object = global_frontend_settings_object
|
|
9547
|
+
command.response_representation = Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse::Representation
|
|
9548
|
+
command.response_class = Google::Apis::ComputeBeta::GlobalFrontendSettingsPatchResponse
|
|
9549
|
+
command.params['project'] = project unless project.nil?
|
|
9550
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
9551
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
9552
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9553
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9554
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9555
|
+
execute_or_queue_command(command, &block)
|
|
9556
|
+
end
|
|
9557
|
+
|
|
9077
9558
|
# Attach a network endpoint to the specified network endpoint group.
|
|
9078
9559
|
# @param [String] project
|
|
9079
9560
|
# Project ID for this request.
|
|
@@ -17982,6 +18463,49 @@ module Google
|
|
|
17982
18463
|
execute_or_queue_command(command, &block)
|
|
17983
18464
|
end
|
|
17984
18465
|
|
|
18466
|
+
# Retrieves details of a specific VM extension state.
|
|
18467
|
+
# This is a read-only API.
|
|
18468
|
+
# @param [String] project
|
|
18469
|
+
# Project ID for this request.
|
|
18470
|
+
# @param [String] zone
|
|
18471
|
+
# Name of the zone for this request.
|
|
18472
|
+
# @param [String] instance
|
|
18473
|
+
# Name or id of the instance resource.
|
|
18474
|
+
# @param [String] extension_name
|
|
18475
|
+
# The name of the extension to get the state for.
|
|
18476
|
+
# @param [String] fields
|
|
18477
|
+
# Selector specifying which fields to include in a partial response.
|
|
18478
|
+
# @param [String] quota_user
|
|
18479
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
18480
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
18481
|
+
# @param [String] user_ip
|
|
18482
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
18483
|
+
# @param [Google::Apis::RequestOptions] options
|
|
18484
|
+
# Request-specific options
|
|
18485
|
+
#
|
|
18486
|
+
# @yield [result, err] Result & error if block supplied
|
|
18487
|
+
# @yieldparam result [Google::Apis::ComputeBeta::VmExtensionState] parsed result object
|
|
18488
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
18489
|
+
#
|
|
18490
|
+
# @return [Google::Apis::ComputeBeta::VmExtensionState]
|
|
18491
|
+
#
|
|
18492
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
18493
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
18494
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
18495
|
+
def get_instance_vm_extension_state(project, zone, instance, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
18496
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}', options)
|
|
18497
|
+
command.response_representation = Google::Apis::ComputeBeta::VmExtensionState::Representation
|
|
18498
|
+
command.response_class = Google::Apis::ComputeBeta::VmExtensionState
|
|
18499
|
+
command.params['project'] = project unless project.nil?
|
|
18500
|
+
command.params['zone'] = zone unless zone.nil?
|
|
18501
|
+
command.params['instance'] = instance unless instance.nil?
|
|
18502
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
18503
|
+
command.query['fields'] = fields unless fields.nil?
|
|
18504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
18505
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
18506
|
+
execute_or_queue_command(command, &block)
|
|
18507
|
+
end
|
|
18508
|
+
|
|
17985
18509
|
# Creates an instance resource in the specified project using the data
|
|
17986
18510
|
# included in the request.
|
|
17987
18511
|
# @param [String] project
|
|
@@ -18303,6 +18827,127 @@ module Google
|
|
|
18303
18827
|
execute_or_queue_command(command, &block)
|
|
18304
18828
|
end
|
|
18305
18829
|
|
|
18830
|
+
# Lists all VM extensions states for a specific instance.
|
|
18831
|
+
# This is a read-only API.
|
|
18832
|
+
# @param [String] project
|
|
18833
|
+
# Project ID for this request.
|
|
18834
|
+
# @param [String] zone
|
|
18835
|
+
# Required. Name of the zone for this request.
|
|
18836
|
+
# @param [String] instance
|
|
18837
|
+
# Name of the target instance scoping this request.
|
|
18838
|
+
# @param [String] filter
|
|
18839
|
+
# A filter expression that filters resources listed in the response. Most
|
|
18840
|
+
# Compute resources support two types of filter expressions:
|
|
18841
|
+
# expressions that support regular expressions and expressions that follow
|
|
18842
|
+
# API improvement proposal AIP-160.
|
|
18843
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
18844
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
18845
|
+
# operator, and the value that you want to use for filtering. The value
|
|
18846
|
+
# must be a string, a number, or a boolean. The operator
|
|
18847
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
18848
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
18849
|
+
# exclude instances named `example-instance` by specifying
|
|
18850
|
+
# `name != example-instance`.
|
|
18851
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
18852
|
+
# For example, to find all objects with `owner` label use:
|
|
18853
|
+
# ```
|
|
18854
|
+
# labels.owner:*
|
|
18855
|
+
# ```
|
|
18856
|
+
# You can also filter nested fields. For example, you could specify
|
|
18857
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
18858
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
18859
|
+
# on nested fields to filter based onresource labels.
|
|
18860
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
18861
|
+
# parentheses. For example:
|
|
18862
|
+
# ```
|
|
18863
|
+
# (scheduling.automaticRestart = true)
|
|
18864
|
+
# (cpuPlatform = "Intel Skylake")
|
|
18865
|
+
# ```
|
|
18866
|
+
# By default, each expression is an `AND` expression. However, you
|
|
18867
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
18868
|
+
# For example:
|
|
18869
|
+
# ```
|
|
18870
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
18871
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
18872
|
+
# (scheduling.automaticRestart = true)
|
|
18873
|
+
# ```
|
|
18874
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
18875
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
18876
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
18877
|
+
# `fieldname eq unquoted literal`
|
|
18878
|
+
# `fieldname eq 'single quoted literal'`
|
|
18879
|
+
# `fieldname eq "double quoted literal"`
|
|
18880
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
18881
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
18882
|
+
# library syntax.
|
|
18883
|
+
# The literal value must match the entire field.
|
|
18884
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
18885
|
+
# you would use `name ne .*instance`.
|
|
18886
|
+
# You cannot combine constraints on multiple fields using regular
|
|
18887
|
+
# expressions.
|
|
18888
|
+
# @param [Fixnum] max_results
|
|
18889
|
+
# The maximum number of results per page that should be returned.
|
|
18890
|
+
# If the number of available results is larger than `maxResults`,
|
|
18891
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
18892
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
18893
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
18894
|
+
# @param [String] order_by
|
|
18895
|
+
# Sorts list results by a certain order. By default, results
|
|
18896
|
+
# are returned in alphanumerical order based on the resource name.
|
|
18897
|
+
# You can also sort results in descending order based on the creation
|
|
18898
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
18899
|
+
# results based on the `creationTimestamp` field in
|
|
18900
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
18901
|
+
# resources like operations so that the newest operation is returned first.
|
|
18902
|
+
# Currently, only sorting by `name` or
|
|
18903
|
+
# `creationTimestamp desc` is supported.
|
|
18904
|
+
# @param [String] page_token
|
|
18905
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
18906
|
+
# `nextPageToken` returned by a previous list request to get
|
|
18907
|
+
# the next page of results.
|
|
18908
|
+
# @param [Boolean] return_partial_success
|
|
18909
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
18910
|
+
# of failure. The default value is false.
|
|
18911
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
18912
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
18913
|
+
# with an error code.
|
|
18914
|
+
# @param [String] fields
|
|
18915
|
+
# Selector specifying which fields to include in a partial response.
|
|
18916
|
+
# @param [String] quota_user
|
|
18917
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
18918
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
18919
|
+
# @param [String] user_ip
|
|
18920
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
18921
|
+
# @param [Google::Apis::RequestOptions] options
|
|
18922
|
+
# Request-specific options
|
|
18923
|
+
#
|
|
18924
|
+
# @yield [result, err] Result & error if block supplied
|
|
18925
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ListVmExtensionStatesResponse] parsed result object
|
|
18926
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
18927
|
+
#
|
|
18928
|
+
# @return [Google::Apis::ComputeBeta::ListVmExtensionStatesResponse]
|
|
18929
|
+
#
|
|
18930
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
18931
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
18932
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
18933
|
+
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)
|
|
18934
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates', options)
|
|
18935
|
+
command.response_representation = Google::Apis::ComputeBeta::ListVmExtensionStatesResponse::Representation
|
|
18936
|
+
command.response_class = Google::Apis::ComputeBeta::ListVmExtensionStatesResponse
|
|
18937
|
+
command.params['project'] = project unless project.nil?
|
|
18938
|
+
command.params['zone'] = zone unless zone.nil?
|
|
18939
|
+
command.params['instance'] = instance unless instance.nil?
|
|
18940
|
+
command.query['filter'] = filter unless filter.nil?
|
|
18941
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
18942
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
18943
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
18944
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
18945
|
+
command.query['fields'] = fields unless fields.nil?
|
|
18946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
18947
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
18948
|
+
execute_or_queue_command(command, &block)
|
|
18949
|
+
end
|
|
18950
|
+
|
|
18306
18951
|
# Patches partner metadata of the specified instance.
|
|
18307
18952
|
# @param [String] project
|
|
18308
18953
|
# Project ID for this request.
|
|
@@ -32013,12 +32658,65 @@ module Google
|
|
|
32013
32658
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32014
32659
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32015
32660
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32016
|
-
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32017
|
-
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
|
32661
|
+
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32662
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
|
32663
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
32664
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
32665
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
32666
|
+
command.query['name'] = name unless name.nil?
|
|
32667
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
32668
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32669
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32670
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32671
|
+
execute_or_queue_command(command, &block)
|
|
32672
|
+
end
|
|
32673
|
+
|
|
32674
|
+
# Deletes a rule at the specified priority.
|
|
32675
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
32676
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
32677
|
+
# now disabled for most organizations. Use firewallPolicies.removeRule
|
|
32678
|
+
# instead.
|
|
32679
|
+
# @param [String] security_policy
|
|
32680
|
+
# Name of the security policy to update.
|
|
32681
|
+
# @param [Fixnum] priority
|
|
32682
|
+
# The priority of the rule to remove from the security policy.
|
|
32683
|
+
# @param [String] request_id
|
|
32684
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
32685
|
+
# that if you must retry your request, the server will know to ignore the
|
|
32686
|
+
# request if it has already been completed.
|
|
32687
|
+
# For example, consider a situation where you make an initial request and
|
|
32688
|
+
# the request times out. If you make the request again with the same
|
|
32689
|
+
# request ID, the server can check if original operation with the same
|
|
32690
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
32691
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
32692
|
+
# The request ID must be
|
|
32693
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
32694
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
32695
|
+
# @param [String] fields
|
|
32696
|
+
# Selector specifying which fields to include in a partial response.
|
|
32697
|
+
# @param [String] quota_user
|
|
32698
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32699
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32700
|
+
# @param [String] user_ip
|
|
32701
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32702
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32703
|
+
# Request-specific options
|
|
32704
|
+
#
|
|
32705
|
+
# @yield [result, err] Result & error if block supplied
|
|
32706
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
32707
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32708
|
+
#
|
|
32709
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
32710
|
+
#
|
|
32711
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32712
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32713
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32714
|
+
def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32715
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
|
|
32018
32716
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
32019
32717
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
32020
32718
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
32021
|
-
command.query['
|
|
32719
|
+
command.query['priority'] = priority unless priority.nil?
|
|
32022
32720
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
32023
32721
|
command.query['fields'] = fields unless fields.nil?
|
|
32024
32722
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -32026,15 +32724,43 @@ module Google
|
|
|
32026
32724
|
execute_or_queue_command(command, &block)
|
|
32027
32725
|
end
|
|
32028
32726
|
|
|
32029
|
-
#
|
|
32030
|
-
#
|
|
32031
|
-
#
|
|
32032
|
-
#
|
|
32033
|
-
#
|
|
32034
|
-
# @param [String]
|
|
32035
|
-
#
|
|
32036
|
-
#
|
|
32037
|
-
#
|
|
32727
|
+
# Returns the specified SnapshotRecycleBinPolicy.
|
|
32728
|
+
# @param [String] organization
|
|
32729
|
+
# Organization ID for this request.
|
|
32730
|
+
# @param [String] fields
|
|
32731
|
+
# Selector specifying which fields to include in a partial response.
|
|
32732
|
+
# @param [String] quota_user
|
|
32733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32735
|
+
# @param [String] user_ip
|
|
32736
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32737
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32738
|
+
# Request-specific options
|
|
32739
|
+
#
|
|
32740
|
+
# @yield [result, err] Result & error if block supplied
|
|
32741
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] parsed result object
|
|
32742
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32743
|
+
#
|
|
32744
|
+
# @return [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy]
|
|
32745
|
+
#
|
|
32746
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32747
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32748
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32749
|
+
def get_organization_snapshot_recycle_bin_policy(organization, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32750
|
+
command = make_simple_command(:get, '{+organization}/global/snapshotRecycleBinPolicy', options)
|
|
32751
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
|
|
32752
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy
|
|
32753
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32754
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32755
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32756
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32757
|
+
execute_or_queue_command(command, &block)
|
|
32758
|
+
end
|
|
32759
|
+
|
|
32760
|
+
# Patches the SnapshotRecycleBinPolicy.
|
|
32761
|
+
# @param [String] organization
|
|
32762
|
+
# Organization ID for this request.
|
|
32763
|
+
# @param [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
|
|
32038
32764
|
# @param [String] request_id
|
|
32039
32765
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
32040
32766
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -32066,12 +32792,13 @@ module Google
|
|
|
32066
32792
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32067
32793
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32068
32794
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32069
|
-
def
|
|
32070
|
-
command = make_simple_command(:
|
|
32795
|
+
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)
|
|
32796
|
+
command = make_simple_command(:patch, '{+organization}/global/snapshotRecycleBinPolicy', options)
|
|
32797
|
+
command.request_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
|
|
32798
|
+
command.request_object = snapshot_recycle_bin_policy_object
|
|
32071
32799
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
32072
32800
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
32073
|
-
command.params['
|
|
32074
|
-
command.query['priority'] = priority unless priority.nil?
|
|
32801
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32075
32802
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
32076
32803
|
command.query['fields'] = fields unless fields.nil?
|
|
32077
32804
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -34403,14 +35130,242 @@ module Google
|
|
|
34403
35130
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
34404
35131
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
34405
35132
|
# @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
|
|
35133
|
+
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)
|
|
35134
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
|
|
35135
|
+
command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
|
|
35136
|
+
command.request_object = public_delegated_prefix_object
|
|
35137
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
35138
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
35139
|
+
command.params['project'] = project unless project.nil?
|
|
35140
|
+
command.params['region'] = region unless region.nil?
|
|
35141
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
35142
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35143
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35144
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35145
|
+
execute_or_queue_command(command, &block)
|
|
35146
|
+
end
|
|
35147
|
+
|
|
35148
|
+
# Lists the PublicDelegatedPrefixes for a project in the given region.
|
|
35149
|
+
# @param [String] project
|
|
35150
|
+
# Project ID for this request.
|
|
35151
|
+
# @param [String] region
|
|
35152
|
+
# Name of the region of this request.
|
|
35153
|
+
# @param [String] filter
|
|
35154
|
+
# A filter expression that filters resources listed in the response. Most
|
|
35155
|
+
# Compute resources support two types of filter expressions:
|
|
35156
|
+
# expressions that support regular expressions and expressions that follow
|
|
35157
|
+
# API improvement proposal AIP-160.
|
|
35158
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
35159
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
35160
|
+
# operator, and the value that you want to use for filtering. The value
|
|
35161
|
+
# must be a string, a number, or a boolean. The operator
|
|
35162
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
35163
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
35164
|
+
# exclude instances named `example-instance` by specifying
|
|
35165
|
+
# `name != example-instance`.
|
|
35166
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
35167
|
+
# For example, to find all objects with `owner` label use:
|
|
35168
|
+
# ```
|
|
35169
|
+
# labels.owner:*
|
|
35170
|
+
# ```
|
|
35171
|
+
# You can also filter nested fields. For example, you could specify
|
|
35172
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
35173
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
35174
|
+
# on nested fields to filter based onresource labels.
|
|
35175
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
35176
|
+
# parentheses. For example:
|
|
35177
|
+
# ```
|
|
35178
|
+
# (scheduling.automaticRestart = true)
|
|
35179
|
+
# (cpuPlatform = "Intel Skylake")
|
|
35180
|
+
# ```
|
|
35181
|
+
# By default, each expression is an `AND` expression. However, you
|
|
35182
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
35183
|
+
# For example:
|
|
35184
|
+
# ```
|
|
35185
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
35186
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
35187
|
+
# (scheduling.automaticRestart = true)
|
|
35188
|
+
# ```
|
|
35189
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
35190
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
35191
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
35192
|
+
# `fieldname eq unquoted literal`
|
|
35193
|
+
# `fieldname eq 'single quoted literal'`
|
|
35194
|
+
# `fieldname eq "double quoted literal"`
|
|
35195
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
35196
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
35197
|
+
# library syntax.
|
|
35198
|
+
# The literal value must match the entire field.
|
|
35199
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
35200
|
+
# you would use `name ne .*instance`.
|
|
35201
|
+
# You cannot combine constraints on multiple fields using regular
|
|
35202
|
+
# expressions.
|
|
35203
|
+
# @param [Fixnum] max_results
|
|
35204
|
+
# The maximum number of results per page that should be returned.
|
|
35205
|
+
# If the number of available results is larger than `maxResults`,
|
|
35206
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
35207
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
35208
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
35209
|
+
# @param [String] order_by
|
|
35210
|
+
# Sorts list results by a certain order. By default, results
|
|
35211
|
+
# are returned in alphanumerical order based on the resource name.
|
|
35212
|
+
# You can also sort results in descending order based on the creation
|
|
35213
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
35214
|
+
# results based on the `creationTimestamp` field in
|
|
35215
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
35216
|
+
# resources like operations so that the newest operation is returned first.
|
|
35217
|
+
# Currently, only sorting by `name` or
|
|
35218
|
+
# `creationTimestamp desc` is supported.
|
|
35219
|
+
# @param [String] page_token
|
|
35220
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
35221
|
+
# `nextPageToken` returned by a previous list request to get
|
|
35222
|
+
# the next page of results.
|
|
35223
|
+
# @param [Boolean] return_partial_success
|
|
35224
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
35225
|
+
# of failure. The default value is false.
|
|
35226
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
35227
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
35228
|
+
# with an error code.
|
|
35229
|
+
# @param [String] fields
|
|
35230
|
+
# Selector specifying which fields to include in a partial response.
|
|
35231
|
+
# @param [String] quota_user
|
|
35232
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35233
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35234
|
+
# @param [String] user_ip
|
|
35235
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35236
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35237
|
+
# Request-specific options
|
|
35238
|
+
#
|
|
35239
|
+
# @yield [result, err] Result & error if block supplied
|
|
35240
|
+
# @yieldparam result [Google::Apis::ComputeBeta::PublicDelegatedPrefixList] parsed result object
|
|
35241
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35242
|
+
#
|
|
35243
|
+
# @return [Google::Apis::ComputeBeta::PublicDelegatedPrefixList]
|
|
35244
|
+
#
|
|
35245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35248
|
+
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)
|
|
35249
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
|
|
35250
|
+
command.response_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefixList::Representation
|
|
35251
|
+
command.response_class = Google::Apis::ComputeBeta::PublicDelegatedPrefixList
|
|
35252
|
+
command.params['project'] = project unless project.nil?
|
|
35253
|
+
command.params['region'] = region unless region.nil?
|
|
35254
|
+
command.query['filter'] = filter unless filter.nil?
|
|
35255
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
35256
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
35257
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
35258
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
35259
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35260
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35261
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35262
|
+
execute_or_queue_command(command, &block)
|
|
35263
|
+
end
|
|
35264
|
+
|
|
35265
|
+
# Patches the specified PublicDelegatedPrefix resource with the data included
|
|
35266
|
+
# in the request. This method supportsPATCH
|
|
35267
|
+
# semantics and usesJSON merge
|
|
35268
|
+
# patch format and processing rules.
|
|
35269
|
+
# @param [String] project
|
|
35270
|
+
# Project ID for this request.
|
|
35271
|
+
# @param [String] region
|
|
35272
|
+
# Name of the region for this request.
|
|
35273
|
+
# @param [String] public_delegated_prefix
|
|
35274
|
+
# Name of the PublicDelegatedPrefix resource to patch.
|
|
35275
|
+
# @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
|
|
35276
|
+
# @param [String] request_id
|
|
35277
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
35278
|
+
# that if you must retry your request, the server will know to ignore the
|
|
35279
|
+
# request if it has already been completed.
|
|
35280
|
+
# For example, consider a situation where you make an initial request and
|
|
35281
|
+
# the request times out. If you make the request again with the same
|
|
35282
|
+
# request ID, the server can check if original operation with the same
|
|
35283
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
35284
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
35285
|
+
# The request ID must be
|
|
35286
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
35287
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
35288
|
+
# @param [String] fields
|
|
35289
|
+
# Selector specifying which fields to include in a partial response.
|
|
35290
|
+
# @param [String] quota_user
|
|
35291
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35292
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35293
|
+
# @param [String] user_ip
|
|
35294
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35295
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35296
|
+
# Request-specific options
|
|
35297
|
+
#
|
|
35298
|
+
# @yield [result, err] Result & error if block supplied
|
|
35299
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
35300
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35301
|
+
#
|
|
35302
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
35303
|
+
#
|
|
35304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35307
|
+
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)
|
|
35308
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
|
|
35309
|
+
command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
|
|
35310
|
+
command.request_object = public_delegated_prefix_object
|
|
35311
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
35312
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
35313
|
+
command.params['project'] = project unless project.nil?
|
|
35314
|
+
command.params['region'] = region unless region.nil?
|
|
35315
|
+
command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
|
|
35316
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
35317
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35319
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35320
|
+
execute_or_queue_command(command, &block)
|
|
35321
|
+
end
|
|
35322
|
+
|
|
35323
|
+
# Withdraws the specified PublicDelegatedPrefix in the given region.
|
|
35324
|
+
# @param [String] project
|
|
35325
|
+
# Project ID for this request.
|
|
35326
|
+
# @param [String] region
|
|
35327
|
+
# The name of theregion where
|
|
35328
|
+
# the public delegated prefix is located. It should comply with RFC1035.
|
|
35329
|
+
# @param [String] public_delegated_prefix
|
|
35330
|
+
# The name of the public delegated prefix. It should comply with RFC1035.
|
|
35331
|
+
# @param [String] request_id
|
|
35332
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
35333
|
+
# that if you must retry your request, the server will know to ignore the
|
|
35334
|
+
# request if it has already been completed.
|
|
35335
|
+
# For example, consider a situation where you make an initial request and
|
|
35336
|
+
# the request times out. If you make the request again with the same
|
|
35337
|
+
# request ID, the server can check if original operation with the same
|
|
35338
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
35339
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
35340
|
+
# The request ID must be
|
|
35341
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
35342
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
35343
|
+
# @param [String] fields
|
|
35344
|
+
# Selector specifying which fields to include in a partial response.
|
|
35345
|
+
# @param [String] quota_user
|
|
35346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35348
|
+
# @param [String] user_ip
|
|
35349
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35350
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35351
|
+
# Request-specific options
|
|
35352
|
+
#
|
|
35353
|
+
# @yield [result, err] Result & error if block supplied
|
|
35354
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
35355
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35356
|
+
#
|
|
35357
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
35358
|
+
#
|
|
35359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35362
|
+
def withdraw_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35363
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw', options)
|
|
34410
35364
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
34411
35365
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
34412
35366
|
command.params['project'] = project unless project.nil?
|
|
34413
35367
|
command.params['region'] = region unless region.nil?
|
|
35368
|
+
command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
|
|
34414
35369
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
34415
35370
|
command.query['fields'] = fields unless fields.nil?
|
|
34416
35371
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -34418,11 +35373,135 @@ module Google
|
|
|
34418
35373
|
execute_or_queue_command(command, &block)
|
|
34419
35374
|
end
|
|
34420
35375
|
|
|
34421
|
-
#
|
|
35376
|
+
# Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
|
|
35377
|
+
# will delete the underlying PD snapshot and is irreversible.
|
|
35378
|
+
# @param [String] project
|
|
35379
|
+
# Project ID for this request.
|
|
35380
|
+
# @param [String] recoverable_snapshot
|
|
35381
|
+
# Name of the recoverable Snapshot resource to delete.
|
|
35382
|
+
# @param [String] request_id
|
|
35383
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
35384
|
+
# that if you must retry your request, the server will know to ignore the
|
|
35385
|
+
# request if it has already been completed.
|
|
35386
|
+
# For example, consider a situation where you make an initial request and
|
|
35387
|
+
# the request times out. If you make the request again with the same
|
|
35388
|
+
# request ID, the server can check if original operation with the same
|
|
35389
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
35390
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
35391
|
+
# The request ID must be
|
|
35392
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
35393
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
35394
|
+
# @param [String] fields
|
|
35395
|
+
# Selector specifying which fields to include in a partial response.
|
|
35396
|
+
# @param [String] quota_user
|
|
35397
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35398
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35399
|
+
# @param [String] user_ip
|
|
35400
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35401
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35402
|
+
# Request-specific options
|
|
35403
|
+
#
|
|
35404
|
+
# @yield [result, err] Result & error if block supplied
|
|
35405
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
35406
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35407
|
+
#
|
|
35408
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
35409
|
+
#
|
|
35410
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35411
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35412
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35413
|
+
def delete_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35414
|
+
command = make_simple_command(:delete, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
|
|
35415
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
35416
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
35417
|
+
command.params['project'] = project unless project.nil?
|
|
35418
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
35419
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
35420
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35422
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35423
|
+
execute_or_queue_command(command, &block)
|
|
35424
|
+
end
|
|
35425
|
+
|
|
35426
|
+
# Returns the specified RecoverableSnapshot resource.
|
|
35427
|
+
# @param [String] project
|
|
35428
|
+
# Project ID for this request.
|
|
35429
|
+
# @param [String] recoverable_snapshot
|
|
35430
|
+
# Name of the Snapshot resource to return.
|
|
35431
|
+
# @param [String] fields
|
|
35432
|
+
# Selector specifying which fields to include in a partial response.
|
|
35433
|
+
# @param [String] quota_user
|
|
35434
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35435
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35436
|
+
# @param [String] user_ip
|
|
35437
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35438
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35439
|
+
# Request-specific options
|
|
35440
|
+
#
|
|
35441
|
+
# @yield [result, err] Result & error if block supplied
|
|
35442
|
+
# @yieldparam result [Google::Apis::ComputeBeta::RecoverableSnapshot] parsed result object
|
|
35443
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35444
|
+
#
|
|
35445
|
+
# @return [Google::Apis::ComputeBeta::RecoverableSnapshot]
|
|
35446
|
+
#
|
|
35447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35450
|
+
def get_recoverable_snapshot(project, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35451
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}', options)
|
|
35452
|
+
command.response_representation = Google::Apis::ComputeBeta::RecoverableSnapshot::Representation
|
|
35453
|
+
command.response_class = Google::Apis::ComputeBeta::RecoverableSnapshot
|
|
35454
|
+
command.params['project'] = project unless project.nil?
|
|
35455
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
35456
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35458
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35459
|
+
execute_or_queue_command(command, &block)
|
|
35460
|
+
end
|
|
35461
|
+
|
|
35462
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
35463
|
+
# policy or resource exists.
|
|
35464
|
+
# @param [String] project
|
|
35465
|
+
# Project ID for this request.
|
|
35466
|
+
# @param [String] resource
|
|
35467
|
+
# Name or id of the resource for this request.
|
|
35468
|
+
# @param [Fixnum] options_requested_policy_version
|
|
35469
|
+
# Requested IAM Policy version.
|
|
35470
|
+
# @param [String] fields
|
|
35471
|
+
# Selector specifying which fields to include in a partial response.
|
|
35472
|
+
# @param [String] quota_user
|
|
35473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35475
|
+
# @param [String] user_ip
|
|
35476
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35477
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35478
|
+
# Request-specific options
|
|
35479
|
+
#
|
|
35480
|
+
# @yield [result, err] Result & error if block supplied
|
|
35481
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
35482
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35483
|
+
#
|
|
35484
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
35485
|
+
#
|
|
35486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35489
|
+
def get_recoverable_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35490
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots/{resource}/getIamPolicy', options)
|
|
35491
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
35492
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
35493
|
+
command.params['project'] = project unless project.nil?
|
|
35494
|
+
command.params['resource'] = resource unless resource.nil?
|
|
35495
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
35496
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35498
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35499
|
+
execute_or_queue_command(command, &block)
|
|
35500
|
+
end
|
|
35501
|
+
|
|
35502
|
+
# Retrieves a list of all of the RecoverableSnapshots in your project.
|
|
34422
35503
|
# @param [String] project
|
|
34423
35504
|
# Project ID for this request.
|
|
34424
|
-
# @param [String] region
|
|
34425
|
-
# Name of the region of this request.
|
|
34426
35505
|
# @param [String] filter
|
|
34427
35506
|
# A filter expression that filters resources listed in the response. Most
|
|
34428
35507
|
# Compute resources support two types of filter expressions:
|
|
@@ -34510,20 +35589,19 @@ module Google
|
|
|
34510
35589
|
# Request-specific options
|
|
34511
35590
|
#
|
|
34512
35591
|
# @yield [result, err] Result & error if block supplied
|
|
34513
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
35592
|
+
# @yieldparam result [Google::Apis::ComputeBeta::RecoverableSnapshotList] parsed result object
|
|
34514
35593
|
# @yieldparam err [StandardError] error object if request failed
|
|
34515
35594
|
#
|
|
34516
|
-
# @return [Google::Apis::ComputeBeta::
|
|
35595
|
+
# @return [Google::Apis::ComputeBeta::RecoverableSnapshotList]
|
|
34517
35596
|
#
|
|
34518
35597
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
34519
35598
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
34520
35599
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
34521
|
-
def
|
|
34522
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
34523
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
|
34524
|
-
command.response_class = Google::Apis::ComputeBeta::
|
|
35600
|
+
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)
|
|
35601
|
+
command = make_simple_command(:get, 'projects/{project}/global/recoverableSnapshots', options)
|
|
35602
|
+
command.response_representation = Google::Apis::ComputeBeta::RecoverableSnapshotList::Representation
|
|
35603
|
+
command.response_class = Google::Apis::ComputeBeta::RecoverableSnapshotList
|
|
34525
35604
|
command.params['project'] = project unless project.nil?
|
|
34526
|
-
command.params['region'] = region unless region.nil?
|
|
34527
35605
|
command.query['filter'] = filter unless filter.nil?
|
|
34528
35606
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
34529
35607
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -34535,17 +35613,11 @@ module Google
|
|
|
34535
35613
|
execute_or_queue_command(command, &block)
|
|
34536
35614
|
end
|
|
34537
35615
|
|
|
34538
|
-
#
|
|
34539
|
-
# in the request. This method supportsPATCH
|
|
34540
|
-
# semantics and usesJSON merge
|
|
34541
|
-
# patch format and processing rules.
|
|
35616
|
+
# Recovers the specified RecoverableSnapshot.
|
|
34542
35617
|
# @param [String] project
|
|
34543
|
-
# Project
|
|
34544
|
-
# @param [String]
|
|
34545
|
-
# Name of the
|
|
34546
|
-
# @param [String] public_delegated_prefix
|
|
34547
|
-
# Name of the PublicDelegatedPrefix resource to patch.
|
|
34548
|
-
# @param [Google::Apis::ComputeBeta::PublicDelegatedPrefix] public_delegated_prefix_object
|
|
35618
|
+
# Project Id of the request
|
|
35619
|
+
# @param [String] recoverable_snapshot
|
|
35620
|
+
# Name of the recoverable resource to recover
|
|
34549
35621
|
# @param [String] request_id
|
|
34550
35622
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
34551
35623
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -34558,6 +35630,14 @@ module Google
|
|
|
34558
35630
|
# The request ID must be
|
|
34559
35631
|
# a valid UUID with the exception that zero UUID is not supported
|
|
34560
35632
|
# (00000000-0000-0000-0000-000000000000).
|
|
35633
|
+
# @param [String] snapshot_name
|
|
35634
|
+
# Optional. Name of the snapshot after the recovery
|
|
35635
|
+
# The name will be 1-63 characters long, and comply withRFC1035.
|
|
35636
|
+
# Specifically, the name will be 1-63 characters long and match the regular
|
|
35637
|
+
# expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
|
|
35638
|
+
# character will be a lowercase letter, and all following characters can be
|
|
35639
|
+
# a dash, lowercase letter, or digit, except the last character, which cannot
|
|
35640
|
+
# be a dash.
|
|
34561
35641
|
# @param [String] fields
|
|
34562
35642
|
# Selector specifying which fields to include in a partial response.
|
|
34563
35643
|
# @param [String] quota_user
|
|
@@ -34577,42 +35657,27 @@ module Google
|
|
|
34577
35657
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
34578
35658
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
34579
35659
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
34580
|
-
def
|
|
34581
|
-
command = make_simple_command(:
|
|
34582
|
-
command.request_representation = Google::Apis::ComputeBeta::PublicDelegatedPrefix::Representation
|
|
34583
|
-
command.request_object = public_delegated_prefix_object
|
|
35660
|
+
def recover_recoverable_snapshot(project, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35661
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover', options)
|
|
34584
35662
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
34585
35663
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
34586
35664
|
command.params['project'] = project unless project.nil?
|
|
34587
|
-
command.params['
|
|
34588
|
-
command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
|
|
35665
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
34589
35666
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
35667
|
+
command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
|
|
34590
35668
|
command.query['fields'] = fields unless fields.nil?
|
|
34591
35669
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
34592
35670
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
34593
35671
|
execute_or_queue_command(command, &block)
|
|
34594
35672
|
end
|
|
34595
35673
|
|
|
34596
|
-
#
|
|
35674
|
+
# Sets the access control policy on the specified resource.
|
|
35675
|
+
# Replaces any existing policy.
|
|
34597
35676
|
# @param [String] project
|
|
34598
35677
|
# Project ID for this request.
|
|
34599
|
-
# @param [String]
|
|
34600
|
-
#
|
|
34601
|
-
#
|
|
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).
|
|
35678
|
+
# @param [String] resource
|
|
35679
|
+
# Name or id of the resource for this request.
|
|
35680
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
|
34616
35681
|
# @param [String] fields
|
|
34617
35682
|
# Selector specifying which fields to include in a partial response.
|
|
34618
35683
|
# @param [String] quota_user
|
|
@@ -34624,22 +35689,61 @@ module Google
|
|
|
34624
35689
|
# Request-specific options
|
|
34625
35690
|
#
|
|
34626
35691
|
# @yield [result, err] Result & error if block supplied
|
|
34627
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
35692
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
34628
35693
|
# @yieldparam err [StandardError] error object if request failed
|
|
34629
35694
|
#
|
|
34630
|
-
# @return [Google::Apis::ComputeBeta::
|
|
35695
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
34631
35696
|
#
|
|
34632
35697
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
34633
35698
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
34634
35699
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
34635
|
-
def
|
|
34636
|
-
command = make_simple_command(:post, 'projects/{project}/
|
|
34637
|
-
command.
|
|
34638
|
-
command.
|
|
35700
|
+
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)
|
|
35701
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/setIamPolicy', options)
|
|
35702
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
|
35703
|
+
command.request_object = global_set_policy_request_object
|
|
35704
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
35705
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
34639
35706
|
command.params['project'] = project unless project.nil?
|
|
34640
|
-
command.params['
|
|
34641
|
-
command.
|
|
34642
|
-
command.query['
|
|
35707
|
+
command.params['resource'] = resource unless resource.nil?
|
|
35708
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35710
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
35711
|
+
execute_or_queue_command(command, &block)
|
|
35712
|
+
end
|
|
35713
|
+
|
|
35714
|
+
# Returns permissions that a caller has on the specified resource.
|
|
35715
|
+
# @param [String] project
|
|
35716
|
+
# Project ID for this request.
|
|
35717
|
+
# @param [String] resource
|
|
35718
|
+
# Name or id of the resource for this request.
|
|
35719
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
35720
|
+
# @param [String] fields
|
|
35721
|
+
# Selector specifying which fields to include in a partial response.
|
|
35722
|
+
# @param [String] quota_user
|
|
35723
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35724
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35725
|
+
# @param [String] user_ip
|
|
35726
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
35727
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35728
|
+
# Request-specific options
|
|
35729
|
+
#
|
|
35730
|
+
# @yield [result, err] Result & error if block supplied
|
|
35731
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
35732
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35733
|
+
#
|
|
35734
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
35735
|
+
#
|
|
35736
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35737
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35738
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35739
|
+
def test_recoverable_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
35740
|
+
command = make_simple_command(:post, 'projects/{project}/global/recoverableSnapshots/{resource}/testIamPermissions', options)
|
|
35741
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
35742
|
+
command.request_object = test_permissions_request_object
|
|
35743
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
35744
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
35745
|
+
command.params['project'] = project unless project.nil?
|
|
35746
|
+
command.params['resource'] = resource unless resource.nil?
|
|
34643
35747
|
command.query['fields'] = fields unless fields.nil?
|
|
34644
35748
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
34645
35749
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -49436,6 +50540,49 @@ module Google
|
|
|
49436
50540
|
execute_or_queue_command(command, &block)
|
|
49437
50541
|
end
|
|
49438
50542
|
|
|
50543
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
50544
|
+
# policy or resource exists.
|
|
50545
|
+
# @param [String] project
|
|
50546
|
+
# Project ID for this request.
|
|
50547
|
+
# @param [String] region
|
|
50548
|
+
# The name of the region for this request.
|
|
50549
|
+
# @param [String] resource
|
|
50550
|
+
# Name or id of the resource for this request.
|
|
50551
|
+
# @param [Fixnum] options_requested_policy_version
|
|
50552
|
+
# Requested IAM Policy version.
|
|
50553
|
+
# @param [String] fields
|
|
50554
|
+
# Selector specifying which fields to include in a partial response.
|
|
50555
|
+
# @param [String] quota_user
|
|
50556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
50557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
50558
|
+
# @param [String] user_ip
|
|
50559
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
50560
|
+
# @param [Google::Apis::RequestOptions] options
|
|
50561
|
+
# Request-specific options
|
|
50562
|
+
#
|
|
50563
|
+
# @yield [result, err] Result & error if block supplied
|
|
50564
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
50565
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
50566
|
+
#
|
|
50567
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
50568
|
+
#
|
|
50569
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
50570
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
50571
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
50572
|
+
def get_region_ssl_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
50573
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{resource}/getIamPolicy', options)
|
|
50574
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
50575
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
50576
|
+
command.params['project'] = project unless project.nil?
|
|
50577
|
+
command.params['region'] = region unless region.nil?
|
|
50578
|
+
command.params['resource'] = resource unless resource.nil?
|
|
50579
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
50580
|
+
command.query['fields'] = fields unless fields.nil?
|
|
50581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
50582
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
50583
|
+
execute_or_queue_command(command, &block)
|
|
50584
|
+
end
|
|
50585
|
+
|
|
49439
50586
|
# Creates a new policy in the specified project and region using the data
|
|
49440
50587
|
# included in the request.
|
|
49441
50588
|
# @param [String] project
|
|
@@ -49781,6 +50928,49 @@ module Google
|
|
|
49781
50928
|
execute_or_queue_command(command, &block)
|
|
49782
50929
|
end
|
|
49783
50930
|
|
|
50931
|
+
# Sets the access control policy on the specified resource.
|
|
50932
|
+
# Replaces any existing policy.
|
|
50933
|
+
# @param [String] project
|
|
50934
|
+
# Project ID for this request.
|
|
50935
|
+
# @param [String] region
|
|
50936
|
+
# The name of the region for this request.
|
|
50937
|
+
# @param [String] resource
|
|
50938
|
+
# Name or id of the resource for this request.
|
|
50939
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
|
50940
|
+
# @param [String] fields
|
|
50941
|
+
# Selector specifying which fields to include in a partial response.
|
|
50942
|
+
# @param [String] quota_user
|
|
50943
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
50944
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
50945
|
+
# @param [String] user_ip
|
|
50946
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
50947
|
+
# @param [Google::Apis::RequestOptions] options
|
|
50948
|
+
# Request-specific options
|
|
50949
|
+
#
|
|
50950
|
+
# @yield [result, err] Result & error if block supplied
|
|
50951
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
50952
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
50953
|
+
#
|
|
50954
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
50955
|
+
#
|
|
50956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
50957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
50958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
50959
|
+
def set_region_ssl_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
50960
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies/{resource}/setIamPolicy', options)
|
|
50961
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
|
50962
|
+
command.request_object = region_set_policy_request_object
|
|
50963
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
50964
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
50965
|
+
command.params['project'] = project unless project.nil?
|
|
50966
|
+
command.params['region'] = region unless region.nil?
|
|
50967
|
+
command.params['resource'] = resource unless resource.nil?
|
|
50968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
50969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
50970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
50971
|
+
execute_or_queue_command(command, &block)
|
|
50972
|
+
end
|
|
50973
|
+
|
|
49784
50974
|
# Returns permissions that a caller has on the specified resource.
|
|
49785
50975
|
# @param [String] project
|
|
49786
50976
|
# Project ID for this request.
|
|
@@ -52293,6 +53483,55 @@ module Google
|
|
|
52293
53483
|
execute_or_queue_command(command, &block)
|
|
52294
53484
|
end
|
|
52295
53485
|
|
|
53486
|
+
# Get health info on a reservation slot.
|
|
53487
|
+
# @param [String] project
|
|
53488
|
+
# Project ID for this request.
|
|
53489
|
+
# @param [String] zone
|
|
53490
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
53491
|
+
# @param [String] parent_name
|
|
53492
|
+
# The name of the parent reservation, parent block and parent sub-block. In
|
|
53493
|
+
# the format of
|
|
53494
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
|
|
53495
|
+
# reservationSubBlocks/`reservation_sub_block_name`
|
|
53496
|
+
# @param [String] reservation_slot
|
|
53497
|
+
# The name of the reservation slot.
|
|
53498
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
53499
|
+
# @param [String] request_id
|
|
53500
|
+
# An optional request ID to identify requests.
|
|
53501
|
+
# @param [String] fields
|
|
53502
|
+
# Selector specifying which fields to include in a partial response.
|
|
53503
|
+
# @param [String] quota_user
|
|
53504
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53505
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53506
|
+
# @param [String] user_ip
|
|
53507
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53508
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53509
|
+
# Request-specific options
|
|
53510
|
+
#
|
|
53511
|
+
# @yield [result, err] Result & error if block supplied
|
|
53512
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
53513
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53514
|
+
#
|
|
53515
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
53516
|
+
#
|
|
53517
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53518
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53519
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53520
|
+
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)
|
|
53521
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth', options)
|
|
53522
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
53523
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
53524
|
+
command.params['project'] = project unless project.nil?
|
|
53525
|
+
command.params['zone'] = zone unless zone.nil?
|
|
53526
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
53527
|
+
command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
|
|
53528
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
53529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53531
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53532
|
+
execute_or_queue_command(command, &block)
|
|
53533
|
+
end
|
|
53534
|
+
|
|
52296
53535
|
# Allows customers to get SBOM versions of a reservation slot.
|
|
52297
53536
|
# @param [String] project
|
|
52298
53537
|
# Project ID for this request.
|
|
@@ -58581,6 +59820,88 @@ module Google
|
|
|
58581
59820
|
execute_or_queue_command(command, &block)
|
|
58582
59821
|
end
|
|
58583
59822
|
|
|
59823
|
+
# Returns the specified SnapshotRecycleBinPolicy.
|
|
59824
|
+
# @param [String] project
|
|
59825
|
+
# Project ID for this request.
|
|
59826
|
+
# @param [String] fields
|
|
59827
|
+
# Selector specifying which fields to include in a partial response.
|
|
59828
|
+
# @param [String] quota_user
|
|
59829
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59830
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
59831
|
+
# @param [String] user_ip
|
|
59832
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
59833
|
+
# @param [Google::Apis::RequestOptions] options
|
|
59834
|
+
# Request-specific options
|
|
59835
|
+
#
|
|
59836
|
+
# @yield [result, err] Result & error if block supplied
|
|
59837
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] parsed result object
|
|
59838
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
59839
|
+
#
|
|
59840
|
+
# @return [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy]
|
|
59841
|
+
#
|
|
59842
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
59843
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
59844
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
59845
|
+
def get_snapshot_recycle_bin_policy(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
59846
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
|
|
59847
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
|
|
59848
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy
|
|
59849
|
+
command.params['project'] = project unless project.nil?
|
|
59850
|
+
command.query['fields'] = fields unless fields.nil?
|
|
59851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
59852
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
59853
|
+
execute_or_queue_command(command, &block)
|
|
59854
|
+
end
|
|
59855
|
+
|
|
59856
|
+
# Patches the SnapshotRecycleBinPolicy.
|
|
59857
|
+
# @param [String] project
|
|
59858
|
+
# Project ID for this request.
|
|
59859
|
+
# @param [Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
|
|
59860
|
+
# @param [String] request_id
|
|
59861
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
59862
|
+
# that if you must retry your request, the server will know to ignore the
|
|
59863
|
+
# request if it has already been completed.
|
|
59864
|
+
# For example, consider a situation where you make an initial request and
|
|
59865
|
+
# the request times out. If you make the request again with the same
|
|
59866
|
+
# request ID, the server can check if original operation with the same
|
|
59867
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
59868
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
59869
|
+
# The request ID must be
|
|
59870
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
59871
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
59872
|
+
# @param [String] fields
|
|
59873
|
+
# Selector specifying which fields to include in a partial response.
|
|
59874
|
+
# @param [String] quota_user
|
|
59875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
59877
|
+
# @param [String] user_ip
|
|
59878
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
59879
|
+
# @param [Google::Apis::RequestOptions] options
|
|
59880
|
+
# Request-specific options
|
|
59881
|
+
#
|
|
59882
|
+
# @yield [result, err] Result & error if block supplied
|
|
59883
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
59884
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
59885
|
+
#
|
|
59886
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
59887
|
+
#
|
|
59888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
59889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
59890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
59891
|
+
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)
|
|
59892
|
+
command = make_simple_command(:patch, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
|
|
59893
|
+
command.request_representation = Google::Apis::ComputeBeta::SnapshotRecycleBinPolicy::Representation
|
|
59894
|
+
command.request_object = snapshot_recycle_bin_policy_object
|
|
59895
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
59896
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
59897
|
+
command.params['project'] = project unless project.nil?
|
|
59898
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
59899
|
+
command.query['fields'] = fields unless fields.nil?
|
|
59900
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
59901
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
59902
|
+
execute_or_queue_command(command, &block)
|
|
59903
|
+
end
|
|
59904
|
+
|
|
58584
59905
|
# Get snapshot settings.
|
|
58585
59906
|
# @param [String] project
|
|
58586
59907
|
# Project ID for this request.
|
|
@@ -58887,6 +60208,44 @@ module Google
|
|
|
58887
60208
|
execute_or_queue_command(command, &block)
|
|
58888
60209
|
end
|
|
58889
60210
|
|
|
60211
|
+
# Returns the effective recycle bin rule for a snapshot by merging org and
|
|
60212
|
+
# project level rules. If no rules are defined at org and project level, the
|
|
60213
|
+
# standard default rule is returned.
|
|
60214
|
+
# @param [String] project
|
|
60215
|
+
# Project ID for this request.
|
|
60216
|
+
# @param [String] snapshot
|
|
60217
|
+
# Name of the Snapshot resource to get the effective recycle bin rule for.
|
|
60218
|
+
# @param [String] fields
|
|
60219
|
+
# Selector specifying which fields to include in a partial response.
|
|
60220
|
+
# @param [String] quota_user
|
|
60221
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
60222
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
60223
|
+
# @param [String] user_ip
|
|
60224
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
60225
|
+
# @param [Google::Apis::RequestOptions] options
|
|
60226
|
+
# Request-specific options
|
|
60227
|
+
#
|
|
60228
|
+
# @yield [result, err] Result & error if block supplied
|
|
60229
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse] parsed result object
|
|
60230
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
60231
|
+
#
|
|
60232
|
+
# @return [Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse]
|
|
60233
|
+
#
|
|
60234
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
60235
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
60236
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
60237
|
+
def get_snapshot_effective_recycle_bin_rule(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
60238
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule', options)
|
|
60239
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse::Representation
|
|
60240
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotsGetEffectiveRecycleBinRuleResponse
|
|
60241
|
+
command.params['project'] = project unless project.nil?
|
|
60242
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
|
60243
|
+
command.query['fields'] = fields unless fields.nil?
|
|
60244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
60245
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
60246
|
+
execute_or_queue_command(command, &block)
|
|
60247
|
+
end
|
|
60248
|
+
|
|
58890
60249
|
# Gets the access control policy for a resource. May be empty if no such
|
|
58891
60250
|
# policy or resource exists.
|
|
58892
60251
|
# @param [String] project
|
|
@@ -59905,6 +61264,46 @@ module Google
|
|
|
59905
61264
|
execute_or_queue_command(command, &block)
|
|
59906
61265
|
end
|
|
59907
61266
|
|
|
61267
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
61268
|
+
# policy or resource exists.
|
|
61269
|
+
# @param [String] project
|
|
61270
|
+
# Project ID for this request.
|
|
61271
|
+
# @param [String] resource
|
|
61272
|
+
# Name or id of the resource for this request.
|
|
61273
|
+
# @param [Fixnum] options_requested_policy_version
|
|
61274
|
+
# Requested IAM Policy version.
|
|
61275
|
+
# @param [String] fields
|
|
61276
|
+
# Selector specifying which fields to include in a partial response.
|
|
61277
|
+
# @param [String] quota_user
|
|
61278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
61279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61280
|
+
# @param [String] user_ip
|
|
61281
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
61282
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61283
|
+
# Request-specific options
|
|
61284
|
+
#
|
|
61285
|
+
# @yield [result, err] Result & error if block supplied
|
|
61286
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
61287
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
61288
|
+
#
|
|
61289
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
61290
|
+
#
|
|
61291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
61292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
61293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
61294
|
+
def get_ssl_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
61295
|
+
command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{resource}/getIamPolicy', options)
|
|
61296
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
61297
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
61298
|
+
command.params['project'] = project unless project.nil?
|
|
61299
|
+
command.params['resource'] = resource unless resource.nil?
|
|
61300
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
61301
|
+
command.query['fields'] = fields unless fields.nil?
|
|
61302
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
61303
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
61304
|
+
execute_or_queue_command(command, &block)
|
|
61305
|
+
end
|
|
61306
|
+
|
|
59908
61307
|
# Returns the specified SSL policy resource.
|
|
59909
61308
|
# @param [String] project
|
|
59910
61309
|
# Project ID for this request.
|
|
@@ -60237,6 +61636,46 @@ module Google
|
|
|
60237
61636
|
execute_or_queue_command(command, &block)
|
|
60238
61637
|
end
|
|
60239
61638
|
|
|
61639
|
+
# Sets the access control policy on the specified resource.
|
|
61640
|
+
# Replaces any existing policy.
|
|
61641
|
+
# @param [String] project
|
|
61642
|
+
# Project ID for this request.
|
|
61643
|
+
# @param [String] resource
|
|
61644
|
+
# Name or id of the resource for this request.
|
|
61645
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
|
61646
|
+
# @param [String] fields
|
|
61647
|
+
# Selector specifying which fields to include in a partial response.
|
|
61648
|
+
# @param [String] quota_user
|
|
61649
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
61650
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61651
|
+
# @param [String] user_ip
|
|
61652
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
61653
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61654
|
+
# Request-specific options
|
|
61655
|
+
#
|
|
61656
|
+
# @yield [result, err] Result & error if block supplied
|
|
61657
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
|
61658
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
61659
|
+
#
|
|
61660
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
|
61661
|
+
#
|
|
61662
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
61663
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
61664
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
61665
|
+
def set_ssl_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
61666
|
+
command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/setIamPolicy', options)
|
|
61667
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
|
61668
|
+
command.request_object = global_set_policy_request_object
|
|
61669
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
|
61670
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
|
61671
|
+
command.params['project'] = project unless project.nil?
|
|
61672
|
+
command.params['resource'] = resource unless resource.nil?
|
|
61673
|
+
command.query['fields'] = fields unless fields.nil?
|
|
61674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
61675
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
61676
|
+
execute_or_queue_command(command, &block)
|
|
61677
|
+
end
|
|
61678
|
+
|
|
60240
61679
|
# Returns permissions that a caller has on the specified resource.
|
|
60241
61680
|
# @param [String] project
|
|
60242
61681
|
# Project ID for this request.
|