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
@@ -217,6 +217,22 @@ module Google
|
|
217
217
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetHttpsProxiesScopedList>]
|
218
218
|
#
|
219
219
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
220
|
+
#
|
221
|
+
# @example Basic example
|
222
|
+
# require "google/cloud/compute/v1"
|
223
|
+
#
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
225
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetHttpsProxiesRequest.new
|
229
|
+
#
|
230
|
+
# # Call the aggregated_list method.
|
231
|
+
# result = client.aggregated_list request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpsProxyAggregatedList.
|
234
|
+
# p result
|
235
|
+
#
|
220
236
|
def aggregated_list request, options = nil
|
221
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
222
238
|
|
@@ -284,6 +300,22 @@ module Google
|
|
284
300
|
# @return [::Gapic::GenericLRO::Operation]
|
285
301
|
#
|
286
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::TargetHttpsProxies::Rest::Client.new
|
309
|
+
#
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
311
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetHttpsProxyRequest.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
|
+
#
|
287
319
|
def delete request, options = nil
|
288
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
289
321
|
|
@@ -356,6 +388,22 @@ module Google
|
|
356
388
|
# @return [::Google::Cloud::Compute::V1::TargetHttpsProxy]
|
357
389
|
#
|
358
390
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
391
|
+
#
|
392
|
+
# @example Basic example
|
393
|
+
# require "google/cloud/compute/v1"
|
394
|
+
#
|
395
|
+
# # Create a client object. The client can be reused for multiple calls.
|
396
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
397
|
+
#
|
398
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
399
|
+
# request = Google::Cloud::Compute::V1::GetTargetHttpsProxyRequest.new
|
400
|
+
#
|
401
|
+
# # Call the get method.
|
402
|
+
# result = client.get request
|
403
|
+
#
|
404
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpsProxy.
|
405
|
+
# p result
|
406
|
+
#
|
359
407
|
def get request, options = nil
|
360
408
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
409
|
|
@@ -422,6 +470,22 @@ module Google
|
|
422
470
|
# @return [::Gapic::GenericLRO::Operation]
|
423
471
|
#
|
424
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/compute/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::InsertTargetHttpsProxyRequest.new
|
482
|
+
#
|
483
|
+
# # Call the insert method.
|
484
|
+
# result = client.insert request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
487
|
+
# p result
|
488
|
+
#
|
425
489
|
def insert request, options = nil
|
426
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
491
|
|
@@ -502,6 +566,22 @@ module Google
|
|
502
566
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetHttpsProxy>]
|
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::TargetHttpsProxies::Rest::Client.new
|
575
|
+
#
|
576
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
577
|
+
# request = Google::Cloud::Compute::V1::ListTargetHttpsProxiesRequest.new
|
578
|
+
#
|
579
|
+
# # Call the list method.
|
580
|
+
# result = client.list request
|
581
|
+
#
|
582
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpsProxyList.
|
583
|
+
# p result
|
584
|
+
#
|
505
585
|
def list request, options = nil
|
506
586
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
507
587
|
|
@@ -571,6 +651,22 @@ module Google
|
|
571
651
|
# @return [::Gapic::GenericLRO::Operation]
|
572
652
|
#
|
573
653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
654
|
+
#
|
655
|
+
# @example Basic example
|
656
|
+
# require "google/cloud/compute/v1"
|
657
|
+
#
|
658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
659
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
660
|
+
#
|
661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
662
|
+
# request = Google::Cloud::Compute::V1::PatchTargetHttpsProxyRequest.new
|
663
|
+
#
|
664
|
+
# # Call the patch method.
|
665
|
+
# result = client.patch request
|
666
|
+
#
|
667
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
668
|
+
# p result
|
669
|
+
#
|
574
670
|
def patch request, options = nil
|
575
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
576
672
|
|
@@ -647,6 +743,22 @@ module Google
|
|
647
743
|
# @return [::Gapic::GenericLRO::Operation]
|
648
744
|
#
|
649
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::TargetHttpsProxies::Rest::Client.new
|
752
|
+
#
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
754
|
+
# request = Google::Cloud::Compute::V1::SetCertificateMapTargetHttpsProxyRequest.new
|
755
|
+
#
|
756
|
+
# # Call the set_certificate_map method.
|
757
|
+
# result = client.set_certificate_map request
|
758
|
+
#
|
759
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
760
|
+
# p result
|
761
|
+
#
|
650
762
|
def set_certificate_map request, options = nil
|
651
763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
652
764
|
|
@@ -723,6 +835,22 @@ module Google
|
|
723
835
|
# @return [::Gapic::GenericLRO::Operation]
|
724
836
|
#
|
725
837
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
838
|
+
#
|
839
|
+
# @example Basic example
|
840
|
+
# require "google/cloud/compute/v1"
|
841
|
+
#
|
842
|
+
# # Create a client object. The client can be reused for multiple calls.
|
843
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
844
|
+
#
|
845
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
846
|
+
# request = Google::Cloud::Compute::V1::SetQuicOverrideTargetHttpsProxyRequest.new
|
847
|
+
#
|
848
|
+
# # Call the set_quic_override method.
|
849
|
+
# result = client.set_quic_override request
|
850
|
+
#
|
851
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
852
|
+
# p result
|
853
|
+
#
|
726
854
|
def set_quic_override request, options = nil
|
727
855
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
728
856
|
|
@@ -799,6 +927,22 @@ module Google
|
|
799
927
|
# @return [::Gapic::GenericLRO::Operation]
|
800
928
|
#
|
801
929
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
930
|
+
#
|
931
|
+
# @example Basic example
|
932
|
+
# require "google/cloud/compute/v1"
|
933
|
+
#
|
934
|
+
# # Create a client object. The client can be reused for multiple calls.
|
935
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
936
|
+
#
|
937
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
938
|
+
# request = Google::Cloud::Compute::V1::SetSslCertificatesTargetHttpsProxyRequest.new
|
939
|
+
#
|
940
|
+
# # Call the set_ssl_certificates method.
|
941
|
+
# result = client.set_ssl_certificates request
|
942
|
+
#
|
943
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
944
|
+
# p result
|
945
|
+
#
|
802
946
|
def set_ssl_certificates request, options = nil
|
803
947
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
804
948
|
|
@@ -875,6 +1019,22 @@ module Google
|
|
875
1019
|
# @return [::Gapic::GenericLRO::Operation]
|
876
1020
|
#
|
877
1021
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1022
|
+
#
|
1023
|
+
# @example Basic example
|
1024
|
+
# require "google/cloud/compute/v1"
|
1025
|
+
#
|
1026
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1027
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
1028
|
+
#
|
1029
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1030
|
+
# request = Google::Cloud::Compute::V1::SetSslPolicyTargetHttpsProxyRequest.new
|
1031
|
+
#
|
1032
|
+
# # Call the set_ssl_policy method.
|
1033
|
+
# result = client.set_ssl_policy request
|
1034
|
+
#
|
1035
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1036
|
+
# p result
|
1037
|
+
#
|
878
1038
|
def set_ssl_policy request, options = nil
|
879
1039
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
880
1040
|
|
@@ -951,6 +1111,22 @@ module Google
|
|
951
1111
|
# @return [::Gapic::GenericLRO::Operation]
|
952
1112
|
#
|
953
1113
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1114
|
+
#
|
1115
|
+
# @example Basic example
|
1116
|
+
# require "google/cloud/compute/v1"
|
1117
|
+
#
|
1118
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1119
|
+
# client = Google::Cloud::Compute::V1::TargetHttpsProxies::Rest::Client.new
|
1120
|
+
#
|
1121
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1122
|
+
# request = Google::Cloud::Compute::V1::SetUrlMapTargetHttpsProxyRequest.new
|
1123
|
+
#
|
1124
|
+
# # Call the set_url_map method.
|
1125
|
+
# result = client.set_url_map request
|
1126
|
+
#
|
1127
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1128
|
+
# p result
|
1129
|
+
#
|
954
1130
|
def set_url_map request, options = nil
|
955
1131
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
956
1132
|
|
@@ -205,6 +205,22 @@ module Google
|
|
205
205
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetInstancesScopedList>]
|
206
206
|
#
|
207
207
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
208
|
+
#
|
209
|
+
# @example Basic example
|
210
|
+
# require "google/cloud/compute/v1"
|
211
|
+
#
|
212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
213
|
+
# client = Google::Cloud::Compute::V1::TargetInstances::Rest::Client.new
|
214
|
+
#
|
215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
216
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetInstancesRequest.new
|
217
|
+
#
|
218
|
+
# # Call the aggregated_list method.
|
219
|
+
# result = client.aggregated_list request
|
220
|
+
#
|
221
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetInstanceAggregatedList.
|
222
|
+
# p result
|
223
|
+
#
|
208
224
|
def aggregated_list request, options = nil
|
209
225
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
210
226
|
|
@@ -274,6 +290,22 @@ module Google
|
|
274
290
|
# @return [::Gapic::GenericLRO::Operation]
|
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::TargetInstances::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetInstanceRequest.new
|
302
|
+
#
|
303
|
+
# # Call the delete method.
|
304
|
+
# result = client.delete request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
307
|
+
# p result
|
308
|
+
#
|
277
309
|
def delete request, options = nil
|
278
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
311
|
|
@@ -349,6 +381,22 @@ module Google
|
|
349
381
|
# @return [::Google::Cloud::Compute::V1::TargetInstance]
|
350
382
|
#
|
351
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::TargetInstances::Rest::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Compute::V1::GetTargetInstanceRequest.new
|
393
|
+
#
|
394
|
+
# # Call the get method.
|
395
|
+
# result = client.get request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetInstance.
|
398
|
+
# p result
|
399
|
+
#
|
352
400
|
def get request, options = nil
|
353
401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
402
|
|
@@ -417,6 +465,22 @@ module Google
|
|
417
465
|
# @return [::Gapic::GenericLRO::Operation]
|
418
466
|
#
|
419
467
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
468
|
+
#
|
469
|
+
# @example Basic example
|
470
|
+
# require "google/cloud/compute/v1"
|
471
|
+
#
|
472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
473
|
+
# client = Google::Cloud::Compute::V1::TargetInstances::Rest::Client.new
|
474
|
+
#
|
475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
476
|
+
# request = Google::Cloud::Compute::V1::InsertTargetInstanceRequest.new
|
477
|
+
#
|
478
|
+
# # Call the insert method.
|
479
|
+
# result = client.insert request
|
480
|
+
#
|
481
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
482
|
+
# p result
|
483
|
+
#
|
420
484
|
def insert request, options = nil
|
421
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
486
|
|
@@ -500,6 +564,22 @@ module Google
|
|
500
564
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetInstance>]
|
501
565
|
#
|
502
566
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
567
|
+
#
|
568
|
+
# @example Basic example
|
569
|
+
# require "google/cloud/compute/v1"
|
570
|
+
#
|
571
|
+
# # Create a client object. The client can be reused for multiple calls.
|
572
|
+
# client = Google::Cloud::Compute::V1::TargetInstances::Rest::Client.new
|
573
|
+
#
|
574
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
575
|
+
# request = Google::Cloud::Compute::V1::ListTargetInstancesRequest.new
|
576
|
+
#
|
577
|
+
# # Call the list method.
|
578
|
+
# result = client.list request
|
579
|
+
#
|
580
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetInstanceList.
|
581
|
+
# p result
|
582
|
+
#
|
503
583
|
def list request, options = nil
|
504
584
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
505
585
|
|
@@ -213,6 +213,22 @@ module Google
|
|
213
213
|
# @return [::Gapic::GenericLRO::Operation]
|
214
214
|
#
|
215
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/compute/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Compute::V1::AddHealthCheckTargetPoolRequest.new
|
225
|
+
#
|
226
|
+
# # Call the add_health_check method.
|
227
|
+
# result = client.add_health_check request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
230
|
+
# p result
|
231
|
+
#
|
216
232
|
def add_health_check request, options = nil
|
217
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
234
|
|
@@ -292,6 +308,22 @@ module Google
|
|
292
308
|
# @return [::Gapic::GenericLRO::Operation]
|
293
309
|
#
|
294
310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
|
+
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/compute/v1"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::Compute::V1::AddInstanceTargetPoolRequest.new
|
320
|
+
#
|
321
|
+
# # Call the add_instance method.
|
322
|
+
# result = client.add_instance request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
325
|
+
# p result
|
326
|
+
#
|
295
327
|
def add_instance request, options = nil
|
296
328
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
297
329
|
|
@@ -375,6 +407,22 @@ module Google
|
|
375
407
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetPoolsScopedList>]
|
376
408
|
#
|
377
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/compute/v1"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetPoolsRequest.new
|
419
|
+
#
|
420
|
+
# # Call the aggregated_list method.
|
421
|
+
# result = client.aggregated_list request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetPoolAggregatedList.
|
424
|
+
# p result
|
425
|
+
#
|
378
426
|
def aggregated_list request, options = nil
|
379
427
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
380
428
|
|
@@ -444,6 +492,22 @@ module Google
|
|
444
492
|
# @return [::Gapic::GenericLRO::Operation]
|
445
493
|
#
|
446
494
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
495
|
+
#
|
496
|
+
# @example Basic example
|
497
|
+
# require "google/cloud/compute/v1"
|
498
|
+
#
|
499
|
+
# # Create a client object. The client can be reused for multiple calls.
|
500
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
501
|
+
#
|
502
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
503
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetPoolRequest.new
|
504
|
+
#
|
505
|
+
# # Call the delete method.
|
506
|
+
# result = client.delete request
|
507
|
+
#
|
508
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
509
|
+
# p result
|
510
|
+
#
|
447
511
|
def delete request, options = nil
|
448
512
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
513
|
|
@@ -519,6 +583,22 @@ module Google
|
|
519
583
|
# @return [::Google::Cloud::Compute::V1::TargetPool]
|
520
584
|
#
|
521
585
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
586
|
+
#
|
587
|
+
# @example Basic example
|
588
|
+
# require "google/cloud/compute/v1"
|
589
|
+
#
|
590
|
+
# # Create a client object. The client can be reused for multiple calls.
|
591
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
592
|
+
#
|
593
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
594
|
+
# request = Google::Cloud::Compute::V1::GetTargetPoolRequest.new
|
595
|
+
#
|
596
|
+
# # Call the get method.
|
597
|
+
# result = client.get request
|
598
|
+
#
|
599
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetPool.
|
600
|
+
# p result
|
601
|
+
#
|
522
602
|
def get request, options = nil
|
523
603
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
524
604
|
|
@@ -587,6 +667,22 @@ module Google
|
|
587
667
|
# @return [::Google::Cloud::Compute::V1::TargetPoolInstanceHealth]
|
588
668
|
#
|
589
669
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
670
|
+
#
|
671
|
+
# @example Basic example
|
672
|
+
# require "google/cloud/compute/v1"
|
673
|
+
#
|
674
|
+
# # Create a client object. The client can be reused for multiple calls.
|
675
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
676
|
+
#
|
677
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
678
|
+
# request = Google::Cloud::Compute::V1::GetHealthTargetPoolRequest.new
|
679
|
+
#
|
680
|
+
# # Call the get_health method.
|
681
|
+
# result = client.get_health request
|
682
|
+
#
|
683
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetPoolInstanceHealth.
|
684
|
+
# p result
|
685
|
+
#
|
590
686
|
def get_health request, options = nil
|
591
687
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
592
688
|
|
@@ -655,6 +751,22 @@ module Google
|
|
655
751
|
# @return [::Gapic::GenericLRO::Operation]
|
656
752
|
#
|
657
753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
754
|
+
#
|
755
|
+
# @example Basic example
|
756
|
+
# require "google/cloud/compute/v1"
|
757
|
+
#
|
758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
759
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
760
|
+
#
|
761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
762
|
+
# request = Google::Cloud::Compute::V1::InsertTargetPoolRequest.new
|
763
|
+
#
|
764
|
+
# # Call the insert method.
|
765
|
+
# result = client.insert request
|
766
|
+
#
|
767
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
768
|
+
# p result
|
769
|
+
#
|
658
770
|
def insert request, options = nil
|
659
771
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
660
772
|
|
@@ -738,6 +850,22 @@ module Google
|
|
738
850
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetPool>]
|
739
851
|
#
|
740
852
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
853
|
+
#
|
854
|
+
# @example Basic example
|
855
|
+
# require "google/cloud/compute/v1"
|
856
|
+
#
|
857
|
+
# # Create a client object. The client can be reused for multiple calls.
|
858
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
859
|
+
#
|
860
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
861
|
+
# request = Google::Cloud::Compute::V1::ListTargetPoolsRequest.new
|
862
|
+
#
|
863
|
+
# # Call the list method.
|
864
|
+
# result = client.list request
|
865
|
+
#
|
866
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetPoolList.
|
867
|
+
# p result
|
868
|
+
#
|
741
869
|
def list request, options = nil
|
742
870
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
743
871
|
|
@@ -809,6 +937,22 @@ module Google
|
|
809
937
|
# @return [::Gapic::GenericLRO::Operation]
|
810
938
|
#
|
811
939
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
940
|
+
#
|
941
|
+
# @example Basic example
|
942
|
+
# require "google/cloud/compute/v1"
|
943
|
+
#
|
944
|
+
# # Create a client object. The client can be reused for multiple calls.
|
945
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
946
|
+
#
|
947
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
948
|
+
# request = Google::Cloud::Compute::V1::RemoveHealthCheckTargetPoolRequest.new
|
949
|
+
#
|
950
|
+
# # Call the remove_health_check method.
|
951
|
+
# result = client.remove_health_check request
|
952
|
+
#
|
953
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
954
|
+
# p result
|
955
|
+
#
|
812
956
|
def remove_health_check request, options = nil
|
813
957
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
814
958
|
|
@@ -888,6 +1032,22 @@ module Google
|
|
888
1032
|
# @return [::Gapic::GenericLRO::Operation]
|
889
1033
|
#
|
890
1034
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1035
|
+
#
|
1036
|
+
# @example Basic example
|
1037
|
+
# require "google/cloud/compute/v1"
|
1038
|
+
#
|
1039
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1040
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
1041
|
+
#
|
1042
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1043
|
+
# request = Google::Cloud::Compute::V1::RemoveInstanceTargetPoolRequest.new
|
1044
|
+
#
|
1045
|
+
# # Call the remove_instance method.
|
1046
|
+
# result = client.remove_instance request
|
1047
|
+
#
|
1048
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1049
|
+
# p result
|
1050
|
+
#
|
891
1051
|
def remove_instance request, options = nil
|
892
1052
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
893
1053
|
|
@@ -969,6 +1129,22 @@ module Google
|
|
969
1129
|
# @return [::Gapic::GenericLRO::Operation]
|
970
1130
|
#
|
971
1131
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1132
|
+
#
|
1133
|
+
# @example Basic example
|
1134
|
+
# require "google/cloud/compute/v1"
|
1135
|
+
#
|
1136
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1137
|
+
# client = Google::Cloud::Compute::V1::TargetPools::Rest::Client.new
|
1138
|
+
#
|
1139
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1140
|
+
# request = Google::Cloud::Compute::V1::SetBackupTargetPoolRequest.new
|
1141
|
+
#
|
1142
|
+
# # Call the set_backup method.
|
1143
|
+
# result = client.set_backup request
|
1144
|
+
#
|
1145
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1146
|
+
# p result
|
1147
|
+
#
|
972
1148
|
def set_backup request, options = nil
|
973
1149
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
974
1150
|
|