google-cloud-compute-v1 2.3.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/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
|
@@ -225,6 +225,22 @@ module Google
|
|
|
225
225
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SubnetworksScopedList>]
|
|
226
226
|
#
|
|
227
227
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
228
|
+
#
|
|
229
|
+
# @example Basic example
|
|
230
|
+
# require "google/cloud/compute/v1"
|
|
231
|
+
#
|
|
232
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
233
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
234
|
+
#
|
|
235
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
236
|
+
# request = Google::Cloud::Compute::V1::AggregatedListSubnetworksRequest.new
|
|
237
|
+
#
|
|
238
|
+
# # Call the aggregated_list method.
|
|
239
|
+
# result = client.aggregated_list request
|
|
240
|
+
#
|
|
241
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SubnetworkAggregatedList.
|
|
242
|
+
# p result
|
|
243
|
+
#
|
|
228
244
|
def aggregated_list request, options = nil
|
|
229
245
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
230
246
|
|
|
@@ -294,6 +310,22 @@ module Google
|
|
|
294
310
|
# @return [::Gapic::GenericLRO::Operation]
|
|
295
311
|
#
|
|
296
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
313
|
+
#
|
|
314
|
+
# @example Basic example
|
|
315
|
+
# require "google/cloud/compute/v1"
|
|
316
|
+
#
|
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
318
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
319
|
+
#
|
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
321
|
+
# request = Google::Cloud::Compute::V1::DeleteSubnetworkRequest.new
|
|
322
|
+
#
|
|
323
|
+
# # Call the delete method.
|
|
324
|
+
# result = client.delete request
|
|
325
|
+
#
|
|
326
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
327
|
+
# p result
|
|
328
|
+
#
|
|
297
329
|
def delete request, options = nil
|
|
298
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
299
331
|
|
|
@@ -373,6 +405,22 @@ module Google
|
|
|
373
405
|
# @return [::Gapic::GenericLRO::Operation]
|
|
374
406
|
#
|
|
375
407
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
408
|
+
#
|
|
409
|
+
# @example Basic example
|
|
410
|
+
# require "google/cloud/compute/v1"
|
|
411
|
+
#
|
|
412
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
413
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
414
|
+
#
|
|
415
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
416
|
+
# request = Google::Cloud::Compute::V1::ExpandIpCidrRangeSubnetworkRequest.new
|
|
417
|
+
#
|
|
418
|
+
# # Call the expand_ip_cidr_range method.
|
|
419
|
+
# result = client.expand_ip_cidr_range request
|
|
420
|
+
#
|
|
421
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
422
|
+
# p result
|
|
423
|
+
#
|
|
376
424
|
def expand_ip_cidr_range request, options = nil
|
|
377
425
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
378
426
|
|
|
@@ -448,6 +496,22 @@ module Google
|
|
|
448
496
|
# @return [::Google::Cloud::Compute::V1::Subnetwork]
|
|
449
497
|
#
|
|
450
498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
499
|
+
#
|
|
500
|
+
# @example Basic example
|
|
501
|
+
# require "google/cloud/compute/v1"
|
|
502
|
+
#
|
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
504
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
505
|
+
#
|
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
507
|
+
# request = Google::Cloud::Compute::V1::GetSubnetworkRequest.new
|
|
508
|
+
#
|
|
509
|
+
# # Call the get method.
|
|
510
|
+
# result = client.get request
|
|
511
|
+
#
|
|
512
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Subnetwork.
|
|
513
|
+
# p result
|
|
514
|
+
#
|
|
451
515
|
def get request, options = nil
|
|
452
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
453
517
|
|
|
@@ -516,6 +580,22 @@ module Google
|
|
|
516
580
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
517
581
|
#
|
|
518
582
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
583
|
+
#
|
|
584
|
+
# @example Basic example
|
|
585
|
+
# require "google/cloud/compute/v1"
|
|
586
|
+
#
|
|
587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
588
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
589
|
+
#
|
|
590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
591
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicySubnetworkRequest.new
|
|
592
|
+
#
|
|
593
|
+
# # Call the get_iam_policy method.
|
|
594
|
+
# result = client.get_iam_policy request
|
|
595
|
+
#
|
|
596
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
597
|
+
# p result
|
|
598
|
+
#
|
|
519
599
|
def get_iam_policy request, options = nil
|
|
520
600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
521
601
|
|
|
@@ -584,6 +664,22 @@ module Google
|
|
|
584
664
|
# @return [::Gapic::GenericLRO::Operation]
|
|
585
665
|
#
|
|
586
666
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
667
|
+
#
|
|
668
|
+
# @example Basic example
|
|
669
|
+
# require "google/cloud/compute/v1"
|
|
670
|
+
#
|
|
671
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
672
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
673
|
+
#
|
|
674
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
675
|
+
# request = Google::Cloud::Compute::V1::InsertSubnetworkRequest.new
|
|
676
|
+
#
|
|
677
|
+
# # Call the insert method.
|
|
678
|
+
# result = client.insert request
|
|
679
|
+
#
|
|
680
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
681
|
+
# p result
|
|
682
|
+
#
|
|
587
683
|
def insert request, options = nil
|
|
588
684
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
589
685
|
|
|
@@ -667,6 +763,22 @@ module Google
|
|
|
667
763
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Subnetwork>]
|
|
668
764
|
#
|
|
669
765
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
766
|
+
#
|
|
767
|
+
# @example Basic example
|
|
768
|
+
# require "google/cloud/compute/v1"
|
|
769
|
+
#
|
|
770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
771
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
772
|
+
#
|
|
773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
774
|
+
# request = Google::Cloud::Compute::V1::ListSubnetworksRequest.new
|
|
775
|
+
#
|
|
776
|
+
# # Call the list method.
|
|
777
|
+
# result = client.list request
|
|
778
|
+
#
|
|
779
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SubnetworkList.
|
|
780
|
+
# p result
|
|
781
|
+
#
|
|
670
782
|
def list request, options = nil
|
|
671
783
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
672
784
|
|
|
@@ -740,6 +852,22 @@ module Google
|
|
|
740
852
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UsableSubnetwork>]
|
|
741
853
|
#
|
|
742
854
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
855
|
+
#
|
|
856
|
+
# @example Basic example
|
|
857
|
+
# require "google/cloud/compute/v1"
|
|
858
|
+
#
|
|
859
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
860
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
861
|
+
#
|
|
862
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
863
|
+
# request = Google::Cloud::Compute::V1::ListUsableSubnetworksRequest.new
|
|
864
|
+
#
|
|
865
|
+
# # Call the list_usable method.
|
|
866
|
+
# result = client.list_usable request
|
|
867
|
+
#
|
|
868
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UsableSubnetworksAggregatedList.
|
|
869
|
+
# p result
|
|
870
|
+
#
|
|
743
871
|
def list_usable request, options = nil
|
|
744
872
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
745
873
|
|
|
@@ -813,6 +941,22 @@ module Google
|
|
|
813
941
|
# @return [::Gapic::GenericLRO::Operation]
|
|
814
942
|
#
|
|
815
943
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
944
|
+
#
|
|
945
|
+
# @example Basic example
|
|
946
|
+
# require "google/cloud/compute/v1"
|
|
947
|
+
#
|
|
948
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
949
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
950
|
+
#
|
|
951
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
952
|
+
# request = Google::Cloud::Compute::V1::PatchSubnetworkRequest.new
|
|
953
|
+
#
|
|
954
|
+
# # Call the patch method.
|
|
955
|
+
# result = client.patch request
|
|
956
|
+
#
|
|
957
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
958
|
+
# p result
|
|
959
|
+
#
|
|
816
960
|
def patch request, options = nil
|
|
817
961
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
818
962
|
|
|
@@ -890,6 +1034,22 @@ module Google
|
|
|
890
1034
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
891
1035
|
#
|
|
892
1036
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1037
|
+
#
|
|
1038
|
+
# @example Basic example
|
|
1039
|
+
# require "google/cloud/compute/v1"
|
|
1040
|
+
#
|
|
1041
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1042
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
1043
|
+
#
|
|
1044
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1045
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicySubnetworkRequest.new
|
|
1046
|
+
#
|
|
1047
|
+
# # Call the set_iam_policy method.
|
|
1048
|
+
# result = client.set_iam_policy request
|
|
1049
|
+
#
|
|
1050
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
1051
|
+
# p result
|
|
1052
|
+
#
|
|
893
1053
|
def set_iam_policy request, options = nil
|
|
894
1054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
895
1055
|
|
|
@@ -960,6 +1120,22 @@ module Google
|
|
|
960
1120
|
# @return [::Gapic::GenericLRO::Operation]
|
|
961
1121
|
#
|
|
962
1122
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1123
|
+
#
|
|
1124
|
+
# @example Basic example
|
|
1125
|
+
# require "google/cloud/compute/v1"
|
|
1126
|
+
#
|
|
1127
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1128
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
1129
|
+
#
|
|
1130
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1131
|
+
# request = Google::Cloud::Compute::V1::SetPrivateIpGoogleAccessSubnetworkRequest.new
|
|
1132
|
+
#
|
|
1133
|
+
# # Call the set_private_ip_google_access method.
|
|
1134
|
+
# result = client.set_private_ip_google_access request
|
|
1135
|
+
#
|
|
1136
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1137
|
+
# p result
|
|
1138
|
+
#
|
|
963
1139
|
def set_private_ip_google_access request, options = nil
|
|
964
1140
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
965
1141
|
|
|
@@ -1037,6 +1213,22 @@ module Google
|
|
|
1037
1213
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1038
1214
|
#
|
|
1039
1215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1216
|
+
#
|
|
1217
|
+
# @example Basic example
|
|
1218
|
+
# require "google/cloud/compute/v1"
|
|
1219
|
+
#
|
|
1220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1221
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
|
1222
|
+
#
|
|
1223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1224
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsSubnetworkRequest.new
|
|
1225
|
+
#
|
|
1226
|
+
# # Call the test_iam_permissions method.
|
|
1227
|
+
# result = client.test_iam_permissions request
|
|
1228
|
+
#
|
|
1229
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
1230
|
+
# p result
|
|
1231
|
+
#
|
|
1040
1232
|
def test_iam_permissions request, options = nil
|
|
1041
1233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1042
1234
|
|
|
@@ -194,6 +194,22 @@ module Google
|
|
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
|
195
195
|
#
|
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
197
|
+
#
|
|
198
|
+
# @example Basic example
|
|
199
|
+
# require "google/cloud/compute/v1"
|
|
200
|
+
#
|
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
202
|
+
# client = Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client.new
|
|
203
|
+
#
|
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
205
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetGrpcProxyRequest.new
|
|
206
|
+
#
|
|
207
|
+
# # Call the delete method.
|
|
208
|
+
# result = client.delete request
|
|
209
|
+
#
|
|
210
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
211
|
+
# p result
|
|
212
|
+
#
|
|
197
213
|
def delete request, options = nil
|
|
198
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
199
215
|
|
|
@@ -266,6 +282,22 @@ module Google
|
|
|
266
282
|
# @return [::Google::Cloud::Compute::V1::TargetGrpcProxy]
|
|
267
283
|
#
|
|
268
284
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
285
|
+
#
|
|
286
|
+
# @example Basic example
|
|
287
|
+
# require "google/cloud/compute/v1"
|
|
288
|
+
#
|
|
289
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
290
|
+
# client = Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client.new
|
|
291
|
+
#
|
|
292
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
293
|
+
# request = Google::Cloud::Compute::V1::GetTargetGrpcProxyRequest.new
|
|
294
|
+
#
|
|
295
|
+
# # Call the get method.
|
|
296
|
+
# result = client.get request
|
|
297
|
+
#
|
|
298
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetGrpcProxy.
|
|
299
|
+
# p result
|
|
300
|
+
#
|
|
269
301
|
def get request, options = nil
|
|
270
302
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
271
303
|
|
|
@@ -332,6 +364,22 @@ module Google
|
|
|
332
364
|
# @return [::Gapic::GenericLRO::Operation]
|
|
333
365
|
#
|
|
334
366
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
367
|
+
#
|
|
368
|
+
# @example Basic example
|
|
369
|
+
# require "google/cloud/compute/v1"
|
|
370
|
+
#
|
|
371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
372
|
+
# client = Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client.new
|
|
373
|
+
#
|
|
374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
375
|
+
# request = Google::Cloud::Compute::V1::InsertTargetGrpcProxyRequest.new
|
|
376
|
+
#
|
|
377
|
+
# # Call the insert method.
|
|
378
|
+
# result = client.insert request
|
|
379
|
+
#
|
|
380
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
381
|
+
# p result
|
|
382
|
+
#
|
|
335
383
|
def insert request, options = nil
|
|
336
384
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
337
385
|
|
|
@@ -412,6 +460,22 @@ module Google
|
|
|
412
460
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetGrpcProxy>]
|
|
413
461
|
#
|
|
414
462
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
463
|
+
#
|
|
464
|
+
# @example Basic example
|
|
465
|
+
# require "google/cloud/compute/v1"
|
|
466
|
+
#
|
|
467
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
468
|
+
# client = Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client.new
|
|
469
|
+
#
|
|
470
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
471
|
+
# request = Google::Cloud::Compute::V1::ListTargetGrpcProxiesRequest.new
|
|
472
|
+
#
|
|
473
|
+
# # Call the list method.
|
|
474
|
+
# result = client.list request
|
|
475
|
+
#
|
|
476
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetGrpcProxyList.
|
|
477
|
+
# p result
|
|
478
|
+
#
|
|
415
479
|
def list request, options = nil
|
|
416
480
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
417
481
|
|
|
@@ -481,6 +545,22 @@ module Google
|
|
|
481
545
|
# @return [::Gapic::GenericLRO::Operation]
|
|
482
546
|
#
|
|
483
547
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
548
|
+
#
|
|
549
|
+
# @example Basic example
|
|
550
|
+
# require "google/cloud/compute/v1"
|
|
551
|
+
#
|
|
552
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
553
|
+
# client = Google::Cloud::Compute::V1::TargetGrpcProxies::Rest::Client.new
|
|
554
|
+
#
|
|
555
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
556
|
+
# request = Google::Cloud::Compute::V1::PatchTargetGrpcProxyRequest.new
|
|
557
|
+
#
|
|
558
|
+
# # Call the patch method.
|
|
559
|
+
# result = client.patch request
|
|
560
|
+
#
|
|
561
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
562
|
+
# p result
|
|
563
|
+
#
|
|
484
564
|
def patch request, options = nil
|
|
485
565
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
486
566
|
|
|
@@ -209,6 +209,22 @@ module Google
|
|
|
209
209
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::TargetHttpProxiesScopedList>]
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
218
|
+
#
|
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
220
|
+
# request = Google::Cloud::Compute::V1::AggregatedListTargetHttpProxiesRequest.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::TargetHttpProxyAggregatedList.
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
301
|
+
#
|
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
303
|
+
# request = Google::Cloud::Compute::V1::DeleteTargetHttpProxyRequest.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::TargetHttpProxy]
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
389
|
+
#
|
|
390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
391
|
+
# request = Google::Cloud::Compute::V1::GetTargetHttpProxyRequest.new
|
|
392
|
+
#
|
|
393
|
+
# # Call the get method.
|
|
394
|
+
# result = client.get request
|
|
395
|
+
#
|
|
396
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpProxy.
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
471
|
+
#
|
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
473
|
+
# request = Google::Cloud::Compute::V1::InsertTargetHttpProxyRequest.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::TargetHttpProxy>]
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
567
|
+
#
|
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
569
|
+
# request = Google::Cloud::Compute::V1::ListTargetHttpProxiesRequest.new
|
|
570
|
+
#
|
|
571
|
+
# # Call the list method.
|
|
572
|
+
# result = client.list request
|
|
573
|
+
#
|
|
574
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpProxyList.
|
|
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::TargetHttpProxies::Rest::Client.new
|
|
652
|
+
#
|
|
653
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
654
|
+
# request = Google::Cloud::Compute::V1::PatchTargetHttpProxyRequest.new
|
|
655
|
+
#
|
|
656
|
+
# # Call the patch method.
|
|
657
|
+
# result = client.patch request
|
|
658
|
+
#
|
|
659
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
660
|
+
# p result
|
|
661
|
+
#
|
|
566
662
|
def patch 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::TargetHttpProxies::Rest::Client.new
|
|
744
|
+
#
|
|
745
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
746
|
+
# request = Google::Cloud::Compute::V1::SetUrlMapTargetHttpProxyRequest.new
|
|
747
|
+
#
|
|
748
|
+
# # Call the set_url_map method.
|
|
749
|
+
# result = client.set_url_map request
|
|
750
|
+
#
|
|
751
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
752
|
+
# p result
|
|
753
|
+
#
|
|
642
754
|
def set_url_map request, options = nil
|
|
643
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
644
756
|
|