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
@@ -210,8 +210,11 @@ module Google
|
|
210
210
|
return result
|
211
211
|
end
|
212
212
|
rescue ::Faraday::Error => e
|
213
|
-
|
214
|
-
|
213
|
+
begin
|
214
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
215
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
216
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
217
|
+
end
|
215
218
|
end
|
216
219
|
|
217
220
|
##
|
@@ -275,8 +278,11 @@ module Google
|
|
275
278
|
return result
|
276
279
|
end
|
277
280
|
rescue ::Faraday::Error => e
|
278
|
-
|
279
|
-
|
281
|
+
begin
|
282
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
283
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
284
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
285
|
+
end
|
280
286
|
end
|
281
287
|
|
282
288
|
##
|
@@ -349,8 +355,11 @@ module Google
|
|
349
355
|
return result
|
350
356
|
end
|
351
357
|
rescue ::Faraday::Error => e
|
352
|
-
|
353
|
-
|
358
|
+
begin
|
359
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
360
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
361
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
362
|
+
end
|
354
363
|
end
|
355
364
|
|
356
365
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -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
|
##
|
@@ -404,8 +410,11 @@ module Google
|
|
404
410
|
return result
|
405
411
|
end
|
406
412
|
rescue ::Faraday::Error => e
|
407
|
-
|
408
|
-
|
413
|
+
begin
|
414
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
415
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
416
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
417
|
+
end
|
409
418
|
end
|
410
419
|
|
411
420
|
##
|
@@ -480,8 +489,11 @@ module Google
|
|
480
489
|
return result
|
481
490
|
end
|
482
491
|
rescue ::Faraday::Error => e
|
483
|
-
|
484
|
-
|
492
|
+
begin
|
493
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
494
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
495
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
496
|
+
end
|
485
497
|
end
|
486
498
|
|
487
499
|
##
|
@@ -545,8 +557,11 @@ module Google
|
|
545
557
|
return result
|
546
558
|
end
|
547
559
|
rescue ::Faraday::Error => e
|
548
|
-
|
549
|
-
|
560
|
+
begin
|
561
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
562
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
563
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
564
|
+
end
|
550
565
|
end
|
551
566
|
|
552
567
|
##
|
@@ -612,8 +627,11 @@ module Google
|
|
612
627
|
return result
|
613
628
|
end
|
614
629
|
rescue ::Faraday::Error => e
|
615
|
-
|
616
|
-
|
630
|
+
begin
|
631
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
632
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
633
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
634
|
+
end
|
617
635
|
end
|
618
636
|
|
619
637
|
##
|
@@ -690,8 +708,11 @@ module Google
|
|
690
708
|
return result
|
691
709
|
end
|
692
710
|
rescue ::Faraday::Error => e
|
693
|
-
|
694
|
-
|
711
|
+
begin
|
712
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
713
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
714
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
715
|
+
end
|
695
716
|
end
|
696
717
|
|
697
718
|
##
|
@@ -764,8 +785,11 @@ module Google
|
|
764
785
|
return result
|
765
786
|
end
|
766
787
|
rescue ::Faraday::Error => e
|
767
|
-
|
768
|
-
|
788
|
+
begin
|
789
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
790
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
791
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
792
|
+
end
|
769
793
|
end
|
770
794
|
|
771
795
|
##
|
@@ -842,8 +866,11 @@ module Google
|
|
842
866
|
return result
|
843
867
|
end
|
844
868
|
rescue ::Faraday::Error => e
|
845
|
-
|
846
|
-
|
869
|
+
begin
|
870
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
871
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
872
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
873
|
+
end
|
847
874
|
end
|
848
875
|
|
849
876
|
##
|
@@ -920,8 +947,11 @@ module Google
|
|
920
947
|
return result
|
921
948
|
end
|
922
949
|
rescue ::Faraday::Error => e
|
923
|
-
|
924
|
-
|
950
|
+
begin
|
951
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
952
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
953
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
954
|
+
end
|
925
955
|
end
|
926
956
|
|
927
957
|
##
|
@@ -987,8 +1017,11 @@ module Google
|
|
987
1017
|
return result
|
988
1018
|
end
|
989
1019
|
rescue ::Faraday::Error => e
|
990
|
-
|
991
|
-
|
1020
|
+
begin
|
1021
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1022
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1023
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1024
|
+
end
|
992
1025
|
end
|
993
1026
|
|
994
1027
|
##
|
@@ -1065,8 +1098,11 @@ module Google
|
|
1065
1098
|
return result
|
1066
1099
|
end
|
1067
1100
|
rescue ::Faraday::Error => e
|
1068
|
-
|
1069
|
-
|
1101
|
+
begin
|
1102
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1103
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1104
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1105
|
+
end
|
1070
1106
|
end
|
1071
1107
|
|
1072
1108
|
##
|
@@ -1132,8 +1168,11 @@ module Google
|
|
1132
1168
|
return result
|
1133
1169
|
end
|
1134
1170
|
rescue ::Faraday::Error => e
|
1135
|
-
|
1136
|
-
|
1171
|
+
begin
|
1172
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1173
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1174
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1175
|
+
end
|
1137
1176
|
end
|
1138
1177
|
|
1139
1178
|
##
|
@@ -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
|
##
|
@@ -225,8 +225,11 @@ module Google
|
|
225
225
|
return result
|
226
226
|
end
|
227
227
|
rescue ::Faraday::Error => e
|
228
|
-
|
229
|
-
|
228
|
+
begin
|
229
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
230
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
231
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
232
|
+
end
|
230
233
|
end
|
231
234
|
|
232
235
|
##
|
@@ -288,8 +291,11 @@ module Google
|
|
288
291
|
return result
|
289
292
|
end
|
290
293
|
rescue ::Faraday::Error => e
|
291
|
-
|
292
|
-
|
294
|
+
begin
|
295
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
296
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
297
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
298
|
+
end
|
293
299
|
end
|
294
300
|
|
295
301
|
##
|
@@ -361,8 +367,11 @@ module Google
|
|
361
367
|
return result
|
362
368
|
end
|
363
369
|
rescue ::Faraday::Error => e
|
364
|
-
|
365
|
-
|
370
|
+
begin
|
371
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
372
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
373
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
374
|
+
end
|
366
375
|
end
|
367
376
|
|
368
377
|
##
|
@@ -433,8 +442,11 @@ module Google
|
|
433
442
|
return result
|
434
443
|
end
|
435
444
|
rescue ::Faraday::Error => e
|
436
|
-
|
437
|
-
|
445
|
+
begin
|
446
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
447
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
448
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
449
|
+
end
|
438
450
|
end
|
439
451
|
|
440
452
|
##
|
@@ -506,8 +518,11 @@ module Google
|
|
506
518
|
return result
|
507
519
|
end
|
508
520
|
rescue ::Faraday::Error => e
|
509
|
-
|
510
|
-
|
521
|
+
begin
|
522
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
523
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
524
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
525
|
+
end
|
511
526
|
end
|
512
527
|
|
513
528
|
##
|
@@ -571,8 +586,11 @@ module Google
|
|
571
586
|
return result
|
572
587
|
end
|
573
588
|
rescue ::Faraday::Error => e
|
574
|
-
|
575
|
-
|
589
|
+
begin
|
590
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
591
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
592
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
593
|
+
end
|
576
594
|
end
|
577
595
|
|
578
596
|
##
|
@@ -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
|
##
|
@@ -261,8 +261,11 @@ module Google
|
|
261
261
|
return result
|
262
262
|
end
|
263
263
|
rescue ::Faraday::Error => e
|
264
|
-
|
265
|
-
|
264
|
+
begin
|
265
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
266
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
267
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
268
|
+
end
|
266
269
|
end
|
267
270
|
|
268
271
|
##
|
@@ -332,8 +335,11 @@ module Google
|
|
332
335
|
return result
|
333
336
|
end
|
334
337
|
rescue ::Faraday::Error => e
|
335
|
-
|
336
|
-
|
338
|
+
begin
|
339
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
340
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
341
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
342
|
+
end
|
337
343
|
end
|
338
344
|
|
339
345
|
##
|
@@ -403,8 +409,11 @@ module Google
|
|
403
409
|
return result
|
404
410
|
end
|
405
411
|
rescue ::Faraday::Error => e
|
406
|
-
|
407
|
-
|
412
|
+
begin
|
413
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
414
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
415
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
416
|
+
end
|
408
417
|
end
|
409
418
|
|
410
419
|
##
|
@@ -472,8 +481,11 @@ module Google
|
|
472
481
|
return result
|
473
482
|
end
|
474
483
|
rescue ::Faraday::Error => e
|
475
|
-
|
476
|
-
|
484
|
+
begin
|
485
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
486
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
487
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
488
|
+
end
|
477
489
|
end
|
478
490
|
|
479
491
|
##
|
@@ -533,8 +545,11 @@ module Google
|
|
533
545
|
return result
|
534
546
|
end
|
535
547
|
rescue ::Faraday::Error => e
|
536
|
-
|
537
|
-
|
548
|
+
begin
|
549
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
550
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
551
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
552
|
+
end
|
538
553
|
end
|
539
554
|
|
540
555
|
##
|
@@ -596,8 +611,11 @@ module Google
|
|
596
611
|
return result
|
597
612
|
end
|
598
613
|
rescue ::Faraday::Error => e
|
599
|
-
|
600
|
-
|
614
|
+
begin
|
615
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
616
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
617
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
618
|
+
end
|
601
619
|
end
|
602
620
|
|
603
621
|
##
|
@@ -659,8 +677,11 @@ module Google
|
|
659
677
|
return result
|
660
678
|
end
|
661
679
|
rescue ::Faraday::Error => e
|
662
|
-
|
663
|
-
|
680
|
+
begin
|
681
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
682
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
683
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
684
|
+
end
|
664
685
|
end
|
665
686
|
|
666
687
|
##
|
@@ -722,8 +743,11 @@ module Google
|
|
722
743
|
return result
|
723
744
|
end
|
724
745
|
rescue ::Faraday::Error => e
|
725
|
-
|
726
|
-
|
746
|
+
begin
|
747
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
748
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
749
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
750
|
+
end
|
727
751
|
end
|
728
752
|
|
729
753
|
##
|
@@ -795,8 +819,11 @@ module Google
|
|
795
819
|
return result
|
796
820
|
end
|
797
821
|
rescue ::Faraday::Error => e
|
798
|
-
|
799
|
-
|
822
|
+
begin
|
823
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
824
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
825
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
826
|
+
end
|
800
827
|
end
|
801
828
|
|
802
829
|
##
|
@@ -867,8 +894,11 @@ module Google
|
|
867
894
|
return result
|
868
895
|
end
|
869
896
|
rescue ::Faraday::Error => e
|
870
|
-
|
871
|
-
|
897
|
+
begin
|
898
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
899
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
900
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
901
|
+
end
|
872
902
|
end
|
873
903
|
|
874
904
|
##
|
@@ -928,8 +958,11 @@ module Google
|
|
928
958
|
return result
|
929
959
|
end
|
930
960
|
rescue ::Faraday::Error => e
|
931
|
-
|
932
|
-
|
961
|
+
begin
|
962
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
963
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
964
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
965
|
+
end
|
933
966
|
end
|
934
967
|
|
935
968
|
##
|
@@ -1001,8 +1034,11 @@ module Google
|
|
1001
1034
|
return result
|
1002
1035
|
end
|
1003
1036
|
rescue ::Faraday::Error => e
|
1004
|
-
|
1005
|
-
|
1037
|
+
begin
|
1038
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1039
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1040
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1041
|
+
end
|
1006
1042
|
end
|
1007
1043
|
|
1008
1044
|
##
|
@@ -1072,8 +1108,11 @@ module Google
|
|
1072
1108
|
return result
|
1073
1109
|
end
|
1074
1110
|
rescue ::Faraday::Error => e
|
1075
|
-
|
1076
|
-
|
1111
|
+
begin
|
1112
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1113
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1114
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1115
|
+
end
|
1077
1116
|
end
|
1078
1117
|
|
1079
1118
|
##
|
@@ -1145,8 +1184,11 @@ module Google
|
|
1145
1184
|
return result
|
1146
1185
|
end
|
1147
1186
|
rescue ::Faraday::Error => e
|
1148
|
-
|
1149
|
-
|
1187
|
+
begin
|
1188
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1189
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1190
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1191
|
+
end
|
1150
1192
|
end
|
1151
1193
|
|
1152
1194
|
##
|
@@ -1216,8 +1258,11 @@ module Google
|
|
1216
1258
|
return result
|
1217
1259
|
end
|
1218
1260
|
rescue ::Faraday::Error => e
|
1219
|
-
|
1220
|
-
|
1261
|
+
begin
|
1262
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1263
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1264
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1265
|
+
end
|
1221
1266
|
end
|
1222
1267
|
|
1223
1268
|
##
|
@@ -1287,8 +1332,11 @@ module Google
|
|
1287
1332
|
return result
|
1288
1333
|
end
|
1289
1334
|
rescue ::Faraday::Error => e
|
1290
|
-
|
1291
|
-
|
1335
|
+
begin
|
1336
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1337
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1338
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1339
|
+
end
|
1292
1340
|
end
|
1293
1341
|
|
1294
1342
|
##
|
@@ -1350,8 +1398,11 @@ module Google
|
|
1350
1398
|
return result
|
1351
1399
|
end
|
1352
1400
|
rescue ::Faraday::Error => e
|
1353
|
-
|
1354
|
-
|
1401
|
+
begin
|
1402
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1403
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1404
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1405
|
+
end
|
1355
1406
|
end
|
1356
1407
|
|
1357
1408
|
##
|
@@ -1413,8 +1464,11 @@ module Google
|
|
1413
1464
|
return result
|
1414
1465
|
end
|
1415
1466
|
rescue ::Faraday::Error => e
|
1416
|
-
|
1417
|
-
|
1467
|
+
begin
|
1468
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1469
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1470
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1471
|
+
end
|
1418
1472
|
end
|
1419
1473
|
|
1420
1474
|
##
|
@@ -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
|
##
|
@@ -225,8 +225,11 @@ module Google
|
|
225
225
|
return result
|
226
226
|
end
|
227
227
|
rescue ::Faraday::Error => e
|
228
|
-
|
229
|
-
|
228
|
+
begin
|
229
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
230
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
231
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
232
|
+
end
|
230
233
|
end
|
231
234
|
|
232
235
|
##
|
@@ -288,8 +291,11 @@ module Google
|
|
288
291
|
return result
|
289
292
|
end
|
290
293
|
rescue ::Faraday::Error => e
|
291
|
-
|
292
|
-
|
294
|
+
begin
|
295
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
296
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
297
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
298
|
+
end
|
293
299
|
end
|
294
300
|
|
295
301
|
##
|
@@ -361,8 +367,11 @@ module Google
|
|
361
367
|
return result
|
362
368
|
end
|
363
369
|
rescue ::Faraday::Error => e
|
364
|
-
|
365
|
-
|
370
|
+
begin
|
371
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
372
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
373
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
374
|
+
end
|
366
375
|
end
|
367
376
|
|
368
377
|
##
|
@@ -433,8 +442,11 @@ module Google
|
|
433
442
|
return result
|
434
443
|
end
|
435
444
|
rescue ::Faraday::Error => e
|
436
|
-
|
437
|
-
|
445
|
+
begin
|
446
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
447
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
448
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
449
|
+
end
|
438
450
|
end
|
439
451
|
|
440
452
|
##
|
@@ -508,8 +520,11 @@ module Google
|
|
508
520
|
return result
|
509
521
|
end
|
510
522
|
rescue ::Faraday::Error => e
|
511
|
-
|
512
|
-
|
523
|
+
begin
|
524
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
525
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
526
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
527
|
+
end
|
513
528
|
end
|
514
529
|
|
515
530
|
##
|
@@ -583,8 +598,11 @@ module Google
|
|
583
598
|
return result
|
584
599
|
end
|
585
600
|
rescue ::Faraday::Error => e
|
586
|
-
|
587
|
-
|
601
|
+
begin
|
602
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
603
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
604
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
605
|
+
end
|
588
606
|
end
|
589
607
|
|
590
608
|
##
|