google-cloud-compute-v1 1.6.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +62 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +217 -24
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -1
- data/lib/google/cloud/compute/v1/compute_pb.rb +228 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +105 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +61 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +55 -22
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +100 -40
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +225 -90
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +120 -12
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +62 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +115 -12
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +61 -1
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +80 -32
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +55 -22
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +65 -26
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +65 -26
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +196 -14
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +122 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +777 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +599 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +50 -20
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +50 -20
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +140 -22
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +61 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +119 -12
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +59 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +60 -24
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +35 -14
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +55 -22
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +55 -22
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +62 -1
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +45 -18
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +62 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +2 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +637 -26
- metadata +14 -4
@@ -264,8 +264,11 @@ module Google
|
|
264
264
|
return result
|
265
265
|
end
|
266
266
|
rescue ::Faraday::Error => e
|
267
|
-
|
268
|
-
|
267
|
+
begin
|
268
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
269
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
270
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
271
|
+
end
|
269
272
|
end
|
270
273
|
|
271
274
|
##
|
@@ -338,8 +341,11 @@ module Google
|
|
338
341
|
return result
|
339
342
|
end
|
340
343
|
rescue ::Faraday::Error => e
|
341
|
-
|
342
|
-
|
344
|
+
begin
|
345
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
346
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
347
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
348
|
+
end
|
343
349
|
end
|
344
350
|
|
345
351
|
##
|
@@ -414,8 +420,11 @@ module Google
|
|
414
420
|
return result
|
415
421
|
end
|
416
422
|
rescue ::Faraday::Error => e
|
417
|
-
|
418
|
-
|
423
|
+
begin
|
424
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
425
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
426
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
427
|
+
end
|
419
428
|
end
|
420
429
|
|
421
430
|
##
|
@@ -492,8 +501,11 @@ module Google
|
|
492
501
|
return result
|
493
502
|
end
|
494
503
|
rescue ::Faraday::Error => e
|
495
|
-
|
496
|
-
|
504
|
+
begin
|
505
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
506
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
507
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
508
|
+
end
|
497
509
|
end
|
498
510
|
|
499
511
|
##
|
@@ -568,8 +580,11 @@ module Google
|
|
568
580
|
return result
|
569
581
|
end
|
570
582
|
rescue ::Faraday::Error => e
|
571
|
-
|
572
|
-
|
583
|
+
begin
|
584
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
585
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
586
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
587
|
+
end
|
573
588
|
end
|
574
589
|
|
575
590
|
##
|
@@ -646,8 +661,11 @@ module Google
|
|
646
661
|
return result
|
647
662
|
end
|
648
663
|
rescue ::Faraday::Error => e
|
649
|
-
|
650
|
-
|
664
|
+
begin
|
665
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
666
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
667
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
668
|
+
end
|
651
669
|
end
|
652
670
|
|
653
671
|
##
|
@@ -722,8 +740,11 @@ module Google
|
|
722
740
|
return result
|
723
741
|
end
|
724
742
|
rescue ::Faraday::Error => e
|
725
|
-
|
726
|
-
|
743
|
+
begin
|
744
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
745
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
746
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
747
|
+
end
|
727
748
|
end
|
728
749
|
|
729
750
|
##
|
@@ -787,8 +808,11 @@ module Google
|
|
787
808
|
return result
|
788
809
|
end
|
789
810
|
rescue ::Faraday::Error => e
|
790
|
-
|
791
|
-
|
811
|
+
begin
|
812
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
813
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
814
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
815
|
+
end
|
792
816
|
end
|
793
817
|
|
794
818
|
##
|
@@ -863,8 +887,11 @@ module Google
|
|
863
887
|
return result
|
864
888
|
end
|
865
889
|
rescue ::Faraday::Error => e
|
866
|
-
|
867
|
-
|
890
|
+
begin
|
891
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
892
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
893
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
894
|
+
end
|
868
895
|
end
|
869
896
|
|
870
897
|
##
|
@@ -937,8 +964,11 @@ module Google
|
|
937
964
|
return result
|
938
965
|
end
|
939
966
|
rescue ::Faraday::Error => e
|
940
|
-
|
941
|
-
|
967
|
+
begin
|
968
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
969
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
970
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
971
|
+
end
|
942
972
|
end
|
943
973
|
|
944
974
|
##
|
@@ -1013,8 +1043,11 @@ module Google
|
|
1013
1043
|
return result
|
1014
1044
|
end
|
1015
1045
|
rescue ::Faraday::Error => e
|
1016
|
-
|
1017
|
-
|
1046
|
+
begin
|
1047
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1048
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1049
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1050
|
+
end
|
1018
1051
|
end
|
1019
1052
|
|
1020
1053
|
##
|
@@ -1089,8 +1122,11 @@ module Google
|
|
1089
1122
|
return result
|
1090
1123
|
end
|
1091
1124
|
rescue ::Faraday::Error => e
|
1092
|
-
|
1093
|
-
|
1125
|
+
begin
|
1126
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1127
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1128
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1129
|
+
end
|
1094
1130
|
end
|
1095
1131
|
|
1096
1132
|
##
|
@@ -1165,8 +1201,11 @@ module Google
|
|
1165
1201
|
return result
|
1166
1202
|
end
|
1167
1203
|
rescue ::Faraday::Error => e
|
1168
|
-
|
1169
|
-
|
1204
|
+
begin
|
1205
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1206
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1207
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1208
|
+
end
|
1170
1209
|
end
|
1171
1210
|
|
1172
1211
|
##
|
@@ -1243,8 +1282,11 @@ module Google
|
|
1243
1282
|
return result
|
1244
1283
|
end
|
1245
1284
|
rescue ::Faraday::Error => e
|
1246
|
-
|
1247
|
-
|
1285
|
+
begin
|
1286
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1287
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1288
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1289
|
+
end
|
1248
1290
|
end
|
1249
1291
|
|
1250
1292
|
##
|
@@ -1321,8 +1363,11 @@ module Google
|
|
1321
1363
|
return result
|
1322
1364
|
end
|
1323
1365
|
rescue ::Faraday::Error => e
|
1324
|
-
|
1325
|
-
|
1366
|
+
begin
|
1367
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1368
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1369
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1370
|
+
end
|
1326
1371
|
end
|
1327
1372
|
|
1328
1373
|
##
|
@@ -1399,8 +1444,11 @@ module Google
|
|
1399
1444
|
return result
|
1400
1445
|
end
|
1401
1446
|
rescue ::Faraday::Error => e
|
1402
|
-
|
1403
|
-
|
1447
|
+
begin
|
1448
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1449
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1450
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1451
|
+
end
|
1404
1452
|
end
|
1405
1453
|
|
1406
1454
|
##
|
@@ -1477,8 +1525,11 @@ module Google
|
|
1477
1525
|
return result
|
1478
1526
|
end
|
1479
1527
|
rescue ::Faraday::Error => e
|
1480
|
-
|
1481
|
-
|
1528
|
+
begin
|
1529
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1530
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1531
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1532
|
+
end
|
1482
1533
|
end
|
1483
1534
|
|
1484
1535
|
##
|
@@ -1555,8 +1606,11 @@ module Google
|
|
1555
1606
|
return result
|
1556
1607
|
end
|
1557
1608
|
rescue ::Faraday::Error => e
|
1558
|
-
|
1559
|
-
|
1609
|
+
begin
|
1610
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1611
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1612
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1613
|
+
end
|
1560
1614
|
end
|
1561
1615
|
|
1562
1616
|
##
|
@@ -1633,8 +1687,11 @@ module Google
|
|
1633
1687
|
return result
|
1634
1688
|
end
|
1635
1689
|
rescue ::Faraday::Error => e
|
1636
|
-
|
1637
|
-
|
1690
|
+
begin
|
1691
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1692
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1693
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1694
|
+
end
|
1638
1695
|
end
|
1639
1696
|
|
1640
1697
|
##
|
@@ -1711,8 +1768,11 @@ module Google
|
|
1711
1768
|
return result
|
1712
1769
|
end
|
1713
1770
|
rescue ::Faraday::Error => e
|
1714
|
-
|
1715
|
-
|
1771
|
+
begin
|
1772
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1773
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1774
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1775
|
+
end
|
1716
1776
|
end
|
1717
1777
|
|
1718
1778
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -239,8 +239,11 @@ module Google
|
|
239
239
|
return result
|
240
240
|
end
|
241
241
|
rescue ::Faraday::Error => e
|
242
|
-
|
243
|
-
|
242
|
+
begin
|
243
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
244
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
245
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
246
|
+
end
|
244
247
|
end
|
245
248
|
|
246
249
|
##
|
@@ -313,8 +316,11 @@ module Google
|
|
313
316
|
return result
|
314
317
|
end
|
315
318
|
rescue ::Faraday::Error => e
|
316
|
-
|
317
|
-
|
319
|
+
begin
|
320
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
321
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
322
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
323
|
+
end
|
318
324
|
end
|
319
325
|
|
320
326
|
##
|
@@ -389,8 +395,11 @@ module Google
|
|
389
395
|
return result
|
390
396
|
end
|
391
397
|
rescue ::Faraday::Error => e
|
392
|
-
|
393
|
-
|
398
|
+
begin
|
399
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
400
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
401
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
402
|
+
end
|
394
403
|
end
|
395
404
|
|
396
405
|
##
|
@@ -454,8 +463,11 @@ module Google
|
|
454
463
|
return result
|
455
464
|
end
|
456
465
|
rescue ::Faraday::Error => e
|
457
|
-
|
458
|
-
|
466
|
+
begin
|
467
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
468
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
469
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
470
|
+
end
|
459
471
|
end
|
460
472
|
|
461
473
|
##
|
@@ -530,8 +542,11 @@ module Google
|
|
530
542
|
return result
|
531
543
|
end
|
532
544
|
rescue ::Faraday::Error => e
|
533
|
-
|
534
|
-
|
545
|
+
begin
|
546
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
547
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
548
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
549
|
+
end
|
535
550
|
end
|
536
551
|
|
537
552
|
##
|
@@ -604,8 +619,11 @@ module Google
|
|
604
619
|
return result
|
605
620
|
end
|
606
621
|
rescue ::Faraday::Error => e
|
607
|
-
|
608
|
-
|
622
|
+
begin
|
623
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
624
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
625
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
626
|
+
end
|
609
627
|
end
|
610
628
|
|
611
629
|
##
|
@@ -682,8 +700,11 @@ module Google
|
|
682
700
|
return result
|
683
701
|
end
|
684
702
|
rescue ::Faraday::Error => e
|
685
|
-
|
686
|
-
|
703
|
+
begin
|
704
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
705
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
706
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
707
|
+
end
|
687
708
|
end
|
688
709
|
|
689
710
|
##
|
@@ -760,8 +781,11 @@ module Google
|
|
760
781
|
return result
|
761
782
|
end
|
762
783
|
rescue ::Faraday::Error => e
|
763
|
-
|
764
|
-
|
784
|
+
begin
|
785
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
786
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
787
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
788
|
+
end
|
765
789
|
end
|
766
790
|
|
767
791
|
##
|
@@ -838,8 +862,11 @@ module Google
|
|
838
862
|
return result
|
839
863
|
end
|
840
864
|
rescue ::Faraday::Error => e
|
841
|
-
|
842
|
-
|
865
|
+
begin
|
866
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
867
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
868
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
869
|
+
end
|
843
870
|
end
|
844
871
|
|
845
872
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -230,8 +230,11 @@ module Google
|
|
230
230
|
return result
|
231
231
|
end
|
232
232
|
rescue ::Faraday::Error => e
|
233
|
-
|
234
|
-
|
233
|
+
begin
|
234
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
235
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
236
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
237
|
+
end
|
235
238
|
end
|
236
239
|
|
237
240
|
##
|
@@ -293,8 +296,11 @@ module Google
|
|
293
296
|
return result
|
294
297
|
end
|
295
298
|
rescue ::Faraday::Error => e
|
296
|
-
|
297
|
-
|
299
|
+
begin
|
300
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
301
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
302
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
303
|
+
end
|
298
304
|
end
|
299
305
|
|
300
306
|
##
|
@@ -358,8 +364,11 @@ module Google
|
|
358
364
|
return result
|
359
365
|
end
|
360
366
|
rescue ::Faraday::Error => e
|
361
|
-
|
362
|
-
|
367
|
+
begin
|
368
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
369
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
370
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
371
|
+
end
|
363
372
|
end
|
364
373
|
|
365
374
|
##
|
@@ -431,8 +440,11 @@ module Google
|
|
431
440
|
return result
|
432
441
|
end
|
433
442
|
rescue ::Faraday::Error => e
|
434
|
-
|
435
|
-
|
443
|
+
begin
|
444
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
445
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
446
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
447
|
+
end
|
436
448
|
end
|
437
449
|
|
438
450
|
##
|
@@ -503,8 +515,11 @@ module Google
|
|
503
515
|
return result
|
504
516
|
end
|
505
517
|
rescue ::Faraday::Error => e
|
506
|
-
|
507
|
-
|
518
|
+
begin
|
519
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
520
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
521
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
522
|
+
end
|
508
523
|
end
|
509
524
|
|
510
525
|
##
|
@@ -568,8 +583,11 @@ module Google
|
|
568
583
|
return result
|
569
584
|
end
|
570
585
|
rescue ::Faraday::Error => e
|
571
|
-
|
572
|
-
|
586
|
+
begin
|
587
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
588
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
589
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
590
|
+
end
|
573
591
|
end
|
574
592
|
|
575
593
|
##
|
@@ -633,8 +651,11 @@ module Google
|
|
633
651
|
return result
|
634
652
|
end
|
635
653
|
rescue ::Faraday::Error => e
|
636
|
-
|
637
|
-
|
654
|
+
begin
|
655
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
656
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
657
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
658
|
+
end
|
638
659
|
end
|
639
660
|
|
640
661
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|