google-apis-compute_alpha 0.48.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.50.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.7.2
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.7.2
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.50.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|