google-apis-compute_v1 0.46.0 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -607,6 +607,60 @@ module Google
607
607
  execute_or_queue_command(command, &block)
608
608
  end
609
609
 
610
+ # Sets the labels on an Address. To learn more about labels, read the Labeling
611
+ # Resources documentation.
612
+ # @param [String] project
613
+ # Project ID for this request.
614
+ # @param [String] region
615
+ # The region for this request.
616
+ # @param [String] resource
617
+ # Name or id of the resource for this request.
618
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
619
+ # @param [String] request_id
620
+ # An optional request ID to identify requests. Specify a unique request ID so
621
+ # that if you must retry your request, the server will know to ignore the
622
+ # request if it has already been completed. For example, consider a situation
623
+ # where you make an initial request and the request times out. If you make the
624
+ # request again with the same request ID, the server can check if original
625
+ # operation with the same request ID was received, and if so, will ignore the
626
+ # second request. This prevents clients from accidentally creating duplicate
627
+ # commitments. The request ID must be a valid UUID with the exception that zero
628
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
629
+ # @param [String] fields
630
+ # Selector specifying which fields to include in a partial response.
631
+ # @param [String] quota_user
632
+ # Available to use for quota purposes for server-side applications. Can be any
633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
+ # @param [String] user_ip
635
+ # Legacy name for parameter that has been superseded by `quotaUser`.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::ComputeV1::Operation]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def set_address_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{resource}/setLabels', options)
650
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
651
+ command.request_object = region_set_labels_request_object
652
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
653
+ command.response_class = Google::Apis::ComputeV1::Operation
654
+ command.params['project'] = project unless project.nil?
655
+ command.params['region'] = region unless region.nil?
656
+ command.params['resource'] = resource unless resource.nil?
657
+ command.query['requestId'] = request_id unless request_id.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ command.query['userIp'] = user_ip unless user_ip.nil?
661
+ execute_or_queue_command(command, &block)
662
+ end
663
+
610
664
  # Retrieves an aggregated list of autoscalers.
611
665
  # @param [String] project
612
666
  # Project ID for this request.
@@ -5303,6 +5357,46 @@ module Google
5303
5357
  execute_or_queue_command(command, &block)
5304
5358
  end
5305
5359
 
5360
+ # Sets the labels on a GlobalAddress. To learn more about labels, read the
5361
+ # Labeling Resources documentation.
5362
+ # @param [String] project
5363
+ # Project ID for this request.
5364
+ # @param [String] resource
5365
+ # Name or id of the resource for this request.
5366
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
5367
+ # @param [String] fields
5368
+ # Selector specifying which fields to include in a partial response.
5369
+ # @param [String] quota_user
5370
+ # Available to use for quota purposes for server-side applications. Can be any
5371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5372
+ # @param [String] user_ip
5373
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5374
+ # @param [Google::Apis::RequestOptions] options
5375
+ # Request-specific options
5376
+ #
5377
+ # @yield [result, err] Result & error if block supplied
5378
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
5379
+ # @yieldparam err [StandardError] error object if request failed
5380
+ #
5381
+ # @return [Google::Apis::ComputeV1::Operation]
5382
+ #
5383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5386
+ def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5387
+ command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options)
5388
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
5389
+ command.request_object = global_set_labels_request_object
5390
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
5391
+ command.response_class = Google::Apis::ComputeV1::Operation
5392
+ command.params['project'] = project unless project.nil?
5393
+ command.params['resource'] = resource unless resource.nil?
5394
+ command.query['fields'] = fields unless fields.nil?
5395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5396
+ command.query['userIp'] = user_ip unless user_ip.nil?
5397
+ execute_or_queue_command(command, &block)
5398
+ end
5399
+
5306
5400
  # Deletes the specified GlobalForwardingRule resource.
5307
5401
  # @param [String] project
5308
5402
  # Project ID for this request.
@@ -13560,6 +13654,60 @@ module Google
13560
13654
  execute_or_queue_command(command, &block)
13561
13655
  end
13562
13656
 
13657
+ # Sets the labels on an InterconnectAttachment. To learn more about labels, read
13658
+ # the Labeling Resources documentation.
13659
+ # @param [String] project
13660
+ # Project ID for this request.
13661
+ # @param [String] region
13662
+ # The region for this request.
13663
+ # @param [String] resource
13664
+ # Name or id of the resource for this request.
13665
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
13666
+ # @param [String] request_id
13667
+ # An optional request ID to identify requests. Specify a unique request ID so
13668
+ # that if you must retry your request, the server will know to ignore the
13669
+ # request if it has already been completed. For example, consider a situation
13670
+ # where you make an initial request and the request times out. If you make the
13671
+ # request again with the same request ID, the server can check if original
13672
+ # operation with the same request ID was received, and if so, will ignore the
13673
+ # second request. This prevents clients from accidentally creating duplicate
13674
+ # commitments. The request ID must be a valid UUID with the exception that zero
13675
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
13676
+ # @param [String] fields
13677
+ # Selector specifying which fields to include in a partial response.
13678
+ # @param [String] quota_user
13679
+ # Available to use for quota purposes for server-side applications. Can be any
13680
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13681
+ # @param [String] user_ip
13682
+ # Legacy name for parameter that has been superseded by `quotaUser`.
13683
+ # @param [Google::Apis::RequestOptions] options
13684
+ # Request-specific options
13685
+ #
13686
+ # @yield [result, err] Result & error if block supplied
13687
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
13688
+ # @yieldparam err [StandardError] error object if request failed
13689
+ #
13690
+ # @return [Google::Apis::ComputeV1::Operation]
13691
+ #
13692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13695
+ 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)
13696
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
13697
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
13698
+ command.request_object = region_set_labels_request_object
13699
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
13700
+ command.response_class = Google::Apis::ComputeV1::Operation
13701
+ command.params['project'] = project unless project.nil?
13702
+ command.params['region'] = region unless region.nil?
13703
+ command.params['resource'] = resource unless resource.nil?
13704
+ command.query['requestId'] = request_id unless request_id.nil?
13705
+ command.query['fields'] = fields unless fields.nil?
13706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13707
+ command.query['userIp'] = user_ip unless user_ip.nil?
13708
+ execute_or_queue_command(command, &block)
13709
+ end
13710
+
13563
13711
  # Returns the details for the specified interconnect location. Gets a list of
13564
13712
  # available interconnect locations by making a list() request.
13565
13713
  # @param [String] project
@@ -13994,6 +14142,46 @@ module Google
13994
14142
  execute_or_queue_command(command, &block)
13995
14143
  end
13996
14144
 
14145
+ # Sets the labels on an Interconnect. To learn more about labels, read the
14146
+ # Labeling Resources documentation.
14147
+ # @param [String] project
14148
+ # Project ID for this request.
14149
+ # @param [String] resource
14150
+ # Name or id of the resource for this request.
14151
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
14152
+ # @param [String] fields
14153
+ # Selector specifying which fields to include in a partial response.
14154
+ # @param [String] quota_user
14155
+ # Available to use for quota purposes for server-side applications. Can be any
14156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14157
+ # @param [String] user_ip
14158
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14159
+ # @param [Google::Apis::RequestOptions] options
14160
+ # Request-specific options
14161
+ #
14162
+ # @yield [result, err] Result & error if block supplied
14163
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
14164
+ # @yieldparam err [StandardError] error object if request failed
14165
+ #
14166
+ # @return [Google::Apis::ComputeV1::Operation]
14167
+ #
14168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14171
+ def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14172
+ command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options)
14173
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
14174
+ command.request_object = global_set_labels_request_object
14175
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
14176
+ command.response_class = Google::Apis::ComputeV1::Operation
14177
+ command.params['project'] = project unless project.nil?
14178
+ command.params['resource'] = resource unless resource.nil?
14179
+ command.query['fields'] = fields unless fields.nil?
14180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14181
+ command.query['userIp'] = user_ip unless user_ip.nil?
14182
+ execute_or_queue_command(command, &block)
14183
+ end
14184
+
13997
14185
  # Return a specified license code. License codes are mirrored across all
13998
14186
  # projects that have permissions to read the License Code. *Caution* This
13999
14187
  # resource is intended for use only by third-party partners who are creating
@@ -26555,6 +26743,387 @@ module Google
26555
26743
  execute_or_queue_command(command, &block)
26556
26744
  end
26557
26745
 
26746
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
26747
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
26748
+ # @param [String] project
26749
+ # Project ID for this request.
26750
+ # @param [String] region
26751
+ # Name of the region scoping this request.
26752
+ # @param [String] ssl_policy
26753
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
26754
+ # comply with RFC1035.
26755
+ # @param [String] request_id
26756
+ # An optional request ID to identify requests. Specify a unique request ID so
26757
+ # that if you must retry your request, the server will know to ignore the
26758
+ # request if it has already been completed. For example, consider a situation
26759
+ # where you make an initial request and the request times out. If you make the
26760
+ # request again with the same request ID, the server can check if original
26761
+ # operation with the same request ID was received, and if so, will ignore the
26762
+ # second request. This prevents clients from accidentally creating duplicate
26763
+ # commitments. The request ID must be a valid UUID with the exception that zero
26764
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26765
+ # @param [String] fields
26766
+ # Selector specifying which fields to include in a partial response.
26767
+ # @param [String] quota_user
26768
+ # Available to use for quota purposes for server-side applications. Can be any
26769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26770
+ # @param [String] user_ip
26771
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26772
+ # @param [Google::Apis::RequestOptions] options
26773
+ # Request-specific options
26774
+ #
26775
+ # @yield [result, err] Result & error if block supplied
26776
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
26777
+ # @yieldparam err [StandardError] error object if request failed
26778
+ #
26779
+ # @return [Google::Apis::ComputeV1::Operation]
26780
+ #
26781
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26782
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26783
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26784
+ def delete_region_ssl_policy(project, region, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26785
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
26786
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
26787
+ command.response_class = Google::Apis::ComputeV1::Operation
26788
+ command.params['project'] = project unless project.nil?
26789
+ command.params['region'] = region unless region.nil?
26790
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
26791
+ command.query['requestId'] = request_id unless request_id.nil?
26792
+ command.query['fields'] = fields unless fields.nil?
26793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26794
+ command.query['userIp'] = user_ip unless user_ip.nil?
26795
+ execute_or_queue_command(command, &block)
26796
+ end
26797
+
26798
+ # Lists all of the ordered rules present in a single specified policy.
26799
+ # @param [String] project
26800
+ # Project ID for this request.
26801
+ # @param [String] region
26802
+ # Name of the region scoping this request.
26803
+ # @param [String] ssl_policy
26804
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
26805
+ # comply with RFC1035.
26806
+ # @param [String] fields
26807
+ # Selector specifying which fields to include in a partial response.
26808
+ # @param [String] quota_user
26809
+ # Available to use for quota purposes for server-side applications. Can be any
26810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26811
+ # @param [String] user_ip
26812
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26813
+ # @param [Google::Apis::RequestOptions] options
26814
+ # Request-specific options
26815
+ #
26816
+ # @yield [result, err] Result & error if block supplied
26817
+ # @yieldparam result [Google::Apis::ComputeV1::SslPolicy] parsed result object
26818
+ # @yieldparam err [StandardError] error object if request failed
26819
+ #
26820
+ # @return [Google::Apis::ComputeV1::SslPolicy]
26821
+ #
26822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26825
+ def get_region_ssl_policy(project, region, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26826
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
26827
+ command.response_representation = Google::Apis::ComputeV1::SslPolicy::Representation
26828
+ command.response_class = Google::Apis::ComputeV1::SslPolicy
26829
+ command.params['project'] = project unless project.nil?
26830
+ command.params['region'] = region unless region.nil?
26831
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
26832
+ command.query['fields'] = fields unless fields.nil?
26833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26834
+ command.query['userIp'] = user_ip unless user_ip.nil?
26835
+ execute_or_queue_command(command, &block)
26836
+ end
26837
+
26838
+ # Creates a new policy in the specified project and region using the data
26839
+ # included in the request.
26840
+ # @param [String] project
26841
+ # Project ID for this request.
26842
+ # @param [String] region
26843
+ # Name of the region scoping this request.
26844
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
26845
+ # @param [String] request_id
26846
+ # An optional request ID to identify requests. Specify a unique request ID so
26847
+ # that if you must retry your request, the server will know to ignore the
26848
+ # request if it has already been completed. For example, consider a situation
26849
+ # where you make an initial request and the request times out. If you make the
26850
+ # request again with the same request ID, the server can check if original
26851
+ # operation with the same request ID was received, and if so, will ignore the
26852
+ # second request. This prevents clients from accidentally creating duplicate
26853
+ # commitments. The request ID must be a valid UUID with the exception that zero
26854
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26855
+ # @param [String] fields
26856
+ # Selector specifying which fields to include in a partial response.
26857
+ # @param [String] quota_user
26858
+ # Available to use for quota purposes for server-side applications. Can be any
26859
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26860
+ # @param [String] user_ip
26861
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26862
+ # @param [Google::Apis::RequestOptions] options
26863
+ # Request-specific options
26864
+ #
26865
+ # @yield [result, err] Result & error if block supplied
26866
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
26867
+ # @yieldparam err [StandardError] error object if request failed
26868
+ #
26869
+ # @return [Google::Apis::ComputeV1::Operation]
26870
+ #
26871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26874
+ def insert_region_ssl_policy(project, region, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26875
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies', options)
26876
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
26877
+ command.request_object = ssl_policy_object
26878
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
26879
+ command.response_class = Google::Apis::ComputeV1::Operation
26880
+ command.params['project'] = project unless project.nil?
26881
+ command.params['region'] = region unless region.nil?
26882
+ command.query['requestId'] = request_id unless request_id.nil?
26883
+ command.query['fields'] = fields unless fields.nil?
26884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26885
+ command.query['userIp'] = user_ip unless user_ip.nil?
26886
+ execute_or_queue_command(command, &block)
26887
+ end
26888
+
26889
+ # Lists all the SSL policies that have been configured for the specified project
26890
+ # and region.
26891
+ # @param [String] project
26892
+ # Project ID for this request.
26893
+ # @param [String] region
26894
+ # Name of the region scoping this request.
26895
+ # @param [String] filter
26896
+ # A filter expression that filters resources listed in the response. Most
26897
+ # Compute resources support two types of filter expressions: expressions that
26898
+ # support regular expressions and expressions that follow API improvement
26899
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
26900
+ # field name, an operator, and the value that you want to use for filtering. The
26901
+ # value must be a string, a number, or a boolean. The operator must be either `=`
26902
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
26903
+ # Engine instances, you can exclude instances named `example-instance` by
26904
+ # specifying `name != example-instance`. The `:` operator can be used with
26905
+ # string fields to match substrings. For non-string fields it is equivalent to
26906
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
26907
+ # been defined. For example, to find all objects with `owner` label use: ```
26908
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
26909
+ # specify `scheduling.automaticRestart = false` to include instances only if
26910
+ # they are not scheduled for automatic restarts. You can use filtering on nested
26911
+ # fields to filter based on resource labels. To filter on multiple expressions,
26912
+ # provide each separate expression within parentheses. For example: ``` (
26913
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
26914
+ # default, each expression is an `AND` expression. However, you can include `AND`
26915
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
26916
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
26917
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
26918
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
26919
+ # expression with or without quotes or against multiple parenthesized
26920
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
26921
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
26922
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
26923
+ # regular expression using Google RE2 library syntax. The literal value must
26924
+ # match the entire field. For example, to filter for instances that do not end
26925
+ # with name "instance", you would use `name ne .*instance`.
26926
+ # @param [Fixnum] max_results
26927
+ # The maximum number of results per page that should be returned. If the number
26928
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26929
+ # nextPageToken` that can be used to get the next page of results in subsequent
26930
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26931
+ # @param [String] order_by
26932
+ # Sorts list results by a certain order. By default, results are returned in
26933
+ # alphanumerical order based on the resource name. You can also sort results in
26934
+ # descending order based on the creation timestamp using `orderBy="
26935
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
26936
+ # field in reverse chronological order (newest result first). Use this to sort
26937
+ # resources like operations so that the newest operation is returned first.
26938
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26939
+ # @param [String] page_token
26940
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26941
+ # by a previous list request to get the next page of results.
26942
+ # @param [Boolean] return_partial_success
26943
+ # Opt-in for partial success behavior which provides partial results in case of
26944
+ # failure. The default value is false.
26945
+ # @param [String] fields
26946
+ # Selector specifying which fields to include in a partial response.
26947
+ # @param [String] quota_user
26948
+ # Available to use for quota purposes for server-side applications. Can be any
26949
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26950
+ # @param [String] user_ip
26951
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26952
+ # @param [Google::Apis::RequestOptions] options
26953
+ # Request-specific options
26954
+ #
26955
+ # @yield [result, err] Result & error if block supplied
26956
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesList] parsed result object
26957
+ # @yieldparam err [StandardError] error object if request failed
26958
+ #
26959
+ # @return [Google::Apis::ComputeV1::SslPoliciesList]
26960
+ #
26961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26964
+ def list_region_ssl_policies(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)
26965
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies', options)
26966
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesList::Representation
26967
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesList
26968
+ command.params['project'] = project unless project.nil?
26969
+ command.params['region'] = region unless region.nil?
26970
+ command.query['filter'] = filter unless filter.nil?
26971
+ command.query['maxResults'] = max_results unless max_results.nil?
26972
+ command.query['orderBy'] = order_by unless order_by.nil?
26973
+ command.query['pageToken'] = page_token unless page_token.nil?
26974
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26975
+ command.query['fields'] = fields unless fields.nil?
26976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26977
+ command.query['userIp'] = user_ip unless user_ip.nil?
26978
+ execute_or_queue_command(command, &block)
26979
+ end
26980
+
26981
+ # Lists all features that can be specified in the SSL policy when using custom
26982
+ # profile.
26983
+ # @param [String] project
26984
+ # Project ID for this request.
26985
+ # @param [String] region
26986
+ # Name of the region scoping this request.
26987
+ # @param [String] filter
26988
+ # A filter expression that filters resources listed in the response. Most
26989
+ # Compute resources support two types of filter expressions: expressions that
26990
+ # support regular expressions and expressions that follow API improvement
26991
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
26992
+ # field name, an operator, and the value that you want to use for filtering. The
26993
+ # value must be a string, a number, or a boolean. The operator must be either `=`
26994
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
26995
+ # Engine instances, you can exclude instances named `example-instance` by
26996
+ # specifying `name != example-instance`. The `:` operator can be used with
26997
+ # string fields to match substrings. For non-string fields it is equivalent to
26998
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
26999
+ # been defined. For example, to find all objects with `owner` label use: ```
27000
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
27001
+ # specify `scheduling.automaticRestart = false` to include instances only if
27002
+ # they are not scheduled for automatic restarts. You can use filtering on nested
27003
+ # fields to filter based on resource labels. To filter on multiple expressions,
27004
+ # provide each separate expression within parentheses. For example: ``` (
27005
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
27006
+ # default, each expression is an `AND` expression. However, you can include `AND`
27007
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
27008
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
27009
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
27010
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
27011
+ # expression with or without quotes or against multiple parenthesized
27012
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
27013
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
27014
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
27015
+ # regular expression using Google RE2 library syntax. The literal value must
27016
+ # match the entire field. For example, to filter for instances that do not end
27017
+ # with name "instance", you would use `name ne .*instance`.
27018
+ # @param [Fixnum] max_results
27019
+ # The maximum number of results per page that should be returned. If the number
27020
+ # of available results is larger than `maxResults`, Compute Engine returns a `
27021
+ # nextPageToken` that can be used to get the next page of results in subsequent
27022
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
27023
+ # @param [String] order_by
27024
+ # Sorts list results by a certain order. By default, results are returned in
27025
+ # alphanumerical order based on the resource name. You can also sort results in
27026
+ # descending order based on the creation timestamp using `orderBy="
27027
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
27028
+ # field in reverse chronological order (newest result first). Use this to sort
27029
+ # resources like operations so that the newest operation is returned first.
27030
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
27031
+ # @param [String] page_token
27032
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
27033
+ # by a previous list request to get the next page of results.
27034
+ # @param [Boolean] return_partial_success
27035
+ # Opt-in for partial success behavior which provides partial results in case of
27036
+ # failure. The default value is false.
27037
+ # @param [String] fields
27038
+ # Selector specifying which fields to include in a partial response.
27039
+ # @param [String] quota_user
27040
+ # Available to use for quota purposes for server-side applications. Can be any
27041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27042
+ # @param [String] user_ip
27043
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27044
+ # @param [Google::Apis::RequestOptions] options
27045
+ # Request-specific options
27046
+ #
27047
+ # @yield [result, err] Result & error if block supplied
27048
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse] parsed result object
27049
+ # @yieldparam err [StandardError] error object if request failed
27050
+ #
27051
+ # @return [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse]
27052
+ #
27053
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27054
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27055
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27056
+ def list_region_ssl_policy_available_features(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)
27057
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures', options)
27058
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse::Representation
27059
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse
27060
+ command.params['project'] = project unless project.nil?
27061
+ command.params['region'] = region unless region.nil?
27062
+ command.query['filter'] = filter unless filter.nil?
27063
+ command.query['maxResults'] = max_results unless max_results.nil?
27064
+ command.query['orderBy'] = order_by unless order_by.nil?
27065
+ command.query['pageToken'] = page_token unless page_token.nil?
27066
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
27067
+ command.query['fields'] = fields unless fields.nil?
27068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27069
+ command.query['userIp'] = user_ip unless user_ip.nil?
27070
+ execute_or_queue_command(command, &block)
27071
+ end
27072
+
27073
+ # Patches the specified SSL policy with the data included in the request.
27074
+ # @param [String] project
27075
+ # Project ID for this request.
27076
+ # @param [String] region
27077
+ # Name of the region scoping this request.
27078
+ # @param [String] ssl_policy
27079
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
27080
+ # comply with RFC1035.
27081
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
27082
+ # @param [String] request_id
27083
+ # An optional request ID to identify requests. Specify a unique request ID so
27084
+ # that if you must retry your request, the server will know to ignore the
27085
+ # request if it has already been completed. For example, consider a situation
27086
+ # where you make an initial request and the request times out. If you make the
27087
+ # request again with the same request ID, the server can check if original
27088
+ # operation with the same request ID was received, and if so, will ignore the
27089
+ # second request. This prevents clients from accidentally creating duplicate
27090
+ # commitments. The request ID must be a valid UUID with the exception that zero
27091
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
27092
+ # @param [String] fields
27093
+ # Selector specifying which fields to include in a partial response.
27094
+ # @param [String] quota_user
27095
+ # Available to use for quota purposes for server-side applications. Can be any
27096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27097
+ # @param [String] user_ip
27098
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27099
+ # @param [Google::Apis::RequestOptions] options
27100
+ # Request-specific options
27101
+ #
27102
+ # @yield [result, err] Result & error if block supplied
27103
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
27104
+ # @yieldparam err [StandardError] error object if request failed
27105
+ #
27106
+ # @return [Google::Apis::ComputeV1::Operation]
27107
+ #
27108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27111
+ def patch_region_ssl_policy(project, region, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27112
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
27113
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
27114
+ command.request_object = ssl_policy_object
27115
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
27116
+ command.response_class = Google::Apis::ComputeV1::Operation
27117
+ command.params['project'] = project unless project.nil?
27118
+ command.params['region'] = region unless region.nil?
27119
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
27120
+ command.query['requestId'] = request_id unless request_id.nil?
27121
+ command.query['fields'] = fields unless fields.nil?
27122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27123
+ command.query['userIp'] = user_ip unless user_ip.nil?
27124
+ execute_or_queue_command(command, &block)
27125
+ end
27126
+
26558
27127
  # Deletes the specified TargetHttpProxy resource.
26559
27128
  # @param [String] project
26560
27129
  # Project ID for this request.
@@ -30209,6 +30778,46 @@ module Google
30209
30778
  execute_or_queue_command(command, &block)
30210
30779
  end
30211
30780
 
30781
+ # Sets the labels on a security policy. To learn more about labels, read the
30782
+ # Labeling Resources documentation.
30783
+ # @param [String] project
30784
+ # Project ID for this request.
30785
+ # @param [String] resource
30786
+ # Name or id of the resource for this request.
30787
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
30788
+ # @param [String] fields
30789
+ # Selector specifying which fields to include in a partial response.
30790
+ # @param [String] quota_user
30791
+ # Available to use for quota purposes for server-side applications. Can be any
30792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30793
+ # @param [String] user_ip
30794
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30795
+ # @param [Google::Apis::RequestOptions] options
30796
+ # Request-specific options
30797
+ #
30798
+ # @yield [result, err] Result & error if block supplied
30799
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
30800
+ # @yieldparam err [StandardError] error object if request failed
30801
+ #
30802
+ # @return [Google::Apis::ComputeV1::Operation]
30803
+ #
30804
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30805
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30806
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30807
+ def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30808
+ command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{resource}/setLabels', options)
30809
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
30810
+ command.request_object = global_set_labels_request_object
30811
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
30812
+ command.response_class = Google::Apis::ComputeV1::Operation
30813
+ command.params['project'] = project unless project.nil?
30814
+ command.params['resource'] = resource unless resource.nil?
30815
+ command.query['fields'] = fields unless fields.nil?
30816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30817
+ command.query['userIp'] = user_ip unless user_ip.nil?
30818
+ execute_or_queue_command(command, &block)
30819
+ end
30820
+
30212
30821
  # Retrieves the list of all ServiceAttachment resources, regional and global,
30213
30822
  # available to the specified project.
30214
30823
  # @param [String] project
@@ -35656,21 +36265,254 @@ module Google
35656
36265
  # Request-specific options
35657
36266
  #
35658
36267
  # @yield [result, err] Result & error if block supplied
35659
- # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList] parsed result object
36268
+ # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList] parsed result object
36269
+ # @yieldparam err [StandardError] error object if request failed
36270
+ #
36271
+ # @return [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList]
36272
+ #
36273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36276
+ def list_aggregated_target_vpn_gateways(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36277
+ command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options)
36278
+ command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList::Representation
36279
+ command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList
36280
+ command.params['project'] = project unless project.nil?
36281
+ command.query['filter'] = filter unless filter.nil?
36282
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36283
+ command.query['maxResults'] = max_results unless max_results.nil?
36284
+ command.query['orderBy'] = order_by unless order_by.nil?
36285
+ command.query['pageToken'] = page_token unless page_token.nil?
36286
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36287
+ command.query['fields'] = fields unless fields.nil?
36288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36289
+ command.query['userIp'] = user_ip unless user_ip.nil?
36290
+ execute_or_queue_command(command, &block)
36291
+ end
36292
+
36293
+ # Deletes the specified target VPN gateway.
36294
+ # @param [String] project
36295
+ # Project ID for this request.
36296
+ # @param [String] region
36297
+ # Name of the region for this request.
36298
+ # @param [String] target_vpn_gateway
36299
+ # Name of the target VPN gateway to delete.
36300
+ # @param [String] request_id
36301
+ # An optional request ID to identify requests. Specify a unique request ID so
36302
+ # that if you must retry your request, the server will know to ignore the
36303
+ # request if it has already been completed. For example, consider a situation
36304
+ # where you make an initial request and the request times out. If you make the
36305
+ # request again with the same request ID, the server can check if original
36306
+ # operation with the same request ID was received, and if so, will ignore the
36307
+ # second request. This prevents clients from accidentally creating duplicate
36308
+ # commitments. The request ID must be a valid UUID with the exception that zero
36309
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
36310
+ # @param [String] fields
36311
+ # Selector specifying which fields to include in a partial response.
36312
+ # @param [String] quota_user
36313
+ # Available to use for quota purposes for server-side applications. Can be any
36314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36315
+ # @param [String] user_ip
36316
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36317
+ # @param [Google::Apis::RequestOptions] options
36318
+ # Request-specific options
36319
+ #
36320
+ # @yield [result, err] Result & error if block supplied
36321
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
36322
+ # @yieldparam err [StandardError] error object if request failed
36323
+ #
36324
+ # @return [Google::Apis::ComputeV1::Operation]
36325
+ #
36326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36329
+ def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36330
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
36331
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
36332
+ command.response_class = Google::Apis::ComputeV1::Operation
36333
+ command.params['project'] = project unless project.nil?
36334
+ command.params['region'] = region unless region.nil?
36335
+ command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
36336
+ command.query['requestId'] = request_id unless request_id.nil?
36337
+ command.query['fields'] = fields unless fields.nil?
36338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36339
+ command.query['userIp'] = user_ip unless user_ip.nil?
36340
+ execute_or_queue_command(command, &block)
36341
+ end
36342
+
36343
+ # Returns the specified target VPN gateway. Gets a list of available target VPN
36344
+ # gateways by making a list() request.
36345
+ # @param [String] project
36346
+ # Project ID for this request.
36347
+ # @param [String] region
36348
+ # Name of the region for this request.
36349
+ # @param [String] target_vpn_gateway
36350
+ # Name of the target VPN gateway to return.
36351
+ # @param [String] fields
36352
+ # Selector specifying which fields to include in a partial response.
36353
+ # @param [String] quota_user
36354
+ # Available to use for quota purposes for server-side applications. Can be any
36355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36356
+ # @param [String] user_ip
36357
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36358
+ # @param [Google::Apis::RequestOptions] options
36359
+ # Request-specific options
36360
+ #
36361
+ # @yield [result, err] Result & error if block supplied
36362
+ # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGateway] parsed result object
36363
+ # @yieldparam err [StandardError] error object if request failed
36364
+ #
36365
+ # @return [Google::Apis::ComputeV1::TargetVpnGateway]
36366
+ #
36367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36370
+ def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36371
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
36372
+ command.response_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
36373
+ command.response_class = Google::Apis::ComputeV1::TargetVpnGateway
36374
+ command.params['project'] = project unless project.nil?
36375
+ command.params['region'] = region unless region.nil?
36376
+ command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
36377
+ command.query['fields'] = fields unless fields.nil?
36378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36379
+ command.query['userIp'] = user_ip unless user_ip.nil?
36380
+ execute_or_queue_command(command, &block)
36381
+ end
36382
+
36383
+ # Creates a target VPN gateway in the specified project and region using the
36384
+ # data included in the request.
36385
+ # @param [String] project
36386
+ # Project ID for this request.
36387
+ # @param [String] region
36388
+ # Name of the region for this request.
36389
+ # @param [Google::Apis::ComputeV1::TargetVpnGateway] target_vpn_gateway_object
36390
+ # @param [String] request_id
36391
+ # An optional request ID to identify requests. Specify a unique request ID so
36392
+ # that if you must retry your request, the server will know to ignore the
36393
+ # request if it has already been completed. For example, consider a situation
36394
+ # where you make an initial request and the request times out. If you make the
36395
+ # request again with the same request ID, the server can check if original
36396
+ # operation with the same request ID was received, and if so, will ignore the
36397
+ # second request. This prevents clients from accidentally creating duplicate
36398
+ # commitments. The request ID must be a valid UUID with the exception that zero
36399
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
36400
+ # @param [String] fields
36401
+ # Selector specifying which fields to include in a partial response.
36402
+ # @param [String] quota_user
36403
+ # Available to use for quota purposes for server-side applications. Can be any
36404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36405
+ # @param [String] user_ip
36406
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36407
+ # @param [Google::Apis::RequestOptions] options
36408
+ # Request-specific options
36409
+ #
36410
+ # @yield [result, err] Result & error if block supplied
36411
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
36412
+ # @yieldparam err [StandardError] error object if request failed
36413
+ #
36414
+ # @return [Google::Apis::ComputeV1::Operation]
36415
+ #
36416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36419
+ def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36420
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
36421
+ command.request_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
36422
+ command.request_object = target_vpn_gateway_object
36423
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
36424
+ command.response_class = Google::Apis::ComputeV1::Operation
36425
+ command.params['project'] = project unless project.nil?
36426
+ command.params['region'] = region unless region.nil?
36427
+ command.query['requestId'] = request_id unless request_id.nil?
36428
+ command.query['fields'] = fields unless fields.nil?
36429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36430
+ command.query['userIp'] = user_ip unless user_ip.nil?
36431
+ execute_or_queue_command(command, &block)
36432
+ end
36433
+
36434
+ # Retrieves a list of target VPN gateways available to the specified project and
36435
+ # region.
36436
+ # @param [String] project
36437
+ # Project ID for this request.
36438
+ # @param [String] region
36439
+ # Name of the region for this request.
36440
+ # @param [String] filter
36441
+ # A filter expression that filters resources listed in the response. Most
36442
+ # Compute resources support two types of filter expressions: expressions that
36443
+ # support regular expressions and expressions that follow API improvement
36444
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
36445
+ # field name, an operator, and the value that you want to use for filtering. The
36446
+ # value must be a string, a number, or a boolean. The operator must be either `=`
36447
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
36448
+ # Engine instances, you can exclude instances named `example-instance` by
36449
+ # specifying `name != example-instance`. The `:` operator can be used with
36450
+ # string fields to match substrings. For non-string fields it is equivalent to
36451
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
36452
+ # been defined. For example, to find all objects with `owner` label use: ```
36453
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
36454
+ # specify `scheduling.automaticRestart = false` to include instances only if
36455
+ # they are not scheduled for automatic restarts. You can use filtering on nested
36456
+ # fields to filter based on resource labels. To filter on multiple expressions,
36457
+ # provide each separate expression within parentheses. For example: ``` (
36458
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
36459
+ # default, each expression is an `AND` expression. However, you can include `AND`
36460
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
36461
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
36462
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
36463
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
36464
+ # expression with or without quotes or against multiple parenthesized
36465
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
36466
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
36467
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
36468
+ # regular expression using Google RE2 library syntax. The literal value must
36469
+ # match the entire field. For example, to filter for instances that do not end
36470
+ # with name "instance", you would use `name ne .*instance`.
36471
+ # @param [Fixnum] max_results
36472
+ # The maximum number of results per page that should be returned. If the number
36473
+ # of available results is larger than `maxResults`, Compute Engine returns a `
36474
+ # nextPageToken` that can be used to get the next page of results in subsequent
36475
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
36476
+ # @param [String] order_by
36477
+ # Sorts list results by a certain order. By default, results are returned in
36478
+ # alphanumerical order based on the resource name. You can also sort results in
36479
+ # descending order based on the creation timestamp using `orderBy="
36480
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
36481
+ # field in reverse chronological order (newest result first). Use this to sort
36482
+ # resources like operations so that the newest operation is returned first.
36483
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
36484
+ # @param [String] page_token
36485
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
36486
+ # by a previous list request to get the next page of results.
36487
+ # @param [Boolean] return_partial_success
36488
+ # Opt-in for partial success behavior which provides partial results in case of
36489
+ # failure. The default value is false.
36490
+ # @param [String] fields
36491
+ # Selector specifying which fields to include in a partial response.
36492
+ # @param [String] quota_user
36493
+ # Available to use for quota purposes for server-side applications. Can be any
36494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36495
+ # @param [String] user_ip
36496
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36497
+ # @param [Google::Apis::RequestOptions] options
36498
+ # Request-specific options
36499
+ #
36500
+ # @yield [result, err] Result & error if block supplied
36501
+ # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayList] parsed result object
35660
36502
  # @yieldparam err [StandardError] error object if request failed
35661
36503
  #
35662
- # @return [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList]
36504
+ # @return [Google::Apis::ComputeV1::TargetVpnGatewayList]
35663
36505
  #
35664
36506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35665
36507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35666
36508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35667
- def list_aggregated_target_vpn_gateways(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35668
- command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options)
35669
- command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList::Representation
35670
- command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList
36509
+ def list_target_vpn_gateways(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)
36510
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
36511
+ command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayList::Representation
36512
+ command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayList
35671
36513
  command.params['project'] = project unless project.nil?
36514
+ command.params['region'] = region unless region.nil?
35672
36515
  command.query['filter'] = filter unless filter.nil?
35673
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
35674
36516
  command.query['maxResults'] = max_results unless max_results.nil?
35675
36517
  command.query['orderBy'] = order_by unless order_by.nil?
35676
36518
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -35681,103 +36523,15 @@ module Google
35681
36523
  execute_or_queue_command(command, &block)
35682
36524
  end
35683
36525
 
35684
- # Deletes the specified target VPN gateway.
35685
- # @param [String] project
35686
- # Project ID for this request.
35687
- # @param [String] region
35688
- # Name of the region for this request.
35689
- # @param [String] target_vpn_gateway
35690
- # Name of the target VPN gateway to delete.
35691
- # @param [String] request_id
35692
- # An optional request ID to identify requests. Specify a unique request ID so
35693
- # that if you must retry your request, the server will know to ignore the
35694
- # request if it has already been completed. For example, consider a situation
35695
- # where you make an initial request and the request times out. If you make the
35696
- # request again with the same request ID, the server can check if original
35697
- # operation with the same request ID was received, and if so, will ignore the
35698
- # second request. This prevents clients from accidentally creating duplicate
35699
- # commitments. The request ID must be a valid UUID with the exception that zero
35700
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
35701
- # @param [String] fields
35702
- # Selector specifying which fields to include in a partial response.
35703
- # @param [String] quota_user
35704
- # Available to use for quota purposes for server-side applications. Can be any
35705
- # arbitrary string assigned to a user, but should not exceed 40 characters.
35706
- # @param [String] user_ip
35707
- # Legacy name for parameter that has been superseded by `quotaUser`.
35708
- # @param [Google::Apis::RequestOptions] options
35709
- # Request-specific options
35710
- #
35711
- # @yield [result, err] Result & error if block supplied
35712
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
35713
- # @yieldparam err [StandardError] error object if request failed
35714
- #
35715
- # @return [Google::Apis::ComputeV1::Operation]
35716
- #
35717
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35718
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35719
- # @raise [Google::Apis::AuthorizationError] Authorization is required
35720
- def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35721
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
35722
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
35723
- command.response_class = Google::Apis::ComputeV1::Operation
35724
- command.params['project'] = project unless project.nil?
35725
- command.params['region'] = region unless region.nil?
35726
- command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
35727
- command.query['requestId'] = request_id unless request_id.nil?
35728
- command.query['fields'] = fields unless fields.nil?
35729
- command.query['quotaUser'] = quota_user unless quota_user.nil?
35730
- command.query['userIp'] = user_ip unless user_ip.nil?
35731
- execute_or_queue_command(command, &block)
35732
- end
35733
-
35734
- # Returns the specified target VPN gateway. Gets a list of available target VPN
35735
- # gateways by making a list() request.
35736
- # @param [String] project
35737
- # Project ID for this request.
35738
- # @param [String] region
35739
- # Name of the region for this request.
35740
- # @param [String] target_vpn_gateway
35741
- # Name of the target VPN gateway to return.
35742
- # @param [String] fields
35743
- # Selector specifying which fields to include in a partial response.
35744
- # @param [String] quota_user
35745
- # Available to use for quota purposes for server-side applications. Can be any
35746
- # arbitrary string assigned to a user, but should not exceed 40 characters.
35747
- # @param [String] user_ip
35748
- # Legacy name for parameter that has been superseded by `quotaUser`.
35749
- # @param [Google::Apis::RequestOptions] options
35750
- # Request-specific options
35751
- #
35752
- # @yield [result, err] Result & error if block supplied
35753
- # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGateway] parsed result object
35754
- # @yieldparam err [StandardError] error object if request failed
35755
- #
35756
- # @return [Google::Apis::ComputeV1::TargetVpnGateway]
35757
- #
35758
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35759
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35760
- # @raise [Google::Apis::AuthorizationError] Authorization is required
35761
- def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35762
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
35763
- command.response_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
35764
- command.response_class = Google::Apis::ComputeV1::TargetVpnGateway
35765
- command.params['project'] = project unless project.nil?
35766
- command.params['region'] = region unless region.nil?
35767
- command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
35768
- command.query['fields'] = fields unless fields.nil?
35769
- command.query['quotaUser'] = quota_user unless quota_user.nil?
35770
- command.query['userIp'] = user_ip unless user_ip.nil?
35771
- execute_or_queue_command(command, &block)
35772
- end
35773
-
35774
- # Creates a target VPN gateway in the specified project and region using the
35775
- # data included in the request.
36526
+ # Sets the labels on a TargetVpnGateway. To learn more about labels, read the
36527
+ # Labeling Resources documentation.
35776
36528
  # @param [String] project
35777
36529
  # Project ID for this request.
35778
36530
  # @param [String] region
35779
- # Name of the region for this request.
35780
- # @param [Google::Apis::ComputeV1::TargetVpnGateway] target_vpn_gateway_object
36531
+ # The region for this request.
36532
+ # @param [String] resource
36533
+ # Name or id of the resource for this request.
36534
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
35781
36535
  # @param [String] request_id
35782
36536
  # An optional request ID to identify requests. Specify a unique request ID so
35783
36537
  # that if you must retry your request, the server will know to ignore the
@@ -35807,14 +36561,15 @@ module Google
35807
36561
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35808
36562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35809
36563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35810
- def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35811
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
35812
- command.request_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
35813
- command.request_object = target_vpn_gateway_object
36564
+ def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36565
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
36566
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
36567
+ command.request_object = region_set_labels_request_object
35814
36568
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
35815
36569
  command.response_class = Google::Apis::ComputeV1::Operation
35816
36570
  command.params['project'] = project unless project.nil?
35817
36571
  command.params['region'] = region unless region.nil?
36572
+ command.params['resource'] = resource unless resource.nil?
35818
36573
  command.query['requestId'] = request_id unless request_id.nil?
35819
36574
  command.query['fields'] = fields unless fields.nil?
35820
36575
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35822,98 +36577,6 @@ module Google
35822
36577
  execute_or_queue_command(command, &block)
35823
36578
  end
35824
36579
 
35825
- # Retrieves a list of target VPN gateways available to the specified project and
35826
- # region.
35827
- # @param [String] project
35828
- # Project ID for this request.
35829
- # @param [String] region
35830
- # Name of the region for this request.
35831
- # @param [String] filter
35832
- # A filter expression that filters resources listed in the response. Most
35833
- # Compute resources support two types of filter expressions: expressions that
35834
- # support regular expressions and expressions that follow API improvement
35835
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
35836
- # field name, an operator, and the value that you want to use for filtering. The
35837
- # value must be a string, a number, or a boolean. The operator must be either `=`
35838
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
35839
- # Engine instances, you can exclude instances named `example-instance` by
35840
- # specifying `name != example-instance`. The `:` operator can be used with
35841
- # string fields to match substrings. For non-string fields it is equivalent to
35842
- # the `=` operator. The `:*` comparison can be used to test whether a key has
35843
- # been defined. For example, to find all objects with `owner` label use: ```
35844
- # labels.owner:* ``` You can also filter nested fields. For example, you could
35845
- # specify `scheduling.automaticRestart = false` to include instances only if
35846
- # they are not scheduled for automatic restarts. You can use filtering on nested
35847
- # fields to filter based on resource labels. To filter on multiple expressions,
35848
- # provide each separate expression within parentheses. For example: ``` (
35849
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
35850
- # default, each expression is an `AND` expression. However, you can include `AND`
35851
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
35852
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
35853
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
35854
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
35855
- # expression with or without quotes or against multiple parenthesized
35856
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
35857
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
35858
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
35859
- # regular expression using Google RE2 library syntax. The literal value must
35860
- # match the entire field. For example, to filter for instances that do not end
35861
- # with name "instance", you would use `name ne .*instance`.
35862
- # @param [Fixnum] max_results
35863
- # The maximum number of results per page that should be returned. If the number
35864
- # of available results is larger than `maxResults`, Compute Engine returns a `
35865
- # nextPageToken` that can be used to get the next page of results in subsequent
35866
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
35867
- # @param [String] order_by
35868
- # Sorts list results by a certain order. By default, results are returned in
35869
- # alphanumerical order based on the resource name. You can also sort results in
35870
- # descending order based on the creation timestamp using `orderBy="
35871
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
35872
- # field in reverse chronological order (newest result first). Use this to sort
35873
- # resources like operations so that the newest operation is returned first.
35874
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
35875
- # @param [String] page_token
35876
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
35877
- # by a previous list request to get the next page of results.
35878
- # @param [Boolean] return_partial_success
35879
- # Opt-in for partial success behavior which provides partial results in case of
35880
- # failure. The default value is false.
35881
- # @param [String] fields
35882
- # Selector specifying which fields to include in a partial response.
35883
- # @param [String] quota_user
35884
- # Available to use for quota purposes for server-side applications. Can be any
35885
- # arbitrary string assigned to a user, but should not exceed 40 characters.
35886
- # @param [String] user_ip
35887
- # Legacy name for parameter that has been superseded by `quotaUser`.
35888
- # @param [Google::Apis::RequestOptions] options
35889
- # Request-specific options
35890
- #
35891
- # @yield [result, err] Result & error if block supplied
35892
- # @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayList] parsed result object
35893
- # @yieldparam err [StandardError] error object if request failed
35894
- #
35895
- # @return [Google::Apis::ComputeV1::TargetVpnGatewayList]
35896
- #
35897
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35898
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35899
- # @raise [Google::Apis::AuthorizationError] Authorization is required
35900
- def list_target_vpn_gateways(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)
35901
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
35902
- command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayList::Representation
35903
- command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayList
35904
- command.params['project'] = project unless project.nil?
35905
- command.params['region'] = region unless region.nil?
35906
- command.query['filter'] = filter unless filter.nil?
35907
- command.query['maxResults'] = max_results unless max_results.nil?
35908
- command.query['orderBy'] = order_by unless order_by.nil?
35909
- command.query['pageToken'] = page_token unless page_token.nil?
35910
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35911
- command.query['fields'] = fields unless fields.nil?
35912
- command.query['quotaUser'] = quota_user unless quota_user.nil?
35913
- command.query['userIp'] = user_ip unless user_ip.nil?
35914
- execute_or_queue_command(command, &block)
35915
- end
35916
-
35917
36580
  # Retrieves the list of all UrlMap resources, regional and global, available to
35918
36581
  # the specified project.
35919
36582
  # @param [String] project
@@ -37217,6 +37880,60 @@ module Google
37217
37880
  execute_or_queue_command(command, &block)
37218
37881
  end
37219
37882
 
37883
+ # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
37884
+ # Resources documentation.
37885
+ # @param [String] project
37886
+ # Project ID for this request.
37887
+ # @param [String] region
37888
+ # The region for this request.
37889
+ # @param [String] resource
37890
+ # Name or id of the resource for this request.
37891
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
37892
+ # @param [String] request_id
37893
+ # An optional request ID to identify requests. Specify a unique request ID so
37894
+ # that if you must retry your request, the server will know to ignore the
37895
+ # request if it has already been completed. For example, consider a situation
37896
+ # where you make an initial request and the request times out. If you make the
37897
+ # request again with the same request ID, the server can check if original
37898
+ # operation with the same request ID was received, and if so, will ignore the
37899
+ # second request. This prevents clients from accidentally creating duplicate
37900
+ # commitments. The request ID must be a valid UUID with the exception that zero
37901
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
37902
+ # @param [String] fields
37903
+ # Selector specifying which fields to include in a partial response.
37904
+ # @param [String] quota_user
37905
+ # Available to use for quota purposes for server-side applications. Can be any
37906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37907
+ # @param [String] user_ip
37908
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37909
+ # @param [Google::Apis::RequestOptions] options
37910
+ # Request-specific options
37911
+ #
37912
+ # @yield [result, err] Result & error if block supplied
37913
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
37914
+ # @yieldparam err [StandardError] error object if request failed
37915
+ #
37916
+ # @return [Google::Apis::ComputeV1::Operation]
37917
+ #
37918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37921
+ def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37922
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
37923
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
37924
+ command.request_object = region_set_labels_request_object
37925
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
37926
+ command.response_class = Google::Apis::ComputeV1::Operation
37927
+ command.params['project'] = project unless project.nil?
37928
+ command.params['region'] = region unless region.nil?
37929
+ command.params['resource'] = resource unless resource.nil?
37930
+ command.query['requestId'] = request_id unless request_id.nil?
37931
+ command.query['fields'] = fields unless fields.nil?
37932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37933
+ command.query['userIp'] = user_ip unless user_ip.nil?
37934
+ execute_or_queue_command(command, &block)
37935
+ end
37936
+
37220
37937
  # Deletes the specified zone-specific Operations resource.
37221
37938
  # @param [String] project
37222
37939
  # Project ID for this request.