google-cloud-compute-v1 2.4.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -187,13 +187,13 @@ module Google
|
|
187
187
|
# @param options [::Gapic::CallOptions, ::Hash]
|
188
188
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
189
189
|
#
|
190
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
190
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
191
191
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
192
192
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
193
193
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
194
194
|
#
|
195
195
|
# @param filter [::String]
|
196
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
196
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
197
197
|
# @param include_all_scopes [::Boolean]
|
198
198
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
199
199
|
# @param max_results [::Integer]
|
@@ -206,6 +206,7 @@ module Google
|
|
206
206
|
# Name of the project scoping this request.
|
207
207
|
# @param return_partial_success [::Boolean]
|
208
208
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
209
|
+
# @param service_project_number [::Integer]
|
209
210
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
210
211
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::UrlMapsScopedList>]
|
211
212
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -213,6 +214,22 @@ module Google
|
|
213
214
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::UrlMapsScopedList>]
|
214
215
|
#
|
215
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
217
|
+
#
|
218
|
+
# @example Basic example
|
219
|
+
# require "google/cloud/compute/v1"
|
220
|
+
#
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
222
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
223
|
+
#
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
225
|
+
# request = Google::Cloud::Compute::V1::AggregatedListUrlMapsRequest.new
|
226
|
+
#
|
227
|
+
# # Call the aggregated_list method.
|
228
|
+
# result = client.aggregated_list request
|
229
|
+
#
|
230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapsAggregatedList.
|
231
|
+
# p result
|
232
|
+
#
|
216
233
|
def aggregated_list request, options = nil
|
217
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
235
|
|
@@ -280,6 +297,22 @@ module Google
|
|
280
297
|
# @return [::Gapic::GenericLRO::Operation]
|
281
298
|
#
|
282
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/compute/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::Compute::V1::DeleteUrlMapRequest.new
|
309
|
+
#
|
310
|
+
# # Call the delete method.
|
311
|
+
# result = client.delete request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
314
|
+
# p result
|
315
|
+
#
|
283
316
|
def delete request, options = nil
|
284
317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
285
318
|
|
@@ -352,6 +385,22 @@ module Google
|
|
352
385
|
# @return [::Google::Cloud::Compute::V1::UrlMap]
|
353
386
|
#
|
354
387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
|
+
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/compute/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Compute::V1::GetUrlMapRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get method.
|
399
|
+
# result = client.get request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMap.
|
402
|
+
# p result
|
403
|
+
#
|
355
404
|
def get request, options = nil
|
356
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
406
|
|
@@ -418,6 +467,22 @@ module Google
|
|
418
467
|
# @return [::Gapic::GenericLRO::Operation]
|
419
468
|
#
|
420
469
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
470
|
+
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/compute/v1"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Compute::V1::InsertUrlMapRequest.new
|
479
|
+
#
|
480
|
+
# # Call the insert method.
|
481
|
+
# result = client.insert request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
484
|
+
# p result
|
485
|
+
#
|
421
486
|
def insert request, options = nil
|
422
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
423
488
|
|
@@ -494,6 +559,22 @@ module Google
|
|
494
559
|
# @return [::Gapic::GenericLRO::Operation]
|
495
560
|
#
|
496
561
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
562
|
+
#
|
563
|
+
# @example Basic example
|
564
|
+
# require "google/cloud/compute/v1"
|
565
|
+
#
|
566
|
+
# # Create a client object. The client can be reused for multiple calls.
|
567
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
568
|
+
#
|
569
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
570
|
+
# request = Google::Cloud::Compute::V1::InvalidateCacheUrlMapRequest.new
|
571
|
+
#
|
572
|
+
# # Call the invalidate_cache method.
|
573
|
+
# result = client.invalidate_cache request
|
574
|
+
#
|
575
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
576
|
+
# p result
|
577
|
+
#
|
497
578
|
def invalidate_cache request, options = nil
|
498
579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
580
|
|
@@ -556,7 +637,7 @@ module Google
|
|
556
637
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
557
638
|
#
|
558
639
|
# @param filter [::String]
|
559
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
640
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
560
641
|
# @param max_results [::Integer]
|
561
642
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
562
643
|
# @param order_by [::String]
|
@@ -574,6 +655,22 @@ module Google
|
|
574
655
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>]
|
575
656
|
#
|
576
657
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
658
|
+
#
|
659
|
+
# @example Basic example
|
660
|
+
# require "google/cloud/compute/v1"
|
661
|
+
#
|
662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
663
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
664
|
+
#
|
665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
666
|
+
# request = Google::Cloud::Compute::V1::ListUrlMapsRequest.new
|
667
|
+
#
|
668
|
+
# # Call the list method.
|
669
|
+
# result = client.list request
|
670
|
+
#
|
671
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapList.
|
672
|
+
# p result
|
673
|
+
#
|
577
674
|
def list request, options = nil
|
578
675
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
579
676
|
|
@@ -643,6 +740,22 @@ module Google
|
|
643
740
|
# @return [::Gapic::GenericLRO::Operation]
|
644
741
|
#
|
645
742
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
743
|
+
#
|
744
|
+
# @example Basic example
|
745
|
+
# require "google/cloud/compute/v1"
|
746
|
+
#
|
747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
748
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
749
|
+
#
|
750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
751
|
+
# request = Google::Cloud::Compute::V1::PatchUrlMapRequest.new
|
752
|
+
#
|
753
|
+
# # Call the patch method.
|
754
|
+
# result = client.patch request
|
755
|
+
#
|
756
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
757
|
+
# p result
|
758
|
+
#
|
646
759
|
def patch request, options = nil
|
647
760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
648
761
|
|
@@ -719,6 +832,22 @@ module Google
|
|
719
832
|
# @return [::Gapic::GenericLRO::Operation]
|
720
833
|
#
|
721
834
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
835
|
+
#
|
836
|
+
# @example Basic example
|
837
|
+
# require "google/cloud/compute/v1"
|
838
|
+
#
|
839
|
+
# # Create a client object. The client can be reused for multiple calls.
|
840
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
841
|
+
#
|
842
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
843
|
+
# request = Google::Cloud::Compute::V1::UpdateUrlMapRequest.new
|
844
|
+
#
|
845
|
+
# # Call the update method.
|
846
|
+
# result = client.update request
|
847
|
+
#
|
848
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
849
|
+
# p result
|
850
|
+
#
|
722
851
|
def update request, options = nil
|
723
852
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
724
853
|
|
@@ -793,6 +922,22 @@ module Google
|
|
793
922
|
# @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
|
794
923
|
#
|
795
924
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
925
|
+
#
|
926
|
+
# @example Basic example
|
927
|
+
# require "google/cloud/compute/v1"
|
928
|
+
#
|
929
|
+
# # Create a client object. The client can be reused for multiple calls.
|
930
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
931
|
+
#
|
932
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
933
|
+
# request = Google::Cloud::Compute::V1::ValidateUrlMapRequest.new
|
934
|
+
#
|
935
|
+
# # Call the validate method.
|
936
|
+
# result = client.validate request
|
937
|
+
#
|
938
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapsValidateResponse.
|
939
|
+
# p result
|
940
|
+
#
|
796
941
|
def validate request, options = nil
|
797
942
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
798
943
|
|
@@ -188,13 +188,13 @@ module Google
|
|
188
188
|
# @param options [::Gapic::CallOptions, ::Hash]
|
189
189
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
190
190
|
#
|
191
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
191
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
192
192
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
193
193
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
194
194
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
195
195
|
#
|
196
196
|
# @param filter [::String]
|
197
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
197
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
198
198
|
# @param include_all_scopes [::Boolean]
|
199
199
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
200
200
|
# @param max_results [::Integer]
|
@@ -207,6 +207,7 @@ module Google
|
|
207
207
|
# Project ID for this request.
|
208
208
|
# @param return_partial_success [::Boolean]
|
209
209
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
210
|
+
# @param service_project_number [::Integer]
|
210
211
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
211
212
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::VpnGatewaysScopedList>]
|
212
213
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -214,6 +215,22 @@ module Google
|
|
214
215
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::VpnGatewaysScopedList>]
|
215
216
|
#
|
216
217
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
218
|
+
#
|
219
|
+
# @example Basic example
|
220
|
+
# require "google/cloud/compute/v1"
|
221
|
+
#
|
222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
223
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
224
|
+
#
|
225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
226
|
+
# request = Google::Cloud::Compute::V1::AggregatedListVpnGatewaysRequest.new
|
227
|
+
#
|
228
|
+
# # Call the aggregated_list method.
|
229
|
+
# result = client.aggregated_list request
|
230
|
+
#
|
231
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewayAggregatedList.
|
232
|
+
# p result
|
233
|
+
#
|
217
234
|
def aggregated_list request, options = nil
|
218
235
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
219
236
|
|
@@ -283,6 +300,22 @@ module Google
|
|
283
300
|
# @return [::Gapic::GenericLRO::Operation]
|
284
301
|
#
|
285
302
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
303
|
+
#
|
304
|
+
# @example Basic example
|
305
|
+
# require "google/cloud/compute/v1"
|
306
|
+
#
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
308
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
309
|
+
#
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
311
|
+
# request = Google::Cloud::Compute::V1::DeleteVpnGatewayRequest.new
|
312
|
+
#
|
313
|
+
# # Call the delete method.
|
314
|
+
# result = client.delete request
|
315
|
+
#
|
316
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
317
|
+
# p result
|
318
|
+
#
|
286
319
|
def delete request, options = nil
|
287
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
288
321
|
|
@@ -358,6 +391,22 @@ module Google
|
|
358
391
|
# @return [::Google::Cloud::Compute::V1::VpnGateway]
|
359
392
|
#
|
360
393
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
394
|
+
#
|
395
|
+
# @example Basic example
|
396
|
+
# require "google/cloud/compute/v1"
|
397
|
+
#
|
398
|
+
# # Create a client object. The client can be reused for multiple calls.
|
399
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
400
|
+
#
|
401
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
402
|
+
# request = Google::Cloud::Compute::V1::GetVpnGatewayRequest.new
|
403
|
+
#
|
404
|
+
# # Call the get method.
|
405
|
+
# result = client.get request
|
406
|
+
#
|
407
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGateway.
|
408
|
+
# p result
|
409
|
+
#
|
361
410
|
def get request, options = nil
|
362
411
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
363
412
|
|
@@ -424,6 +473,22 @@ module Google
|
|
424
473
|
# @return [::Google::Cloud::Compute::V1::VpnGatewaysGetStatusResponse]
|
425
474
|
#
|
426
475
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
476
|
+
#
|
477
|
+
# @example Basic example
|
478
|
+
# require "google/cloud/compute/v1"
|
479
|
+
#
|
480
|
+
# # Create a client object. The client can be reused for multiple calls.
|
481
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
482
|
+
#
|
483
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
484
|
+
# request = Google::Cloud::Compute::V1::GetStatusVpnGatewayRequest.new
|
485
|
+
#
|
486
|
+
# # Call the get_status method.
|
487
|
+
# result = client.get_status request
|
488
|
+
#
|
489
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewaysGetStatusResponse.
|
490
|
+
# p result
|
491
|
+
#
|
427
492
|
def get_status request, options = nil
|
428
493
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
429
494
|
|
@@ -492,6 +557,22 @@ module Google
|
|
492
557
|
# @return [::Gapic::GenericLRO::Operation]
|
493
558
|
#
|
494
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/compute/v1"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Cloud::Compute::V1::InsertVpnGatewayRequest.new
|
569
|
+
#
|
570
|
+
# # Call the insert method.
|
571
|
+
# result = client.insert request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
574
|
+
# p result
|
575
|
+
#
|
495
576
|
def insert request, options = nil
|
496
577
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
497
578
|
|
@@ -555,7 +636,7 @@ module Google
|
|
555
636
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
556
637
|
#
|
557
638
|
# @param filter [::String]
|
558
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
639
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
559
640
|
# @param max_results [::Integer]
|
560
641
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
561
642
|
# @param order_by [::String]
|
@@ -575,6 +656,22 @@ module Google
|
|
575
656
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::VpnGateway>]
|
576
657
|
#
|
577
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/compute/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::ListVpnGatewaysRequest.new
|
668
|
+
#
|
669
|
+
# # Call the list method.
|
670
|
+
# result = client.list request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewayList.
|
673
|
+
# p result
|
674
|
+
#
|
578
675
|
def list request, options = nil
|
579
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
677
|
|
@@ -646,6 +743,22 @@ module Google
|
|
646
743
|
# @return [::Gapic::GenericLRO::Operation]
|
647
744
|
#
|
648
745
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
746
|
+
#
|
747
|
+
# @example Basic example
|
748
|
+
# require "google/cloud/compute/v1"
|
749
|
+
#
|
750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
751
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
752
|
+
#
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
754
|
+
# request = Google::Cloud::Compute::V1::SetLabelsVpnGatewayRequest.new
|
755
|
+
#
|
756
|
+
# # Call the set_labels method.
|
757
|
+
# result = client.set_labels request
|
758
|
+
#
|
759
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
760
|
+
# p result
|
761
|
+
#
|
649
762
|
def set_labels request, options = nil
|
650
763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
651
764
|
|
@@ -723,6 +836,22 @@ module Google
|
|
723
836
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
724
837
|
#
|
725
838
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
839
|
+
#
|
840
|
+
# @example Basic example
|
841
|
+
# require "google/cloud/compute/v1"
|
842
|
+
#
|
843
|
+
# # Create a client object. The client can be reused for multiple calls.
|
844
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
845
|
+
#
|
846
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
847
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsVpnGatewayRequest.new
|
848
|
+
#
|
849
|
+
# # Call the test_iam_permissions method.
|
850
|
+
# result = client.test_iam_permissions request
|
851
|
+
#
|
852
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
853
|
+
# p result
|
854
|
+
#
|
726
855
|
def test_iam_permissions request, options = nil
|
727
856
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
728
857
|
|