google-cloud-compute-v1 2.3.0 → 2.5.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 +48 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +3 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
- 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 +64 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +234 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +194 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +56 -4
- metadata +5 -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
|
|
@@ -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
|
|
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetTcpProxiesScopedList>]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/compute/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetTcpProxiesRequest.new
|
221
|
+
#
|
222
|
+
# # Call the aggregated_list method.
|
223
|
+
# result = client.aggregated_list request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyAggregatedList.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def aggregated_list request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -276,6 +292,22 @@ module Google
|
|
276
292
|
# @return [::Gapic::GenericLRO::Operation]
|
277
293
|
#
|
278
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/compute/v1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetTcpProxyRequest.new
|
304
|
+
#
|
305
|
+
# # Call the delete method.
|
306
|
+
# result = client.delete request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
309
|
+
# p result
|
310
|
+
#
|
279
311
|
def delete request, options = nil
|
280
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
313
|
|
@@ -348,6 +380,22 @@ module Google
|
|
348
380
|
# @return [::Google::Cloud::Compute::V1::TargetTcpProxy]
|
349
381
|
#
|
350
382
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
383
|
+
#
|
384
|
+
# @example Basic example
|
385
|
+
# require "google/cloud/compute/v1"
|
386
|
+
#
|
387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
388
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
389
|
+
#
|
390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
391
|
+
# request = Google::Cloud::Compute::V1::GetTargetTcpProxyRequest.new
|
392
|
+
#
|
393
|
+
# # Call the get method.
|
394
|
+
# result = client.get request
|
395
|
+
#
|
396
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxy.
|
397
|
+
# p result
|
398
|
+
#
|
351
399
|
def get request, options = nil
|
352
400
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
401
|
|
@@ -414,6 +462,22 @@ module Google
|
|
414
462
|
# @return [::Gapic::GenericLRO::Operation]
|
415
463
|
#
|
416
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
465
|
+
#
|
466
|
+
# @example Basic example
|
467
|
+
# require "google/cloud/compute/v1"
|
468
|
+
#
|
469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
470
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
471
|
+
#
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
473
|
+
# request = Google::Cloud::Compute::V1::InsertTargetTcpProxyRequest.new
|
474
|
+
#
|
475
|
+
# # Call the insert method.
|
476
|
+
# result = client.insert request
|
477
|
+
#
|
478
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
479
|
+
# p result
|
480
|
+
#
|
417
481
|
def insert request, options = nil
|
418
482
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
483
|
|
@@ -494,6 +558,22 @@ module Google
|
|
494
558
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetTcpProxy>]
|
495
559
|
#
|
496
560
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
561
|
+
#
|
562
|
+
# @example Basic example
|
563
|
+
# require "google/cloud/compute/v1"
|
564
|
+
#
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
566
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
567
|
+
#
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
569
|
+
# request = Google::Cloud::Compute::V1::ListTargetTcpProxiesRequest.new
|
570
|
+
#
|
571
|
+
# # Call the list method.
|
572
|
+
# result = client.list request
|
573
|
+
#
|
574
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyList.
|
575
|
+
# p result
|
576
|
+
#
|
497
577
|
def list request, options = nil
|
498
578
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
579
|
|
@@ -563,6 +643,22 @@ module Google
|
|
563
643
|
# @return [::Gapic::GenericLRO::Operation]
|
564
644
|
#
|
565
645
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
646
|
+
#
|
647
|
+
# @example Basic example
|
648
|
+
# require "google/cloud/compute/v1"
|
649
|
+
#
|
650
|
+
# # Create a client object. The client can be reused for multiple calls.
|
651
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
652
|
+
#
|
653
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
654
|
+
# request = Google::Cloud::Compute::V1::SetBackendServiceTargetTcpProxyRequest.new
|
655
|
+
#
|
656
|
+
# # Call the set_backend_service method.
|
657
|
+
# result = client.set_backend_service request
|
658
|
+
#
|
659
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
660
|
+
# p result
|
661
|
+
#
|
566
662
|
def set_backend_service request, options = nil
|
567
663
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
568
664
|
|
@@ -639,6 +735,22 @@ module Google
|
|
639
735
|
# @return [::Gapic::GenericLRO::Operation]
|
640
736
|
#
|
641
737
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
738
|
+
#
|
739
|
+
# @example Basic example
|
740
|
+
# require "google/cloud/compute/v1"
|
741
|
+
#
|
742
|
+
# # Create a client object. The client can be reused for multiple calls.
|
743
|
+
# client = Google::Cloud::Compute::V1::TargetTcpProxies::Rest::Client.new
|
744
|
+
#
|
745
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
746
|
+
# request = Google::Cloud::Compute::V1::SetProxyHeaderTargetTcpProxyRequest.new
|
747
|
+
#
|
748
|
+
# # Call the set_proxy_header method.
|
749
|
+
# result = client.set_proxy_header request
|
750
|
+
#
|
751
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
752
|
+
# p result
|
753
|
+
#
|
642
754
|
def set_proxy_header request, options = nil
|
643
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
644
756
|
|
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetVpnGatewaysScopedList>]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/compute/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetVpnGatewaysRequest.new
|
219
|
+
#
|
220
|
+
# # Call the aggregated_list method.
|
221
|
+
# result = client.aggregated_list request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGatewayAggregatedList.
|
224
|
+
# p result
|
225
|
+
#
|
210
226
|
def aggregated_list request, options = nil
|
211
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
228
|
|
@@ -276,6 +292,22 @@ module Google
|
|
276
292
|
# @return [::Gapic::GenericLRO::Operation]
|
277
293
|
#
|
278
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/compute/v1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetVpnGatewayRequest.new
|
304
|
+
#
|
305
|
+
# # Call the delete method.
|
306
|
+
# result = client.delete request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
309
|
+
# p result
|
310
|
+
#
|
279
311
|
def delete request, options = nil
|
280
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
313
|
|
@@ -351,6 +383,22 @@ module Google
|
|
351
383
|
# @return [::Google::Cloud::Compute::V1::TargetVpnGateway]
|
352
384
|
#
|
353
385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
386
|
+
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/compute/v1"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::Compute::V1::GetTargetVpnGatewayRequest.new
|
395
|
+
#
|
396
|
+
# # Call the get method.
|
397
|
+
# result = client.get request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGateway.
|
400
|
+
# p result
|
401
|
+
#
|
354
402
|
def get request, options = nil
|
355
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
404
|
|
@@ -419,6 +467,22 @@ module Google
|
|
419
467
|
# @return [::Gapic::GenericLRO::Operation]
|
420
468
|
#
|
421
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::TargetVpnGateways::Rest::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Compute::V1::InsertTargetVpnGatewayRequest.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
|
+
#
|
422
486
|
def insert request, options = nil
|
423
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
424
488
|
|
@@ -502,6 +566,22 @@ module Google
|
|
502
566
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetVpnGateway>]
|
503
567
|
#
|
504
568
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
569
|
+
#
|
570
|
+
# @example Basic example
|
571
|
+
# require "google/cloud/compute/v1"
|
572
|
+
#
|
573
|
+
# # Create a client object. The client can be reused for multiple calls.
|
574
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
575
|
+
#
|
576
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
577
|
+
# request = Google::Cloud::Compute::V1::ListTargetVpnGatewaysRequest.new
|
578
|
+
#
|
579
|
+
# # Call the list method.
|
580
|
+
# result = client.list request
|
581
|
+
#
|
582
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetVpnGatewayList.
|
583
|
+
# p result
|
584
|
+
#
|
505
585
|
def list request, options = nil
|
506
586
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
507
587
|
|
@@ -573,6 +653,22 @@ module Google
|
|
573
653
|
# @return [::Gapic::GenericLRO::Operation]
|
574
654
|
#
|
575
655
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
656
|
+
#
|
657
|
+
# @example Basic example
|
658
|
+
# require "google/cloud/compute/v1"
|
659
|
+
#
|
660
|
+
# # Create a client object. The client can be reused for multiple calls.
|
661
|
+
# client = Google::Cloud::Compute::V1::TargetVpnGateways::Rest::Client.new
|
662
|
+
#
|
663
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
664
|
+
# request = Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest.new
|
665
|
+
#
|
666
|
+
# # Call the set_labels method.
|
667
|
+
# result = client.set_labels request
|
668
|
+
#
|
669
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
670
|
+
# p result
|
671
|
+
#
|
576
672
|
def set_labels request, options = nil
|
577
673
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
578
674
|
|