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
@@ -235,8 +235,11 @@ module Google
|
|
235
235
|
return result
|
236
236
|
end
|
237
237
|
rescue ::Faraday::Error => e
|
238
|
-
|
239
|
-
|
238
|
+
begin
|
239
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
240
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
241
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
242
|
+
end
|
240
243
|
end
|
241
244
|
|
242
245
|
##
|
@@ -313,8 +316,11 @@ module Google
|
|
313
316
|
return result
|
314
317
|
end
|
315
318
|
rescue ::Faraday::Error => e
|
316
|
-
|
317
|
-
|
319
|
+
begin
|
320
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
321
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
322
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
323
|
+
end
|
318
324
|
end
|
319
325
|
|
320
326
|
##
|
@@ -389,8 +395,11 @@ module Google
|
|
389
395
|
return result
|
390
396
|
end
|
391
397
|
rescue ::Faraday::Error => e
|
392
|
-
|
393
|
-
|
398
|
+
begin
|
399
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
400
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
401
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
402
|
+
end
|
394
403
|
end
|
395
404
|
|
396
405
|
##
|
@@ -467,8 +476,11 @@ module Google
|
|
467
476
|
return result
|
468
477
|
end
|
469
478
|
rescue ::Faraday::Error => e
|
470
|
-
|
471
|
-
|
479
|
+
begin
|
480
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
481
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
482
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
483
|
+
end
|
472
484
|
end
|
473
485
|
|
474
486
|
##
|
@@ -532,8 +544,11 @@ module Google
|
|
532
544
|
return result
|
533
545
|
end
|
534
546
|
rescue ::Faraday::Error => e
|
535
|
-
|
536
|
-
|
547
|
+
begin
|
548
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
549
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
550
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
551
|
+
end
|
537
552
|
end
|
538
553
|
|
539
554
|
##
|
@@ -608,8 +623,11 @@ module Google
|
|
608
623
|
return result
|
609
624
|
end
|
610
625
|
rescue ::Faraday::Error => e
|
611
|
-
|
612
|
-
|
626
|
+
begin
|
627
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
628
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
629
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
630
|
+
end
|
613
631
|
end
|
614
632
|
|
615
633
|
##
|
@@ -682,8 +700,11 @@ module Google
|
|
682
700
|
return result
|
683
701
|
end
|
684
702
|
rescue ::Faraday::Error => e
|
685
|
-
|
686
|
-
|
703
|
+
begin
|
704
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
705
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
706
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
707
|
+
end
|
687
708
|
end
|
688
709
|
|
689
710
|
##
|
@@ -760,8 +781,11 @@ module Google
|
|
760
781
|
return result
|
761
782
|
end
|
762
783
|
rescue ::Faraday::Error => e
|
763
|
-
|
764
|
-
|
784
|
+
begin
|
785
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
786
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
787
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
788
|
+
end
|
765
789
|
end
|
766
790
|
|
767
791
|
##
|
@@ -827,8 +851,11 @@ module Google
|
|
827
851
|
return result
|
828
852
|
end
|
829
853
|
rescue ::Faraday::Error => e
|
830
|
-
|
831
|
-
|
854
|
+
begin
|
855
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
856
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
857
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
858
|
+
end
|
832
859
|
end
|
833
860
|
|
834
861
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|