google-apis-compute_v1 0.48.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_v1/classes.rb +326 -71
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +102 -0
- data/lib/google/apis/compute_v1/service.rb +1156 -325
- metadata +3 -3
@@ -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.
|
@@ -1845,6 +1899,46 @@ module Google
|
|
1845
1899
|
execute_or_queue_command(command, &block)
|
1846
1900
|
end
|
1847
1901
|
|
1902
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
1903
|
+
# or resource exists.
|
1904
|
+
# @param [String] project
|
1905
|
+
# Project ID for this request.
|
1906
|
+
# @param [String] resource
|
1907
|
+
# Name or id of the resource for this request.
|
1908
|
+
# @param [Fixnum] options_requested_policy_version
|
1909
|
+
# Requested IAM Policy version.
|
1910
|
+
# @param [String] fields
|
1911
|
+
# Selector specifying which fields to include in a partial response.
|
1912
|
+
# @param [String] quota_user
|
1913
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1914
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1915
|
+
# @param [String] user_ip
|
1916
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1917
|
+
# @param [Google::Apis::RequestOptions] options
|
1918
|
+
# Request-specific options
|
1919
|
+
#
|
1920
|
+
# @yield [result, err] Result & error if block supplied
|
1921
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
1922
|
+
# @yieldparam err [StandardError] error object if request failed
|
1923
|
+
#
|
1924
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
1925
|
+
#
|
1926
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1927
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1928
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1929
|
+
def get_backend_service_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1930
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendServices/{resource}/getIamPolicy', options)
|
1931
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
1932
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
1933
|
+
command.params['project'] = project unless project.nil?
|
1934
|
+
command.params['resource'] = resource unless resource.nil?
|
1935
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1936
|
+
command.query['fields'] = fields unless fields.nil?
|
1937
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1938
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1939
|
+
execute_or_queue_command(command, &block)
|
1940
|
+
end
|
1941
|
+
|
1848
1942
|
# Creates a BackendService resource in the specified project using the data
|
1849
1943
|
# included in the request. For more information, see Backend services overview .
|
1850
1944
|
# @param [String] project
|
@@ -2086,6 +2180,46 @@ module Google
|
|
2086
2180
|
execute_or_queue_command(command, &block)
|
2087
2181
|
end
|
2088
2182
|
|
2183
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2184
|
+
# existing policy.
|
2185
|
+
# @param [String] project
|
2186
|
+
# Project ID for this request.
|
2187
|
+
# @param [String] resource
|
2188
|
+
# Name or id of the resource for this request.
|
2189
|
+
# @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
|
2190
|
+
# @param [String] fields
|
2191
|
+
# Selector specifying which fields to include in a partial response.
|
2192
|
+
# @param [String] quota_user
|
2193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2195
|
+
# @param [String] user_ip
|
2196
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2197
|
+
# @param [Google::Apis::RequestOptions] options
|
2198
|
+
# Request-specific options
|
2199
|
+
#
|
2200
|
+
# @yield [result, err] Result & error if block supplied
|
2201
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
2202
|
+
# @yieldparam err [StandardError] error object if request failed
|
2203
|
+
#
|
2204
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
2205
|
+
#
|
2206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2209
|
+
def set_backend_service_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2210
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendServices/{resource}/setIamPolicy', options)
|
2211
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
|
2212
|
+
command.request_object = global_set_policy_request_object
|
2213
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
2214
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
2215
|
+
command.params['project'] = project unless project.nil?
|
2216
|
+
command.params['resource'] = resource unless resource.nil?
|
2217
|
+
command.query['fields'] = fields unless fields.nil?
|
2218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2219
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2220
|
+
execute_or_queue_command(command, &block)
|
2221
|
+
end
|
2222
|
+
|
2089
2223
|
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2090
2224
|
# For more information, see Google Cloud Armor Overview
|
2091
2225
|
# @param [String] project
|
@@ -5303,21 +5437,13 @@ module Google
|
|
5303
5437
|
execute_or_queue_command(command, &block)
|
5304
5438
|
end
|
5305
5439
|
|
5306
|
-
#
|
5440
|
+
# Sets the labels on a GlobalAddress. To learn more about labels, read the
|
5441
|
+
# Labeling Resources documentation.
|
5307
5442
|
# @param [String] project
|
5308
5443
|
# Project ID for this request.
|
5309
|
-
# @param [String]
|
5310
|
-
# Name of the
|
5311
|
-
# @param [
|
5312
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
5313
|
-
# that if you must retry your request, the server will know to ignore the
|
5314
|
-
# request if it has already been completed. For example, consider a situation
|
5315
|
-
# where you make an initial request and the request times out. If you make the
|
5316
|
-
# request again with the same request ID, the server can check if original
|
5317
|
-
# operation with the same request ID was received, and if so, will ignore the
|
5318
|
-
# second request. This prevents clients from accidentally creating duplicate
|
5319
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
5320
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
5444
|
+
# @param [String] resource
|
5445
|
+
# Name or id of the resource for this request.
|
5446
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
5321
5447
|
# @param [String] fields
|
5322
5448
|
# Selector specifying which fields to include in a partial response.
|
5323
5449
|
# @param [String] quota_user
|
@@ -5337,61 +5463,25 @@ module Google
|
|
5337
5463
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5338
5464
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5339
5465
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5340
|
-
def
|
5341
|
-
command = make_simple_command(:
|
5466
|
+
def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5467
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options)
|
5468
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
5469
|
+
command.request_object = global_set_labels_request_object
|
5342
5470
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5343
5471
|
command.response_class = Google::Apis::ComputeV1::Operation
|
5344
5472
|
command.params['project'] = project unless project.nil?
|
5345
|
-
command.params['
|
5346
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
5473
|
+
command.params['resource'] = resource unless resource.nil?
|
5347
5474
|
command.query['fields'] = fields unless fields.nil?
|
5348
5475
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5349
5476
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5350
5477
|
execute_or_queue_command(command, &block)
|
5351
5478
|
end
|
5352
5479
|
|
5353
|
-
#
|
5354
|
-
# forwarding rules by making a list() request.
|
5480
|
+
# Deletes the specified GlobalForwardingRule resource.
|
5355
5481
|
# @param [String] project
|
5356
5482
|
# Project ID for this request.
|
5357
5483
|
# @param [String] forwarding_rule
|
5358
|
-
# Name of the ForwardingRule resource to
|
5359
|
-
# @param [String] fields
|
5360
|
-
# Selector specifying which fields to include in a partial response.
|
5361
|
-
# @param [String] quota_user
|
5362
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5363
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5364
|
-
# @param [String] user_ip
|
5365
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5366
|
-
# @param [Google::Apis::RequestOptions] options
|
5367
|
-
# Request-specific options
|
5368
|
-
#
|
5369
|
-
# @yield [result, err] Result & error if block supplied
|
5370
|
-
# @yieldparam result [Google::Apis::ComputeV1::ForwardingRule] parsed result object
|
5371
|
-
# @yieldparam err [StandardError] error object if request failed
|
5372
|
-
#
|
5373
|
-
# @return [Google::Apis::ComputeV1::ForwardingRule]
|
5374
|
-
#
|
5375
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5376
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5377
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5378
|
-
def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5379
|
-
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
5380
|
-
command.response_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
|
5381
|
-
command.response_class = Google::Apis::ComputeV1::ForwardingRule
|
5382
|
-
command.params['project'] = project unless project.nil?
|
5383
|
-
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
5384
|
-
command.query['fields'] = fields unless fields.nil?
|
5385
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5386
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
5387
|
-
execute_or_queue_command(command, &block)
|
5388
|
-
end
|
5389
|
-
|
5390
|
-
# Creates a GlobalForwardingRule resource in the specified project using the
|
5391
|
-
# data included in the request.
|
5392
|
-
# @param [String] project
|
5393
|
-
# Project ID for this request.
|
5394
|
-
# @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
|
5484
|
+
# Name of the ForwardingRule resource to delete.
|
5395
5485
|
# @param [String] request_id
|
5396
5486
|
# An optional request ID to identify requests. Specify a unique request ID so
|
5397
5487
|
# that if you must retry your request, the server will know to ignore the
|
@@ -5421,13 +5511,12 @@ module Google
|
|
5421
5511
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5422
5512
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5423
5513
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5424
|
-
def
|
5425
|
-
command = make_simple_command(:
|
5426
|
-
command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
|
5427
|
-
command.request_object = forwarding_rule_object
|
5514
|
+
def delete_global_forwarding_rule(project, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5515
|
+
command = make_simple_command(:delete, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
5428
5516
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5429
5517
|
command.response_class = Google::Apis::ComputeV1::Operation
|
5430
5518
|
command.params['project'] = project unless project.nil?
|
5519
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
5431
5520
|
command.query['requestId'] = request_id unless request_id.nil?
|
5432
5521
|
command.query['fields'] = fields unless fields.nil?
|
5433
5522
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -5435,60 +5524,12 @@ module Google
|
|
5435
5524
|
execute_or_queue_command(command, &block)
|
5436
5525
|
end
|
5437
5526
|
|
5438
|
-
#
|
5439
|
-
#
|
5527
|
+
# Returns the specified GlobalForwardingRule resource. Gets a list of available
|
5528
|
+
# forwarding rules by making a list() request.
|
5440
5529
|
# @param [String] project
|
5441
5530
|
# Project ID for this request.
|
5442
|
-
# @param [String]
|
5443
|
-
#
|
5444
|
-
# Compute resources support two types of filter expressions: expressions that
|
5445
|
-
# support regular expressions and expressions that follow API improvement
|
5446
|
-
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
5447
|
-
# field name, an operator, and the value that you want to use for filtering. The
|
5448
|
-
# value must be a string, a number, or a boolean. The operator must be either `=`
|
5449
|
-
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
5450
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
5451
|
-
# specifying `name != example-instance`. The `:` operator can be used with
|
5452
|
-
# string fields to match substrings. For non-string fields it is equivalent to
|
5453
|
-
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
5454
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
5455
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
5456
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
5457
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
5458
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
5459
|
-
# provide each separate expression within parentheses. For example: ``` (
|
5460
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
5461
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
5462
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
5463
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
5464
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
5465
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
5466
|
-
# expression with or without quotes or against multiple parenthesized
|
5467
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
5468
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
5469
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
5470
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
5471
|
-
# match the entire field. For example, to filter for instances that do not end
|
5472
|
-
# with name "instance", you would use `name ne .*instance`.
|
5473
|
-
# @param [Fixnum] max_results
|
5474
|
-
# The maximum number of results per page that should be returned. If the number
|
5475
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5476
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
5477
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5478
|
-
# @param [String] order_by
|
5479
|
-
# Sorts list results by a certain order. By default, results are returned in
|
5480
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
5481
|
-
# descending order based on the creation timestamp using `orderBy="
|
5482
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
5483
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
5484
|
-
# resources like operations so that the newest operation is returned first.
|
5485
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5486
|
-
# @param [String] page_token
|
5487
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5488
|
-
# by a previous list request to get the next page of results.
|
5489
|
-
# @param [Boolean] return_partial_success
|
5490
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
5491
|
-
# failure. The default value is false.
|
5531
|
+
# @param [String] forwarding_rule
|
5532
|
+
# Name of the ForwardingRule resource to return.
|
5492
5533
|
# @param [String] fields
|
5493
5534
|
# Selector specifying which fields to include in a partial response.
|
5494
5535
|
# @param [String] quota_user
|
@@ -5500,37 +5541,170 @@ module Google
|
|
5500
5541
|
# Request-specific options
|
5501
5542
|
#
|
5502
5543
|
# @yield [result, err] Result & error if block supplied
|
5503
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
5544
|
+
# @yieldparam result [Google::Apis::ComputeV1::ForwardingRule] parsed result object
|
5504
5545
|
# @yieldparam err [StandardError] error object if request failed
|
5505
5546
|
#
|
5506
|
-
# @return [Google::Apis::ComputeV1::
|
5547
|
+
# @return [Google::Apis::ComputeV1::ForwardingRule]
|
5507
5548
|
#
|
5508
5549
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5509
5550
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5510
5551
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5511
|
-
def
|
5512
|
-
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules', options)
|
5513
|
-
command.response_representation = Google::Apis::ComputeV1::
|
5514
|
-
command.response_class = Google::Apis::ComputeV1::
|
5552
|
+
def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5553
|
+
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
5554
|
+
command.response_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
|
5555
|
+
command.response_class = Google::Apis::ComputeV1::ForwardingRule
|
5515
5556
|
command.params['project'] = project unless project.nil?
|
5516
|
-
command.
|
5517
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
5518
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
5519
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5520
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5557
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
5521
5558
|
command.query['fields'] = fields unless fields.nil?
|
5522
5559
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5523
5560
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5524
5561
|
execute_or_queue_command(command, &block)
|
5525
5562
|
end
|
5526
5563
|
|
5527
|
-
#
|
5528
|
-
#
|
5529
|
-
# processing rules. Currently, you can only patch the network_tier field.
|
5564
|
+
# Creates a GlobalForwardingRule resource in the specified project using the
|
5565
|
+
# data included in the request.
|
5530
5566
|
# @param [String] project
|
5531
5567
|
# Project ID for this request.
|
5532
|
-
# @param [
|
5533
|
-
#
|
5568
|
+
# @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
|
5569
|
+
# @param [String] request_id
|
5570
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5571
|
+
# that if you must retry your request, the server will know to ignore the
|
5572
|
+
# request if it has already been completed. For example, consider a situation
|
5573
|
+
# where you make an initial request and the request times out. If you make the
|
5574
|
+
# request again with the same request ID, the server can check if original
|
5575
|
+
# operation with the same request ID was received, and if so, will ignore the
|
5576
|
+
# second request. This prevents clients from accidentally creating duplicate
|
5577
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
5578
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
5579
|
+
# @param [String] fields
|
5580
|
+
# Selector specifying which fields to include in a partial response.
|
5581
|
+
# @param [String] quota_user
|
5582
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5583
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5584
|
+
# @param [String] user_ip
|
5585
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5586
|
+
# @param [Google::Apis::RequestOptions] options
|
5587
|
+
# Request-specific options
|
5588
|
+
#
|
5589
|
+
# @yield [result, err] Result & error if block supplied
|
5590
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
5591
|
+
# @yieldparam err [StandardError] error object if request failed
|
5592
|
+
#
|
5593
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
5594
|
+
#
|
5595
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5596
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5597
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5598
|
+
def insert_global_forwarding_rule(project, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5599
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules', options)
|
5600
|
+
command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation
|
5601
|
+
command.request_object = forwarding_rule_object
|
5602
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5603
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
5604
|
+
command.params['project'] = project unless project.nil?
|
5605
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5606
|
+
command.query['fields'] = fields unless fields.nil?
|
5607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5608
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5609
|
+
execute_or_queue_command(command, &block)
|
5610
|
+
end
|
5611
|
+
|
5612
|
+
# Retrieves a list of GlobalForwardingRule resources available to the specified
|
5613
|
+
# project.
|
5614
|
+
# @param [String] project
|
5615
|
+
# Project ID for this request.
|
5616
|
+
# @param [String] filter
|
5617
|
+
# A filter expression that filters resources listed in the response. Most
|
5618
|
+
# Compute resources support two types of filter expressions: expressions that
|
5619
|
+
# support regular expressions and expressions that follow API improvement
|
5620
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
5621
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
5622
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
5623
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
5624
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
5625
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
5626
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
5627
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
5628
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
5629
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
5630
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
5631
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
5632
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
5633
|
+
# provide each separate expression within parentheses. For example: ``` (
|
5634
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
5635
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
5636
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
5637
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
5638
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
5639
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
5640
|
+
# expression with or without quotes or against multiple parenthesized
|
5641
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
5642
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
5643
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
5644
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
5645
|
+
# match the entire field. For example, to filter for instances that do not end
|
5646
|
+
# with name "instance", you would use `name ne .*instance`.
|
5647
|
+
# @param [Fixnum] max_results
|
5648
|
+
# The maximum number of results per page that should be returned. If the number
|
5649
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5650
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
5651
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5652
|
+
# @param [String] order_by
|
5653
|
+
# Sorts list results by a certain order. By default, results are returned in
|
5654
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
5655
|
+
# descending order based on the creation timestamp using `orderBy="
|
5656
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
5657
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
5658
|
+
# resources like operations so that the newest operation is returned first.
|
5659
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5660
|
+
# @param [String] page_token
|
5661
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5662
|
+
# by a previous list request to get the next page of results.
|
5663
|
+
# @param [Boolean] return_partial_success
|
5664
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
5665
|
+
# failure. The default value is false.
|
5666
|
+
# @param [String] fields
|
5667
|
+
# Selector specifying which fields to include in a partial response.
|
5668
|
+
# @param [String] quota_user
|
5669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5671
|
+
# @param [String] user_ip
|
5672
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5673
|
+
# @param [Google::Apis::RequestOptions] options
|
5674
|
+
# Request-specific options
|
5675
|
+
#
|
5676
|
+
# @yield [result, err] Result & error if block supplied
|
5677
|
+
# @yieldparam result [Google::Apis::ComputeV1::ForwardingRuleList] parsed result object
|
5678
|
+
# @yieldparam err [StandardError] error object if request failed
|
5679
|
+
#
|
5680
|
+
# @return [Google::Apis::ComputeV1::ForwardingRuleList]
|
5681
|
+
#
|
5682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5685
|
+
def list_global_forwarding_rules(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)
|
5686
|
+
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules', options)
|
5687
|
+
command.response_representation = Google::Apis::ComputeV1::ForwardingRuleList::Representation
|
5688
|
+
command.response_class = Google::Apis::ComputeV1::ForwardingRuleList
|
5689
|
+
command.params['project'] = project unless project.nil?
|
5690
|
+
command.query['filter'] = filter unless filter.nil?
|
5691
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
5692
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5693
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5694
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5695
|
+
command.query['fields'] = fields unless fields.nil?
|
5696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5697
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5698
|
+
execute_or_queue_command(command, &block)
|
5699
|
+
end
|
5700
|
+
|
5701
|
+
# Updates the specified forwarding rule with the data included in the request.
|
5702
|
+
# This method supports PATCH semantics and uses the JSON merge patch format and
|
5703
|
+
# processing rules. Currently, you can only patch the network_tier field.
|
5704
|
+
# @param [String] project
|
5705
|
+
# Project ID for this request.
|
5706
|
+
# @param [String] forwarding_rule
|
5707
|
+
# Name of the ForwardingRule resource to patch.
|
5534
5708
|
# @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
|
5535
5709
|
# @param [String] request_id
|
5536
5710
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -13560,6 +13734,60 @@ module Google
|
|
13560
13734
|
execute_or_queue_command(command, &block)
|
13561
13735
|
end
|
13562
13736
|
|
13737
|
+
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
|
13738
|
+
# the Labeling Resources documentation.
|
13739
|
+
# @param [String] project
|
13740
|
+
# Project ID for this request.
|
13741
|
+
# @param [String] region
|
13742
|
+
# The region for this request.
|
13743
|
+
# @param [String] resource
|
13744
|
+
# Name or id of the resource for this request.
|
13745
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
13746
|
+
# @param [String] request_id
|
13747
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13748
|
+
# that if you must retry your request, the server will know to ignore the
|
13749
|
+
# request if it has already been completed. For example, consider a situation
|
13750
|
+
# where you make an initial request and the request times out. If you make the
|
13751
|
+
# request again with the same request ID, the server can check if original
|
13752
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13753
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13754
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13755
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13756
|
+
# @param [String] fields
|
13757
|
+
# Selector specifying which fields to include in a partial response.
|
13758
|
+
# @param [String] quota_user
|
13759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13761
|
+
# @param [String] user_ip
|
13762
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13763
|
+
# @param [Google::Apis::RequestOptions] options
|
13764
|
+
# Request-specific options
|
13765
|
+
#
|
13766
|
+
# @yield [result, err] Result & error if block supplied
|
13767
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
13768
|
+
# @yieldparam err [StandardError] error object if request failed
|
13769
|
+
#
|
13770
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
13771
|
+
#
|
13772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13775
|
+
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)
|
13776
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
|
13777
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
13778
|
+
command.request_object = region_set_labels_request_object
|
13779
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13780
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
13781
|
+
command.params['project'] = project unless project.nil?
|
13782
|
+
command.params['region'] = region unless region.nil?
|
13783
|
+
command.params['resource'] = resource unless resource.nil?
|
13784
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13785
|
+
command.query['fields'] = fields unless fields.nil?
|
13786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13787
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13788
|
+
execute_or_queue_command(command, &block)
|
13789
|
+
end
|
13790
|
+
|
13563
13791
|
# Returns the details for the specified interconnect location. Gets a list of
|
13564
13792
|
# available interconnect locations by making a list() request.
|
13565
13793
|
# @param [String] project
|
@@ -13994,6 +14222,46 @@ module Google
|
|
13994
14222
|
execute_or_queue_command(command, &block)
|
13995
14223
|
end
|
13996
14224
|
|
14225
|
+
# Sets the labels on an Interconnect. To learn more about labels, read the
|
14226
|
+
# Labeling Resources documentation.
|
14227
|
+
# @param [String] project
|
14228
|
+
# Project ID for this request.
|
14229
|
+
# @param [String] resource
|
14230
|
+
# Name or id of the resource for this request.
|
14231
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
14232
|
+
# @param [String] fields
|
14233
|
+
# Selector specifying which fields to include in a partial response.
|
14234
|
+
# @param [String] quota_user
|
14235
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14236
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14237
|
+
# @param [String] user_ip
|
14238
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14239
|
+
# @param [Google::Apis::RequestOptions] options
|
14240
|
+
# Request-specific options
|
14241
|
+
#
|
14242
|
+
# @yield [result, err] Result & error if block supplied
|
14243
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14244
|
+
# @yieldparam err [StandardError] error object if request failed
|
14245
|
+
#
|
14246
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14247
|
+
#
|
14248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14251
|
+
def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14252
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options)
|
14253
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
14254
|
+
command.request_object = global_set_labels_request_object
|
14255
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14256
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14257
|
+
command.params['project'] = project unless project.nil?
|
14258
|
+
command.params['resource'] = resource unless resource.nil?
|
14259
|
+
command.query['fields'] = fields unless fields.nil?
|
14260
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14261
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14262
|
+
execute_or_queue_command(command, &block)
|
14263
|
+
end
|
14264
|
+
|
13997
14265
|
# Return a specified license code. License codes are mirrored across all
|
13998
14266
|
# projects that have permissions to read the License Code. *Caution* This
|
13999
14267
|
# resource is intended for use only by third-party partners who are creating
|
@@ -20956,6 +21224,49 @@ module Google
|
|
20956
21224
|
execute_or_queue_command(command, &block)
|
20957
21225
|
end
|
20958
21226
|
|
21227
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
21228
|
+
# or resource exists.
|
21229
|
+
# @param [String] project
|
21230
|
+
# Project ID for this request.
|
21231
|
+
# @param [String] region
|
21232
|
+
# The name of the region for this request.
|
21233
|
+
# @param [String] resource
|
21234
|
+
# Name or id of the resource for this request.
|
21235
|
+
# @param [Fixnum] options_requested_policy_version
|
21236
|
+
# Requested IAM Policy version.
|
21237
|
+
# @param [String] fields
|
21238
|
+
# Selector specifying which fields to include in a partial response.
|
21239
|
+
# @param [String] quota_user
|
21240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21242
|
+
# @param [String] user_ip
|
21243
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21244
|
+
# @param [Google::Apis::RequestOptions] options
|
21245
|
+
# Request-specific options
|
21246
|
+
#
|
21247
|
+
# @yield [result, err] Result & error if block supplied
|
21248
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
21249
|
+
# @yieldparam err [StandardError] error object if request failed
|
21250
|
+
#
|
21251
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
21252
|
+
#
|
21253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21256
|
+
def get_region_backend_service_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21257
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy', options)
|
21258
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
21259
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
21260
|
+
command.params['project'] = project unless project.nil?
|
21261
|
+
command.params['region'] = region unless region.nil?
|
21262
|
+
command.params['resource'] = resource unless resource.nil?
|
21263
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
21264
|
+
command.query['fields'] = fields unless fields.nil?
|
21265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21266
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21267
|
+
execute_or_queue_command(command, &block)
|
21268
|
+
end
|
21269
|
+
|
20959
21270
|
# Creates a regional BackendService resource in the specified project using the
|
20960
21271
|
# data included in the request. For more information, see Backend services
|
20961
21272
|
# overview.
|
@@ -21156,6 +21467,49 @@ module Google
|
|
21156
21467
|
execute_or_queue_command(command, &block)
|
21157
21468
|
end
|
21158
21469
|
|
21470
|
+
# Sets the access control policy on the specified resource. Replaces any
|
21471
|
+
# existing policy.
|
21472
|
+
# @param [String] project
|
21473
|
+
# Project ID for this request.
|
21474
|
+
# @param [String] region
|
21475
|
+
# The name of the region for this request.
|
21476
|
+
# @param [String] resource
|
21477
|
+
# Name or id of the resource for this request.
|
21478
|
+
# @param [Google::Apis::ComputeV1::RegionSetPolicyRequest] region_set_policy_request_object
|
21479
|
+
# @param [String] fields
|
21480
|
+
# Selector specifying which fields to include in a partial response.
|
21481
|
+
# @param [String] quota_user
|
21482
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21483
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21484
|
+
# @param [String] user_ip
|
21485
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21486
|
+
# @param [Google::Apis::RequestOptions] options
|
21487
|
+
# Request-specific options
|
21488
|
+
#
|
21489
|
+
# @yield [result, err] Result & error if block supplied
|
21490
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
21491
|
+
# @yieldparam err [StandardError] error object if request failed
|
21492
|
+
#
|
21493
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
21494
|
+
#
|
21495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21498
|
+
def set_region_backend_service_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21499
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy', options)
|
21500
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation
|
21501
|
+
command.request_object = region_set_policy_request_object
|
21502
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
21503
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
21504
|
+
command.params['project'] = project unless project.nil?
|
21505
|
+
command.params['region'] = region unless region.nil?
|
21506
|
+
command.params['resource'] = resource unless resource.nil?
|
21507
|
+
command.query['fields'] = fields unless fields.nil?
|
21508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21509
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21510
|
+
execute_or_queue_command(command, &block)
|
21511
|
+
end
|
21512
|
+
|
21159
21513
|
# Updates the specified regional BackendService resource with the data included
|
21160
21514
|
# in the request. For more information, see Backend services overview .
|
21161
21515
|
# @param [String] project
|
@@ -27616,6 +27970,238 @@ module Google
|
|
27616
27970
|
execute_or_queue_command(command, &block)
|
27617
27971
|
end
|
27618
27972
|
|
27973
|
+
# Deletes the specified TargetTcpProxy resource.
|
27974
|
+
# @param [String] project
|
27975
|
+
# Project ID for this request.
|
27976
|
+
# @param [String] region
|
27977
|
+
# Name of the region scoping this request.
|
27978
|
+
# @param [String] target_tcp_proxy
|
27979
|
+
# Name of the TargetTcpProxy resource to delete.
|
27980
|
+
# @param [String] request_id
|
27981
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27982
|
+
# that if you must retry your request, the server will know to ignore the
|
27983
|
+
# request if it has already been completed. For example, consider a situation
|
27984
|
+
# where you make an initial request and the request times out. If you make the
|
27985
|
+
# request again with the same request ID, the server can check if original
|
27986
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27987
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27988
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27989
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27990
|
+
# @param [String] fields
|
27991
|
+
# Selector specifying which fields to include in a partial response.
|
27992
|
+
# @param [String] quota_user
|
27993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27995
|
+
# @param [String] user_ip
|
27996
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27997
|
+
# @param [Google::Apis::RequestOptions] options
|
27998
|
+
# Request-specific options
|
27999
|
+
#
|
28000
|
+
# @yield [result, err] Result & error if block supplied
|
28001
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
28002
|
+
# @yieldparam err [StandardError] error object if request failed
|
28003
|
+
#
|
28004
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
28005
|
+
#
|
28006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28009
|
+
def delete_region_target_tcp_proxy(project, region, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28010
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}', options)
|
28011
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
28012
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
28013
|
+
command.params['project'] = project unless project.nil?
|
28014
|
+
command.params['region'] = region unless region.nil?
|
28015
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
28016
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28017
|
+
command.query['fields'] = fields unless fields.nil?
|
28018
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28019
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28020
|
+
execute_or_queue_command(command, &block)
|
28021
|
+
end
|
28022
|
+
|
28023
|
+
# Returns the specified TargetTcpProxy resource.
|
28024
|
+
# @param [String] project
|
28025
|
+
# Project ID for this request.
|
28026
|
+
# @param [String] region
|
28027
|
+
# Name of the region scoping this request.
|
28028
|
+
# @param [String] target_tcp_proxy
|
28029
|
+
# Name of the TargetTcpProxy resource to return.
|
28030
|
+
# @param [String] fields
|
28031
|
+
# Selector specifying which fields to include in a partial response.
|
28032
|
+
# @param [String] quota_user
|
28033
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28034
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28035
|
+
# @param [String] user_ip
|
28036
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28037
|
+
# @param [Google::Apis::RequestOptions] options
|
28038
|
+
# Request-specific options
|
28039
|
+
#
|
28040
|
+
# @yield [result, err] Result & error if block supplied
|
28041
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetTcpProxy] parsed result object
|
28042
|
+
# @yieldparam err [StandardError] error object if request failed
|
28043
|
+
#
|
28044
|
+
# @return [Google::Apis::ComputeV1::TargetTcpProxy]
|
28045
|
+
#
|
28046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28049
|
+
def get_region_target_tcp_proxy(project, region, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28050
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}', options)
|
28051
|
+
command.response_representation = Google::Apis::ComputeV1::TargetTcpProxy::Representation
|
28052
|
+
command.response_class = Google::Apis::ComputeV1::TargetTcpProxy
|
28053
|
+
command.params['project'] = project unless project.nil?
|
28054
|
+
command.params['region'] = region unless region.nil?
|
28055
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
28056
|
+
command.query['fields'] = fields unless fields.nil?
|
28057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28058
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28059
|
+
execute_or_queue_command(command, &block)
|
28060
|
+
end
|
28061
|
+
|
28062
|
+
# Creates a TargetTcpProxy resource in the specified project and region using
|
28063
|
+
# the data included in the request.
|
28064
|
+
# @param [String] project
|
28065
|
+
# Project ID for this request.
|
28066
|
+
# @param [String] region
|
28067
|
+
# Name of the region scoping this request.
|
28068
|
+
# @param [Google::Apis::ComputeV1::TargetTcpProxy] target_tcp_proxy_object
|
28069
|
+
# @param [String] request_id
|
28070
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28071
|
+
# that if you must retry your request, the server will know to ignore the
|
28072
|
+
# request if it has already been completed. For example, consider a situation
|
28073
|
+
# where you make an initial request and the request times out. If you make the
|
28074
|
+
# request again with the same request ID, the server can check if original
|
28075
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28076
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28077
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28078
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28079
|
+
# @param [String] fields
|
28080
|
+
# Selector specifying which fields to include in a partial response.
|
28081
|
+
# @param [String] quota_user
|
28082
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28083
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28084
|
+
# @param [String] user_ip
|
28085
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28086
|
+
# @param [Google::Apis::RequestOptions] options
|
28087
|
+
# Request-specific options
|
28088
|
+
#
|
28089
|
+
# @yield [result, err] Result & error if block supplied
|
28090
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
28091
|
+
# @yieldparam err [StandardError] error object if request failed
|
28092
|
+
#
|
28093
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
28094
|
+
#
|
28095
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28096
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28097
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28098
|
+
def insert_region_target_tcp_proxy(project, region, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28099
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetTcpProxies', options)
|
28100
|
+
command.request_representation = Google::Apis::ComputeV1::TargetTcpProxy::Representation
|
28101
|
+
command.request_object = target_tcp_proxy_object
|
28102
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
28103
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
28104
|
+
command.params['project'] = project unless project.nil?
|
28105
|
+
command.params['region'] = region unless region.nil?
|
28106
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28107
|
+
command.query['fields'] = fields unless fields.nil?
|
28108
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28109
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28110
|
+
execute_or_queue_command(command, &block)
|
28111
|
+
end
|
28112
|
+
|
28113
|
+
# Retrieves a list of TargetTcpProxy resources available to the specified
|
28114
|
+
# project in a given region.
|
28115
|
+
# @param [String] project
|
28116
|
+
# Project ID for this request.
|
28117
|
+
# @param [String] region
|
28118
|
+
# Name of the region scoping this request.
|
28119
|
+
# @param [String] filter
|
28120
|
+
# A filter expression that filters resources listed in the response. Most
|
28121
|
+
# Compute resources support two types of filter expressions: expressions that
|
28122
|
+
# support regular expressions and expressions that follow API improvement
|
28123
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
28124
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
28125
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
28126
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
28127
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
28128
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
28129
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
28130
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
28131
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
28132
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
28133
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
28134
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
28135
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
28136
|
+
# provide each separate expression within parentheses. For example: ``` (
|
28137
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
28138
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
28139
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
28140
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
28141
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
28142
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
28143
|
+
# expression with or without quotes or against multiple parenthesized
|
28144
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
28145
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
28146
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
28147
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
28148
|
+
# match the entire field. For example, to filter for instances that do not end
|
28149
|
+
# with name "instance", you would use `name ne .*instance`.
|
28150
|
+
# @param [Fixnum] max_results
|
28151
|
+
# The maximum number of results per page that should be returned. If the number
|
28152
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28153
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28154
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28155
|
+
# @param [String] order_by
|
28156
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28157
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
28158
|
+
# descending order based on the creation timestamp using `orderBy="
|
28159
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
28160
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
28161
|
+
# resources like operations so that the newest operation is returned first.
|
28162
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28163
|
+
# @param [String] page_token
|
28164
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28165
|
+
# by a previous list request to get the next page of results.
|
28166
|
+
# @param [Boolean] return_partial_success
|
28167
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28168
|
+
# failure. The default value is false.
|
28169
|
+
# @param [String] fields
|
28170
|
+
# Selector specifying which fields to include in a partial response.
|
28171
|
+
# @param [String] quota_user
|
28172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28174
|
+
# @param [String] user_ip
|
28175
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28176
|
+
# @param [Google::Apis::RequestOptions] options
|
28177
|
+
# Request-specific options
|
28178
|
+
#
|
28179
|
+
# @yield [result, err] Result & error if block supplied
|
28180
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetTcpProxyList] parsed result object
|
28181
|
+
# @yieldparam err [StandardError] error object if request failed
|
28182
|
+
#
|
28183
|
+
# @return [Google::Apis::ComputeV1::TargetTcpProxyList]
|
28184
|
+
#
|
28185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28188
|
+
def list_region_target_tcp_proxies(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)
|
28189
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetTcpProxies', options)
|
28190
|
+
command.response_representation = Google::Apis::ComputeV1::TargetTcpProxyList::Representation
|
28191
|
+
command.response_class = Google::Apis::ComputeV1::TargetTcpProxyList
|
28192
|
+
command.params['project'] = project unless project.nil?
|
28193
|
+
command.params['region'] = region unless region.nil?
|
28194
|
+
command.query['filter'] = filter unless filter.nil?
|
28195
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
28196
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
28197
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
28198
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28199
|
+
command.query['fields'] = fields unless fields.nil?
|
28200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28201
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28202
|
+
execute_or_queue_command(command, &block)
|
28203
|
+
end
|
28204
|
+
|
27619
28205
|
# Deletes the specified UrlMap resource.
|
27620
28206
|
# @param [String] project
|
27621
28207
|
# Project ID for this request.
|
@@ -30590,6 +31176,46 @@ module Google
|
|
30590
31176
|
execute_or_queue_command(command, &block)
|
30591
31177
|
end
|
30592
31178
|
|
31179
|
+
# Sets the labels on a security policy. To learn more about labels, read the
|
31180
|
+
# Labeling Resources documentation.
|
31181
|
+
# @param [String] project
|
31182
|
+
# Project ID for this request.
|
31183
|
+
# @param [String] resource
|
31184
|
+
# Name or id of the resource for this request.
|
31185
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
31186
|
+
# @param [String] fields
|
31187
|
+
# Selector specifying which fields to include in a partial response.
|
31188
|
+
# @param [String] quota_user
|
31189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31191
|
+
# @param [String] user_ip
|
31192
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31193
|
+
# @param [Google::Apis::RequestOptions] options
|
31194
|
+
# Request-specific options
|
31195
|
+
#
|
31196
|
+
# @yield [result, err] Result & error if block supplied
|
31197
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
31198
|
+
# @yieldparam err [StandardError] error object if request failed
|
31199
|
+
#
|
31200
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
31201
|
+
#
|
31202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31205
|
+
def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31206
|
+
command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{resource}/setLabels', options)
|
31207
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
31208
|
+
command.request_object = global_set_labels_request_object
|
31209
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
31210
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
31211
|
+
command.params['project'] = project unless project.nil?
|
31212
|
+
command.params['resource'] = resource unless resource.nil?
|
31213
|
+
command.query['fields'] = fields unless fields.nil?
|
31214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31215
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31216
|
+
execute_or_queue_command(command, &block)
|
31217
|
+
end
|
31218
|
+
|
30593
31219
|
# Retrieves the list of all ServiceAttachment resources, regional and global,
|
30594
31220
|
# available to the specified project.
|
30595
31221
|
# @param [String] project
|
@@ -31806,6 +32432,103 @@ module Google
|
|
31806
32432
|
execute_or_queue_command(command, &block)
|
31807
32433
|
end
|
31808
32434
|
|
32435
|
+
# Retrieves the list of all SslPolicy resources, regional and global, available
|
32436
|
+
# to the specified project.
|
32437
|
+
# @param [String] project
|
32438
|
+
# Name of the project scoping this request.
|
32439
|
+
# @param [String] filter
|
32440
|
+
# A filter expression that filters resources listed in the response. Most
|
32441
|
+
# Compute resources support two types of filter expressions: expressions that
|
32442
|
+
# support regular expressions and expressions that follow API improvement
|
32443
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
32444
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
32445
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
32446
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
32447
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
32448
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
32449
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
32450
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
32451
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
32452
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
32453
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
32454
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
32455
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
32456
|
+
# provide each separate expression within parentheses. For example: ``` (
|
32457
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
32458
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
32459
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
32460
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
32461
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
32462
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
32463
|
+
# expression with or without quotes or against multiple parenthesized
|
32464
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
32465
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
32466
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
32467
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
32468
|
+
# match the entire field. For example, to filter for instances that do not end
|
32469
|
+
# with name "instance", you would use `name ne .*instance`.
|
32470
|
+
# @param [Boolean] include_all_scopes
|
32471
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
32472
|
+
# global) should be included in the response. For new resource types added after
|
32473
|
+
# this field, the flag has no effect as new resource types will always include
|
32474
|
+
# every visible scope for each scope type in response. For resource types which
|
32475
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
32476
|
+
# types where the resource type is expected to be found will be included.
|
32477
|
+
# @param [Fixnum] max_results
|
32478
|
+
# The maximum number of results per page that should be returned. If the number
|
32479
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
32480
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
32481
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
32482
|
+
# @param [String] order_by
|
32483
|
+
# Sorts list results by a certain order. By default, results are returned in
|
32484
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
32485
|
+
# descending order based on the creation timestamp using `orderBy="
|
32486
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
32487
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
32488
|
+
# resources like operations so that the newest operation is returned first.
|
32489
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
32490
|
+
# @param [String] page_token
|
32491
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
32492
|
+
# by a previous list request to get the next page of results.
|
32493
|
+
# @param [Boolean] return_partial_success
|
32494
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
32495
|
+
# failure. The default value is false.
|
32496
|
+
# @param [String] fields
|
32497
|
+
# Selector specifying which fields to include in a partial response.
|
32498
|
+
# @param [String] quota_user
|
32499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32501
|
+
# @param [String] user_ip
|
32502
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32503
|
+
# @param [Google::Apis::RequestOptions] options
|
32504
|
+
# Request-specific options
|
32505
|
+
#
|
32506
|
+
# @yield [result, err] Result & error if block supplied
|
32507
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslPoliciesAggregatedList] parsed result object
|
32508
|
+
# @yieldparam err [StandardError] error object if request failed
|
32509
|
+
#
|
32510
|
+
# @return [Google::Apis::ComputeV1::SslPoliciesAggregatedList]
|
32511
|
+
#
|
32512
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32513
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32514
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32515
|
+
def aggregated_ssl_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32516
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
|
32517
|
+
command.response_representation = Google::Apis::ComputeV1::SslPoliciesAggregatedList::Representation
|
32518
|
+
command.response_class = Google::Apis::ComputeV1::SslPoliciesAggregatedList
|
32519
|
+
command.params['project'] = project unless project.nil?
|
32520
|
+
command.query['filter'] = filter unless filter.nil?
|
32521
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
32522
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
32523
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
32524
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
32525
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32526
|
+
command.query['fields'] = fields unless fields.nil?
|
32527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32528
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32529
|
+
execute_or_queue_command(command, &block)
|
32530
|
+
end
|
32531
|
+
|
31809
32532
|
# Deletes the specified SSL policy. The SSL policy resource can be deleted only
|
31810
32533
|
# if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
|
31811
32534
|
# @param [String] project
|
@@ -36037,21 +36760,254 @@ module Google
|
|
36037
36760
|
# Request-specific options
|
36038
36761
|
#
|
36039
36762
|
# @yield [result, err] Result & error if block supplied
|
36040
|
-
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList] parsed result object
|
36763
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList] parsed result object
|
36764
|
+
# @yieldparam err [StandardError] error object if request failed
|
36765
|
+
#
|
36766
|
+
# @return [Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList]
|
36767
|
+
#
|
36768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36771
|
+
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)
|
36772
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options)
|
36773
|
+
command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList::Representation
|
36774
|
+
command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList
|
36775
|
+
command.params['project'] = project unless project.nil?
|
36776
|
+
command.query['filter'] = filter unless filter.nil?
|
36777
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
36778
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
36779
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
36780
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
36781
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
36782
|
+
command.query['fields'] = fields unless fields.nil?
|
36783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36784
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36785
|
+
execute_or_queue_command(command, &block)
|
36786
|
+
end
|
36787
|
+
|
36788
|
+
# Deletes the specified target VPN gateway.
|
36789
|
+
# @param [String] project
|
36790
|
+
# Project ID for this request.
|
36791
|
+
# @param [String] region
|
36792
|
+
# Name of the region for this request.
|
36793
|
+
# @param [String] target_vpn_gateway
|
36794
|
+
# Name of the target VPN gateway to delete.
|
36795
|
+
# @param [String] request_id
|
36796
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36797
|
+
# that if you must retry your request, the server will know to ignore the
|
36798
|
+
# request if it has already been completed. For example, consider a situation
|
36799
|
+
# where you make an initial request and the request times out. If you make the
|
36800
|
+
# request again with the same request ID, the server can check if original
|
36801
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36802
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36803
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36804
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36805
|
+
# @param [String] fields
|
36806
|
+
# Selector specifying which fields to include in a partial response.
|
36807
|
+
# @param [String] quota_user
|
36808
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36809
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36810
|
+
# @param [String] user_ip
|
36811
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36812
|
+
# @param [Google::Apis::RequestOptions] options
|
36813
|
+
# Request-specific options
|
36814
|
+
#
|
36815
|
+
# @yield [result, err] Result & error if block supplied
|
36816
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36817
|
+
# @yieldparam err [StandardError] error object if request failed
|
36818
|
+
#
|
36819
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
36820
|
+
#
|
36821
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36822
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36823
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36824
|
+
def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36825
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
|
36826
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36827
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
36828
|
+
command.params['project'] = project unless project.nil?
|
36829
|
+
command.params['region'] = region unless region.nil?
|
36830
|
+
command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
|
36831
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36832
|
+
command.query['fields'] = fields unless fields.nil?
|
36833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36834
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36835
|
+
execute_or_queue_command(command, &block)
|
36836
|
+
end
|
36837
|
+
|
36838
|
+
# Returns the specified target VPN gateway. Gets a list of available target VPN
|
36839
|
+
# gateways by making a list() request.
|
36840
|
+
# @param [String] project
|
36841
|
+
# Project ID for this request.
|
36842
|
+
# @param [String] region
|
36843
|
+
# Name of the region for this request.
|
36844
|
+
# @param [String] target_vpn_gateway
|
36845
|
+
# Name of the target VPN gateway to return.
|
36846
|
+
# @param [String] fields
|
36847
|
+
# Selector specifying which fields to include in a partial response.
|
36848
|
+
# @param [String] quota_user
|
36849
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36850
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36851
|
+
# @param [String] user_ip
|
36852
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36853
|
+
# @param [Google::Apis::RequestOptions] options
|
36854
|
+
# Request-specific options
|
36855
|
+
#
|
36856
|
+
# @yield [result, err] Result & error if block supplied
|
36857
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGateway] parsed result object
|
36858
|
+
# @yieldparam err [StandardError] error object if request failed
|
36859
|
+
#
|
36860
|
+
# @return [Google::Apis::ComputeV1::TargetVpnGateway]
|
36861
|
+
#
|
36862
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36863
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36864
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36865
|
+
def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36866
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
|
36867
|
+
command.response_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
|
36868
|
+
command.response_class = Google::Apis::ComputeV1::TargetVpnGateway
|
36869
|
+
command.params['project'] = project unless project.nil?
|
36870
|
+
command.params['region'] = region unless region.nil?
|
36871
|
+
command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
|
36872
|
+
command.query['fields'] = fields unless fields.nil?
|
36873
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36874
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36875
|
+
execute_or_queue_command(command, &block)
|
36876
|
+
end
|
36877
|
+
|
36878
|
+
# Creates a target VPN gateway in the specified project and region using the
|
36879
|
+
# data included in the request.
|
36880
|
+
# @param [String] project
|
36881
|
+
# Project ID for this request.
|
36882
|
+
# @param [String] region
|
36883
|
+
# Name of the region for this request.
|
36884
|
+
# @param [Google::Apis::ComputeV1::TargetVpnGateway] target_vpn_gateway_object
|
36885
|
+
# @param [String] request_id
|
36886
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36887
|
+
# that if you must retry your request, the server will know to ignore the
|
36888
|
+
# request if it has already been completed. For example, consider a situation
|
36889
|
+
# where you make an initial request and the request times out. If you make the
|
36890
|
+
# request again with the same request ID, the server can check if original
|
36891
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36892
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36893
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36894
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36895
|
+
# @param [String] fields
|
36896
|
+
# Selector specifying which fields to include in a partial response.
|
36897
|
+
# @param [String] quota_user
|
36898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36900
|
+
# @param [String] user_ip
|
36901
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36902
|
+
# @param [Google::Apis::RequestOptions] options
|
36903
|
+
# Request-specific options
|
36904
|
+
#
|
36905
|
+
# @yield [result, err] Result & error if block supplied
|
36906
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36907
|
+
# @yieldparam err [StandardError] error object if request failed
|
36908
|
+
#
|
36909
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
36910
|
+
#
|
36911
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36912
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36913
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36914
|
+
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)
|
36915
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
|
36916
|
+
command.request_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
|
36917
|
+
command.request_object = target_vpn_gateway_object
|
36918
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36919
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
36920
|
+
command.params['project'] = project unless project.nil?
|
36921
|
+
command.params['region'] = region unless region.nil?
|
36922
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36923
|
+
command.query['fields'] = fields unless fields.nil?
|
36924
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36925
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36926
|
+
execute_or_queue_command(command, &block)
|
36927
|
+
end
|
36928
|
+
|
36929
|
+
# Retrieves a list of target VPN gateways available to the specified project and
|
36930
|
+
# region.
|
36931
|
+
# @param [String] project
|
36932
|
+
# Project ID for this request.
|
36933
|
+
# @param [String] region
|
36934
|
+
# Name of the region for this request.
|
36935
|
+
# @param [String] filter
|
36936
|
+
# A filter expression that filters resources listed in the response. Most
|
36937
|
+
# Compute resources support two types of filter expressions: expressions that
|
36938
|
+
# support regular expressions and expressions that follow API improvement
|
36939
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
36940
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
36941
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
36942
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
36943
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
36944
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
36945
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
36946
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
36947
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
36948
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
36949
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
36950
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
36951
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
36952
|
+
# provide each separate expression within parentheses. For example: ``` (
|
36953
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
36954
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
36955
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
36956
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
36957
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
36958
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
36959
|
+
# expression with or without quotes or against multiple parenthesized
|
36960
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
36961
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
36962
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
36963
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
36964
|
+
# match the entire field. For example, to filter for instances that do not end
|
36965
|
+
# with name "instance", you would use `name ne .*instance`.
|
36966
|
+
# @param [Fixnum] max_results
|
36967
|
+
# The maximum number of results per page that should be returned. If the number
|
36968
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
36969
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
36970
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
36971
|
+
# @param [String] order_by
|
36972
|
+
# Sorts list results by a certain order. By default, results are returned in
|
36973
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
36974
|
+
# descending order based on the creation timestamp using `orderBy="
|
36975
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
36976
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
36977
|
+
# resources like operations so that the newest operation is returned first.
|
36978
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
36979
|
+
# @param [String] page_token
|
36980
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
36981
|
+
# by a previous list request to get the next page of results.
|
36982
|
+
# @param [Boolean] return_partial_success
|
36983
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
36984
|
+
# failure. The default value is false.
|
36985
|
+
# @param [String] fields
|
36986
|
+
# Selector specifying which fields to include in a partial response.
|
36987
|
+
# @param [String] quota_user
|
36988
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36989
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36990
|
+
# @param [String] user_ip
|
36991
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36992
|
+
# @param [Google::Apis::RequestOptions] options
|
36993
|
+
# Request-specific options
|
36994
|
+
#
|
36995
|
+
# @yield [result, err] Result & error if block supplied
|
36996
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayList] parsed result object
|
36041
36997
|
# @yieldparam err [StandardError] error object if request failed
|
36042
36998
|
#
|
36043
|
-
# @return [Google::Apis::ComputeV1::
|
36999
|
+
# @return [Google::Apis::ComputeV1::TargetVpnGatewayList]
|
36044
37000
|
#
|
36045
37001
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36046
37002
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36047
37003
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36048
|
-
def
|
36049
|
-
command = make_simple_command(:get, 'projects/{project}/
|
36050
|
-
command.response_representation = Google::Apis::ComputeV1::
|
36051
|
-
command.response_class = Google::Apis::ComputeV1::
|
37004
|
+
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)
|
37005
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
|
37006
|
+
command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayList::Representation
|
37007
|
+
command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayList
|
36052
37008
|
command.params['project'] = project unless project.nil?
|
37009
|
+
command.params['region'] = region unless region.nil?
|
36053
37010
|
command.query['filter'] = filter unless filter.nil?
|
36054
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
36055
37011
|
command.query['maxResults'] = max_results unless max_results.nil?
|
36056
37012
|
command.query['orderBy'] = order_by unless order_by.nil?
|
36057
37013
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -36062,103 +37018,15 @@ module Google
|
|
36062
37018
|
execute_or_queue_command(command, &block)
|
36063
37019
|
end
|
36064
37020
|
|
36065
|
-
#
|
36066
|
-
#
|
36067
|
-
# Project ID for this request.
|
36068
|
-
# @param [String] region
|
36069
|
-
# Name of the region for this request.
|
36070
|
-
# @param [String] target_vpn_gateway
|
36071
|
-
# Name of the target VPN gateway to delete.
|
36072
|
-
# @param [String] request_id
|
36073
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
36074
|
-
# that if you must retry your request, the server will know to ignore the
|
36075
|
-
# request if it has already been completed. For example, consider a situation
|
36076
|
-
# where you make an initial request and the request times out. If you make the
|
36077
|
-
# request again with the same request ID, the server can check if original
|
36078
|
-
# operation with the same request ID was received, and if so, will ignore the
|
36079
|
-
# second request. This prevents clients from accidentally creating duplicate
|
36080
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
36081
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36082
|
-
# @param [String] fields
|
36083
|
-
# Selector specifying which fields to include in a partial response.
|
36084
|
-
# @param [String] quota_user
|
36085
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
36086
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36087
|
-
# @param [String] user_ip
|
36088
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36089
|
-
# @param [Google::Apis::RequestOptions] options
|
36090
|
-
# Request-specific options
|
36091
|
-
#
|
36092
|
-
# @yield [result, err] Result & error if block supplied
|
36093
|
-
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36094
|
-
# @yieldparam err [StandardError] error object if request failed
|
36095
|
-
#
|
36096
|
-
# @return [Google::Apis::ComputeV1::Operation]
|
36097
|
-
#
|
36098
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36099
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36100
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36101
|
-
def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36102
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
|
36103
|
-
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36104
|
-
command.response_class = Google::Apis::ComputeV1::Operation
|
36105
|
-
command.params['project'] = project unless project.nil?
|
36106
|
-
command.params['region'] = region unless region.nil?
|
36107
|
-
command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
|
36108
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
36109
|
-
command.query['fields'] = fields unless fields.nil?
|
36110
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36111
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
36112
|
-
execute_or_queue_command(command, &block)
|
36113
|
-
end
|
36114
|
-
|
36115
|
-
# Returns the specified target VPN gateway. Gets a list of available target VPN
|
36116
|
-
# gateways by making a list() request.
|
36117
|
-
# @param [String] project
|
36118
|
-
# Project ID for this request.
|
36119
|
-
# @param [String] region
|
36120
|
-
# Name of the region for this request.
|
36121
|
-
# @param [String] target_vpn_gateway
|
36122
|
-
# Name of the target VPN gateway to return.
|
36123
|
-
# @param [String] fields
|
36124
|
-
# Selector specifying which fields to include in a partial response.
|
36125
|
-
# @param [String] quota_user
|
36126
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
36127
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36128
|
-
# @param [String] user_ip
|
36129
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36130
|
-
# @param [Google::Apis::RequestOptions] options
|
36131
|
-
# Request-specific options
|
36132
|
-
#
|
36133
|
-
# @yield [result, err] Result & error if block supplied
|
36134
|
-
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGateway] parsed result object
|
36135
|
-
# @yieldparam err [StandardError] error object if request failed
|
36136
|
-
#
|
36137
|
-
# @return [Google::Apis::ComputeV1::TargetVpnGateway]
|
36138
|
-
#
|
36139
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36140
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36141
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36142
|
-
def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36143
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
|
36144
|
-
command.response_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation
|
36145
|
-
command.response_class = Google::Apis::ComputeV1::TargetVpnGateway
|
36146
|
-
command.params['project'] = project unless project.nil?
|
36147
|
-
command.params['region'] = region unless region.nil?
|
36148
|
-
command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
|
36149
|
-
command.query['fields'] = fields unless fields.nil?
|
36150
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36151
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
36152
|
-
execute_or_queue_command(command, &block)
|
36153
|
-
end
|
36154
|
-
|
36155
|
-
# Creates a target VPN gateway in the specified project and region using the
|
36156
|
-
# data included in the request.
|
37021
|
+
# Sets the labels on a TargetVpnGateway. To learn more about labels, read the
|
37022
|
+
# Labeling Resources documentation.
|
36157
37023
|
# @param [String] project
|
36158
37024
|
# Project ID for this request.
|
36159
37025
|
# @param [String] region
|
36160
|
-
#
|
36161
|
-
# @param [
|
37026
|
+
# The region for this request.
|
37027
|
+
# @param [String] resource
|
37028
|
+
# Name or id of the resource for this request.
|
37029
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
36162
37030
|
# @param [String] request_id
|
36163
37031
|
# An optional request ID to identify requests. Specify a unique request ID so
|
36164
37032
|
# that if you must retry your request, the server will know to ignore the
|
@@ -36188,14 +37056,15 @@ module Google
|
|
36188
37056
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36189
37057
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36190
37058
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36191
|
-
def
|
36192
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
|
36193
|
-
command.request_representation = Google::Apis::ComputeV1::
|
36194
|
-
command.request_object =
|
37059
|
+
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)
|
37060
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
|
37061
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
37062
|
+
command.request_object = region_set_labels_request_object
|
36195
37063
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36196
37064
|
command.response_class = Google::Apis::ComputeV1::Operation
|
36197
37065
|
command.params['project'] = project unless project.nil?
|
36198
37066
|
command.params['region'] = region unless region.nil?
|
37067
|
+
command.params['resource'] = resource unless resource.nil?
|
36199
37068
|
command.query['requestId'] = request_id unless request_id.nil?
|
36200
37069
|
command.query['fields'] = fields unless fields.nil?
|
36201
37070
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -36203,98 +37072,6 @@ module Google
|
|
36203
37072
|
execute_or_queue_command(command, &block)
|
36204
37073
|
end
|
36205
37074
|
|
36206
|
-
# Retrieves a list of target VPN gateways available to the specified project and
|
36207
|
-
# region.
|
36208
|
-
# @param [String] project
|
36209
|
-
# Project ID for this request.
|
36210
|
-
# @param [String] region
|
36211
|
-
# Name of the region for this request.
|
36212
|
-
# @param [String] filter
|
36213
|
-
# A filter expression that filters resources listed in the response. Most
|
36214
|
-
# Compute resources support two types of filter expressions: expressions that
|
36215
|
-
# support regular expressions and expressions that follow API improvement
|
36216
|
-
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
36217
|
-
# field name, an operator, and the value that you want to use for filtering. The
|
36218
|
-
# value must be a string, a number, or a boolean. The operator must be either `=`
|
36219
|
-
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
36220
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
36221
|
-
# specifying `name != example-instance`. The `:` operator can be used with
|
36222
|
-
# string fields to match substrings. For non-string fields it is equivalent to
|
36223
|
-
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
36224
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
36225
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
36226
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
36227
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
36228
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
36229
|
-
# provide each separate expression within parentheses. For example: ``` (
|
36230
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
36231
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
36232
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
36233
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
36234
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
36235
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
36236
|
-
# expression with or without quotes or against multiple parenthesized
|
36237
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
36238
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
36239
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
36240
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
36241
|
-
# match the entire field. For example, to filter for instances that do not end
|
36242
|
-
# with name "instance", you would use `name ne .*instance`.
|
36243
|
-
# @param [Fixnum] max_results
|
36244
|
-
# The maximum number of results per page that should be returned. If the number
|
36245
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
36246
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
36247
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
36248
|
-
# @param [String] order_by
|
36249
|
-
# Sorts list results by a certain order. By default, results are returned in
|
36250
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
36251
|
-
# descending order based on the creation timestamp using `orderBy="
|
36252
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
36253
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
36254
|
-
# resources like operations so that the newest operation is returned first.
|
36255
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
36256
|
-
# @param [String] page_token
|
36257
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
36258
|
-
# by a previous list request to get the next page of results.
|
36259
|
-
# @param [Boolean] return_partial_success
|
36260
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
36261
|
-
# failure. The default value is false.
|
36262
|
-
# @param [String] fields
|
36263
|
-
# Selector specifying which fields to include in a partial response.
|
36264
|
-
# @param [String] quota_user
|
36265
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
36266
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36267
|
-
# @param [String] user_ip
|
36268
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36269
|
-
# @param [Google::Apis::RequestOptions] options
|
36270
|
-
# Request-specific options
|
36271
|
-
#
|
36272
|
-
# @yield [result, err] Result & error if block supplied
|
36273
|
-
# @yieldparam result [Google::Apis::ComputeV1::TargetVpnGatewayList] parsed result object
|
36274
|
-
# @yieldparam err [StandardError] error object if request failed
|
36275
|
-
#
|
36276
|
-
# @return [Google::Apis::ComputeV1::TargetVpnGatewayList]
|
36277
|
-
#
|
36278
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36279
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36280
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36281
|
-
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)
|
36282
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
|
36283
|
-
command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayList::Representation
|
36284
|
-
command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayList
|
36285
|
-
command.params['project'] = project unless project.nil?
|
36286
|
-
command.params['region'] = region unless region.nil?
|
36287
|
-
command.query['filter'] = filter unless filter.nil?
|
36288
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
36289
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
36290
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
36291
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
36292
|
-
command.query['fields'] = fields unless fields.nil?
|
36293
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36294
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
36295
|
-
execute_or_queue_command(command, &block)
|
36296
|
-
end
|
36297
|
-
|
36298
37075
|
# Retrieves the list of all UrlMap resources, regional and global, available to
|
36299
37076
|
# the specified project.
|
36300
37077
|
# @param [String] project
|
@@ -37598,6 +38375,60 @@ module Google
|
|
37598
38375
|
execute_or_queue_command(command, &block)
|
37599
38376
|
end
|
37600
38377
|
|
38378
|
+
# Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
|
38379
|
+
# Resources documentation.
|
38380
|
+
# @param [String] project
|
38381
|
+
# Project ID for this request.
|
38382
|
+
# @param [String] region
|
38383
|
+
# The region for this request.
|
38384
|
+
# @param [String] resource
|
38385
|
+
# Name or id of the resource for this request.
|
38386
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
38387
|
+
# @param [String] request_id
|
38388
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
38389
|
+
# that if you must retry your request, the server will know to ignore the
|
38390
|
+
# request if it has already been completed. For example, consider a situation
|
38391
|
+
# where you make an initial request and the request times out. If you make the
|
38392
|
+
# request again with the same request ID, the server can check if original
|
38393
|
+
# operation with the same request ID was received, and if so, will ignore the
|
38394
|
+
# second request. This prevents clients from accidentally creating duplicate
|
38395
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
38396
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38397
|
+
# @param [String] fields
|
38398
|
+
# Selector specifying which fields to include in a partial response.
|
38399
|
+
# @param [String] quota_user
|
38400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38402
|
+
# @param [String] user_ip
|
38403
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38404
|
+
# @param [Google::Apis::RequestOptions] options
|
38405
|
+
# Request-specific options
|
38406
|
+
#
|
38407
|
+
# @yield [result, err] Result & error if block supplied
|
38408
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
38409
|
+
# @yieldparam err [StandardError] error object if request failed
|
38410
|
+
#
|
38411
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
38412
|
+
#
|
38413
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38414
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38415
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38416
|
+
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)
|
38417
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
|
38418
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
38419
|
+
command.request_object = region_set_labels_request_object
|
38420
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
38421
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
38422
|
+
command.params['project'] = project unless project.nil?
|
38423
|
+
command.params['region'] = region unless region.nil?
|
38424
|
+
command.params['resource'] = resource unless resource.nil?
|
38425
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
38426
|
+
command.query['fields'] = fields unless fields.nil?
|
38427
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38428
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38429
|
+
execute_or_queue_command(command, &block)
|
38430
|
+
end
|
38431
|
+
|
37601
38432
|
# Deletes the specified zone-specific Operations resource.
|
37602
38433
|
# @param [String] project
|
37603
38434
|
# Project ID for this request.
|