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
@@ -258,8 +258,11 @@ module Google
|
|
258
258
|
return result
|
259
259
|
end
|
260
260
|
rescue ::Faraday::Error => e
|
261
|
-
|
262
|
-
|
261
|
+
begin
|
262
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
263
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
264
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
265
|
+
end
|
263
266
|
end
|
264
267
|
|
265
268
|
##
|
@@ -337,8 +340,11 @@ module Google
|
|
337
340
|
return result
|
338
341
|
end
|
339
342
|
rescue ::Faraday::Error => e
|
340
|
-
|
341
|
-
|
343
|
+
begin
|
344
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
345
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
346
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
347
|
+
end
|
342
348
|
end
|
343
349
|
|
344
350
|
##
|
@@ -412,8 +418,11 @@ module Google
|
|
412
418
|
return result
|
413
419
|
end
|
414
420
|
rescue ::Faraday::Error => e
|
415
|
-
|
416
|
-
|
421
|
+
begin
|
422
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
423
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
424
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
425
|
+
end
|
417
426
|
end
|
418
427
|
|
419
428
|
##
|
@@ -485,8 +494,11 @@ module Google
|
|
485
494
|
return result
|
486
495
|
end
|
487
496
|
rescue ::Faraday::Error => e
|
488
|
-
|
489
|
-
|
497
|
+
begin
|
498
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
499
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
500
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
501
|
+
end
|
490
502
|
end
|
491
503
|
|
492
504
|
##
|
@@ -548,8 +560,11 @@ module Google
|
|
548
560
|
return result
|
549
561
|
end
|
550
562
|
rescue ::Faraday::Error => e
|
551
|
-
|
552
|
-
|
563
|
+
begin
|
564
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
565
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
566
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
567
|
+
end
|
553
568
|
end
|
554
569
|
|
555
570
|
##
|
@@ -613,8 +628,11 @@ module Google
|
|
613
628
|
return result
|
614
629
|
end
|
615
630
|
rescue ::Faraday::Error => e
|
616
|
-
|
617
|
-
|
631
|
+
begin
|
632
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
633
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
634
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
635
|
+
end
|
618
636
|
end
|
619
637
|
|
620
638
|
##
|
@@ -678,8 +696,11 @@ module Google
|
|
678
696
|
return result
|
679
697
|
end
|
680
698
|
rescue ::Faraday::Error => e
|
681
|
-
|
682
|
-
|
699
|
+
begin
|
700
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
701
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
702
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
703
|
+
end
|
683
704
|
end
|
684
705
|
|
685
706
|
##
|
@@ -743,8 +764,11 @@ module Google
|
|
743
764
|
return result
|
744
765
|
end
|
745
766
|
rescue ::Faraday::Error => e
|
746
|
-
|
747
|
-
|
767
|
+
begin
|
768
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
769
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
770
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
771
|
+
end
|
748
772
|
end
|
749
773
|
|
750
774
|
##
|
@@ -816,8 +840,11 @@ module Google
|
|
816
840
|
return result
|
817
841
|
end
|
818
842
|
rescue ::Faraday::Error => e
|
819
|
-
|
820
|
-
|
843
|
+
begin
|
844
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
845
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
846
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
847
|
+
end
|
821
848
|
end
|
822
849
|
|
823
850
|
##
|
@@ -888,8 +915,11 @@ module Google
|
|
888
915
|
return result
|
889
916
|
end
|
890
917
|
rescue ::Faraday::Error => e
|
891
|
-
|
892
|
-
|
918
|
+
begin
|
919
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
920
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
921
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
922
|
+
end
|
893
923
|
end
|
894
924
|
|
895
925
|
##
|
@@ -963,8 +993,11 @@ module Google
|
|
963
993
|
return result
|
964
994
|
end
|
965
995
|
rescue ::Faraday::Error => e
|
966
|
-
|
967
|
-
|
996
|
+
begin
|
997
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
998
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
999
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1000
|
+
end
|
968
1001
|
end
|
969
1002
|
|
970
1003
|
##
|
@@ -1040,8 +1073,11 @@ module Google
|
|
1040
1073
|
return result
|
1041
1074
|
end
|
1042
1075
|
rescue ::Faraday::Error => e
|
1043
|
-
|
1044
|
-
|
1076
|
+
begin
|
1077
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1078
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1079
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1080
|
+
end
|
1045
1081
|
end
|
1046
1082
|
|
1047
1083
|
##
|
@@ -1115,8 +1151,11 @@ module Google
|
|
1115
1151
|
return result
|
1116
1152
|
end
|
1117
1153
|
rescue ::Faraday::Error => e
|
1118
|
-
|
1119
|
-
|
1154
|
+
begin
|
1155
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1156
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1157
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1158
|
+
end
|
1120
1159
|
end
|
1121
1160
|
|
1122
1161
|
##
|
@@ -1190,8 +1229,11 @@ module Google
|
|
1190
1229
|
return result
|
1191
1230
|
end
|
1192
1231
|
rescue ::Faraday::Error => e
|
1193
|
-
|
1194
|
-
|
1232
|
+
begin
|
1233
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1234
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1235
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1236
|
+
end
|
1195
1237
|
end
|
1196
1238
|
|
1197
1239
|
##
|
@@ -1255,8 +1297,11 @@ module Google
|
|
1255
1297
|
return result
|
1256
1298
|
end
|
1257
1299
|
rescue ::Faraday::Error => e
|
1258
|
-
|
1259
|
-
|
1300
|
+
begin
|
1301
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1302
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1303
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1304
|
+
end
|
1260
1305
|
end
|
1261
1306
|
|
1262
1307
|
##
|
@@ -1320,8 +1365,11 @@ module Google
|
|
1320
1365
|
return result
|
1321
1366
|
end
|
1322
1367
|
rescue ::Faraday::Error => e
|
1323
|
-
|
1324
|
-
|
1368
|
+
begin
|
1369
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1370
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1371
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1372
|
+
end
|
1325
1373
|
end
|
1326
1374
|
|
1327
1375
|
##
|
@@ -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
|
##
|
@@ -243,8 +243,11 @@ module Google
|
|
243
243
|
return result
|
244
244
|
end
|
245
245
|
rescue ::Faraday::Error => e
|
246
|
-
|
247
|
-
|
246
|
+
begin
|
247
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
248
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
249
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
250
|
+
end
|
248
251
|
end
|
249
252
|
|
250
253
|
##
|
@@ -316,8 +319,11 @@ module Google
|
|
316
319
|
return result
|
317
320
|
end
|
318
321
|
rescue ::Faraday::Error => e
|
319
|
-
|
320
|
-
|
322
|
+
begin
|
323
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
324
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
325
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
326
|
+
end
|
321
327
|
end
|
322
328
|
|
323
329
|
##
|
@@ -379,8 +385,11 @@ module Google
|
|
379
385
|
return result
|
380
386
|
end
|
381
387
|
rescue ::Faraday::Error => e
|
382
|
-
|
383
|
-
|
388
|
+
begin
|
389
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
390
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
391
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
392
|
+
end
|
384
393
|
end
|
385
394
|
|
386
395
|
##
|
@@ -442,8 +451,11 @@ module Google
|
|
442
451
|
return result
|
443
452
|
end
|
444
453
|
rescue ::Faraday::Error => e
|
445
|
-
|
446
|
-
|
454
|
+
begin
|
455
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
456
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
457
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
458
|
+
end
|
447
459
|
end
|
448
460
|
|
449
461
|
##
|
@@ -515,8 +527,11 @@ module Google
|
|
515
527
|
return result
|
516
528
|
end
|
517
529
|
rescue ::Faraday::Error => e
|
518
|
-
|
519
|
-
|
530
|
+
begin
|
531
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
532
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
533
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
534
|
+
end
|
520
535
|
end
|
521
536
|
|
522
537
|
##
|
@@ -587,8 +602,11 @@ module Google
|
|
587
602
|
return result
|
588
603
|
end
|
589
604
|
rescue ::Faraday::Error => e
|
590
|
-
|
591
|
-
|
605
|
+
begin
|
606
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
607
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
608
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
609
|
+
end
|
592
610
|
end
|
593
611
|
|
594
612
|
##
|
@@ -668,8 +686,11 @@ module Google
|
|
668
686
|
return result
|
669
687
|
end
|
670
688
|
rescue ::Faraday::Error => e
|
671
|
-
|
672
|
-
|
689
|
+
begin
|
690
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
691
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
692
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
693
|
+
end
|
673
694
|
end
|
674
695
|
|
675
696
|
##
|
@@ -743,8 +764,11 @@ module Google
|
|
743
764
|
return result
|
744
765
|
end
|
745
766
|
rescue ::Faraday::Error => e
|
746
|
-
|
747
|
-
|
767
|
+
begin
|
768
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
769
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
770
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
771
|
+
end
|
748
772
|
end
|
749
773
|
|
750
774
|
##
|
@@ -818,8 +842,11 @@ module Google
|
|
818
842
|
return result
|
819
843
|
end
|
820
844
|
rescue ::Faraday::Error => e
|
821
|
-
|
822
|
-
|
845
|
+
begin
|
846
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
847
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
848
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
849
|
+
end
|
823
850
|
end
|
824
851
|
|
825
852
|
##
|
@@ -891,8 +918,11 @@ module Google
|
|
891
918
|
return result
|
892
919
|
end
|
893
920
|
rescue ::Faraday::Error => e
|
894
|
-
|
895
|
-
|
921
|
+
begin
|
922
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
923
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
924
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
925
|
+
end
|
896
926
|
end
|
897
927
|
|
898
928
|
##
|
@@ -966,8 +996,11 @@ module Google
|
|
966
996
|
return result
|
967
997
|
end
|
968
998
|
rescue ::Faraday::Error => e
|
969
|
-
|
970
|
-
|
999
|
+
begin
|
1000
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1001
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1002
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1003
|
+
end
|
971
1004
|
end
|
972
1005
|
|
973
1006
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|