google-cloud-compute-v1 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +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/compute_pb.rb +66 -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 +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 +26 -11
- 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 +61 -25
- 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
- data/proto_docs/google/cloud/compute/v1/compute.rb +227 -60
- metadata +4 -4
@@ -245,8 +245,11 @@ module Google
|
|
245
245
|
return result
|
246
246
|
end
|
247
247
|
rescue ::Faraday::Error => e
|
248
|
-
|
249
|
-
|
248
|
+
begin
|
249
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
250
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
251
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
252
|
+
end
|
250
253
|
end
|
251
254
|
|
252
255
|
##
|
@@ -323,8 +326,11 @@ module Google
|
|
323
326
|
return result
|
324
327
|
end
|
325
328
|
rescue ::Faraday::Error => e
|
326
|
-
|
327
|
-
|
329
|
+
begin
|
330
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
331
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
332
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
333
|
+
end
|
328
334
|
end
|
329
335
|
|
330
336
|
##
|
@@ -399,8 +405,11 @@ module Google
|
|
399
405
|
return result
|
400
406
|
end
|
401
407
|
rescue ::Faraday::Error => e
|
402
|
-
|
403
|
-
|
408
|
+
begin
|
409
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
410
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
411
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
412
|
+
end
|
404
413
|
end
|
405
414
|
|
406
415
|
##
|
@@ -464,8 +473,11 @@ module Google
|
|
464
473
|
return result
|
465
474
|
end
|
466
475
|
rescue ::Faraday::Error => e
|
467
|
-
|
468
|
-
|
476
|
+
begin
|
477
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
478
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
479
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
480
|
+
end
|
469
481
|
end
|
470
482
|
|
471
483
|
##
|
@@ -531,8 +543,11 @@ module Google
|
|
531
543
|
return result
|
532
544
|
end
|
533
545
|
rescue ::Faraday::Error => e
|
534
|
-
|
535
|
-
|
546
|
+
begin
|
547
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
548
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
549
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
550
|
+
end
|
536
551
|
end
|
537
552
|
|
538
553
|
##
|
@@ -609,8 +624,11 @@ module Google
|
|
609
624
|
return result
|
610
625
|
end
|
611
626
|
rescue ::Faraday::Error => e
|
612
|
-
|
613
|
-
|
627
|
+
begin
|
628
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
629
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
630
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
631
|
+
end
|
614
632
|
end
|
615
633
|
|
616
634
|
##
|
@@ -683,8 +701,11 @@ module Google
|
|
683
701
|
return result
|
684
702
|
end
|
685
703
|
rescue ::Faraday::Error => e
|
686
|
-
|
687
|
-
|
704
|
+
begin
|
705
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
706
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
707
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
708
|
+
end
|
688
709
|
end
|
689
710
|
|
690
711
|
##
|
@@ -761,8 +782,11 @@ module Google
|
|
761
782
|
return result
|
762
783
|
end
|
763
784
|
rescue ::Faraday::Error => e
|
764
|
-
|
765
|
-
|
785
|
+
begin
|
786
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
787
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
788
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
789
|
+
end
|
766
790
|
end
|
767
791
|
|
768
792
|
##
|
@@ -839,8 +863,11 @@ module Google
|
|
839
863
|
return result
|
840
864
|
end
|
841
865
|
rescue ::Faraday::Error => e
|
842
|
-
|
843
|
-
|
866
|
+
begin
|
867
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
868
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
869
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
870
|
+
end
|
844
871
|
end
|
845
872
|
|
846
873
|
##
|
@@ -906,8 +933,11 @@ module Google
|
|
906
933
|
return result
|
907
934
|
end
|
908
935
|
rescue ::Faraday::Error => e
|
909
|
-
|
910
|
-
|
936
|
+
begin
|
937
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
938
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
939
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
940
|
+
end
|
911
941
|
end
|
912
942
|
|
913
943
|
##
|
@@ -984,8 +1014,11 @@ module Google
|
|
984
1014
|
return result
|
985
1015
|
end
|
986
1016
|
rescue ::Faraday::Error => e
|
987
|
-
|
988
|
-
|
1017
|
+
begin
|
1018
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1019
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1020
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1021
|
+
end
|
989
1022
|
end
|
990
1023
|
|
991
1024
|
##
|
@@ -1051,8 +1084,11 @@ module Google
|
|
1051
1084
|
return result
|
1052
1085
|
end
|
1053
1086
|
rescue ::Faraday::Error => e
|
1054
|
-
|
1055
|
-
|
1087
|
+
begin
|
1088
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1089
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1090
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1091
|
+
end
|
1056
1092
|
end
|
1057
1093
|
|
1058
1094
|
##
|
@@ -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
|
##
|
@@ -226,8 +226,11 @@ module Google
|
|
226
226
|
return result
|
227
227
|
end
|
228
228
|
rescue ::Faraday::Error => e
|
229
|
-
|
230
|
-
|
229
|
+
begin
|
230
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
231
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
232
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
233
|
+
end
|
231
234
|
end
|
232
235
|
|
233
236
|
##
|
@@ -291,8 +294,11 @@ module Google
|
|
291
294
|
return result
|
292
295
|
end
|
293
296
|
rescue ::Faraday::Error => e
|
294
|
-
|
295
|
-
|
297
|
+
begin
|
298
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
299
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
300
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
301
|
+
end
|
296
302
|
end
|
297
303
|
|
298
304
|
##
|
@@ -367,8 +373,11 @@ module Google
|
|
367
373
|
return result
|
368
374
|
end
|
369
375
|
rescue ::Faraday::Error => e
|
370
|
-
|
371
|
-
|
376
|
+
begin
|
377
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
378
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
379
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
380
|
+
end
|
372
381
|
end
|
373
382
|
|
374
383
|
##
|
@@ -441,8 +450,11 @@ module Google
|
|
441
450
|
return result
|
442
451
|
end
|
443
452
|
rescue ::Faraday::Error => e
|
444
|
-
|
445
|
-
|
453
|
+
begin
|
454
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
455
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
456
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
457
|
+
end
|
446
458
|
end
|
447
459
|
|
448
460
|
##
|
@@ -519,8 +531,11 @@ module Google
|
|
519
531
|
return result
|
520
532
|
end
|
521
533
|
rescue ::Faraday::Error => e
|
522
|
-
|
523
|
-
|
534
|
+
begin
|
535
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
536
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
537
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
538
|
+
end
|
524
539
|
end
|
525
540
|
|
526
541
|
##
|
@@ -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
|
##
|
@@ -228,8 +228,11 @@ module Google
|
|
228
228
|
return result
|
229
229
|
end
|
230
230
|
rescue ::Faraday::Error => e
|
231
|
-
|
232
|
-
|
231
|
+
begin
|
232
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
233
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
234
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
235
|
+
end
|
233
236
|
end
|
234
237
|
|
235
238
|
##
|
@@ -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
|
##
|
@@ -369,8 +375,11 @@ module Google
|
|
369
375
|
return result
|
370
376
|
end
|
371
377
|
rescue ::Faraday::Error => e
|
372
|
-
|
373
|
-
|
378
|
+
begin
|
379
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
380
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
381
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
382
|
+
end
|
374
383
|
end
|
375
384
|
|
376
385
|
##
|
@@ -443,8 +452,11 @@ module Google
|
|
443
452
|
return result
|
444
453
|
end
|
445
454
|
rescue ::Faraday::Error => e
|
446
|
-
|
447
|
-
|
455
|
+
begin
|
456
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
457
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
458
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
459
|
+
end
|
448
460
|
end
|
449
461
|
|
450
462
|
##
|
@@ -521,8 +533,11 @@ module Google
|
|
521
533
|
return result
|
522
534
|
end
|
523
535
|
rescue ::Faraday::Error => e
|
524
|
-
|
525
|
-
|
536
|
+
begin
|
537
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
538
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
539
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
540
|
+
end
|
526
541
|
end
|
527
542
|
|
528
543
|
##
|
@@ -599,8 +614,11 @@ module Google
|
|
599
614
|
return result
|
600
615
|
end
|
601
616
|
rescue ::Faraday::Error => e
|
602
|
-
|
603
|
-
|
617
|
+
begin
|
618
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
619
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
620
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
621
|
+
end
|
604
622
|
end
|
605
623
|
|
606
624
|
##
|
@@ -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
|
##
|
@@ -259,8 +259,11 @@ module Google
|
|
259
259
|
return result
|
260
260
|
end
|
261
261
|
rescue ::Faraday::Error => e
|
262
|
-
|
263
|
-
|
262
|
+
begin
|
263
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
264
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
265
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
266
|
+
end
|
264
267
|
end
|
265
268
|
|
266
269
|
##
|
@@ -335,8 +338,11 @@ module Google
|
|
335
338
|
return result
|
336
339
|
end
|
337
340
|
rescue ::Faraday::Error => e
|
338
|
-
|
339
|
-
|
341
|
+
begin
|
342
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
343
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
344
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
345
|
+
end
|
340
346
|
end
|
341
347
|
|
342
348
|
##
|
@@ -413,8 +419,11 @@ module Google
|
|
413
419
|
return result
|
414
420
|
end
|
415
421
|
rescue ::Faraday::Error => e
|
416
|
-
|
417
|
-
|
422
|
+
begin
|
423
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
424
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
425
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
426
|
+
end
|
418
427
|
end
|
419
428
|
|
420
429
|
##
|
@@ -489,8 +498,11 @@ module Google
|
|
489
498
|
return result
|
490
499
|
end
|
491
500
|
rescue ::Faraday::Error => e
|
492
|
-
|
493
|
-
|
501
|
+
begin
|
502
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
503
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
504
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
505
|
+
end
|
494
506
|
end
|
495
507
|
|
496
508
|
##
|
@@ -567,8 +579,11 @@ module Google
|
|
567
579
|
return result
|
568
580
|
end
|
569
581
|
rescue ::Faraday::Error => e
|
570
|
-
|
571
|
-
|
582
|
+
begin
|
583
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
584
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
585
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
586
|
+
end
|
572
587
|
end
|
573
588
|
|
574
589
|
##
|
@@ -643,8 +658,11 @@ module Google
|
|
643
658
|
return result
|
644
659
|
end
|
645
660
|
rescue ::Faraday::Error => e
|
646
|
-
|
647
|
-
|
661
|
+
begin
|
662
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
663
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
664
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
665
|
+
end
|
648
666
|
end
|
649
667
|
|
650
668
|
##
|
@@ -708,8 +726,11 @@ module Google
|
|
708
726
|
return result
|
709
727
|
end
|
710
728
|
rescue ::Faraday::Error => e
|
711
|
-
|
712
|
-
|
729
|
+
begin
|
730
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
731
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
732
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
733
|
+
end
|
713
734
|
end
|
714
735
|
|
715
736
|
##
|
@@ -784,8 +805,11 @@ module Google
|
|
784
805
|
return result
|
785
806
|
end
|
786
807
|
rescue ::Faraday::Error => e
|
787
|
-
|
788
|
-
|
808
|
+
begin
|
809
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
810
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
811
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
812
|
+
end
|
789
813
|
end
|
790
814
|
|
791
815
|
##
|
@@ -858,8 +882,11 @@ module Google
|
|
858
882
|
return result
|
859
883
|
end
|
860
884
|
rescue ::Faraday::Error => e
|
861
|
-
|
862
|
-
|
885
|
+
begin
|
886
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
887
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
888
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
889
|
+
end
|
863
890
|
end
|
864
891
|
|
865
892
|
##
|
@@ -934,8 +961,11 @@ module Google
|
|
934
961
|
return result
|
935
962
|
end
|
936
963
|
rescue ::Faraday::Error => e
|
937
|
-
|
938
|
-
|
964
|
+
begin
|
965
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
966
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
967
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
968
|
+
end
|
939
969
|
end
|
940
970
|
|
941
971
|
##
|
@@ -1010,8 +1040,11 @@ module Google
|
|
1010
1040
|
return result
|
1011
1041
|
end
|
1012
1042
|
rescue ::Faraday::Error => e
|
1013
|
-
|
1014
|
-
|
1043
|
+
begin
|
1044
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1045
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1046
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1047
|
+
end
|
1015
1048
|
end
|
1016
1049
|
|
1017
1050
|
##
|
@@ -1086,8 +1119,11 @@ module Google
|
|
1086
1119
|
return result
|
1087
1120
|
end
|
1088
1121
|
rescue ::Faraday::Error => e
|
1089
|
-
|
1090
|
-
|
1122
|
+
begin
|
1123
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1124
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1125
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1126
|
+
end
|
1091
1127
|
end
|
1092
1128
|
|
1093
1129
|
##
|
@@ -1164,8 +1200,11 @@ module Google
|
|
1164
1200
|
return result
|
1165
1201
|
end
|
1166
1202
|
rescue ::Faraday::Error => e
|
1167
|
-
|
1168
|
-
|
1203
|
+
begin
|
1204
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1205
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1206
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1207
|
+
end
|
1169
1208
|
end
|
1170
1209
|
|
1171
1210
|
##
|
@@ -1242,8 +1281,11 @@ module Google
|
|
1242
1281
|
return result
|
1243
1282
|
end
|
1244
1283
|
rescue ::Faraday::Error => e
|
1245
|
-
|
1246
|
-
|
1284
|
+
begin
|
1285
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1286
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1287
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1288
|
+
end
|
1247
1289
|
end
|
1248
1290
|
|
1249
1291
|
##
|
@@ -1320,8 +1362,11 @@ module Google
|
|
1320
1362
|
return result
|
1321
1363
|
end
|
1322
1364
|
rescue ::Faraday::Error => e
|
1323
|
-
|
1324
|
-
|
1365
|
+
begin
|
1366
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1367
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1368
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1369
|
+
end
|
1325
1370
|
end
|
1326
1371
|
|
1327
1372
|
##
|
@@ -1398,8 +1443,11 @@ module Google
|
|
1398
1443
|
return result
|
1399
1444
|
end
|
1400
1445
|
rescue ::Faraday::Error => e
|
1401
|
-
|
1402
|
-
|
1446
|
+
begin
|
1447
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1448
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1449
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1450
|
+
end
|
1403
1451
|
end
|
1404
1452
|
|
1405
1453
|
##
|
@@ -1476,8 +1524,11 @@ module Google
|
|
1476
1524
|
return result
|
1477
1525
|
end
|
1478
1526
|
rescue ::Faraday::Error => e
|
1479
|
-
|
1480
|
-
|
1527
|
+
begin
|
1528
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1529
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1530
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1531
|
+
end
|
1481
1532
|
end
|
1482
1533
|
|
1483
1534
|
##
|
@@ -1554,8 +1605,11 @@ module Google
|
|
1554
1605
|
return result
|
1555
1606
|
end
|
1556
1607
|
rescue ::Faraday::Error => e
|
1557
|
-
|
1558
|
-
|
1608
|
+
begin
|
1609
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1610
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1611
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1612
|
+
end
|
1559
1613
|
end
|
1560
1614
|
|
1561
1615
|
##
|
@@ -1632,8 +1686,11 @@ module Google
|
|
1632
1686
|
return result
|
1633
1687
|
end
|
1634
1688
|
rescue ::Faraday::Error => e
|
1635
|
-
|
1636
|
-
|
1689
|
+
begin
|
1690
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1691
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1692
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1693
|
+
end
|
1637
1694
|
end
|
1638
1695
|
|
1639
1696
|
##
|
@@ -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
|
##
|
@@ -213,8 +213,11 @@ module Google
|
|
213
213
|
return result
|
214
214
|
end
|
215
215
|
rescue ::Faraday::Error => e
|
216
|
-
|
217
|
-
|
216
|
+
begin
|
217
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
218
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
219
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
220
|
+
end
|
218
221
|
end
|
219
222
|
|
220
223
|
##
|
@@ -287,8 +290,11 @@ module Google
|
|
287
290
|
return result
|
288
291
|
end
|
289
292
|
rescue ::Faraday::Error => e
|
290
|
-
|
291
|
-
|
293
|
+
begin
|
294
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
295
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
296
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
297
|
+
end
|
292
298
|
end
|
293
299
|
|
294
300
|
##
|
@@ -365,8 +371,11 @@ module Google
|
|
365
371
|
return result
|
366
372
|
end
|
367
373
|
rescue ::Faraday::Error => e
|
368
|
-
|
369
|
-
|
374
|
+
begin
|
375
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
376
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
377
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
378
|
+
end
|
370
379
|
end
|
371
380
|
|
372
381
|
##
|
@@ -443,8 +452,11 @@ module Google
|
|
443
452
|
return result
|
444
453
|
end
|
445
454
|
rescue ::Faraday::Error => e
|
446
|
-
|
447
|
-
|
455
|
+
begin
|
456
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
457
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
458
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
459
|
+
end
|
448
460
|
end
|
449
461
|
|
450
462
|
##
|