google-apis-compute_beta 0.112.0 → 0.114.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.
@@ -3743,6 +3743,60 @@ module Google
3743
3743
  execute_or_queue_command(command, &block)
3744
3744
  end
3745
3745
 
3746
+ # Sets the labels on many disks at once. To learn more about labels, read the
3747
+ # Labeling Resources documentation.
3748
+ # @param [String] project
3749
+ # Project ID for this request.
3750
+ # @param [String] zone
3751
+ # The name of the zone for this request.
3752
+ # @param [Google::Apis::ComputeBeta::BulkZoneSetLabelsRequest] bulk_zone_set_labels_request_object
3753
+ # @param [String] request_id
3754
+ # An optional request ID to identify requests. Specify a unique request ID so
3755
+ # that if you must retry your request, the server will know to ignore the
3756
+ # request if it has already been completed. For example, consider a situation
3757
+ # where you make an initial request and the request times out. If you make the
3758
+ # request again with the same request ID, the server can check if original
3759
+ # operation with the same request ID was received, and if so, will ignore the
3760
+ # second request. This prevents clients from accidentally creating duplicate
3761
+ # commitments. The request ID must be a valid UUID with the exception that zero
3762
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3763
+ # @param [String] resource
3764
+ # Name or id of the resource for this request.
3765
+ # @param [String] fields
3766
+ # Selector specifying which fields to include in a partial response.
3767
+ # @param [String] quota_user
3768
+ # Available to use for quota purposes for server-side applications. Can be any
3769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3770
+ # @param [String] user_ip
3771
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3772
+ # @param [Google::Apis::RequestOptions] options
3773
+ # Request-specific options
3774
+ #
3775
+ # @yield [result, err] Result & error if block supplied
3776
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3777
+ # @yieldparam err [StandardError] error object if request failed
3778
+ #
3779
+ # @return [Google::Apis::ComputeBeta::Operation]
3780
+ #
3781
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3782
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3783
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3784
+ def bulk_disk_set_labels(project, zone, bulk_zone_set_labels_request_object = nil, request_id: nil, resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3785
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/bulkSetLabels', options)
3786
+ command.request_representation = Google::Apis::ComputeBeta::BulkZoneSetLabelsRequest::Representation
3787
+ command.request_object = bulk_zone_set_labels_request_object
3788
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3789
+ command.response_class = Google::Apis::ComputeBeta::Operation
3790
+ command.params['project'] = project unless project.nil?
3791
+ command.params['zone'] = zone unless zone.nil?
3792
+ command.query['requestId'] = request_id unless request_id.nil?
3793
+ command.query['resource'] = resource unless resource.nil?
3794
+ command.query['fields'] = fields unless fields.nil?
3795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3796
+ command.query['userIp'] = user_ip unless user_ip.nil?
3797
+ execute_or_queue_command(command, &block)
3798
+ end
3799
+
3746
3800
  # Creates a snapshot of a specified persistent disk. For regular snapshot
3747
3801
  # creation, consider using snapshots.insert instead, as that method supports
3748
3802
  # more features, such as creating snapshots in a project different from the
@@ -17863,73 +17917,22 @@ module Google
17863
17917
  execute_or_queue_command(command, &block)
17864
17918
  end
17865
17919
 
17866
- # Retrieves an aggregated list of interconnect attachments. To prevent failure,
17867
- # Google recommends that you set the `returnPartialSuccess` parameter to `true`.
17920
+ # Deletes the specified InterconnectAttachmentGroup in the given scope
17868
17921
  # @param [String] project
17869
17922
  # Project ID for this request.
17870
- # @param [String] filter
17871
- # A filter expression that filters resources listed in the response. Most
17872
- # Compute resources support two types of filter expressions: expressions that
17873
- # support regular expressions and expressions that follow API improvement
17874
- # proposal AIP-160. These two types of filter expressions cannot be mixed in one
17875
- # request. If you want to use AIP-160, your expression must specify the field
17876
- # name, an operator, and the value that you want to use for filtering. The value
17877
- # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
17878
- # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
17879
- # Engine instances, you can exclude instances named `example-instance` by
17880
- # specifying `name != example-instance`. The `:*` comparison can be used to test
17881
- # whether a key has been defined. For example, to find all objects with `owner`
17882
- # label use: ``` labels.owner:* ``` You can also filter nested fields. For
17883
- # example, you could specify `scheduling.automaticRestart = false` to include
17884
- # instances only if they are not scheduled for automatic restarts. You can use
17885
- # filtering on nested fields to filter based on resource labels. To filter on
17886
- # multiple expressions, provide each separate expression within parentheses. For
17887
- # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
17888
- # Skylake") ``` By default, each expression is an `AND` expression. However, you
17889
- # can include `AND` and `OR` expressions explicitly. For example: ``` (
17890
- # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
17891
- # scheduling.automaticRestart = true) ``` If you want to use a regular
17892
- # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
17893
- # un-parenthesized expression with or without quotes or against multiple
17894
- # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
17895
- # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
17896
- # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
17897
- # interpreted as a regular expression using Google RE2 library syntax. The
17898
- # literal value must match the entire field. For example, to filter for
17899
- # instances that do not end with name "instance", you would use `name ne .*
17900
- # instance`. You cannot combine constraints on multiple fields using regular
17901
- # expressions.
17902
- # @param [Boolean] include_all_scopes
17903
- # Indicates whether every visible scope for each scope type (zone, region,
17904
- # global) should be included in the response. For new resource types added after
17905
- # this field, the flag has no effect as new resource types will always include
17906
- # every visible scope for each scope type in response. For resource types which
17907
- # predate this field, if this flag is omitted or false, only scopes of the scope
17908
- # types where the resource type is expected to be found will be included.
17909
- # @param [Fixnum] max_results
17910
- # The maximum number of results per page that should be returned. If the number
17911
- # of available results is larger than `maxResults`, Compute Engine returns a `
17912
- # nextPageToken` that can be used to get the next page of results in subsequent
17913
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17914
- # @param [String] order_by
17915
- # Sorts list results by a certain order. By default, results are returned in
17916
- # alphanumerical order based on the resource name. You can also sort results in
17917
- # descending order based on the creation timestamp using `orderBy="
17918
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
17919
- # field in reverse chronological order (newest result first). Use this to sort
17920
- # resources like operations so that the newest operation is returned first.
17921
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17922
- # @param [String] page_token
17923
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17924
- # by a previous list request to get the next page of results.
17925
- # @param [Boolean] return_partial_success
17926
- # Opt-in for partial success behavior which provides partial results in case of
17927
- # failure. The default value is false. For example, when partial success
17928
- # behavior is enabled, aggregatedList for a single zone scope either returns all
17929
- # resources in the zone or no resources, with an error code.
17930
- # @param [Fixnum] service_project_number
17931
- # The Shared VPC service project id or service project number for which
17932
- # aggregated list request is invoked for subnetworks list-usable api.
17923
+ # @param [String] interconnect_attachment_group
17924
+ # Name of the InterconnectAttachmentGroup resource to delete.
17925
+ # @param [String] request_id
17926
+ # An optional request ID to identify requests. Specify a unique request ID so
17927
+ # that if you must retry your request, the server will know to ignore the
17928
+ # request if it has already been completed. For example, consider a situation
17929
+ # where you make an initial request and the request times out. If you make the
17930
+ # request again with the same request ID, the server can check if original
17931
+ # operation with the same request ID was received, and if so, will ignore the
17932
+ # second request. This prevents clients from accidentally creating duplicate
17933
+ # commitments. The request ID must be a valid UUID with the exception that zero
17934
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
17935
+ # MixerMutationRequestBuilder
17933
17936
  # @param [String] fields
17934
17937
  # Selector specifying which fields to include in a partial response.
17935
17938
  # @param [String] quota_user
@@ -17941,49 +17944,32 @@ module Google
17941
17944
  # Request-specific options
17942
17945
  #
17943
17946
  # @yield [result, err] Result & error if block supplied
17944
- # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList] parsed result object
17947
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
17945
17948
  # @yieldparam err [StandardError] error object if request failed
17946
17949
  #
17947
- # @return [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList]
17950
+ # @return [Google::Apis::ComputeBeta::Operation]
17948
17951
  #
17949
17952
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17950
17953
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17951
17954
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17952
- def aggregated_interconnect_attachment_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17953
- command = make_simple_command(:get, 'projects/{project}/aggregated/interconnectAttachments', options)
17954
- command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList::Representation
17955
- command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList
17955
+ def delete_interconnect_attachment_group(project, interconnect_attachment_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17956
+ command = make_simple_command(:delete, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
17957
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
17958
+ command.response_class = Google::Apis::ComputeBeta::Operation
17956
17959
  command.params['project'] = project unless project.nil?
17957
- command.query['filter'] = filter unless filter.nil?
17958
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
17959
- command.query['maxResults'] = max_results unless max_results.nil?
17960
- command.query['orderBy'] = order_by unless order_by.nil?
17961
- command.query['pageToken'] = page_token unless page_token.nil?
17962
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17963
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
17960
+ command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
17961
+ command.query['requestId'] = request_id unless request_id.nil?
17964
17962
  command.query['fields'] = fields unless fields.nil?
17965
17963
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17966
17964
  command.query['userIp'] = user_ip unless user_ip.nil?
17967
17965
  execute_or_queue_command(command, &block)
17968
17966
  end
17969
17967
 
17970
- # Deletes the specified interconnect attachment.
17968
+ # Returns the specified InterconnectAttachmentGroup resource in the given scope.
17971
17969
  # @param [String] project
17972
17970
  # Project ID for this request.
17973
- # @param [String] region
17974
- # Name of the region for this request.
17975
- # @param [String] interconnect_attachment
17976
- # Name of the interconnect attachment to delete.
17977
- # @param [String] request_id
17978
- # An optional request ID to identify requests. Specify a unique request ID so
17979
- # that if you must retry your request, the server will know to ignore the
17980
- # request if it has already been completed. For example, consider a situation
17981
- # where you make an initial request and the request times out. If you make the
17982
- # request again with the same request ID, the server can check if original
17983
- # operation with the same request ID was received, and if so, will ignore the
17984
- # second request. This prevents clients from accidentally creating duplicate
17985
- # commitments. The request ID must be a valid UUID with the exception that zero
17986
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
17971
+ # @param [String] interconnect_attachment_group
17972
+ # Name of the InterconnectAttachmentGroup resource to return.
17987
17973
  # @param [String] fields
17988
17974
  # Selector specifying which fields to include in a partial response.
17989
17975
  # @param [String] quota_user
@@ -17995,35 +17981,34 @@ module Google
17995
17981
  # Request-specific options
17996
17982
  #
17997
17983
  # @yield [result, err] Result & error if block supplied
17998
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
17984
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentGroup] parsed result object
17999
17985
  # @yieldparam err [StandardError] error object if request failed
18000
17986
  #
18001
- # @return [Google::Apis::ComputeBeta::Operation]
17987
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachmentGroup]
18002
17988
  #
18003
17989
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18004
17990
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18005
17991
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18006
- def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18007
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18008
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18009
- command.response_class = Google::Apis::ComputeBeta::Operation
17992
+ def get_interconnect_attachment_group(project, interconnect_attachment_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17993
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
17994
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentGroup::Representation
17995
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentGroup
18010
17996
  command.params['project'] = project unless project.nil?
18011
- command.params['region'] = region unless region.nil?
18012
- command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18013
- command.query['requestId'] = request_id unless request_id.nil?
17997
+ command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
18014
17998
  command.query['fields'] = fields unless fields.nil?
18015
17999
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18016
18000
  command.query['userIp'] = user_ip unless user_ip.nil?
18017
18001
  execute_or_queue_command(command, &block)
18018
18002
  end
18019
18003
 
18020
- # Returns the specified interconnect attachment.
18004
+ # Gets the access control policy for a resource. May be empty if no such policy
18005
+ # or resource exists.
18021
18006
  # @param [String] project
18022
18007
  # Project ID for this request.
18023
- # @param [String] region
18024
- # Name of the region for this request.
18025
- # @param [String] interconnect_attachment
18026
- # Name of the interconnect attachment to return.
18008
+ # @param [String] resource
18009
+ # Name or id of the resource for this request.
18010
+ # @param [Fixnum] options_requested_policy_version
18011
+ # Requested IAM Policy version.
18027
18012
  # @param [String] fields
18028
18013
  # Selector specifying which fields to include in a partial response.
18029
18014
  # @param [String] quota_user
@@ -18035,34 +18020,69 @@ module Google
18035
18020
  # Request-specific options
18036
18021
  #
18037
18022
  # @yield [result, err] Result & error if block supplied
18038
- # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachment] parsed result object
18023
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
18039
18024
  # @yieldparam err [StandardError] error object if request failed
18040
18025
  #
18041
- # @return [Google::Apis::ComputeBeta::InterconnectAttachment]
18026
+ # @return [Google::Apis::ComputeBeta::Policy]
18042
18027
  #
18043
18028
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18044
18029
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18045
18030
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18046
- def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18047
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18048
- command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18049
- command.response_class = Google::Apis::ComputeBeta::InterconnectAttachment
18031
+ def get_interconnect_attachment_group_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18032
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy', options)
18033
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
18034
+ command.response_class = Google::Apis::ComputeBeta::Policy
18050
18035
  command.params['project'] = project unless project.nil?
18051
- command.params['region'] = region unless region.nil?
18052
- command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18036
+ command.params['resource'] = resource unless resource.nil?
18037
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
18053
18038
  command.query['fields'] = fields unless fields.nil?
18054
18039
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18055
18040
  command.query['userIp'] = user_ip unless user_ip.nil?
18056
18041
  execute_or_queue_command(command, &block)
18057
18042
  end
18058
18043
 
18059
- # Creates an InterconnectAttachment in the specified project using the data
18060
- # included in the request.
18044
+ # Returns the InterconnectAttachmentStatuses for the specified
18045
+ # InterconnectAttachmentGroup resource.
18061
18046
  # @param [String] project
18062
18047
  # Project ID for this request.
18063
- # @param [String] region
18064
- # Name of the region for this request.
18065
- # @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
18048
+ # @param [String] interconnect_attachment_group
18049
+ # Name of the interconnectAttachmentGroup resource to query.
18050
+ # @param [String] fields
18051
+ # Selector specifying which fields to include in a partial response.
18052
+ # @param [String] quota_user
18053
+ # Available to use for quota purposes for server-side applications. Can be any
18054
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18055
+ # @param [String] user_ip
18056
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18057
+ # @param [Google::Apis::RequestOptions] options
18058
+ # Request-specific options
18059
+ #
18060
+ # @yield [result, err] Result & error if block supplied
18061
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentGroupsGetOperationalStatusResponse] parsed result object
18062
+ # @yieldparam err [StandardError] error object if request failed
18063
+ #
18064
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachmentGroupsGetOperationalStatusResponse]
18065
+ #
18066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18069
+ def get_interconnect_attachment_group_operational_status(project, interconnect_attachment_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18070
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus', options)
18071
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentGroupsGetOperationalStatusResponse::Representation
18072
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentGroupsGetOperationalStatusResponse
18073
+ command.params['project'] = project unless project.nil?
18074
+ command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
18075
+ command.query['fields'] = fields unless fields.nil?
18076
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18077
+ command.query['userIp'] = user_ip unless user_ip.nil?
18078
+ execute_or_queue_command(command, &block)
18079
+ end
18080
+
18081
+ # Creates a InterconnectAttachmentGroup in the specified project in the given
18082
+ # scope using the parameters that are included in the request.
18083
+ # @param [String] project
18084
+ # Project ID for this request.
18085
+ # @param [Google::Apis::ComputeBeta::InterconnectAttachmentGroup] interconnect_attachment_group_object
18066
18086
  # @param [String] request_id
18067
18087
  # An optional request ID to identify requests. Specify a unique request ID so
18068
18088
  # that if you must retry your request, the server will know to ignore the
@@ -18072,9 +18092,8 @@ module Google
18072
18092
  # operation with the same request ID was received, and if so, will ignore the
18073
18093
  # second request. This prevents clients from accidentally creating duplicate
18074
18094
  # commitments. The request ID must be a valid UUID with the exception that zero
18075
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18076
- # @param [Boolean] validate_only
18077
- # If true, the request will not be committed.
18095
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
18096
+ # MixerMutationRequestBuilder
18078
18097
  # @param [String] fields
18079
18098
  # Selector specifying which fields to include in a partial response.
18080
18099
  # @param [String] quota_user
@@ -18094,28 +18113,23 @@ module Google
18094
18113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18095
18114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18096
18115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18097
- def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18098
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments', options)
18099
- command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18100
- command.request_object = interconnect_attachment_object
18116
+ def insert_interconnect_attachment_group(project, interconnect_attachment_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18117
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups', options)
18118
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachmentGroup::Representation
18119
+ command.request_object = interconnect_attachment_group_object
18101
18120
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18102
18121
  command.response_class = Google::Apis::ComputeBeta::Operation
18103
18122
  command.params['project'] = project unless project.nil?
18104
- command.params['region'] = region unless region.nil?
18105
18123
  command.query['requestId'] = request_id unless request_id.nil?
18106
- command.query['validateOnly'] = validate_only unless validate_only.nil?
18107
18124
  command.query['fields'] = fields unless fields.nil?
18108
18125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18109
18126
  command.query['userIp'] = user_ip unless user_ip.nil?
18110
18127
  execute_or_queue_command(command, &block)
18111
18128
  end
18112
18129
 
18113
- # Retrieves the list of interconnect attachments contained within the specified
18114
- # region.
18130
+ # Lists the InterconnectAttachmentGroups for a project in the given scope.
18115
18131
  # @param [String] project
18116
18132
  # Project ID for this request.
18117
- # @param [String] region
18118
- # Name of the region for this request.
18119
18133
  # @param [String] filter
18120
18134
  # A filter expression that filters resources listed in the response. Most
18121
18135
  # Compute resources support two types of filter expressions: expressions that
@@ -18180,20 +18194,19 @@ module Google
18180
18194
  # Request-specific options
18181
18195
  #
18182
18196
  # @yield [result, err] Result & error if block supplied
18183
- # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentList] parsed result object
18197
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentGroupsListResponse] parsed result object
18184
18198
  # @yieldparam err [StandardError] error object if request failed
18185
18199
  #
18186
- # @return [Google::Apis::ComputeBeta::InterconnectAttachmentList]
18200
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachmentGroupsListResponse]
18187
18201
  #
18188
18202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18189
18203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18190
18204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18191
- def list_interconnect_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)
18192
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments', options)
18193
- command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentList::Representation
18194
- command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentList
18205
+ def list_interconnect_attachment_groups(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)
18206
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups', options)
18207
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentGroupsListResponse::Representation
18208
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentGroupsListResponse
18195
18209
  command.params['project'] = project unless project.nil?
18196
- command.params['region'] = region unless region.nil?
18197
18210
  command.query['filter'] = filter unless filter.nil?
18198
18211
  command.query['maxResults'] = max_results unless max_results.nil?
18199
18212
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -18205,16 +18218,14 @@ module Google
18205
18218
  execute_or_queue_command(command, &block)
18206
18219
  end
18207
18220
 
18208
- # Updates the specified interconnect attachment with the data included in the
18209
- # request. This method supports PATCH semantics and uses the JSON merge patch
18210
- # format and processing rules.
18221
+ # Patches the specified InterconnectAttachmentGroup resource with the data
18222
+ # included in the request. This method supports PATCH semantics and uses JSON
18223
+ # merge patch format and processing rules.
18211
18224
  # @param [String] project
18212
18225
  # Project ID for this request.
18213
- # @param [String] region
18214
- # Name of the region scoping this request.
18215
- # @param [String] interconnect_attachment
18216
- # Name of the interconnect attachment to patch.
18217
- # @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
18226
+ # @param [String] interconnect_attachment_group
18227
+ # Name of the InterconnectAttachmentGroup resource to patch.
18228
+ # @param [Google::Apis::ComputeBeta::InterconnectAttachmentGroup] interconnect_attachment_group_object
18218
18229
  # @param [String] request_id
18219
18230
  # An optional request ID to identify requests. Specify a unique request ID so
18220
18231
  # that if you must retry your request, the server will know to ignore the
@@ -18224,9 +18235,835 @@ module Google
18224
18235
  # operation with the same request ID was received, and if so, will ignore the
18225
18236
  # second request. This prevents clients from accidentally creating duplicate
18226
18237
  # commitments. The request ID must be a valid UUID with the exception that zero
18227
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18228
- # @param [String] fields
18229
- # Selector specifying which fields to include in a partial response.
18238
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
18239
+ # MixerMutationRequestBuilder
18240
+ # @param [String] update_mask
18241
+ # The list of fields to update.
18242
+ # @param [String] fields
18243
+ # Selector specifying which fields to include in a partial response.
18244
+ # @param [String] quota_user
18245
+ # Available to use for quota purposes for server-side applications. Can be any
18246
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18247
+ # @param [String] user_ip
18248
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18249
+ # @param [Google::Apis::RequestOptions] options
18250
+ # Request-specific options
18251
+ #
18252
+ # @yield [result, err] Result & error if block supplied
18253
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18254
+ # @yieldparam err [StandardError] error object if request failed
18255
+ #
18256
+ # @return [Google::Apis::ComputeBeta::Operation]
18257
+ #
18258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18261
+ def patch_interconnect_attachment_group(project, interconnect_attachment_group, interconnect_attachment_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18262
+ command = make_simple_command(:patch, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}', options)
18263
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachmentGroup::Representation
18264
+ command.request_object = interconnect_attachment_group_object
18265
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18266
+ command.response_class = Google::Apis::ComputeBeta::Operation
18267
+ command.params['project'] = project unless project.nil?
18268
+ command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
18269
+ command.query['requestId'] = request_id unless request_id.nil?
18270
+ command.query['updateMask'] = update_mask unless update_mask.nil?
18271
+ command.query['fields'] = fields unless fields.nil?
18272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18273
+ command.query['userIp'] = user_ip unless user_ip.nil?
18274
+ execute_or_queue_command(command, &block)
18275
+ end
18276
+
18277
+ # Sets the access control policy on the specified resource. Replaces any
18278
+ # existing policy.
18279
+ # @param [String] project
18280
+ # Project ID for this request.
18281
+ # @param [String] resource
18282
+ # Name or id of the resource for this request.
18283
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
18284
+ # @param [String] fields
18285
+ # Selector specifying which fields to include in a partial response.
18286
+ # @param [String] quota_user
18287
+ # Available to use for quota purposes for server-side applications. Can be any
18288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18289
+ # @param [String] user_ip
18290
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18291
+ # @param [Google::Apis::RequestOptions] options
18292
+ # Request-specific options
18293
+ #
18294
+ # @yield [result, err] Result & error if block supplied
18295
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
18296
+ # @yieldparam err [StandardError] error object if request failed
18297
+ #
18298
+ # @return [Google::Apis::ComputeBeta::Policy]
18299
+ #
18300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18303
+ def set_interconnect_attachment_group_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18304
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy', options)
18305
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
18306
+ command.request_object = global_set_policy_request_object
18307
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
18308
+ command.response_class = Google::Apis::ComputeBeta::Policy
18309
+ command.params['project'] = project unless project.nil?
18310
+ command.params['resource'] = resource unless resource.nil?
18311
+ command.query['fields'] = fields unless fields.nil?
18312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18313
+ command.query['userIp'] = user_ip unless user_ip.nil?
18314
+ execute_or_queue_command(command, &block)
18315
+ end
18316
+
18317
+ # Returns permissions that a caller has on the specified resource.
18318
+ # @param [String] project
18319
+ # Project ID for this request.
18320
+ # @param [String] resource
18321
+ # Name or id of the resource for this request.
18322
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
18323
+ # @param [String] fields
18324
+ # Selector specifying which fields to include in a partial response.
18325
+ # @param [String] quota_user
18326
+ # Available to use for quota purposes for server-side applications. Can be any
18327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18328
+ # @param [String] user_ip
18329
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18330
+ # @param [Google::Apis::RequestOptions] options
18331
+ # Request-specific options
18332
+ #
18333
+ # @yield [result, err] Result & error if block supplied
18334
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
18335
+ # @yieldparam err [StandardError] error object if request failed
18336
+ #
18337
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
18338
+ #
18339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18342
+ def test_interconnect_attachment_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18343
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions', options)
18344
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
18345
+ command.request_object = test_permissions_request_object
18346
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
18347
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
18348
+ command.params['project'] = project unless project.nil?
18349
+ command.params['resource'] = resource unless resource.nil?
18350
+ command.query['fields'] = fields unless fields.nil?
18351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18352
+ command.query['userIp'] = user_ip unless user_ip.nil?
18353
+ execute_or_queue_command(command, &block)
18354
+ end
18355
+
18356
+ # Retrieves an aggregated list of interconnect attachments. To prevent failure,
18357
+ # Google recommends that you set the `returnPartialSuccess` parameter to `true`.
18358
+ # @param [String] project
18359
+ # Project ID for this request.
18360
+ # @param [String] filter
18361
+ # A filter expression that filters resources listed in the response. Most
18362
+ # Compute resources support two types of filter expressions: expressions that
18363
+ # support regular expressions and expressions that follow API improvement
18364
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
18365
+ # request. If you want to use AIP-160, your expression must specify the field
18366
+ # name, an operator, and the value that you want to use for filtering. The value
18367
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
18368
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
18369
+ # Engine instances, you can exclude instances named `example-instance` by
18370
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
18371
+ # whether a key has been defined. For example, to find all objects with `owner`
18372
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
18373
+ # example, you could specify `scheduling.automaticRestart = false` to include
18374
+ # instances only if they are not scheduled for automatic restarts. You can use
18375
+ # filtering on nested fields to filter based on resource labels. To filter on
18376
+ # multiple expressions, provide each separate expression within parentheses. For
18377
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
18378
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
18379
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
18380
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
18381
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
18382
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
18383
+ # un-parenthesized expression with or without quotes or against multiple
18384
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
18385
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
18386
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
18387
+ # interpreted as a regular expression using Google RE2 library syntax. The
18388
+ # literal value must match the entire field. For example, to filter for
18389
+ # instances that do not end with name "instance", you would use `name ne .*
18390
+ # instance`. You cannot combine constraints on multiple fields using regular
18391
+ # expressions.
18392
+ # @param [Boolean] include_all_scopes
18393
+ # Indicates whether every visible scope for each scope type (zone, region,
18394
+ # global) should be included in the response. For new resource types added after
18395
+ # this field, the flag has no effect as new resource types will always include
18396
+ # every visible scope for each scope type in response. For resource types which
18397
+ # predate this field, if this flag is omitted or false, only scopes of the scope
18398
+ # types where the resource type is expected to be found will be included.
18399
+ # @param [Fixnum] max_results
18400
+ # The maximum number of results per page that should be returned. If the number
18401
+ # of available results is larger than `maxResults`, Compute Engine returns a `
18402
+ # nextPageToken` that can be used to get the next page of results in subsequent
18403
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
18404
+ # @param [String] order_by
18405
+ # Sorts list results by a certain order. By default, results are returned in
18406
+ # alphanumerical order based on the resource name. You can also sort results in
18407
+ # descending order based on the creation timestamp using `orderBy="
18408
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
18409
+ # field in reverse chronological order (newest result first). Use this to sort
18410
+ # resources like operations so that the newest operation is returned first.
18411
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
18412
+ # @param [String] page_token
18413
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
18414
+ # by a previous list request to get the next page of results.
18415
+ # @param [Boolean] return_partial_success
18416
+ # Opt-in for partial success behavior which provides partial results in case of
18417
+ # failure. The default value is false. For example, when partial success
18418
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
18419
+ # resources in the zone or no resources, with an error code.
18420
+ # @param [Fixnum] service_project_number
18421
+ # The Shared VPC service project id or service project number for which
18422
+ # aggregated list request is invoked for subnetworks list-usable api.
18423
+ # @param [String] fields
18424
+ # Selector specifying which fields to include in a partial response.
18425
+ # @param [String] quota_user
18426
+ # Available to use for quota purposes for server-side applications. Can be any
18427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18428
+ # @param [String] user_ip
18429
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18430
+ # @param [Google::Apis::RequestOptions] options
18431
+ # Request-specific options
18432
+ #
18433
+ # @yield [result, err] Result & error if block supplied
18434
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList] parsed result object
18435
+ # @yieldparam err [StandardError] error object if request failed
18436
+ #
18437
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList]
18438
+ #
18439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18442
+ def aggregated_interconnect_attachment_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18443
+ command = make_simple_command(:get, 'projects/{project}/aggregated/interconnectAttachments', options)
18444
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList::Representation
18445
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList
18446
+ command.params['project'] = project unless project.nil?
18447
+ command.query['filter'] = filter unless filter.nil?
18448
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
18449
+ command.query['maxResults'] = max_results unless max_results.nil?
18450
+ command.query['orderBy'] = order_by unless order_by.nil?
18451
+ command.query['pageToken'] = page_token unless page_token.nil?
18452
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
18453
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
18454
+ command.query['fields'] = fields unless fields.nil?
18455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18456
+ command.query['userIp'] = user_ip unless user_ip.nil?
18457
+ execute_or_queue_command(command, &block)
18458
+ end
18459
+
18460
+ # Deletes the specified interconnect attachment.
18461
+ # @param [String] project
18462
+ # Project ID for this request.
18463
+ # @param [String] region
18464
+ # Name of the region for this request.
18465
+ # @param [String] interconnect_attachment
18466
+ # Name of the interconnect attachment to delete.
18467
+ # @param [String] request_id
18468
+ # An optional request ID to identify requests. Specify a unique request ID so
18469
+ # that if you must retry your request, the server will know to ignore the
18470
+ # request if it has already been completed. For example, consider a situation
18471
+ # where you make an initial request and the request times out. If you make the
18472
+ # request again with the same request ID, the server can check if original
18473
+ # operation with the same request ID was received, and if so, will ignore the
18474
+ # second request. This prevents clients from accidentally creating duplicate
18475
+ # commitments. The request ID must be a valid UUID with the exception that zero
18476
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18477
+ # @param [String] fields
18478
+ # Selector specifying which fields to include in a partial response.
18479
+ # @param [String] quota_user
18480
+ # Available to use for quota purposes for server-side applications. Can be any
18481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18482
+ # @param [String] user_ip
18483
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18484
+ # @param [Google::Apis::RequestOptions] options
18485
+ # Request-specific options
18486
+ #
18487
+ # @yield [result, err] Result & error if block supplied
18488
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18489
+ # @yieldparam err [StandardError] error object if request failed
18490
+ #
18491
+ # @return [Google::Apis::ComputeBeta::Operation]
18492
+ #
18493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18496
+ def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18497
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18498
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18499
+ command.response_class = Google::Apis::ComputeBeta::Operation
18500
+ command.params['project'] = project unless project.nil?
18501
+ command.params['region'] = region unless region.nil?
18502
+ command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18503
+ command.query['requestId'] = request_id unless request_id.nil?
18504
+ command.query['fields'] = fields unless fields.nil?
18505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18506
+ command.query['userIp'] = user_ip unless user_ip.nil?
18507
+ execute_or_queue_command(command, &block)
18508
+ end
18509
+
18510
+ # Returns the specified interconnect attachment.
18511
+ # @param [String] project
18512
+ # Project ID for this request.
18513
+ # @param [String] region
18514
+ # Name of the region for this request.
18515
+ # @param [String] interconnect_attachment
18516
+ # Name of the interconnect attachment to return.
18517
+ # @param [String] fields
18518
+ # Selector specifying which fields to include in a partial response.
18519
+ # @param [String] quota_user
18520
+ # Available to use for quota purposes for server-side applications. Can be any
18521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18522
+ # @param [String] user_ip
18523
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18524
+ # @param [Google::Apis::RequestOptions] options
18525
+ # Request-specific options
18526
+ #
18527
+ # @yield [result, err] Result & error if block supplied
18528
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachment] parsed result object
18529
+ # @yieldparam err [StandardError] error object if request failed
18530
+ #
18531
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachment]
18532
+ #
18533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18536
+ def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18537
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18538
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18539
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachment
18540
+ command.params['project'] = project unless project.nil?
18541
+ command.params['region'] = region unless region.nil?
18542
+ command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18543
+ command.query['fields'] = fields unless fields.nil?
18544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18545
+ command.query['userIp'] = user_ip unless user_ip.nil?
18546
+ execute_or_queue_command(command, &block)
18547
+ end
18548
+
18549
+ # Creates an InterconnectAttachment in the specified project using the data
18550
+ # included in the request.
18551
+ # @param [String] project
18552
+ # Project ID for this request.
18553
+ # @param [String] region
18554
+ # Name of the region for this request.
18555
+ # @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
18556
+ # @param [String] request_id
18557
+ # An optional request ID to identify requests. Specify a unique request ID so
18558
+ # that if you must retry your request, the server will know to ignore the
18559
+ # request if it has already been completed. For example, consider a situation
18560
+ # where you make an initial request and the request times out. If you make the
18561
+ # request again with the same request ID, the server can check if original
18562
+ # operation with the same request ID was received, and if so, will ignore the
18563
+ # second request. This prevents clients from accidentally creating duplicate
18564
+ # commitments. The request ID must be a valid UUID with the exception that zero
18565
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18566
+ # @param [Boolean] validate_only
18567
+ # If true, the request will not be committed.
18568
+ # @param [String] fields
18569
+ # Selector specifying which fields to include in a partial response.
18570
+ # @param [String] quota_user
18571
+ # Available to use for quota purposes for server-side applications. Can be any
18572
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18573
+ # @param [String] user_ip
18574
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18575
+ # @param [Google::Apis::RequestOptions] options
18576
+ # Request-specific options
18577
+ #
18578
+ # @yield [result, err] Result & error if block supplied
18579
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18580
+ # @yieldparam err [StandardError] error object if request failed
18581
+ #
18582
+ # @return [Google::Apis::ComputeBeta::Operation]
18583
+ #
18584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18587
+ def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18588
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments', options)
18589
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18590
+ command.request_object = interconnect_attachment_object
18591
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18592
+ command.response_class = Google::Apis::ComputeBeta::Operation
18593
+ command.params['project'] = project unless project.nil?
18594
+ command.params['region'] = region unless region.nil?
18595
+ command.query['requestId'] = request_id unless request_id.nil?
18596
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
18597
+ command.query['fields'] = fields unless fields.nil?
18598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18599
+ command.query['userIp'] = user_ip unless user_ip.nil?
18600
+ execute_or_queue_command(command, &block)
18601
+ end
18602
+
18603
+ # Retrieves the list of interconnect attachments contained within the specified
18604
+ # region.
18605
+ # @param [String] project
18606
+ # Project ID for this request.
18607
+ # @param [String] region
18608
+ # Name of the region for this request.
18609
+ # @param [String] filter
18610
+ # A filter expression that filters resources listed in the response. Most
18611
+ # Compute resources support two types of filter expressions: expressions that
18612
+ # support regular expressions and expressions that follow API improvement
18613
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
18614
+ # request. If you want to use AIP-160, your expression must specify the field
18615
+ # name, an operator, and the value that you want to use for filtering. The value
18616
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
18617
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
18618
+ # Engine instances, you can exclude instances named `example-instance` by
18619
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
18620
+ # whether a key has been defined. For example, to find all objects with `owner`
18621
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
18622
+ # example, you could specify `scheduling.automaticRestart = false` to include
18623
+ # instances only if they are not scheduled for automatic restarts. You can use
18624
+ # filtering on nested fields to filter based on resource labels. To filter on
18625
+ # multiple expressions, provide each separate expression within parentheses. For
18626
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
18627
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
18628
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
18629
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
18630
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
18631
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
18632
+ # un-parenthesized expression with or without quotes or against multiple
18633
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
18634
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
18635
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
18636
+ # interpreted as a regular expression using Google RE2 library syntax. The
18637
+ # literal value must match the entire field. For example, to filter for
18638
+ # instances that do not end with name "instance", you would use `name ne .*
18639
+ # instance`. You cannot combine constraints on multiple fields using regular
18640
+ # expressions.
18641
+ # @param [Fixnum] max_results
18642
+ # The maximum number of results per page that should be returned. If the number
18643
+ # of available results is larger than `maxResults`, Compute Engine returns a `
18644
+ # nextPageToken` that can be used to get the next page of results in subsequent
18645
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
18646
+ # @param [String] order_by
18647
+ # Sorts list results by a certain order. By default, results are returned in
18648
+ # alphanumerical order based on the resource name. You can also sort results in
18649
+ # descending order based on the creation timestamp using `orderBy="
18650
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
18651
+ # field in reverse chronological order (newest result first). Use this to sort
18652
+ # resources like operations so that the newest operation is returned first.
18653
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
18654
+ # @param [String] page_token
18655
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
18656
+ # by a previous list request to get the next page of results.
18657
+ # @param [Boolean] return_partial_success
18658
+ # Opt-in for partial success behavior which provides partial results in case of
18659
+ # failure. The default value is false. For example, when partial success
18660
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
18661
+ # resources in the zone or no resources, with an error code.
18662
+ # @param [String] fields
18663
+ # Selector specifying which fields to include in a partial response.
18664
+ # @param [String] quota_user
18665
+ # Available to use for quota purposes for server-side applications. Can be any
18666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18667
+ # @param [String] user_ip
18668
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18669
+ # @param [Google::Apis::RequestOptions] options
18670
+ # Request-specific options
18671
+ #
18672
+ # @yield [result, err] Result & error if block supplied
18673
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentList] parsed result object
18674
+ # @yieldparam err [StandardError] error object if request failed
18675
+ #
18676
+ # @return [Google::Apis::ComputeBeta::InterconnectAttachmentList]
18677
+ #
18678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18681
+ def list_interconnect_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)
18682
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments', options)
18683
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentList::Representation
18684
+ command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentList
18685
+ command.params['project'] = project unless project.nil?
18686
+ command.params['region'] = region unless region.nil?
18687
+ command.query['filter'] = filter unless filter.nil?
18688
+ command.query['maxResults'] = max_results unless max_results.nil?
18689
+ command.query['orderBy'] = order_by unless order_by.nil?
18690
+ command.query['pageToken'] = page_token unless page_token.nil?
18691
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
18692
+ command.query['fields'] = fields unless fields.nil?
18693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18694
+ command.query['userIp'] = user_ip unless user_ip.nil?
18695
+ execute_or_queue_command(command, &block)
18696
+ end
18697
+
18698
+ # Updates the specified interconnect attachment with the data included in the
18699
+ # request. This method supports PATCH semantics and uses the JSON merge patch
18700
+ # format and processing rules.
18701
+ # @param [String] project
18702
+ # Project ID for this request.
18703
+ # @param [String] region
18704
+ # Name of the region scoping this request.
18705
+ # @param [String] interconnect_attachment
18706
+ # Name of the interconnect attachment to patch.
18707
+ # @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
18708
+ # @param [String] request_id
18709
+ # An optional request ID to identify requests. Specify a unique request ID so
18710
+ # that if you must retry your request, the server will know to ignore the
18711
+ # request if it has already been completed. For example, consider a situation
18712
+ # where you make an initial request and the request times out. If you make the
18713
+ # request again with the same request ID, the server can check if original
18714
+ # operation with the same request ID was received, and if so, will ignore the
18715
+ # second request. This prevents clients from accidentally creating duplicate
18716
+ # commitments. The request ID must be a valid UUID with the exception that zero
18717
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18718
+ # @param [String] fields
18719
+ # Selector specifying which fields to include in a partial response.
18720
+ # @param [String] quota_user
18721
+ # Available to use for quota purposes for server-side applications. Can be any
18722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18723
+ # @param [String] user_ip
18724
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18725
+ # @param [Google::Apis::RequestOptions] options
18726
+ # Request-specific options
18727
+ #
18728
+ # @yield [result, err] Result & error if block supplied
18729
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18730
+ # @yieldparam err [StandardError] error object if request failed
18731
+ #
18732
+ # @return [Google::Apis::ComputeBeta::Operation]
18733
+ #
18734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18737
+ def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18738
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18739
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18740
+ command.request_object = interconnect_attachment_object
18741
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18742
+ command.response_class = Google::Apis::ComputeBeta::Operation
18743
+ command.params['project'] = project unless project.nil?
18744
+ command.params['region'] = region unless region.nil?
18745
+ command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18746
+ command.query['requestId'] = request_id unless request_id.nil?
18747
+ command.query['fields'] = fields unless fields.nil?
18748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18749
+ command.query['userIp'] = user_ip unless user_ip.nil?
18750
+ execute_or_queue_command(command, &block)
18751
+ end
18752
+
18753
+ # Sets the labels on an InterconnectAttachment. To learn more about labels, read
18754
+ # the Labeling Resources documentation.
18755
+ # @param [String] project
18756
+ # Project ID for this request.
18757
+ # @param [String] region
18758
+ # The region for this request.
18759
+ # @param [String] resource
18760
+ # Name or id of the resource for this request.
18761
+ # @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
18762
+ # @param [String] request_id
18763
+ # An optional request ID to identify requests. Specify a unique request ID so
18764
+ # that if you must retry your request, the server will know to ignore the
18765
+ # request if it has already been completed. For example, consider a situation
18766
+ # where you make an initial request and the request times out. If you make the
18767
+ # request again with the same request ID, the server can check if original
18768
+ # operation with the same request ID was received, and if so, will ignore the
18769
+ # second request. This prevents clients from accidentally creating duplicate
18770
+ # commitments. The request ID must be a valid UUID with the exception that zero
18771
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
18772
+ # @param [String] fields
18773
+ # Selector specifying which fields to include in a partial response.
18774
+ # @param [String] quota_user
18775
+ # Available to use for quota purposes for server-side applications. Can be any
18776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18777
+ # @param [String] user_ip
18778
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18779
+ # @param [Google::Apis::RequestOptions] options
18780
+ # Request-specific options
18781
+ #
18782
+ # @yield [result, err] Result & error if block supplied
18783
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18784
+ # @yieldparam err [StandardError] error object if request failed
18785
+ #
18786
+ # @return [Google::Apis::ComputeBeta::Operation]
18787
+ #
18788
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18789
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18790
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18791
+ def set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18792
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
18793
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
18794
+ command.request_object = region_set_labels_request_object
18795
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18796
+ command.response_class = Google::Apis::ComputeBeta::Operation
18797
+ command.params['project'] = project unless project.nil?
18798
+ command.params['region'] = region unless region.nil?
18799
+ command.params['resource'] = resource unless resource.nil?
18800
+ command.query['requestId'] = request_id unless request_id.nil?
18801
+ command.query['fields'] = fields unless fields.nil?
18802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18803
+ command.query['userIp'] = user_ip unless user_ip.nil?
18804
+ execute_or_queue_command(command, &block)
18805
+ end
18806
+
18807
+ # Returns permissions that a caller has on the specified resource.
18808
+ # @param [String] project
18809
+ # Project ID for this request.
18810
+ # @param [String] region
18811
+ # The name of the region for this request.
18812
+ # @param [String] resource
18813
+ # Name or id of the resource for this request.
18814
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
18815
+ # @param [String] fields
18816
+ # Selector specifying which fields to include in a partial response.
18817
+ # @param [String] quota_user
18818
+ # Available to use for quota purposes for server-side applications. Can be any
18819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18820
+ # @param [String] user_ip
18821
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18822
+ # @param [Google::Apis::RequestOptions] options
18823
+ # Request-specific options
18824
+ #
18825
+ # @yield [result, err] Result & error if block supplied
18826
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
18827
+ # @yieldparam err [StandardError] error object if request failed
18828
+ #
18829
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
18830
+ #
18831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18834
+ def test_interconnect_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18835
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions', options)
18836
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
18837
+ command.request_object = test_permissions_request_object
18838
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
18839
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
18840
+ command.params['project'] = project unless project.nil?
18841
+ command.params['region'] = region unless region.nil?
18842
+ command.params['resource'] = resource unless resource.nil?
18843
+ command.query['fields'] = fields unless fields.nil?
18844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18845
+ command.query['userIp'] = user_ip unless user_ip.nil?
18846
+ execute_or_queue_command(command, &block)
18847
+ end
18848
+
18849
+ # Create Interconnects with redundancy by creating them in a specified
18850
+ # interconnect group.
18851
+ # @param [String] project
18852
+ # Project ID for this request.
18853
+ # @param [String] interconnect_group
18854
+ # Name of the group resource to create members for.
18855
+ # @param [Google::Apis::ComputeBeta::InterconnectGroupsCreateMembersRequest] interconnect_groups_create_members_request_object
18856
+ # @param [String] fields
18857
+ # Selector specifying which fields to include in a partial response.
18858
+ # @param [String] quota_user
18859
+ # Available to use for quota purposes for server-side applications. Can be any
18860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18861
+ # @param [String] user_ip
18862
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18863
+ # @param [Google::Apis::RequestOptions] options
18864
+ # Request-specific options
18865
+ #
18866
+ # @yield [result, err] Result & error if block supplied
18867
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18868
+ # @yieldparam err [StandardError] error object if request failed
18869
+ #
18870
+ # @return [Google::Apis::ComputeBeta::Operation]
18871
+ #
18872
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18873
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18874
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18875
+ def create_interconnect_group_members(project, interconnect_group, interconnect_groups_create_members_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18876
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers', options)
18877
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectGroupsCreateMembersRequest::Representation
18878
+ command.request_object = interconnect_groups_create_members_request_object
18879
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18880
+ command.response_class = Google::Apis::ComputeBeta::Operation
18881
+ command.params['project'] = project unless project.nil?
18882
+ command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
18883
+ command.query['fields'] = fields unless fields.nil?
18884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18885
+ command.query['userIp'] = user_ip unless user_ip.nil?
18886
+ execute_or_queue_command(command, &block)
18887
+ end
18888
+
18889
+ # Deletes the specified InterconnectGroup in the given scope
18890
+ # @param [String] project
18891
+ # Project ID for this request.
18892
+ # @param [String] interconnect_group
18893
+ # Name of the InterconnectGroup resource to delete.
18894
+ # @param [String] request_id
18895
+ # An optional request ID to identify requests. Specify a unique request ID so
18896
+ # that if you must retry your request, the server will know to ignore the
18897
+ # request if it has already been completed. For example, consider a situation
18898
+ # where you make an initial request and the request times out. If you make the
18899
+ # request again with the same request ID, the server can check if original
18900
+ # operation with the same request ID was received, and if so, will ignore the
18901
+ # second request. This prevents clients from accidentally creating duplicate
18902
+ # commitments. The request ID must be a valid UUID with the exception that zero
18903
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
18904
+ # MixerMutationRequestBuilder
18905
+ # @param [String] fields
18906
+ # Selector specifying which fields to include in a partial response.
18907
+ # @param [String] quota_user
18908
+ # Available to use for quota purposes for server-side applications. Can be any
18909
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18910
+ # @param [String] user_ip
18911
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18912
+ # @param [Google::Apis::RequestOptions] options
18913
+ # Request-specific options
18914
+ #
18915
+ # @yield [result, err] Result & error if block supplied
18916
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18917
+ # @yieldparam err [StandardError] error object if request failed
18918
+ #
18919
+ # @return [Google::Apis::ComputeBeta::Operation]
18920
+ #
18921
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18922
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18923
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18924
+ def delete_interconnect_group(project, interconnect_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18925
+ command = make_simple_command(:delete, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
18926
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18927
+ command.response_class = Google::Apis::ComputeBeta::Operation
18928
+ command.params['project'] = project unless project.nil?
18929
+ command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
18930
+ command.query['requestId'] = request_id unless request_id.nil?
18931
+ command.query['fields'] = fields unless fields.nil?
18932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18933
+ command.query['userIp'] = user_ip unless user_ip.nil?
18934
+ execute_or_queue_command(command, &block)
18935
+ end
18936
+
18937
+ # Returns the specified InterconnectGroup resource in the given scope.
18938
+ # @param [String] project
18939
+ # Project ID for this request.
18940
+ # @param [String] interconnect_group
18941
+ # Name of the InterconnectGroup resource to return.
18942
+ # @param [String] fields
18943
+ # Selector specifying which fields to include in a partial response.
18944
+ # @param [String] quota_user
18945
+ # Available to use for quota purposes for server-side applications. Can be any
18946
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18947
+ # @param [String] user_ip
18948
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18949
+ # @param [Google::Apis::RequestOptions] options
18950
+ # Request-specific options
18951
+ #
18952
+ # @yield [result, err] Result & error if block supplied
18953
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectGroup] parsed result object
18954
+ # @yieldparam err [StandardError] error object if request failed
18955
+ #
18956
+ # @return [Google::Apis::ComputeBeta::InterconnectGroup]
18957
+ #
18958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18961
+ def get_interconnect_group(project, interconnect_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18962
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
18963
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectGroup::Representation
18964
+ command.response_class = Google::Apis::ComputeBeta::InterconnectGroup
18965
+ command.params['project'] = project unless project.nil?
18966
+ command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
18967
+ command.query['fields'] = fields unless fields.nil?
18968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18969
+ command.query['userIp'] = user_ip unless user_ip.nil?
18970
+ execute_or_queue_command(command, &block)
18971
+ end
18972
+
18973
+ # Gets the access control policy for a resource. May be empty if no such policy
18974
+ # or resource exists.
18975
+ # @param [String] project
18976
+ # Project ID for this request.
18977
+ # @param [String] resource
18978
+ # Name or id of the resource for this request.
18979
+ # @param [Fixnum] options_requested_policy_version
18980
+ # Requested IAM Policy version.
18981
+ # @param [String] fields
18982
+ # Selector specifying which fields to include in a partial response.
18983
+ # @param [String] quota_user
18984
+ # Available to use for quota purposes for server-side applications. Can be any
18985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18986
+ # @param [String] user_ip
18987
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18988
+ # @param [Google::Apis::RequestOptions] options
18989
+ # Request-specific options
18990
+ #
18991
+ # @yield [result, err] Result & error if block supplied
18992
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
18993
+ # @yieldparam err [StandardError] error object if request failed
18994
+ #
18995
+ # @return [Google::Apis::ComputeBeta::Policy]
18996
+ #
18997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19000
+ def get_interconnect_group_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19001
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{resource}/getIamPolicy', options)
19002
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
19003
+ command.response_class = Google::Apis::ComputeBeta::Policy
19004
+ command.params['project'] = project unless project.nil?
19005
+ command.params['resource'] = resource unless resource.nil?
19006
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
19007
+ command.query['fields'] = fields unless fields.nil?
19008
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19009
+ command.query['userIp'] = user_ip unless user_ip.nil?
19010
+ execute_or_queue_command(command, &block)
19011
+ end
19012
+
19013
+ # Returns the interconnectStatuses for the specified InterconnectGroup.
19014
+ # @param [String] project
19015
+ # Project ID for this request.
19016
+ # @param [String] interconnect_group
19017
+ # Name of the interconnectGroup resource to query.
19018
+ # @param [String] fields
19019
+ # Selector specifying which fields to include in a partial response.
19020
+ # @param [String] quota_user
19021
+ # Available to use for quota purposes for server-side applications. Can be any
19022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19023
+ # @param [String] user_ip
19024
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19025
+ # @param [Google::Apis::RequestOptions] options
19026
+ # Request-specific options
19027
+ #
19028
+ # @yield [result, err] Result & error if block supplied
19029
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectGroupsGetOperationalStatusResponse] parsed result object
19030
+ # @yieldparam err [StandardError] error object if request failed
19031
+ #
19032
+ # @return [Google::Apis::ComputeBeta::InterconnectGroupsGetOperationalStatusResponse]
19033
+ #
19034
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19035
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19036
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19037
+ def get_interconnect_group_operational_status(project, interconnect_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19038
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus', options)
19039
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectGroupsGetOperationalStatusResponse::Representation
19040
+ command.response_class = Google::Apis::ComputeBeta::InterconnectGroupsGetOperationalStatusResponse
19041
+ command.params['project'] = project unless project.nil?
19042
+ command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
19043
+ command.query['fields'] = fields unless fields.nil?
19044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19045
+ command.query['userIp'] = user_ip unless user_ip.nil?
19046
+ execute_or_queue_command(command, &block)
19047
+ end
19048
+
19049
+ # Creates a InterconnectGroup in the specified project in the given scope using
19050
+ # the parameters that are included in the request.
19051
+ # @param [String] project
19052
+ # Project ID for this request.
19053
+ # @param [Google::Apis::ComputeBeta::InterconnectGroup] interconnect_group_object
19054
+ # @param [String] request_id
19055
+ # An optional request ID to identify requests. Specify a unique request ID so
19056
+ # that if you must retry your request, the server will know to ignore the
19057
+ # request if it has already been completed. For example, consider a situation
19058
+ # where you make an initial request and the request times out. If you make the
19059
+ # request again with the same request ID, the server can check if original
19060
+ # operation with the same request ID was received, and if so, will ignore the
19061
+ # second request. This prevents clients from accidentally creating duplicate
19062
+ # commitments. The request ID must be a valid UUID with the exception that zero
19063
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
19064
+ # MixerMutationRequestBuilder
19065
+ # @param [String] fields
19066
+ # Selector specifying which fields to include in a partial response.
18230
19067
  # @param [String] quota_user
18231
19068
  # Available to use for quota purposes for server-side applications. Can be any
18232
19069
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -18244,15 +19081,13 @@ module Google
18244
19081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18245
19082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18246
19083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18247
- def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18248
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
18249
- command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
18250
- command.request_object = interconnect_attachment_object
19084
+ def insert_interconnect_group(project, interconnect_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19085
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups', options)
19086
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectGroup::Representation
19087
+ command.request_object = interconnect_group_object
18251
19088
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18252
19089
  command.response_class = Google::Apis::ComputeBeta::Operation
18253
19090
  command.params['project'] = project unless project.nil?
18254
- command.params['region'] = region unless region.nil?
18255
- command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
18256
19091
  command.query['requestId'] = request_id unless request_id.nil?
18257
19092
  command.query['fields'] = fields unless fields.nil?
18258
19093
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -18260,15 +19095,105 @@ module Google
18260
19095
  execute_or_queue_command(command, &block)
18261
19096
  end
18262
19097
 
18263
- # Sets the labels on an InterconnectAttachment. To learn more about labels, read
18264
- # the Labeling Resources documentation.
19098
+ # Lists the InterconnectGroups for a project in the given scope.
18265
19099
  # @param [String] project
18266
19100
  # Project ID for this request.
18267
- # @param [String] region
18268
- # The region for this request.
18269
- # @param [String] resource
18270
- # Name or id of the resource for this request.
18271
- # @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
19101
+ # @param [String] filter
19102
+ # A filter expression that filters resources listed in the response. Most
19103
+ # Compute resources support two types of filter expressions: expressions that
19104
+ # support regular expressions and expressions that follow API improvement
19105
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
19106
+ # request. If you want to use AIP-160, your expression must specify the field
19107
+ # name, an operator, and the value that you want to use for filtering. The value
19108
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
19109
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
19110
+ # Engine instances, you can exclude instances named `example-instance` by
19111
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
19112
+ # whether a key has been defined. For example, to find all objects with `owner`
19113
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
19114
+ # example, you could specify `scheduling.automaticRestart = false` to include
19115
+ # instances only if they are not scheduled for automatic restarts. You can use
19116
+ # filtering on nested fields to filter based on resource labels. To filter on
19117
+ # multiple expressions, provide each separate expression within parentheses. For
19118
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
19119
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
19120
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
19121
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
19122
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
19123
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
19124
+ # un-parenthesized expression with or without quotes or against multiple
19125
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
19126
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
19127
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
19128
+ # interpreted as a regular expression using Google RE2 library syntax. The
19129
+ # literal value must match the entire field. For example, to filter for
19130
+ # instances that do not end with name "instance", you would use `name ne .*
19131
+ # instance`. You cannot combine constraints on multiple fields using regular
19132
+ # expressions.
19133
+ # @param [Fixnum] max_results
19134
+ # The maximum number of results per page that should be returned. If the number
19135
+ # of available results is larger than `maxResults`, Compute Engine returns a `
19136
+ # nextPageToken` that can be used to get the next page of results in subsequent
19137
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
19138
+ # @param [String] order_by
19139
+ # Sorts list results by a certain order. By default, results are returned in
19140
+ # alphanumerical order based on the resource name. You can also sort results in
19141
+ # descending order based on the creation timestamp using `orderBy="
19142
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
19143
+ # field in reverse chronological order (newest result first). Use this to sort
19144
+ # resources like operations so that the newest operation is returned first.
19145
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
19146
+ # @param [String] page_token
19147
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
19148
+ # by a previous list request to get the next page of results.
19149
+ # @param [Boolean] return_partial_success
19150
+ # Opt-in for partial success behavior which provides partial results in case of
19151
+ # failure. The default value is false. For example, when partial success
19152
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
19153
+ # resources in the zone or no resources, with an error code.
19154
+ # @param [String] fields
19155
+ # Selector specifying which fields to include in a partial response.
19156
+ # @param [String] quota_user
19157
+ # Available to use for quota purposes for server-side applications. Can be any
19158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19159
+ # @param [String] user_ip
19160
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19161
+ # @param [Google::Apis::RequestOptions] options
19162
+ # Request-specific options
19163
+ #
19164
+ # @yield [result, err] Result & error if block supplied
19165
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectGroupsListResponse] parsed result object
19166
+ # @yieldparam err [StandardError] error object if request failed
19167
+ #
19168
+ # @return [Google::Apis::ComputeBeta::InterconnectGroupsListResponse]
19169
+ #
19170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19173
+ def list_interconnect_groups(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)
19174
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups', options)
19175
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectGroupsListResponse::Representation
19176
+ command.response_class = Google::Apis::ComputeBeta::InterconnectGroupsListResponse
19177
+ command.params['project'] = project unless project.nil?
19178
+ command.query['filter'] = filter unless filter.nil?
19179
+ command.query['maxResults'] = max_results unless max_results.nil?
19180
+ command.query['orderBy'] = order_by unless order_by.nil?
19181
+ command.query['pageToken'] = page_token unless page_token.nil?
19182
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19183
+ command.query['fields'] = fields unless fields.nil?
19184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19185
+ command.query['userIp'] = user_ip unless user_ip.nil?
19186
+ execute_or_queue_command(command, &block)
19187
+ end
19188
+
19189
+ # Patches the specified InterconnectGroup resource with the data included in the
19190
+ # request. This method supports PATCH semantics and uses JSON merge patch format
19191
+ # and processing rules.
19192
+ # @param [String] project
19193
+ # Project ID for this request.
19194
+ # @param [String] interconnect_group
19195
+ # Name of the InterconnectGroup resource to patch.
19196
+ # @param [Google::Apis::ComputeBeta::InterconnectGroup] interconnect_group_object
18272
19197
  # @param [String] request_id
18273
19198
  # An optional request ID to identify requests. Specify a unique request ID so
18274
19199
  # that if you must retry your request, the server will know to ignore the
@@ -18278,7 +19203,10 @@ module Google
18278
19203
  # operation with the same request ID was received, and if so, will ignore the
18279
19204
  # second request. This prevents clients from accidentally creating duplicate
18280
19205
  # commitments. The request ID must be a valid UUID with the exception that zero
18281
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
19206
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
19207
+ # MixerMutationRequestBuilder
19208
+ # @param [String] update_mask
19209
+ # The list of fields to update.
18282
19210
  # @param [String] fields
18283
19211
  # Selector specifying which fields to include in a partial response.
18284
19212
  # @param [String] quota_user
@@ -18298,16 +19226,56 @@ module Google
18298
19226
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18299
19227
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18300
19228
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18301
- def set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18302
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
18303
- command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
18304
- command.request_object = region_set_labels_request_object
19229
+ def patch_interconnect_group(project, interconnect_group, interconnect_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19230
+ command = make_simple_command(:patch, 'projects/{project}/global/interconnectGroups/{interconnectGroup}', options)
19231
+ command.request_representation = Google::Apis::ComputeBeta::InterconnectGroup::Representation
19232
+ command.request_object = interconnect_group_object
18305
19233
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18306
19234
  command.response_class = Google::Apis::ComputeBeta::Operation
18307
19235
  command.params['project'] = project unless project.nil?
18308
- command.params['region'] = region unless region.nil?
18309
- command.params['resource'] = resource unless resource.nil?
19236
+ command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
18310
19237
  command.query['requestId'] = request_id unless request_id.nil?
19238
+ command.query['updateMask'] = update_mask unless update_mask.nil?
19239
+ command.query['fields'] = fields unless fields.nil?
19240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19241
+ command.query['userIp'] = user_ip unless user_ip.nil?
19242
+ execute_or_queue_command(command, &block)
19243
+ end
19244
+
19245
+ # Sets the access control policy on the specified resource. Replaces any
19246
+ # existing policy.
19247
+ # @param [String] project
19248
+ # Project ID for this request.
19249
+ # @param [String] resource
19250
+ # Name or id of the resource for this request.
19251
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
19252
+ # @param [String] fields
19253
+ # Selector specifying which fields to include in a partial response.
19254
+ # @param [String] quota_user
19255
+ # Available to use for quota purposes for server-side applications. Can be any
19256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19257
+ # @param [String] user_ip
19258
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19259
+ # @param [Google::Apis::RequestOptions] options
19260
+ # Request-specific options
19261
+ #
19262
+ # @yield [result, err] Result & error if block supplied
19263
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
19264
+ # @yieldparam err [StandardError] error object if request failed
19265
+ #
19266
+ # @return [Google::Apis::ComputeBeta::Policy]
19267
+ #
19268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19271
+ def set_interconnect_group_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19272
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{resource}/setIamPolicy', options)
19273
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
19274
+ command.request_object = global_set_policy_request_object
19275
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
19276
+ command.response_class = Google::Apis::ComputeBeta::Policy
19277
+ command.params['project'] = project unless project.nil?
19278
+ command.params['resource'] = resource unless resource.nil?
18311
19279
  command.query['fields'] = fields unless fields.nil?
18312
19280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18313
19281
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -18317,8 +19285,6 @@ module Google
18317
19285
  # Returns permissions that a caller has on the specified resource.
18318
19286
  # @param [String] project
18319
19287
  # Project ID for this request.
18320
- # @param [String] region
18321
- # The name of the region for this request.
18322
19288
  # @param [String] resource
18323
19289
  # Name or id of the resource for this request.
18324
19290
  # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
@@ -18341,14 +19307,13 @@ module Google
18341
19307
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18342
19308
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18343
19309
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18344
- def test_interconnect_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18345
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions', options)
19310
+ def test_interconnect_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19311
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{resource}/testIamPermissions', options)
18346
19312
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
18347
19313
  command.request_object = test_permissions_request_object
18348
19314
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
18349
19315
  command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
18350
19316
  command.params['project'] = project unless project.nil?
18351
- command.params['region'] = region unless region.nil?
18352
19317
  command.params['resource'] = resource unless resource.nil?
18353
19318
  command.query['fields'] = fields unless fields.nil?
18354
19319
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -19479,6 +20444,61 @@ module Google
19479
20444
  execute_or_queue_command(command, &block)
19480
20445
  end
19481
20446
 
20447
+ # Updates a License resource in the specified project. *Caution* This resource
20448
+ # is intended for use only by third-party partners who are creating Cloud
20449
+ # Marketplace images.
20450
+ # @param [String] project
20451
+ # Project ID for this request.
20452
+ # @param [String] license
20453
+ # The license name for this request.
20454
+ # @param [Google::Apis::ComputeBeta::License] license_object
20455
+ # @param [String] request_id
20456
+ # An optional request ID to identify requests. Specify a unique request ID so
20457
+ # that if you must retry your request, the server will know to ignore the
20458
+ # request if it has already been completed. For example, consider a situation
20459
+ # where you make an initial request and the request times out. If you make the
20460
+ # request again with the same request ID, the server can check if original
20461
+ # operation with the same request ID was received, and if so, will ignore the
20462
+ # second request. This prevents clients from accidentally creating duplicate
20463
+ # commitments. The request ID must be a valid UUID with the exception that zero
20464
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
20465
+ # @param [String] update_mask
20466
+ # update_mask indicates fields to be updated as part of this request.
20467
+ # @param [String] fields
20468
+ # Selector specifying which fields to include in a partial response.
20469
+ # @param [String] quota_user
20470
+ # Available to use for quota purposes for server-side applications. Can be any
20471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20472
+ # @param [String] user_ip
20473
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20474
+ # @param [Google::Apis::RequestOptions] options
20475
+ # Request-specific options
20476
+ #
20477
+ # @yield [result, err] Result & error if block supplied
20478
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
20479
+ # @yieldparam err [StandardError] error object if request failed
20480
+ #
20481
+ # @return [Google::Apis::ComputeBeta::Operation]
20482
+ #
20483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20486
+ def update_license(project, license, license_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20487
+ command = make_simple_command(:patch, 'projects/{project}/global/licenses/{license}', options)
20488
+ command.request_representation = Google::Apis::ComputeBeta::License::Representation
20489
+ command.request_object = license_object
20490
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
20491
+ command.response_class = Google::Apis::ComputeBeta::Operation
20492
+ command.params['project'] = project unless project.nil?
20493
+ command.params['license'] = license unless license.nil?
20494
+ command.query['requestId'] = request_id unless request_id.nil?
20495
+ command.query['updateMask'] = update_mask unless update_mask.nil?
20496
+ command.query['fields'] = fields unless fields.nil?
20497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20498
+ command.query['userIp'] = user_ip unless user_ip.nil?
20499
+ execute_or_queue_command(command, &block)
20500
+ end
20501
+
19482
20502
  # Deletes the specified machine image. Deleting a machine image is permanent and
19483
20503
  # cannot be undone.
19484
20504
  # @param [String] project
@@ -19774,12 +20794,52 @@ module Google
19774
20794
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19775
20795
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19776
20796
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19777
- def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19778
- command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options)
19779
- command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
19780
- command.request_object = global_set_policy_request_object
19781
- command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
19782
- command.response_class = Google::Apis::ComputeBeta::Policy
20797
+ def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20798
+ command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options)
20799
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
20800
+ command.request_object = global_set_policy_request_object
20801
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
20802
+ command.response_class = Google::Apis::ComputeBeta::Policy
20803
+ command.params['project'] = project unless project.nil?
20804
+ command.params['resource'] = resource unless resource.nil?
20805
+ command.query['fields'] = fields unless fields.nil?
20806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20807
+ command.query['userIp'] = user_ip unless user_ip.nil?
20808
+ execute_or_queue_command(command, &block)
20809
+ end
20810
+
20811
+ # Sets the labels on a machine image. To learn more about labels, read the
20812
+ # Labeling Resources documentation.
20813
+ # @param [String] project
20814
+ # Project ID for this request.
20815
+ # @param [String] resource
20816
+ # Name or id of the resource for this request.
20817
+ # @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
20818
+ # @param [String] fields
20819
+ # Selector specifying which fields to include in a partial response.
20820
+ # @param [String] quota_user
20821
+ # Available to use for quota purposes for server-side applications. Can be any
20822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20823
+ # @param [String] user_ip
20824
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20825
+ # @param [Google::Apis::RequestOptions] options
20826
+ # Request-specific options
20827
+ #
20828
+ # @yield [result, err] Result & error if block supplied
20829
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
20830
+ # @yieldparam err [StandardError] error object if request failed
20831
+ #
20832
+ # @return [Google::Apis::ComputeBeta::Operation]
20833
+ #
20834
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20835
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20836
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20837
+ def set_machine_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20838
+ command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setLabels', options)
20839
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
20840
+ command.request_object = global_set_labels_request_object
20841
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
20842
+ command.response_class = Google::Apis::ComputeBeta::Operation
19783
20843
  command.params['project'] = project unless project.nil?
19784
20844
  command.params['resource'] = resource unless resource.nil?
19785
20845
  command.query['fields'] = fields unless fields.nil?
@@ -23228,6 +24288,57 @@ module Google
23228
24288
  execute_or_queue_command(command, &block)
23229
24289
  end
23230
24290
 
24291
+ # Requests to remove a peering from the specified network. Applicable only for
24292
+ # PeeringConnection with update_strategy=CONSENSUS.
24293
+ # @param [String] project
24294
+ # Project ID for this request.
24295
+ # @param [String] network
24296
+ # Name of the network resource to remove peering from.
24297
+ # @param [Google::Apis::ComputeBeta::NetworksRequestRemovePeeringRequest] networks_request_remove_peering_request_object
24298
+ # @param [String] request_id
24299
+ # An optional request ID to identify requests. Specify a unique request ID so
24300
+ # that if you must retry your request, the server will know to ignore the
24301
+ # request if it has already been completed. For example, consider a situation
24302
+ # where you make an initial request and the request times out. If you make the
24303
+ # request again with the same request ID, the server can check if original
24304
+ # operation with the same request ID was received, and if so, will ignore the
24305
+ # second request. This prevents clients from accidentally creating duplicate
24306
+ # commitments. The request ID must be a valid UUID with the exception that zero
24307
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24308
+ # @param [String] fields
24309
+ # Selector specifying which fields to include in a partial response.
24310
+ # @param [String] quota_user
24311
+ # Available to use for quota purposes for server-side applications. Can be any
24312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24313
+ # @param [String] user_ip
24314
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24315
+ # @param [Google::Apis::RequestOptions] options
24316
+ # Request-specific options
24317
+ #
24318
+ # @yield [result, err] Result & error if block supplied
24319
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24320
+ # @yieldparam err [StandardError] error object if request failed
24321
+ #
24322
+ # @return [Google::Apis::ComputeBeta::Operation]
24323
+ #
24324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24327
+ def request_network_remove_peering(project, network, networks_request_remove_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24328
+ command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/requestRemovePeering', options)
24329
+ command.request_representation = Google::Apis::ComputeBeta::NetworksRequestRemovePeeringRequest::Representation
24330
+ command.request_object = networks_request_remove_peering_request_object
24331
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24332
+ command.response_class = Google::Apis::ComputeBeta::Operation
24333
+ command.params['project'] = project unless project.nil?
24334
+ command.params['network'] = network unless network.nil?
24335
+ command.query['requestId'] = request_id unless request_id.nil?
24336
+ command.query['fields'] = fields unless fields.nil?
24337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24338
+ command.query['userIp'] = user_ip unless user_ip.nil?
24339
+ execute_or_queue_command(command, &block)
24340
+ end
24341
+
23231
24342
  # Switches the network mode from auto subnet mode to custom subnet mode.
23232
24343
  # @param [String] project
23233
24344
  # Project ID for this request.
@@ -26213,6 +27324,184 @@ module Google
26213
27324
  execute_or_queue_command(command, &block)
26214
27325
  end
26215
27326
 
27327
+ # Returns the details of the given PreviewFeature.
27328
+ # @param [String] project
27329
+ # Project ID for this request.
27330
+ # @param [String] preview_feature
27331
+ # Name of the PreviewFeature for this request.
27332
+ # @param [String] fields
27333
+ # Selector specifying which fields to include in a partial response.
27334
+ # @param [String] quota_user
27335
+ # Available to use for quota purposes for server-side applications. Can be any
27336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27337
+ # @param [String] user_ip
27338
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27339
+ # @param [Google::Apis::RequestOptions] options
27340
+ # Request-specific options
27341
+ #
27342
+ # @yield [result, err] Result & error if block supplied
27343
+ # @yieldparam result [Google::Apis::ComputeBeta::PreviewFeature] parsed result object
27344
+ # @yieldparam err [StandardError] error object if request failed
27345
+ #
27346
+ # @return [Google::Apis::ComputeBeta::PreviewFeature]
27347
+ #
27348
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27349
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27350
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27351
+ def get_preview_feature(project, preview_feature, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27352
+ command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
27353
+ command.response_representation = Google::Apis::ComputeBeta::PreviewFeature::Representation
27354
+ command.response_class = Google::Apis::ComputeBeta::PreviewFeature
27355
+ command.params['project'] = project unless project.nil?
27356
+ command.params['previewFeature'] = preview_feature unless preview_feature.nil?
27357
+ command.query['fields'] = fields unless fields.nil?
27358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27359
+ command.query['userIp'] = user_ip unless user_ip.nil?
27360
+ execute_or_queue_command(command, &block)
27361
+ end
27362
+
27363
+ # Returns the details of the given PreviewFeature.
27364
+ # @param [String] project
27365
+ # Project ID for this request.
27366
+ # @param [String] filter
27367
+ # A filter expression that filters resources listed in the response. Most
27368
+ # Compute resources support two types of filter expressions: expressions that
27369
+ # support regular expressions and expressions that follow API improvement
27370
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
27371
+ # request. If you want to use AIP-160, your expression must specify the field
27372
+ # name, an operator, and the value that you want to use for filtering. The value
27373
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
27374
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
27375
+ # Engine instances, you can exclude instances named `example-instance` by
27376
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
27377
+ # whether a key has been defined. For example, to find all objects with `owner`
27378
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
27379
+ # example, you could specify `scheduling.automaticRestart = false` to include
27380
+ # instances only if they are not scheduled for automatic restarts. You can use
27381
+ # filtering on nested fields to filter based on resource labels. To filter on
27382
+ # multiple expressions, provide each separate expression within parentheses. For
27383
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
27384
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
27385
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
27386
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
27387
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
27388
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
27389
+ # un-parenthesized expression with or without quotes or against multiple
27390
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
27391
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
27392
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
27393
+ # interpreted as a regular expression using Google RE2 library syntax. The
27394
+ # literal value must match the entire field. For example, to filter for
27395
+ # instances that do not end with name "instance", you would use `name ne .*
27396
+ # instance`. You cannot combine constraints on multiple fields using regular
27397
+ # expressions.
27398
+ # @param [Fixnum] max_results
27399
+ # The maximum number of results per page that should be returned. If the number
27400
+ # of available results is larger than `maxResults`, Compute Engine returns a `
27401
+ # nextPageToken` that can be used to get the next page of results in subsequent
27402
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
27403
+ # @param [String] order_by
27404
+ # Sorts list results by a certain order. By default, results are returned in
27405
+ # alphanumerical order based on the resource name. You can also sort results in
27406
+ # descending order based on the creation timestamp using `orderBy="
27407
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
27408
+ # field in reverse chronological order (newest result first). Use this to sort
27409
+ # resources like operations so that the newest operation is returned first.
27410
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
27411
+ # @param [String] page_token
27412
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
27413
+ # by a previous list request to get the next page of results.
27414
+ # @param [Boolean] return_partial_success
27415
+ # Opt-in for partial success behavior which provides partial results in case of
27416
+ # failure. The default value is false. For example, when partial success
27417
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
27418
+ # resources in the zone or no resources, with an error code.
27419
+ # @param [String] fields
27420
+ # Selector specifying which fields to include in a partial response.
27421
+ # @param [String] quota_user
27422
+ # Available to use for quota purposes for server-side applications. Can be any
27423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27424
+ # @param [String] user_ip
27425
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27426
+ # @param [Google::Apis::RequestOptions] options
27427
+ # Request-specific options
27428
+ #
27429
+ # @yield [result, err] Result & error if block supplied
27430
+ # @yieldparam result [Google::Apis::ComputeBeta::PreviewFeatureList] parsed result object
27431
+ # @yieldparam err [StandardError] error object if request failed
27432
+ #
27433
+ # @return [Google::Apis::ComputeBeta::PreviewFeatureList]
27434
+ #
27435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27438
+ def list_preview_features(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)
27439
+ command = make_simple_command(:get, 'projects/{project}/global/previewFeatures', options)
27440
+ command.response_representation = Google::Apis::ComputeBeta::PreviewFeatureList::Representation
27441
+ command.response_class = Google::Apis::ComputeBeta::PreviewFeatureList
27442
+ command.params['project'] = project unless project.nil?
27443
+ command.query['filter'] = filter unless filter.nil?
27444
+ command.query['maxResults'] = max_results unless max_results.nil?
27445
+ command.query['orderBy'] = order_by unless order_by.nil?
27446
+ command.query['pageToken'] = page_token unless page_token.nil?
27447
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
27448
+ command.query['fields'] = fields unless fields.nil?
27449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27450
+ command.query['userIp'] = user_ip unless user_ip.nil?
27451
+ execute_or_queue_command(command, &block)
27452
+ end
27453
+
27454
+ # Patches the given PreviewFeature. This method is used to enable or disable a
27455
+ # PreviewFeature.
27456
+ # @param [String] project
27457
+ # Project ID for this request.
27458
+ # @param [String] preview_feature
27459
+ # Name of the PreviewFeature for this request.
27460
+ # @param [Google::Apis::ComputeBeta::PreviewFeature] preview_feature_object
27461
+ # @param [String] request_id
27462
+ # An optional request ID to identify requests. Specify a unique request ID so
27463
+ # that if you must retry your request, the server will know to ignore the
27464
+ # request if it has already been completed. For example, consider a situation
27465
+ # where you make an initial request and the request times out. If you make the
27466
+ # request again with the same request ID, the server can check if original
27467
+ # operation with the same request ID was received, and if so, will ignore the
27468
+ # second request. This prevents clients from accidentally creating duplicate
27469
+ # commitments. The request ID must be a valid UUID with the exception that zero
27470
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
27471
+ # @param [String] fields
27472
+ # Selector specifying which fields to include in a partial response.
27473
+ # @param [String] quota_user
27474
+ # Available to use for quota purposes for server-side applications. Can be any
27475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27476
+ # @param [String] user_ip
27477
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27478
+ # @param [Google::Apis::RequestOptions] options
27479
+ # Request-specific options
27480
+ #
27481
+ # @yield [result, err] Result & error if block supplied
27482
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
27483
+ # @yieldparam err [StandardError] error object if request failed
27484
+ #
27485
+ # @return [Google::Apis::ComputeBeta::Operation]
27486
+ #
27487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27490
+ def update_preview_feature(project, preview_feature, preview_feature_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27491
+ command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{previewFeature}', options)
27492
+ command.request_representation = Google::Apis::ComputeBeta::PreviewFeature::Representation
27493
+ command.request_object = preview_feature_object
27494
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
27495
+ command.response_class = Google::Apis::ComputeBeta::Operation
27496
+ command.params['project'] = project unless project.nil?
27497
+ command.params['previewFeature'] = preview_feature unless preview_feature.nil?
27498
+ command.query['requestId'] = request_id unless request_id.nil?
27499
+ command.query['fields'] = fields unless fields.nil?
27500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27501
+ command.query['userIp'] = user_ip unless user_ip.nil?
27502
+ execute_or_queue_command(command, &block)
27503
+ end
27504
+
26216
27505
  # Disable this project as a shared VPC host project.
26217
27506
  # @param [String] project
26218
27507
  # Project ID for this request.
@@ -34957,6 +36246,10 @@ module Google
34957
36246
  # @param [String] firewall_policy
34958
36247
  # Name of the firewall policy to update.
34959
36248
  # @param [Google::Apis::ComputeBeta::FirewallPolicyAssociation] firewall_policy_association_object
36249
+ # @param [String] associated_policy_to_be_replaced
36250
+ # Name of the firewall policy associated with the target network to swap
36251
+ # association with. This field is mutually exclusive with '
36252
+ # replace_existing_association'.
34960
36253
  # @param [Boolean] replace_existing_association
34961
36254
  # Indicates whether or not to replace it if an association already exists. This
34962
36255
  # is false by default, in which case an error will be returned if an association
@@ -34990,7 +36283,7 @@ module Google
34990
36283
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34991
36284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34992
36285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34993
- def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36286
+ def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, associated_policy_to_be_replaced: nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34994
36287
  command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
34995
36288
  command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyAssociation::Representation
34996
36289
  command.request_object = firewall_policy_association_object
@@ -34999,6 +36292,7 @@ module Google
34999
36292
  command.params['project'] = project unless project.nil?
35000
36293
  command.params['region'] = region unless region.nil?
35001
36294
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
36295
+ command.query['associatedPolicyToBeReplaced'] = associated_policy_to_be_replaced unless associated_policy_to_be_replaced.nil?
35002
36296
  command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
35003
36297
  command.query['requestId'] = request_id unless request_id.nil?
35004
36298
  command.query['fields'] = fields unless fields.nil?
@@ -35574,6 +36868,59 @@ module Google
35574
36868
  execute_or_queue_command(command, &block)
35575
36869
  end
35576
36870
 
36871
+ # Updates an association for the specified network firewall policy.
36872
+ # @param [String] project
36873
+ # Project ID for this request.
36874
+ # @param [String] region
36875
+ # Name of the region scoping this request.
36876
+ # @param [String] firewall_policy
36877
+ # Name of the firewall policy to update.
36878
+ # @param [Google::Apis::ComputeBeta::FirewallPolicyAssociation] firewall_policy_association_object
36879
+ # @param [String] request_id
36880
+ # An optional request ID to identify requests. Specify a unique request ID so
36881
+ # that if you must retry your request, the server will know to ignore the
36882
+ # request if it has already been completed. For example, consider a situation
36883
+ # where you make an initial request and the request times out. If you make the
36884
+ # request again with the same request ID, the server can check if original
36885
+ # operation with the same request ID was received, and if so, will ignore the
36886
+ # second request. This prevents clients from accidentally creating duplicate
36887
+ # commitments. The request ID must be a valid UUID with the exception that zero
36888
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
36889
+ # @param [String] fields
36890
+ # Selector specifying which fields to include in a partial response.
36891
+ # @param [String] quota_user
36892
+ # Available to use for quota purposes for server-side applications. Can be any
36893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36894
+ # @param [String] user_ip
36895
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36896
+ # @param [Google::Apis::RequestOptions] options
36897
+ # Request-specific options
36898
+ #
36899
+ # @yield [result, err] Result & error if block supplied
36900
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
36901
+ # @yieldparam err [StandardError] error object if request failed
36902
+ #
36903
+ # @return [Google::Apis::ComputeBeta::Operation]
36904
+ #
36905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36908
+ def patch_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36909
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation', options)
36910
+ command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyAssociation::Representation
36911
+ command.request_object = firewall_policy_association_object
36912
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
36913
+ command.response_class = Google::Apis::ComputeBeta::Operation
36914
+ command.params['project'] = project unless project.nil?
36915
+ command.params['region'] = region unless region.nil?
36916
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
36917
+ command.query['requestId'] = request_id unless request_id.nil?
36918
+ command.query['fields'] = fields unless fields.nil?
36919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36920
+ command.query['userIp'] = user_ip unless user_ip.nil?
36921
+ execute_or_queue_command(command, &block)
36922
+ end
36923
+
35577
36924
  # Patches a rule of the specified priority.
35578
36925
  # @param [String] project
35579
36926
  # Project ID for this request.