google-cloud-compute-v1 1.7.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/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 +30 -12
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -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 +70 -28
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
- 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 +25 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -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 +35 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -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 +35 -14
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -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 +45 -18
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -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/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
- 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/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
- 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 +60 -24
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -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 +35 -14
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -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 +30 -12
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -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 +30 -12
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -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
- metadata +4 -4
@@ -250,8 +250,11 @@ module Google
|
|
250
250
|
return result
|
251
251
|
end
|
252
252
|
rescue ::Faraday::Error => e
|
253
|
-
|
254
|
-
|
253
|
+
begin
|
254
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
255
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
256
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
257
|
+
end
|
255
258
|
end
|
256
259
|
|
257
260
|
##
|
@@ -324,8 +327,11 @@ module Google
|
|
324
327
|
return result
|
325
328
|
end
|
326
329
|
rescue ::Faraday::Error => e
|
327
|
-
|
328
|
-
|
330
|
+
begin
|
331
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
332
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
333
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
334
|
+
end
|
329
335
|
end
|
330
336
|
|
331
337
|
##
|
@@ -400,8 +406,11 @@ module Google
|
|
400
406
|
return result
|
401
407
|
end
|
402
408
|
rescue ::Faraday::Error => e
|
403
|
-
|
404
|
-
|
409
|
+
begin
|
410
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
411
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
412
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
413
|
+
end
|
405
414
|
end
|
406
415
|
|
407
416
|
##
|
@@ -478,8 +487,11 @@ module Google
|
|
478
487
|
return result
|
479
488
|
end
|
480
489
|
rescue ::Faraday::Error => e
|
481
|
-
|
482
|
-
|
490
|
+
begin
|
491
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
492
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
493
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
494
|
+
end
|
483
495
|
end
|
484
496
|
|
485
497
|
##
|
@@ -543,8 +555,11 @@ module Google
|
|
543
555
|
return result
|
544
556
|
end
|
545
557
|
rescue ::Faraday::Error => e
|
546
|
-
|
547
|
-
|
558
|
+
begin
|
559
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
560
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
561
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
562
|
+
end
|
548
563
|
end
|
549
564
|
|
550
565
|
##
|
@@ -610,8 +625,11 @@ module Google
|
|
610
625
|
return result
|
611
626
|
end
|
612
627
|
rescue ::Faraday::Error => e
|
613
|
-
|
614
|
-
|
628
|
+
begin
|
629
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
630
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
631
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
632
|
+
end
|
615
633
|
end
|
616
634
|
|
617
635
|
##
|
@@ -688,8 +706,11 @@ module Google
|
|
688
706
|
return result
|
689
707
|
end
|
690
708
|
rescue ::Faraday::Error => e
|
691
|
-
|
692
|
-
|
709
|
+
begin
|
710
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
711
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
712
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
713
|
+
end
|
693
714
|
end
|
694
715
|
|
695
716
|
##
|
@@ -762,8 +783,11 @@ module Google
|
|
762
783
|
return result
|
763
784
|
end
|
764
785
|
rescue ::Faraday::Error => e
|
765
|
-
|
766
|
-
|
786
|
+
begin
|
787
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
788
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
789
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
790
|
+
end
|
767
791
|
end
|
768
792
|
|
769
793
|
##
|
@@ -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
|
##
|
@@ -916,8 +943,11 @@ module Google
|
|
916
943
|
return result
|
917
944
|
end
|
918
945
|
rescue ::Faraday::Error => e
|
919
|
-
|
920
|
-
|
946
|
+
begin
|
947
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
948
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
949
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
950
|
+
end
|
921
951
|
end
|
922
952
|
|
923
953
|
##
|
@@ -983,8 +1013,11 @@ module Google
|
|
983
1013
|
return result
|
984
1014
|
end
|
985
1015
|
rescue ::Faraday::Error => e
|
986
|
-
|
987
|
-
|
1016
|
+
begin
|
1017
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1018
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1019
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1020
|
+
end
|
988
1021
|
end
|
989
1022
|
|
990
1023
|
##
|
@@ -1061,8 +1094,11 @@ module Google
|
|
1061
1094
|
return result
|
1062
1095
|
end
|
1063
1096
|
rescue ::Faraday::Error => e
|
1064
|
-
|
1065
|
-
|
1097
|
+
begin
|
1098
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1099
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1100
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1101
|
+
end
|
1066
1102
|
end
|
1067
1103
|
|
1068
1104
|
##
|
@@ -1128,8 +1164,11 @@ module Google
|
|
1128
1164
|
return result
|
1129
1165
|
end
|
1130
1166
|
rescue ::Faraday::Error => e
|
1131
|
-
|
1132
|
-
|
1167
|
+
begin
|
1168
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1169
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1170
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1171
|
+
end
|
1133
1172
|
end
|
1134
1173
|
|
1135
1174
|
##
|
@@ -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
|
##
|
@@ -236,8 +236,11 @@ module Google
|
|
236
236
|
return result
|
237
237
|
end
|
238
238
|
rescue ::Faraday::Error => e
|
239
|
-
|
240
|
-
|
239
|
+
begin
|
240
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
241
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
242
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
243
|
+
end
|
241
244
|
end
|
242
245
|
|
243
246
|
##
|
@@ -312,8 +315,11 @@ module Google
|
|
312
315
|
return result
|
313
316
|
end
|
314
317
|
rescue ::Faraday::Error => e
|
315
|
-
|
316
|
-
|
318
|
+
begin
|
319
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
320
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
321
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
322
|
+
end
|
317
323
|
end
|
318
324
|
|
319
325
|
##
|
@@ -377,8 +383,11 @@ module Google
|
|
377
383
|
return result
|
378
384
|
end
|
379
385
|
rescue ::Faraday::Error => e
|
380
|
-
|
381
|
-
|
386
|
+
begin
|
387
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
388
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
389
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
390
|
+
end
|
382
391
|
end
|
383
392
|
|
384
393
|
##
|
@@ -444,8 +453,11 @@ module Google
|
|
444
453
|
return result
|
445
454
|
end
|
446
455
|
rescue ::Faraday::Error => e
|
447
|
-
|
448
|
-
|
456
|
+
begin
|
457
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
458
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
459
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
460
|
+
end
|
449
461
|
end
|
450
462
|
|
451
463
|
##
|
@@ -520,8 +532,11 @@ module Google
|
|
520
532
|
return result
|
521
533
|
end
|
522
534
|
rescue ::Faraday::Error => e
|
523
|
-
|
524
|
-
|
535
|
+
begin
|
536
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
537
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
538
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
539
|
+
end
|
525
540
|
end
|
526
541
|
|
527
542
|
##
|
@@ -594,8 +609,11 @@ module Google
|
|
594
609
|
return result
|
595
610
|
end
|
596
611
|
rescue ::Faraday::Error => e
|
597
|
-
|
598
|
-
|
612
|
+
begin
|
613
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
614
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
615
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
616
|
+
end
|
599
617
|
end
|
600
618
|
|
601
619
|
##
|
@@ -661,8 +679,11 @@ module Google
|
|
661
679
|
return result
|
662
680
|
end
|
663
681
|
rescue ::Faraday::Error => e
|
664
|
-
|
665
|
-
|
682
|
+
begin
|
683
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
684
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
685
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
686
|
+
end
|
666
687
|
end
|
667
688
|
|
668
689
|
##
|
@@ -728,8 +749,11 @@ module Google
|
|
728
749
|
return result
|
729
750
|
end
|
730
751
|
rescue ::Faraday::Error => e
|
731
|
-
|
732
|
-
|
752
|
+
begin
|
753
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
754
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
755
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
756
|
+
end
|
733
757
|
end
|
734
758
|
|
735
759
|
##
|
@@ -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
|
##
|
@@ -210,8 +210,11 @@ module Google
|
|
210
210
|
return result
|
211
211
|
end
|
212
212
|
rescue ::Faraday::Error => e
|
213
|
-
|
214
|
-
|
213
|
+
begin
|
214
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
215
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
216
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
217
|
+
end
|
215
218
|
end
|
216
219
|
|
217
220
|
##
|
@@ -275,8 +278,11 @@ module Google
|
|
275
278
|
return result
|
276
279
|
end
|
277
280
|
rescue ::Faraday::Error => e
|
278
|
-
|
279
|
-
|
281
|
+
begin
|
282
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
283
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
284
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
285
|
+
end
|
280
286
|
end
|
281
287
|
|
282
288
|
##
|
@@ -349,8 +355,11 @@ module Google
|
|
349
355
|
return result
|
350
356
|
end
|
351
357
|
rescue ::Faraday::Error => e
|
352
|
-
|
353
|
-
|
358
|
+
begin
|
359
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
360
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
361
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
362
|
+
end
|
354
363
|
end
|
355
364
|
|
356
365
|
##
|
@@ -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
|
##
|
@@ -231,8 +231,11 @@ module Google
|
|
231
231
|
return result
|
232
232
|
end
|
233
233
|
rescue ::Faraday::Error => e
|
234
|
-
|
235
|
-
|
234
|
+
begin
|
235
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
236
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
237
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
238
|
+
end
|
236
239
|
end
|
237
240
|
|
238
241
|
##
|
@@ -307,8 +310,11 @@ module Google
|
|
307
310
|
return result
|
308
311
|
end
|
309
312
|
rescue ::Faraday::Error => e
|
310
|
-
|
311
|
-
|
313
|
+
begin
|
314
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
315
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
316
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
317
|
+
end
|
312
318
|
end
|
313
319
|
|
314
320
|
##
|
@@ -372,8 +378,11 @@ module Google
|
|
372
378
|
return result
|
373
379
|
end
|
374
380
|
rescue ::Faraday::Error => e
|
375
|
-
|
376
|
-
|
381
|
+
begin
|
382
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
383
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
384
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
385
|
+
end
|
377
386
|
end
|
378
387
|
|
379
388
|
##
|
@@ -448,8 +457,11 @@ module Google
|
|
448
457
|
return result
|
449
458
|
end
|
450
459
|
rescue ::Faraday::Error => e
|
451
|
-
|
452
|
-
|
460
|
+
begin
|
461
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
462
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
463
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
464
|
+
end
|
453
465
|
end
|
454
466
|
|
455
467
|
##
|
@@ -522,8 +534,11 @@ module Google
|
|
522
534
|
return result
|
523
535
|
end
|
524
536
|
rescue ::Faraday::Error => e
|
525
|
-
|
526
|
-
|
537
|
+
begin
|
538
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
539
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
540
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
541
|
+
end
|
527
542
|
end
|
528
543
|
|
529
544
|
##
|
@@ -600,8 +615,11 @@ module Google
|
|
600
615
|
return result
|
601
616
|
end
|
602
617
|
rescue ::Faraday::Error => e
|
603
|
-
|
604
|
-
|
618
|
+
begin
|
619
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
620
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
621
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
622
|
+
end
|
605
623
|
end
|
606
624
|
|
607
625
|
##
|
@@ -667,8 +685,11 @@ module Google
|
|
667
685
|
return result
|
668
686
|
end
|
669
687
|
rescue ::Faraday::Error => e
|
670
|
-
|
671
|
-
|
688
|
+
begin
|
689
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
690
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
691
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
692
|
+
end
|
672
693
|
end
|
673
694
|
|
674
695
|
##
|
@@ -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
|
##
|
@@ -240,8 +240,11 @@ module Google
|
|
240
240
|
return result
|
241
241
|
end
|
242
242
|
rescue ::Faraday::Error => e
|
243
|
-
|
244
|
-
|
243
|
+
begin
|
244
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
245
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
246
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
247
|
+
end
|
245
248
|
end
|
246
249
|
|
247
250
|
##
|
@@ -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
|
##
|
@@ -384,8 +390,11 @@ module Google
|
|
384
390
|
return result
|
385
391
|
end
|
386
392
|
rescue ::Faraday::Error => e
|
387
|
-
|
388
|
-
|
393
|
+
begin
|
394
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
395
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
396
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
397
|
+
end
|
389
398
|
end
|
390
399
|
|
391
400
|
##
|
@@ -457,8 +466,11 @@ module Google
|
|
457
466
|
return result
|
458
467
|
end
|
459
468
|
rescue ::Faraday::Error => e
|
460
|
-
|
461
|
-
|
469
|
+
begin
|
470
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
471
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
472
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
473
|
+
end
|
462
474
|
end
|
463
475
|
|
464
476
|
##
|
@@ -518,8 +530,11 @@ module Google
|
|
518
530
|
return result
|
519
531
|
end
|
520
532
|
rescue ::Faraday::Error => e
|
521
|
-
|
522
|
-
|
533
|
+
begin
|
534
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
535
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
536
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
537
|
+
end
|
523
538
|
end
|
524
539
|
|
525
540
|
##
|
@@ -579,8 +594,11 @@ module Google
|
|
579
594
|
return result
|
580
595
|
end
|
581
596
|
rescue ::Faraday::Error => e
|
582
|
-
|
583
|
-
|
597
|
+
begin
|
598
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
599
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
600
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
601
|
+
end
|
584
602
|
end
|
585
603
|
|
586
604
|
##
|
@@ -651,8 +669,11 @@ module Google
|
|
651
669
|
return result
|
652
670
|
end
|
653
671
|
rescue ::Faraday::Error => e
|
654
|
-
|
655
|
-
|
672
|
+
begin
|
673
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
674
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
675
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
676
|
+
end
|
656
677
|
end
|
657
678
|
|
658
679
|
##
|
@@ -725,8 +746,11 @@ module Google
|
|
725
746
|
return result
|
726
747
|
end
|
727
748
|
rescue ::Faraday::Error => e
|
728
|
-
|
729
|
-
|
749
|
+
begin
|
750
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
751
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
752
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
753
|
+
end
|
730
754
|
end
|
731
755
|
|
732
756
|
##
|
@@ -798,8 +822,11 @@ module Google
|
|
798
822
|
return result
|
799
823
|
end
|
800
824
|
rescue ::Faraday::Error => e
|
801
|
-
|
802
|
-
|
825
|
+
begin
|
826
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
827
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
828
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
829
|
+
end
|
803
830
|
end
|
804
831
|
|
805
832
|
##
|
@@ -871,8 +898,11 @@ module Google
|
|
871
898
|
return result
|
872
899
|
end
|
873
900
|
rescue ::Faraday::Error => e
|
874
|
-
|
875
|
-
|
901
|
+
begin
|
902
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
903
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
904
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
905
|
+
end
|
876
906
|
end
|
877
907
|
|
878
908
|
##
|
@@ -944,8 +974,11 @@ module Google
|
|
944
974
|
return result
|
945
975
|
end
|
946
976
|
rescue ::Faraday::Error => e
|
947
|
-
|
948
|
-
|
977
|
+
begin
|
978
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
979
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
980
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
981
|
+
end
|
949
982
|
end
|
950
983
|
|
951
984
|
##
|
@@ -1017,8 +1050,11 @@ module Google
|
|
1017
1050
|
return result
|
1018
1051
|
end
|
1019
1052
|
rescue ::Faraday::Error => e
|
1020
|
-
|
1021
|
-
|
1053
|
+
begin
|
1054
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1055
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1056
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1057
|
+
end
|
1022
1058
|
end
|
1023
1059
|
|
1024
1060
|
##
|
@@ -1090,8 +1126,11 @@ module Google
|
|
1090
1126
|
return result
|
1091
1127
|
end
|
1092
1128
|
rescue ::Faraday::Error => e
|
1093
|
-
|
1094
|
-
|
1129
|
+
begin
|
1130
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1131
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1132
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1133
|
+
end
|
1095
1134
|
end
|
1096
1135
|
|
1097
1136
|
##
|
@@ -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
|
##
|