google-cloud-compute-v1 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +80 -0
- 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 +144 -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 +192 -0
- 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
- metadata +5 -5
|
@@ -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
|
|
|
@@ -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
|
|