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
@@ -202,6 +202,22 @@ module Google
|
|
202
202
|
# @return [::Gapic::GenericLRO::Operation]
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
205
|
+
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/compute/v1"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetSslProxyRequest.new
|
214
|
+
#
|
215
|
+
# # Call the delete method.
|
216
|
+
# result = client.delete request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
219
|
+
# p result
|
220
|
+
#
|
205
221
|
def delete request, options = nil
|
206
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
223
|
|
@@ -274,6 +290,22 @@ module Google
|
|
274
290
|
# @return [::Google::Cloud::Compute::V1::TargetSslProxy]
|
275
291
|
#
|
276
292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
293
|
+
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/compute/v1"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::Compute::V1::GetTargetSslProxyRequest.new
|
302
|
+
#
|
303
|
+
# # Call the get method.
|
304
|
+
# result = client.get request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetSslProxy.
|
307
|
+
# p result
|
308
|
+
#
|
277
309
|
def get request, options = nil
|
278
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
311
|
|
@@ -340,6 +372,22 @@ module Google
|
|
340
372
|
# @return [::Gapic::GenericLRO::Operation]
|
341
373
|
#
|
342
374
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
375
|
+
#
|
376
|
+
# @example Basic example
|
377
|
+
# require "google/cloud/compute/v1"
|
378
|
+
#
|
379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
380
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
381
|
+
#
|
382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
383
|
+
# request = Google::Cloud::Compute::V1::InsertTargetSslProxyRequest.new
|
384
|
+
#
|
385
|
+
# # Call the insert method.
|
386
|
+
# result = client.insert request
|
387
|
+
#
|
388
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
389
|
+
# p result
|
390
|
+
#
|
343
391
|
def insert request, options = nil
|
344
392
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
345
393
|
|
@@ -402,7 +450,7 @@ module Google
|
|
402
450
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
403
451
|
#
|
404
452
|
# @param filter [::String]
|
405
|
-
# 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
|
453
|
+
# 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.
|
406
454
|
# @param max_results [::Integer]
|
407
455
|
# 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`)
|
408
456
|
# @param order_by [::String]
|
@@ -420,6 +468,22 @@ module Google
|
|
420
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetSslProxy>]
|
421
469
|
#
|
422
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
471
|
+
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/compute/v1"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::Compute::V1::ListTargetSslProxiesRequest.new
|
480
|
+
#
|
481
|
+
# # Call the list method.
|
482
|
+
# result = client.list request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetSslProxyList.
|
485
|
+
# p result
|
486
|
+
#
|
423
487
|
def list request, options = nil
|
424
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
489
|
|
@@ -489,6 +553,22 @@ module Google
|
|
489
553
|
# @return [::Gapic::GenericLRO::Operation]
|
490
554
|
#
|
491
555
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
556
|
+
#
|
557
|
+
# @example Basic example
|
558
|
+
# require "google/cloud/compute/v1"
|
559
|
+
#
|
560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
561
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
562
|
+
#
|
563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
564
|
+
# request = Google::Cloud::Compute::V1::SetBackendServiceTargetSslProxyRequest.new
|
565
|
+
#
|
566
|
+
# # Call the set_backend_service method.
|
567
|
+
# result = client.set_backend_service request
|
568
|
+
#
|
569
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
570
|
+
# p result
|
571
|
+
#
|
492
572
|
def set_backend_service request, options = nil
|
493
573
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
494
574
|
|
@@ -565,6 +645,22 @@ module Google
|
|
565
645
|
# @return [::Gapic::GenericLRO::Operation]
|
566
646
|
#
|
567
647
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
648
|
+
#
|
649
|
+
# @example Basic example
|
650
|
+
# require "google/cloud/compute/v1"
|
651
|
+
#
|
652
|
+
# # Create a client object. The client can be reused for multiple calls.
|
653
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
654
|
+
#
|
655
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
656
|
+
# request = Google::Cloud::Compute::V1::SetCertificateMapTargetSslProxyRequest.new
|
657
|
+
#
|
658
|
+
# # Call the set_certificate_map method.
|
659
|
+
# result = client.set_certificate_map request
|
660
|
+
#
|
661
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
662
|
+
# p result
|
663
|
+
#
|
568
664
|
def set_certificate_map request, options = nil
|
569
665
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
570
666
|
|
@@ -641,6 +737,22 @@ module Google
|
|
641
737
|
# @return [::Gapic::GenericLRO::Operation]
|
642
738
|
#
|
643
739
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
740
|
+
#
|
741
|
+
# @example Basic example
|
742
|
+
# require "google/cloud/compute/v1"
|
743
|
+
#
|
744
|
+
# # Create a client object. The client can be reused for multiple calls.
|
745
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
746
|
+
#
|
747
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
748
|
+
# request = Google::Cloud::Compute::V1::SetProxyHeaderTargetSslProxyRequest.new
|
749
|
+
#
|
750
|
+
# # Call the set_proxy_header method.
|
751
|
+
# result = client.set_proxy_header request
|
752
|
+
#
|
753
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
754
|
+
# p result
|
755
|
+
#
|
644
756
|
def set_proxy_header request, options = nil
|
645
757
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
646
758
|
|
@@ -717,6 +829,22 @@ module Google
|
|
717
829
|
# @return [::Gapic::GenericLRO::Operation]
|
718
830
|
#
|
719
831
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
832
|
+
#
|
833
|
+
# @example Basic example
|
834
|
+
# require "google/cloud/compute/v1"
|
835
|
+
#
|
836
|
+
# # Create a client object. The client can be reused for multiple calls.
|
837
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
838
|
+
#
|
839
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
840
|
+
# request = Google::Cloud::Compute::V1::SetSslCertificatesTargetSslProxyRequest.new
|
841
|
+
#
|
842
|
+
# # Call the set_ssl_certificates method.
|
843
|
+
# result = client.set_ssl_certificates request
|
844
|
+
#
|
845
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
846
|
+
# p result
|
847
|
+
#
|
720
848
|
def set_ssl_certificates request, options = nil
|
721
849
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
722
850
|
|
@@ -793,6 +921,22 @@ module Google
|
|
793
921
|
# @return [::Gapic::GenericLRO::Operation]
|
794
922
|
#
|
795
923
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
924
|
+
#
|
925
|
+
# @example Basic example
|
926
|
+
# require "google/cloud/compute/v1"
|
927
|
+
#
|
928
|
+
# # Create a client object. The client can be reused for multiple calls.
|
929
|
+
# client = Google::Cloud::Compute::V1::TargetSslProxies::Rest::Client.new
|
930
|
+
#
|
931
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
932
|
+
# request = Google::Cloud::Compute::V1::SetSslPolicyTargetSslProxyRequest.new
|
933
|
+
#
|
934
|
+
# # Call the set_ssl_policy method.
|
935
|
+
# result = client.set_ssl_policy request
|
936
|
+
#
|
937
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
938
|
+
# p result
|
939
|
+
#
|
796
940
|
def set_ssl_policy request, options = nil
|
797
941
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
798
942
|
|
@@ -183,13 +183,13 @@ module Google
|
|
183
183
|
# @param options [::Gapic::CallOptions, ::Hash]
|
184
184
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
185
|
#
|
186
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
186
|
+
# @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)
|
187
187
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
188
188
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
189
189
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
190
190
|
#
|
191
191
|
# @param filter [::String]
|
192
|
-
# 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
|
192
|
+
# 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.
|
193
193
|
# @param include_all_scopes [::Boolean]
|
194
194
|
# 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.
|
195
195
|
# @param max_results [::Integer]
|
@@ -202,6 +202,7 @@ module Google
|
|
202
202
|
# Name of the project scoping this request.
|
203
203
|
# @param return_partial_success [::Boolean]
|
204
204
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
205
|
+
# @param service_project_number [::Integer]
|
205
206
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
207
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetTcpProxiesScopedList>]
|
207
208
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -209,6 +210,22 @@ module Google
|
|
209
210
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetTcpProxiesScopedList>]
|
210
211
|
#
|
211
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/compute/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetTcpProxiesRequest.new
|
222
|
+
#
|
223
|
+
# # Call the aggregated_list method.
|
224
|
+
# result = client.aggregated_list request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyAggregatedList.
|
227
|
+
# p result
|
228
|
+
#
|
212
229
|
def aggregated_list request, options = nil
|
213
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
231
|
|
@@ -276,6 +293,22 @@ module Google
|
|
276
293
|
# @return [::Gapic::GenericLRO::Operation]
|
277
294
|
#
|
278
295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
296
|
+
#
|
297
|
+
# @example Basic example
|
298
|
+
# require "google/cloud/compute/v1"
|
299
|
+
#
|
300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
301
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
302
|
+
#
|
303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
304
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetTcpProxyRequest.new
|
305
|
+
#
|
306
|
+
# # Call the delete method.
|
307
|
+
# result = client.delete request
|
308
|
+
#
|
309
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
310
|
+
# p result
|
311
|
+
#
|
279
312
|
def delete request, options = nil
|
280
313
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
314
|
|
@@ -348,6 +381,22 @@ module Google
|
|
348
381
|
# @return [::Google::Cloud::Compute::V1::TargetTcpProxy]
|
349
382
|
#
|
350
383
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
384
|
+
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/compute/v1"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Compute::V1::GetTargetTcpProxyRequest.new
|
393
|
+
#
|
394
|
+
# # Call the get method.
|
395
|
+
# result = client.get request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxy.
|
398
|
+
# p result
|
399
|
+
#
|
351
400
|
def get request, options = nil
|
352
401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
402
|
|
@@ -414,6 +463,22 @@ module Google
|
|
414
463
|
# @return [::Gapic::GenericLRO::Operation]
|
415
464
|
#
|
416
465
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
466
|
+
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/compute/v1"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::Compute::V1::InsertTargetTcpProxyRequest.new
|
475
|
+
#
|
476
|
+
# # Call the insert method.
|
477
|
+
# result = client.insert request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
480
|
+
# p result
|
481
|
+
#
|
417
482
|
def insert request, options = nil
|
418
483
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
484
|
|
@@ -476,7 +541,7 @@ module Google
|
|
476
541
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
477
542
|
#
|
478
543
|
# @param filter [::String]
|
479
|
-
# 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
|
544
|
+
# 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.
|
480
545
|
# @param max_results [::Integer]
|
481
546
|
# 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`)
|
482
547
|
# @param order_by [::String]
|
@@ -494,6 +559,22 @@ module Google
|
|
494
559
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetTcpProxy>]
|
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::TargetTcpProxies::Rest::Client.new
|
568
|
+
#
|
569
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
570
|
+
# request = Google::Cloud::Compute::V1::ListTargetTcpProxiesRequest.new
|
571
|
+
#
|
572
|
+
# # Call the list method.
|
573
|
+
# result = client.list request
|
574
|
+
#
|
575
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyList.
|
576
|
+
# p result
|
577
|
+
#
|
497
578
|
def list request, options = nil
|
498
579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
580
|
|
@@ -563,6 +644,22 @@ module Google
|
|
563
644
|
# @return [::Gapic::GenericLRO::Operation]
|
564
645
|
#
|
565
646
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
647
|
+
#
|
648
|
+
# @example Basic example
|
649
|
+
# require "google/cloud/compute/v1"
|
650
|
+
#
|
651
|
+
# # Create a client object. The client can be reused for multiple calls.
|
652
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
653
|
+
#
|
654
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
655
|
+
# request = Google::Cloud::Compute::V1::SetBackendServiceTargetTcpProxyRequest.new
|
656
|
+
#
|
657
|
+
# # Call the set_backend_service method.
|
658
|
+
# result = client.set_backend_service request
|
659
|
+
#
|
660
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
661
|
+
# p result
|
662
|
+
#
|
566
663
|
def set_backend_service request, options = nil
|
567
664
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
568
665
|
|
@@ -639,6 +736,22 @@ module Google
|
|
639
736
|
# @return [::Gapic::GenericLRO::Operation]
|
640
737
|
#
|
641
738
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
739
|
+
#
|
740
|
+
# @example Basic example
|
741
|
+
# require "google/cloud/compute/v1"
|
742
|
+
#
|
743
|
+
# # Create a client object. The client can be reused for multiple calls.
|
744
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
745
|
+
#
|
746
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
747
|
+
# request = Google::Cloud::Compute::V1::SetProxyHeaderTargetTcpProxyRequest.new
|
748
|
+
#
|
749
|
+
# # Call the set_proxy_header method.
|
750
|
+
# result = client.set_proxy_header request
|
751
|
+
#
|
752
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
753
|
+
# p result
|
754
|
+
#
|
642
755
|
def set_proxy_header request, options = nil
|
643
756
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
644
757
|
|
@@ -181,13 +181,13 @@ module Google
|
|
181
181
|
# @param options [::Gapic::CallOptions, ::Hash]
|
182
182
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
183
183
|
#
|
184
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
184
|
+
# @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)
|
185
185
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
186
186
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
187
187
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
188
188
|
#
|
189
189
|
# @param filter [::String]
|
190
|
-
# 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
|
190
|
+
# 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.
|
191
191
|
# @param include_all_scopes [::Boolean]
|
192
192
|
# 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.
|
193
193
|
# @param max_results [::Integer]
|
@@ -200,6 +200,7 @@ module Google
|
|
200
200
|
# Project ID for this request.
|
201
201
|
# @param return_partial_success [::Boolean]
|
202
202
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
203
|
+
# @param service_project_number [::Integer]
|
203
204
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
204
205
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetVpnGatewaysScopedList>]
|
205
206
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -207,6 +208,22 @@ module Google
|
|
207
208
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetVpnGatewaysScopedList>]
|
208
209
|
#
|
209
210
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
211
|
+
#
|
212
|
+
# @example Basic example
|
213
|
+
# require "google/cloud/compute/v1"
|
214
|
+
#
|
215
|
+
# # Create a client object. The client can be reused for multiple calls.
|
216
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
217
|
+
#
|
218
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
219
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetVpnGatewaysRequest.new
|
220
|
+
#
|
221
|
+
# # Call the aggregated_list method.
|
222
|
+
# result = client.aggregated_list request
|
223
|
+
#
|
224
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGatewayAggregatedList.
|
225
|
+
# p result
|
226
|
+
#
|
210
227
|
def aggregated_list request, options = nil
|
211
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
229
|
|
@@ -276,6 +293,22 @@ module Google
|
|
276
293
|
# @return [::Gapic::GenericLRO::Operation]
|
277
294
|
#
|
278
295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
296
|
+
#
|
297
|
+
# @example Basic example
|
298
|
+
# require "google/cloud/compute/v1"
|
299
|
+
#
|
300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
301
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
302
|
+
#
|
303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
304
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetVpnGatewayRequest.new
|
305
|
+
#
|
306
|
+
# # Call the delete method.
|
307
|
+
# result = client.delete request
|
308
|
+
#
|
309
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
310
|
+
# p result
|
311
|
+
#
|
279
312
|
def delete request, options = nil
|
280
313
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
314
|
|
@@ -351,6 +384,22 @@ module Google
|
|
351
384
|
# @return [::Google::Cloud::Compute::V1::TargetVpnGateway]
|
352
385
|
#
|
353
386
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
|
+
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/compute/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::Compute::V1::GetTargetVpnGatewayRequest.new
|
396
|
+
#
|
397
|
+
# # Call the get method.
|
398
|
+
# result = client.get request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGateway.
|
401
|
+
# p result
|
402
|
+
#
|
354
403
|
def get request, options = nil
|
355
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
405
|
|
@@ -419,6 +468,22 @@ module Google
|
|
419
468
|
# @return [::Gapic::GenericLRO::Operation]
|
420
469
|
#
|
421
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
471
|
+
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/compute/v1"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::Compute::V1::InsertTargetVpnGatewayRequest.new
|
480
|
+
#
|
481
|
+
# # Call the insert method.
|
482
|
+
# result = client.insert request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
485
|
+
# p result
|
486
|
+
#
|
422
487
|
def insert request, options = nil
|
423
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
424
489
|
|
@@ -482,7 +547,7 @@ module Google
|
|
482
547
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
483
548
|
#
|
484
549
|
# @param filter [::String]
|
485
|
-
# 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
|
550
|
+
# 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.
|
486
551
|
# @param max_results [::Integer]
|
487
552
|
# 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`)
|
488
553
|
# @param order_by [::String]
|
@@ -502,6 +567,22 @@ module Google
|
|
502
567
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetVpnGateway>]
|
503
568
|
#
|
504
569
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
570
|
+
#
|
571
|
+
# @example Basic example
|
572
|
+
# require "google/cloud/compute/v1"
|
573
|
+
#
|
574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
575
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
576
|
+
#
|
577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
578
|
+
# request = Google::Cloud::Compute::V1::ListTargetVpnGatewaysRequest.new
|
579
|
+
#
|
580
|
+
# # Call the list method.
|
581
|
+
# result = client.list request
|
582
|
+
#
|
583
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGatewayList.
|
584
|
+
# p result
|
585
|
+
#
|
505
586
|
def list request, options = nil
|
506
587
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
507
588
|
|
@@ -573,6 +654,22 @@ module Google
|
|
573
654
|
# @return [::Gapic::GenericLRO::Operation]
|
574
655
|
#
|
575
656
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
657
|
+
#
|
658
|
+
# @example Basic example
|
659
|
+
# require "google/cloud/compute/v1"
|
660
|
+
#
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
662
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
663
|
+
#
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
665
|
+
# request = Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest.new
|
666
|
+
#
|
667
|
+
# # Call the set_labels method.
|
668
|
+
# result = client.set_labels request
|
669
|
+
#
|
670
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
671
|
+
# p result
|
672
|
+
#
|
576
673
|
def set_labels request, options = nil
|
577
674
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
578
675
|
|