google-apis-compute_alpha 0.46.0 → 0.49.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.
@@ -18782,6 +18782,464 @@ module Google
|
|
18782
18782
|
execute_or_queue_command(command, &block)
|
18783
18783
|
end
|
18784
18784
|
|
18785
|
+
# Retrieves the list of all NetworkAttachment resources, regional and global,
|
18786
|
+
# available to the specified project.
|
18787
|
+
# @param [String] project
|
18788
|
+
# Project ID for this request.
|
18789
|
+
# @param [String] filter
|
18790
|
+
# A filter expression that filters resources listed in the response. Most
|
18791
|
+
# Compute resources support two types of filter expressions: expressions that
|
18792
|
+
# support regular expressions and expressions that follow API improvement
|
18793
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
18794
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
18795
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
18796
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
18797
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
18798
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
18799
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
18800
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
18801
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
18802
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
18803
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
18804
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
18805
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
18806
|
+
# provide each separate expression within parentheses. For example: ``` (
|
18807
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
18808
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
18809
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
18810
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
18811
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
18812
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
18813
|
+
# expression with or without quotes or against multiple parenthesized
|
18814
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
18815
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
18816
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
18817
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
18818
|
+
# match the entire field. For example, to filter for instances that do not end
|
18819
|
+
# with name "instance", you would use `name ne .*instance`.
|
18820
|
+
# @param [Boolean] include_all_scopes
|
18821
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
18822
|
+
# global) should be included in the response. For new resource types added after
|
18823
|
+
# this field, the flag has no effect as new resource types will always include
|
18824
|
+
# every visible scope for each scope type in response. For resource types which
|
18825
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
18826
|
+
# types where the resource type is expected to be found will be included.
|
18827
|
+
# @param [Fixnum] max_results
|
18828
|
+
# The maximum number of results per page that should be returned. If the number
|
18829
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
18830
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
18831
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
18832
|
+
# @param [String] order_by
|
18833
|
+
# Sorts list results by a certain order. By default, results are returned in
|
18834
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
18835
|
+
# descending order based on the creation timestamp using `orderBy="
|
18836
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
18837
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
18838
|
+
# resources like operations so that the newest operation is returned first.
|
18839
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
18840
|
+
# @param [String] page_token
|
18841
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
18842
|
+
# by a previous list request to get the next page of results.
|
18843
|
+
# @param [Boolean] return_partial_success
|
18844
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
18845
|
+
# failure. The default value is false.
|
18846
|
+
# @param [String] fields
|
18847
|
+
# Selector specifying which fields to include in a partial response.
|
18848
|
+
# @param [String] quota_user
|
18849
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18850
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18851
|
+
# @param [String] user_ip
|
18852
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18853
|
+
# @param [Google::Apis::RequestOptions] options
|
18854
|
+
# Request-specific options
|
18855
|
+
#
|
18856
|
+
# @yield [result, err] Result & error if block supplied
|
18857
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkAttachmentAggregatedList] parsed result object
|
18858
|
+
# @yieldparam err [StandardError] error object if request failed
|
18859
|
+
#
|
18860
|
+
# @return [Google::Apis::ComputeAlpha::NetworkAttachmentAggregatedList]
|
18861
|
+
#
|
18862
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18863
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18864
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18865
|
+
def aggregated_network_attachment_list(project, filter: nil, include_all_scopes: 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)
|
18866
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkAttachments', options)
|
18867
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkAttachmentAggregatedList::Representation
|
18868
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkAttachmentAggregatedList
|
18869
|
+
command.params['project'] = project unless project.nil?
|
18870
|
+
command.query['filter'] = filter unless filter.nil?
|
18871
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
18872
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
18873
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
18874
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
18875
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
18876
|
+
command.query['fields'] = fields unless fields.nil?
|
18877
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18878
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18879
|
+
execute_or_queue_command(command, &block)
|
18880
|
+
end
|
18881
|
+
|
18882
|
+
# Deletes the specified NetworkAttachment in the given scope
|
18883
|
+
# @param [String] project
|
18884
|
+
# Project ID for this request.
|
18885
|
+
# @param [String] region
|
18886
|
+
# Name of the region of this request.
|
18887
|
+
# @param [String] network_attachment
|
18888
|
+
# Name of the NetworkAttachment resource to delete.
|
18889
|
+
# @param [String] request_id
|
18890
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
18891
|
+
# that if you must retry your request, the server will know to ignore the
|
18892
|
+
# request if it has already been completed. For example, consider a situation
|
18893
|
+
# where you make an initial request and the request times out. If you make the
|
18894
|
+
# request again with the same request ID, the server can check if original
|
18895
|
+
# operation with the same request ID was received, and if so, will ignore the
|
18896
|
+
# second request. This prevents clients from accidentally creating duplicate
|
18897
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
18898
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
18899
|
+
# MixerMutationRequestBuilder
|
18900
|
+
# @param [String] fields
|
18901
|
+
# Selector specifying which fields to include in a partial response.
|
18902
|
+
# @param [String] quota_user
|
18903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18905
|
+
# @param [String] user_ip
|
18906
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18907
|
+
# @param [Google::Apis::RequestOptions] options
|
18908
|
+
# Request-specific options
|
18909
|
+
#
|
18910
|
+
# @yield [result, err] Result & error if block supplied
|
18911
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18912
|
+
# @yieldparam err [StandardError] error object if request failed
|
18913
|
+
#
|
18914
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18915
|
+
#
|
18916
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18917
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18918
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18919
|
+
def delete_network_attachment(project, region, network_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18920
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
|
18921
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18922
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18923
|
+
command.params['project'] = project unless project.nil?
|
18924
|
+
command.params['region'] = region unless region.nil?
|
18925
|
+
command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
|
18926
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
18927
|
+
command.query['fields'] = fields unless fields.nil?
|
18928
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18929
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18930
|
+
execute_or_queue_command(command, &block)
|
18931
|
+
end
|
18932
|
+
|
18933
|
+
# Returns the specified NetworkAttachment resource in the given scope.
|
18934
|
+
# @param [String] project
|
18935
|
+
# Project ID for this request.
|
18936
|
+
# @param [String] region
|
18937
|
+
# Name of the region of this request.
|
18938
|
+
# @param [String] network_attachment
|
18939
|
+
# Name of the NetworkAttachment resource to return.
|
18940
|
+
# @param [String] fields
|
18941
|
+
# Selector specifying which fields to include in a partial response.
|
18942
|
+
# @param [String] quota_user
|
18943
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18944
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18945
|
+
# @param [String] user_ip
|
18946
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18947
|
+
# @param [Google::Apis::RequestOptions] options
|
18948
|
+
# Request-specific options
|
18949
|
+
#
|
18950
|
+
# @yield [result, err] Result & error if block supplied
|
18951
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkAttachment] parsed result object
|
18952
|
+
# @yieldparam err [StandardError] error object if request failed
|
18953
|
+
#
|
18954
|
+
# @return [Google::Apis::ComputeAlpha::NetworkAttachment]
|
18955
|
+
#
|
18956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18959
|
+
def get_network_attachment(project, region, network_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18960
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
|
18961
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkAttachment::Representation
|
18962
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkAttachment
|
18963
|
+
command.params['project'] = project unless project.nil?
|
18964
|
+
command.params['region'] = region unless region.nil?
|
18965
|
+
command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
|
18966
|
+
command.query['fields'] = fields unless fields.nil?
|
18967
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18968
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18969
|
+
execute_or_queue_command(command, &block)
|
18970
|
+
end
|
18971
|
+
|
18972
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
18973
|
+
# or resource exists.
|
18974
|
+
# @param [String] project
|
18975
|
+
# Project ID for this request.
|
18976
|
+
# @param [String] region
|
18977
|
+
# The name of the region for this request.
|
18978
|
+
# @param [String] resource
|
18979
|
+
# Name or id of the resource for this request.
|
18980
|
+
# @param [Fixnum] options_requested_policy_version
|
18981
|
+
# Requested IAM Policy version.
|
18982
|
+
# @param [String] fields
|
18983
|
+
# Selector specifying which fields to include in a partial response.
|
18984
|
+
# @param [String] quota_user
|
18985
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18986
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18987
|
+
# @param [String] user_ip
|
18988
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18989
|
+
# @param [Google::Apis::RequestOptions] options
|
18990
|
+
# Request-specific options
|
18991
|
+
#
|
18992
|
+
# @yield [result, err] Result & error if block supplied
|
18993
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
18994
|
+
# @yieldparam err [StandardError] error object if request failed
|
18995
|
+
#
|
18996
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
18997
|
+
#
|
18998
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18999
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19000
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19001
|
+
def get_network_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19002
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy', options)
|
19003
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
19004
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
19005
|
+
command.params['project'] = project unless project.nil?
|
19006
|
+
command.params['region'] = region unless region.nil?
|
19007
|
+
command.params['resource'] = resource unless resource.nil?
|
19008
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
19009
|
+
command.query['fields'] = fields unless fields.nil?
|
19010
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19011
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19012
|
+
execute_or_queue_command(command, &block)
|
19013
|
+
end
|
19014
|
+
|
19015
|
+
# Creates a NetworkAttachment in the specified project in the given scope using
|
19016
|
+
# the parameters that are included in the request.
|
19017
|
+
# @param [String] project
|
19018
|
+
# Project ID for this request.
|
19019
|
+
# @param [String] region
|
19020
|
+
# Name of the region of this request.
|
19021
|
+
# @param [Google::Apis::ComputeAlpha::NetworkAttachment] network_attachment_object
|
19022
|
+
# @param [String] request_id
|
19023
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
19024
|
+
# that if you must retry your request, the server will know to ignore the
|
19025
|
+
# request if it has already been completed. For example, consider a situation
|
19026
|
+
# where you make an initial request and the request times out. If you make the
|
19027
|
+
# request again with the same request ID, the server can check if original
|
19028
|
+
# operation with the same request ID was received, and if so, will ignore the
|
19029
|
+
# second request. This prevents clients from accidentally creating duplicate
|
19030
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
19031
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
19032
|
+
# MixerMutationRequestBuilder
|
19033
|
+
# @param [String] fields
|
19034
|
+
# Selector specifying which fields to include in a partial response.
|
19035
|
+
# @param [String] quota_user
|
19036
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19037
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19038
|
+
# @param [String] user_ip
|
19039
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19040
|
+
# @param [Google::Apis::RequestOptions] options
|
19041
|
+
# Request-specific options
|
19042
|
+
#
|
19043
|
+
# @yield [result, err] Result & error if block supplied
|
19044
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
19045
|
+
# @yieldparam err [StandardError] error object if request failed
|
19046
|
+
#
|
19047
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
19048
|
+
#
|
19049
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19050
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19051
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19052
|
+
def insert_network_attachment(project, region, network_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19053
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments', options)
|
19054
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkAttachment::Representation
|
19055
|
+
command.request_object = network_attachment_object
|
19056
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19057
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
19058
|
+
command.params['project'] = project unless project.nil?
|
19059
|
+
command.params['region'] = region unless region.nil?
|
19060
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
19061
|
+
command.query['fields'] = fields unless fields.nil?
|
19062
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19063
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19064
|
+
execute_or_queue_command(command, &block)
|
19065
|
+
end
|
19066
|
+
|
19067
|
+
# Lists the NetworkAttachments for a project in the given scope.
|
19068
|
+
# @param [String] project
|
19069
|
+
# Project ID for this request.
|
19070
|
+
# @param [String] region
|
19071
|
+
# Name of the region of this request.
|
19072
|
+
# @param [String] filter
|
19073
|
+
# A filter expression that filters resources listed in the response. Most
|
19074
|
+
# Compute resources support two types of filter expressions: expressions that
|
19075
|
+
# support regular expressions and expressions that follow API improvement
|
19076
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
19077
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
19078
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
19079
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
19080
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
19081
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
19082
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
19083
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
19084
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
19085
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
19086
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
19087
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
19088
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
19089
|
+
# provide each separate expression within parentheses. For example: ``` (
|
19090
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
19091
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
19092
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
19093
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
19094
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
19095
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
19096
|
+
# expression with or without quotes or against multiple parenthesized
|
19097
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
19098
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
19099
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
19100
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
19101
|
+
# match the entire field. For example, to filter for instances that do not end
|
19102
|
+
# with name "instance", you would use `name ne .*instance`.
|
19103
|
+
# @param [Fixnum] max_results
|
19104
|
+
# The maximum number of results per page that should be returned. If the number
|
19105
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
19106
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
19107
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
19108
|
+
# @param [String] order_by
|
19109
|
+
# Sorts list results by a certain order. By default, results are returned in
|
19110
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
19111
|
+
# descending order based on the creation timestamp using `orderBy="
|
19112
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
19113
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
19114
|
+
# resources like operations so that the newest operation is returned first.
|
19115
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
19116
|
+
# @param [String] page_token
|
19117
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
19118
|
+
# by a previous list request to get the next page of results.
|
19119
|
+
# @param [Boolean] return_partial_success
|
19120
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
19121
|
+
# failure. The default value is false.
|
19122
|
+
# @param [String] fields
|
19123
|
+
# Selector specifying which fields to include in a partial response.
|
19124
|
+
# @param [String] quota_user
|
19125
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19126
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19127
|
+
# @param [String] user_ip
|
19128
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19129
|
+
# @param [Google::Apis::RequestOptions] options
|
19130
|
+
# Request-specific options
|
19131
|
+
#
|
19132
|
+
# @yield [result, err] Result & error if block supplied
|
19133
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkAttachmentList] parsed result object
|
19134
|
+
# @yieldparam err [StandardError] error object if request failed
|
19135
|
+
#
|
19136
|
+
# @return [Google::Apis::ComputeAlpha::NetworkAttachmentList]
|
19137
|
+
#
|
19138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19141
|
+
def list_network_attachments(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)
|
19142
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments', options)
|
19143
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkAttachmentList::Representation
|
19144
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkAttachmentList
|
19145
|
+
command.params['project'] = project unless project.nil?
|
19146
|
+
command.params['region'] = region unless region.nil?
|
19147
|
+
command.query['filter'] = filter unless filter.nil?
|
19148
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
19149
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
19150
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
19151
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
19152
|
+
command.query['fields'] = fields unless fields.nil?
|
19153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19154
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19155
|
+
execute_or_queue_command(command, &block)
|
19156
|
+
end
|
19157
|
+
|
19158
|
+
# Sets the access control policy on the specified resource. Replaces any
|
19159
|
+
# existing policy.
|
19160
|
+
# @param [String] project
|
19161
|
+
# Project ID for this request.
|
19162
|
+
# @param [String] region
|
19163
|
+
# The name of the region for this request.
|
19164
|
+
# @param [String] resource
|
19165
|
+
# Name or id of the resource for this request.
|
19166
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
19167
|
+
# @param [String] fields
|
19168
|
+
# Selector specifying which fields to include in a partial response.
|
19169
|
+
# @param [String] quota_user
|
19170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19172
|
+
# @param [String] user_ip
|
19173
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19174
|
+
# @param [Google::Apis::RequestOptions] options
|
19175
|
+
# Request-specific options
|
19176
|
+
#
|
19177
|
+
# @yield [result, err] Result & error if block supplied
|
19178
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
19179
|
+
# @yieldparam err [StandardError] error object if request failed
|
19180
|
+
#
|
19181
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
19182
|
+
#
|
19183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19186
|
+
def set_network_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19187
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy', options)
|
19188
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
19189
|
+
command.request_object = region_set_policy_request_object
|
19190
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
19191
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
19192
|
+
command.params['project'] = project unless project.nil?
|
19193
|
+
command.params['region'] = region unless region.nil?
|
19194
|
+
command.params['resource'] = resource unless resource.nil?
|
19195
|
+
command.query['fields'] = fields unless fields.nil?
|
19196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19197
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19198
|
+
execute_or_queue_command(command, &block)
|
19199
|
+
end
|
19200
|
+
|
19201
|
+
# Returns permissions that a caller has on the specified resource.
|
19202
|
+
# @param [String] project
|
19203
|
+
# Project ID for this request.
|
19204
|
+
# @param [String] region
|
19205
|
+
# The name of the region for this request.
|
19206
|
+
# @param [String] resource
|
19207
|
+
# Name or id of the resource for this request.
|
19208
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
19209
|
+
# @param [String] fields
|
19210
|
+
# Selector specifying which fields to include in a partial response.
|
19211
|
+
# @param [String] quota_user
|
19212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19214
|
+
# @param [String] user_ip
|
19215
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19216
|
+
# @param [Google::Apis::RequestOptions] options
|
19217
|
+
# Request-specific options
|
19218
|
+
#
|
19219
|
+
# @yield [result, err] Result & error if block supplied
|
19220
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
19221
|
+
# @yieldparam err [StandardError] error object if request failed
|
19222
|
+
#
|
19223
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
19224
|
+
#
|
19225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19228
|
+
def test_network_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19229
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions', options)
|
19230
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
19231
|
+
command.request_object = test_permissions_request_object
|
19232
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
19233
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
19234
|
+
command.params['project'] = project unless project.nil?
|
19235
|
+
command.params['region'] = region unless region.nil?
|
19236
|
+
command.params['resource'] = resource unless resource.nil?
|
19237
|
+
command.query['fields'] = fields unless fields.nil?
|
19238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19239
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19240
|
+
execute_or_queue_command(command, &block)
|
19241
|
+
end
|
19242
|
+
|
18785
19243
|
# Retrieves the list of all NetworkEdgeSecurityService resources available to
|
18786
19244
|
# the specified project.
|
18787
19245
|
# @param [String] project
|
@@ -33162,6 +33620,51 @@ module Google
|
|
33162
33620
|
execute_or_queue_command(command, &block)
|
33163
33621
|
end
|
33164
33622
|
|
33623
|
+
# Inserts a rule into a security policy.
|
33624
|
+
# @param [String] project
|
33625
|
+
# Project ID for this request.
|
33626
|
+
# @param [String] region
|
33627
|
+
# Name of the region scoping this request.
|
33628
|
+
# @param [String] security_policy
|
33629
|
+
# Name of the security policy to update.
|
33630
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
33631
|
+
# @param [Boolean] validate_only
|
33632
|
+
# If true, the request will not be committed.
|
33633
|
+
# @param [String] fields
|
33634
|
+
# Selector specifying which fields to include in a partial response.
|
33635
|
+
# @param [String] quota_user
|
33636
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33637
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33638
|
+
# @param [String] user_ip
|
33639
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33640
|
+
# @param [Google::Apis::RequestOptions] options
|
33641
|
+
# Request-specific options
|
33642
|
+
#
|
33643
|
+
# @yield [result, err] Result & error if block supplied
|
33644
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33645
|
+
# @yieldparam err [StandardError] error object if request failed
|
33646
|
+
#
|
33647
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33648
|
+
#
|
33649
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33650
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33651
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33652
|
+
def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33653
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
|
33654
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
33655
|
+
command.request_object = security_policy_rule_object
|
33656
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33657
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33658
|
+
command.params['project'] = project unless project.nil?
|
33659
|
+
command.params['region'] = region unless region.nil?
|
33660
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33661
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
33662
|
+
command.query['fields'] = fields unless fields.nil?
|
33663
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33664
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33665
|
+
execute_or_queue_command(command, &block)
|
33666
|
+
end
|
33667
|
+
|
33165
33668
|
# Deletes the specified policy.
|
33166
33669
|
# @param [String] project
|
33167
33670
|
# Project ID for this request.
|
@@ -33251,6 +33754,48 @@ module Google
|
|
33251
33754
|
execute_or_queue_command(command, &block)
|
33252
33755
|
end
|
33253
33756
|
|
33757
|
+
# Gets a rule at the specified priority.
|
33758
|
+
# @param [String] project
|
33759
|
+
# Project ID for this request.
|
33760
|
+
# @param [String] region
|
33761
|
+
# Name of the region scoping this request.
|
33762
|
+
# @param [String] security_policy
|
33763
|
+
# Name of the security policy to which the queried rule belongs.
|
33764
|
+
# @param [Fixnum] priority
|
33765
|
+
# The priority of the rule to get from the security policy.
|
33766
|
+
# @param [String] fields
|
33767
|
+
# Selector specifying which fields to include in a partial response.
|
33768
|
+
# @param [String] quota_user
|
33769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33771
|
+
# @param [String] user_ip
|
33772
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33773
|
+
# @param [Google::Apis::RequestOptions] options
|
33774
|
+
# Request-specific options
|
33775
|
+
#
|
33776
|
+
# @yield [result, err] Result & error if block supplied
|
33777
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
|
33778
|
+
# @yieldparam err [StandardError] error object if request failed
|
33779
|
+
#
|
33780
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
|
33781
|
+
#
|
33782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33785
|
+
def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33786
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
|
33787
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
33788
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
|
33789
|
+
command.params['project'] = project unless project.nil?
|
33790
|
+
command.params['region'] = region unless region.nil?
|
33791
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33792
|
+
command.query['priority'] = priority unless priority.nil?
|
33793
|
+
command.query['fields'] = fields unless fields.nil?
|
33794
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33795
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33796
|
+
execute_or_queue_command(command, &block)
|
33797
|
+
end
|
33798
|
+
|
33254
33799
|
# Creates a new policy in the specified project using the data included in the
|
33255
33800
|
# request.
|
33256
33801
|
# @param [String] project
|
@@ -33405,6 +33950,7 @@ module Google
|
|
33405
33950
|
# @param [String] security_policy
|
33406
33951
|
# Name of the security policy to update.
|
33407
33952
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
33953
|
+
# @param [Array<String>, String] paths
|
33408
33954
|
# @param [String] request_id
|
33409
33955
|
# An optional request ID to identify requests. Specify a unique request ID so
|
33410
33956
|
# that if you must retry your request, the server will know to ignore the
|
@@ -33415,6 +33961,8 @@ module Google
|
|
33415
33961
|
# second request. This prevents clients from accidentally creating duplicate
|
33416
33962
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
33417
33963
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33964
|
+
# @param [String] update_mask
|
33965
|
+
# Indicates fields to be cleared as part of this request.
|
33418
33966
|
# @param [String] fields
|
33419
33967
|
# Selector specifying which fields to include in a partial response.
|
33420
33968
|
# @param [String] quota_user
|
@@ -33434,7 +33982,7 @@ module Google
|
|
33434
33982
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33435
33983
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33436
33984
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33437
|
-
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33985
|
+
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33438
33986
|
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
33439
33987
|
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
33440
33988
|
command.request_object = security_policy_object
|
@@ -33443,7 +33991,99 @@ module Google
|
|
33443
33991
|
command.params['project'] = project unless project.nil?
|
33444
33992
|
command.params['region'] = region unless region.nil?
|
33445
33993
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33994
|
+
command.query['paths'] = paths unless paths.nil?
|
33446
33995
|
command.query['requestId'] = request_id unless request_id.nil?
|
33996
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
33997
|
+
command.query['fields'] = fields unless fields.nil?
|
33998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33999
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34000
|
+
execute_or_queue_command(command, &block)
|
34001
|
+
end
|
34002
|
+
|
34003
|
+
# Patches a rule at the specified priority.
|
34004
|
+
# @param [String] project
|
34005
|
+
# Project ID for this request.
|
34006
|
+
# @param [String] region
|
34007
|
+
# Name of the region scoping this request.
|
34008
|
+
# @param [String] security_policy
|
34009
|
+
# Name of the security policy to update.
|
34010
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
34011
|
+
# @param [Fixnum] priority
|
34012
|
+
# The priority of the rule to patch.
|
34013
|
+
# @param [Boolean] validate_only
|
34014
|
+
# If true, the request will not be committed.
|
34015
|
+
# @param [String] fields
|
34016
|
+
# Selector specifying which fields to include in a partial response.
|
34017
|
+
# @param [String] quota_user
|
34018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34020
|
+
# @param [String] user_ip
|
34021
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34022
|
+
# @param [Google::Apis::RequestOptions] options
|
34023
|
+
# Request-specific options
|
34024
|
+
#
|
34025
|
+
# @yield [result, err] Result & error if block supplied
|
34026
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34027
|
+
# @yieldparam err [StandardError] error object if request failed
|
34028
|
+
#
|
34029
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34030
|
+
#
|
34031
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34032
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34033
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34034
|
+
def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34035
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
|
34036
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
34037
|
+
command.request_object = security_policy_rule_object
|
34038
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34039
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34040
|
+
command.params['project'] = project unless project.nil?
|
34041
|
+
command.params['region'] = region unless region.nil?
|
34042
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
34043
|
+
command.query['priority'] = priority unless priority.nil?
|
34044
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
34045
|
+
command.query['fields'] = fields unless fields.nil?
|
34046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34047
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34048
|
+
execute_or_queue_command(command, &block)
|
34049
|
+
end
|
34050
|
+
|
34051
|
+
# Deletes a rule at the specified priority.
|
34052
|
+
# @param [String] project
|
34053
|
+
# Project ID for this request.
|
34054
|
+
# @param [String] region
|
34055
|
+
# Name of the region scoping this request.
|
34056
|
+
# @param [String] security_policy
|
34057
|
+
# Name of the security policy to update.
|
34058
|
+
# @param [Fixnum] priority
|
34059
|
+
# The priority of the rule to remove from the security policy.
|
34060
|
+
# @param [String] fields
|
34061
|
+
# Selector specifying which fields to include in a partial response.
|
34062
|
+
# @param [String] quota_user
|
34063
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34064
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34065
|
+
# @param [String] user_ip
|
34066
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34067
|
+
# @param [Google::Apis::RequestOptions] options
|
34068
|
+
# Request-specific options
|
34069
|
+
#
|
34070
|
+
# @yield [result, err] Result & error if block supplied
|
34071
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34072
|
+
# @yieldparam err [StandardError] error object if request failed
|
34073
|
+
#
|
34074
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34075
|
+
#
|
34076
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34077
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34078
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34079
|
+
def remove_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34080
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule', options)
|
34081
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34082
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34083
|
+
command.params['project'] = project unless project.nil?
|
34084
|
+
command.params['region'] = region unless region.nil?
|
34085
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
34086
|
+
command.query['priority'] = priority unless priority.nil?
|
33447
34087
|
command.query['fields'] = fields unless fields.nil?
|
33448
34088
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33449
34089
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -38207,6 +38847,7 @@ module Google
|
|
38207
38847
|
# @param [String] security_policy
|
38208
38848
|
# Name of the security policy to update.
|
38209
38849
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
38850
|
+
# @param [Array<String>, String] paths
|
38210
38851
|
# @param [String] request_id
|
38211
38852
|
# An optional request ID to identify requests. Specify a unique request ID so
|
38212
38853
|
# that if you must retry your request, the server will know to ignore the
|
@@ -38217,6 +38858,8 @@ module Google
|
|
38217
38858
|
# second request. This prevents clients from accidentally creating duplicate
|
38218
38859
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
38219
38860
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38861
|
+
# @param [String] update_mask
|
38862
|
+
# Indicates fields to be cleared as part of this request.
|
38220
38863
|
# @param [String] fields
|
38221
38864
|
# Selector specifying which fields to include in a partial response.
|
38222
38865
|
# @param [String] quota_user
|
@@ -38236,7 +38879,7 @@ module Google
|
|
38236
38879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38237
38880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38238
38881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38239
|
-
def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38882
|
+
def patch_security_policy(project, security_policy, security_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38240
38883
|
command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options)
|
38241
38884
|
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
38242
38885
|
command.request_object = security_policy_object
|
@@ -38244,7 +38887,9 @@ module Google
|
|
38244
38887
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
38245
38888
|
command.params['project'] = project unless project.nil?
|
38246
38889
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
38890
|
+
command.query['paths'] = paths unless paths.nil?
|
38247
38891
|
command.query['requestId'] = request_id unless request_id.nil?
|
38892
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
38248
38893
|
command.query['fields'] = fields unless fields.nil?
|
38249
38894
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38250
38895
|
command.query['userIp'] = user_ip unless user_ip.nil?
|