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
@@ -236,8 +236,11 @@ module Google
|
|
236
236
|
return result
|
237
237
|
end
|
238
238
|
rescue ::Faraday::Error => e
|
239
|
-
|
240
|
-
|
239
|
+
begin
|
240
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
241
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
242
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
243
|
+
end
|
241
244
|
end
|
242
245
|
|
243
246
|
##
|
@@ -312,8 +315,11 @@ module Google
|
|
312
315
|
return result
|
313
316
|
end
|
314
317
|
rescue ::Faraday::Error => e
|
315
|
-
|
316
|
-
|
318
|
+
begin
|
319
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
320
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
321
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
322
|
+
end
|
317
323
|
end
|
318
324
|
|
319
325
|
##
|
@@ -377,8 +383,11 @@ module Google
|
|
377
383
|
return result
|
378
384
|
end
|
379
385
|
rescue ::Faraday::Error => e
|
380
|
-
|
381
|
-
|
386
|
+
begin
|
387
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
388
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
389
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
390
|
+
end
|
382
391
|
end
|
383
392
|
|
384
393
|
##
|
@@ -444,8 +453,11 @@ module Google
|
|
444
453
|
return result
|
445
454
|
end
|
446
455
|
rescue ::Faraday::Error => e
|
447
|
-
|
448
|
-
|
456
|
+
begin
|
457
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
458
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
459
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
460
|
+
end
|
449
461
|
end
|
450
462
|
|
451
463
|
##
|
@@ -520,8 +532,11 @@ module Google
|
|
520
532
|
return result
|
521
533
|
end
|
522
534
|
rescue ::Faraday::Error => e
|
523
|
-
|
524
|
-
|
535
|
+
begin
|
536
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
537
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
538
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
539
|
+
end
|
525
540
|
end
|
526
541
|
|
527
542
|
##
|
@@ -594,8 +609,11 @@ module Google
|
|
594
609
|
return result
|
595
610
|
end
|
596
611
|
rescue ::Faraday::Error => e
|
597
|
-
|
598
|
-
|
612
|
+
begin
|
613
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
614
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
615
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
616
|
+
end
|
599
617
|
end
|
600
618
|
|
601
619
|
##
|
@@ -661,8 +679,11 @@ module Google
|
|
661
679
|
return result
|
662
680
|
end
|
663
681
|
rescue ::Faraday::Error => e
|
664
|
-
|
665
|
-
|
682
|
+
begin
|
683
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
684
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
685
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
686
|
+
end
|
666
687
|
end
|
667
688
|
|
668
689
|
##
|
@@ -728,8 +749,11 @@ module Google
|
|
728
749
|
return result
|
729
750
|
end
|
730
751
|
rescue ::Faraday::Error => e
|
731
|
-
|
732
|
-
|
752
|
+
begin
|
753
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
754
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
755
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
756
|
+
end
|
733
757
|
end
|
734
758
|
|
735
759
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -210,8 +210,11 @@ module Google
|
|
210
210
|
return result
|
211
211
|
end
|
212
212
|
rescue ::Faraday::Error => e
|
213
|
-
|
214
|
-
|
213
|
+
begin
|
214
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
215
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
216
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
217
|
+
end
|
215
218
|
end
|
216
219
|
|
217
220
|
##
|
@@ -275,8 +278,11 @@ module Google
|
|
275
278
|
return result
|
276
279
|
end
|
277
280
|
rescue ::Faraday::Error => e
|
278
|
-
|
279
|
-
|
281
|
+
begin
|
282
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
283
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
284
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
285
|
+
end
|
280
286
|
end
|
281
287
|
|
282
288
|
##
|
@@ -349,8 +355,11 @@ module Google
|
|
349
355
|
return result
|
350
356
|
end
|
351
357
|
rescue ::Faraday::Error => e
|
352
|
-
|
353
|
-
|
358
|
+
begin
|
359
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
360
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
361
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
362
|
+
end
|
354
363
|
end
|
355
364
|
|
356
365
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -231,8 +231,11 @@ module Google
|
|
231
231
|
return result
|
232
232
|
end
|
233
233
|
rescue ::Faraday::Error => e
|
234
|
-
|
235
|
-
|
234
|
+
begin
|
235
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
236
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
237
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
238
|
+
end
|
236
239
|
end
|
237
240
|
|
238
241
|
##
|
@@ -307,8 +310,11 @@ module Google
|
|
307
310
|
return result
|
308
311
|
end
|
309
312
|
rescue ::Faraday::Error => e
|
310
|
-
|
311
|
-
|
313
|
+
begin
|
314
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
315
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
316
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
317
|
+
end
|
312
318
|
end
|
313
319
|
|
314
320
|
##
|
@@ -372,8 +378,11 @@ module Google
|
|
372
378
|
return result
|
373
379
|
end
|
374
380
|
rescue ::Faraday::Error => e
|
375
|
-
|
376
|
-
|
381
|
+
begin
|
382
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
383
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
384
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
385
|
+
end
|
377
386
|
end
|
378
387
|
|
379
388
|
##
|
@@ -448,8 +457,11 @@ module Google
|
|
448
457
|
return result
|
449
458
|
end
|
450
459
|
rescue ::Faraday::Error => e
|
451
|
-
|
452
|
-
|
460
|
+
begin
|
461
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
462
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
463
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
464
|
+
end
|
453
465
|
end
|
454
466
|
|
455
467
|
##
|
@@ -522,8 +534,11 @@ module Google
|
|
522
534
|
return result
|
523
535
|
end
|
524
536
|
rescue ::Faraday::Error => e
|
525
|
-
|
526
|
-
|
537
|
+
begin
|
538
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
539
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
540
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
541
|
+
end
|
527
542
|
end
|
528
543
|
|
529
544
|
##
|
@@ -600,8 +615,11 @@ module Google
|
|
600
615
|
return result
|
601
616
|
end
|
602
617
|
rescue ::Faraday::Error => e
|
603
|
-
|
604
|
-
|
618
|
+
begin
|
619
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
620
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
621
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
622
|
+
end
|
605
623
|
end
|
606
624
|
|
607
625
|
##
|
@@ -667,8 +685,11 @@ module Google
|
|
667
685
|
return result
|
668
686
|
end
|
669
687
|
rescue ::Faraday::Error => e
|
670
|
-
|
671
|
-
|
688
|
+
begin
|
689
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
690
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
691
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
692
|
+
end
|
672
693
|
end
|
673
694
|
|
674
695
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -240,8 +240,11 @@ module Google
|
|
240
240
|
return result
|
241
241
|
end
|
242
242
|
rescue ::Faraday::Error => e
|
243
|
-
|
244
|
-
|
243
|
+
begin
|
244
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
245
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
246
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
247
|
+
end
|
245
248
|
end
|
246
249
|
|
247
250
|
##
|
@@ -313,8 +316,11 @@ module Google
|
|
313
316
|
return result
|
314
317
|
end
|
315
318
|
rescue ::Faraday::Error => e
|
316
|
-
|
317
|
-
|
319
|
+
begin
|
320
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
321
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
322
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
323
|
+
end
|
318
324
|
end
|
319
325
|
|
320
326
|
##
|
@@ -384,8 +390,11 @@ module Google
|
|
384
390
|
return result
|
385
391
|
end
|
386
392
|
rescue ::Faraday::Error => e
|
387
|
-
|
388
|
-
|
393
|
+
begin
|
394
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
395
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
396
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
397
|
+
end
|
389
398
|
end
|
390
399
|
|
391
400
|
##
|
@@ -457,8 +466,11 @@ module Google
|
|
457
466
|
return result
|
458
467
|
end
|
459
468
|
rescue ::Faraday::Error => e
|
460
|
-
|
461
|
-
|
469
|
+
begin
|
470
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
471
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
472
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
473
|
+
end
|
462
474
|
end
|
463
475
|
|
464
476
|
##
|
@@ -518,8 +530,11 @@ module Google
|
|
518
530
|
return result
|
519
531
|
end
|
520
532
|
rescue ::Faraday::Error => e
|
521
|
-
|
522
|
-
|
533
|
+
begin
|
534
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
535
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
536
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
537
|
+
end
|
523
538
|
end
|
524
539
|
|
525
540
|
##
|
@@ -579,8 +594,11 @@ module Google
|
|
579
594
|
return result
|
580
595
|
end
|
581
596
|
rescue ::Faraday::Error => e
|
582
|
-
|
583
|
-
|
597
|
+
begin
|
598
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
599
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
600
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
601
|
+
end
|
584
602
|
end
|
585
603
|
|
586
604
|
##
|
@@ -651,8 +669,11 @@ module Google
|
|
651
669
|
return result
|
652
670
|
end
|
653
671
|
rescue ::Faraday::Error => e
|
654
|
-
|
655
|
-
|
672
|
+
begin
|
673
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
674
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
675
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
676
|
+
end
|
656
677
|
end
|
657
678
|
|
658
679
|
##
|
@@ -725,8 +746,11 @@ module Google
|
|
725
746
|
return result
|
726
747
|
end
|
727
748
|
rescue ::Faraday::Error => e
|
728
|
-
|
729
|
-
|
749
|
+
begin
|
750
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
751
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
752
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
753
|
+
end
|
730
754
|
end
|
731
755
|
|
732
756
|
##
|
@@ -798,8 +822,11 @@ module Google
|
|
798
822
|
return result
|
799
823
|
end
|
800
824
|
rescue ::Faraday::Error => e
|
801
|
-
|
802
|
-
|
825
|
+
begin
|
826
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
827
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
828
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
829
|
+
end
|
803
830
|
end
|
804
831
|
|
805
832
|
##
|
@@ -871,8 +898,11 @@ module Google
|
|
871
898
|
return result
|
872
899
|
end
|
873
900
|
rescue ::Faraday::Error => e
|
874
|
-
|
875
|
-
|
901
|
+
begin
|
902
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
903
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
904
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
905
|
+
end
|
876
906
|
end
|
877
907
|
|
878
908
|
##
|
@@ -944,8 +974,11 @@ module Google
|
|
944
974
|
return result
|
945
975
|
end
|
946
976
|
rescue ::Faraday::Error => e
|
947
|
-
|
948
|
-
|
977
|
+
begin
|
978
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
979
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
980
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
981
|
+
end
|
949
982
|
end
|
950
983
|
|
951
984
|
##
|
@@ -1017,8 +1050,11 @@ module Google
|
|
1017
1050
|
return result
|
1018
1051
|
end
|
1019
1052
|
rescue ::Faraday::Error => e
|
1020
|
-
|
1021
|
-
|
1053
|
+
begin
|
1054
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1055
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1056
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1057
|
+
end
|
1022
1058
|
end
|
1023
1059
|
|
1024
1060
|
##
|
@@ -1090,8 +1126,11 @@ module Google
|
|
1090
1126
|
return result
|
1091
1127
|
end
|
1092
1128
|
rescue ::Faraday::Error => e
|
1093
|
-
|
1094
|
-
|
1129
|
+
begin
|
1130
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1131
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1132
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1133
|
+
end
|
1095
1134
|
end
|
1096
1135
|
|
1097
1136
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -223,8 +223,11 @@ module Google
|
|
223
223
|
return result
|
224
224
|
end
|
225
225
|
rescue ::Faraday::Error => e
|
226
|
-
|
227
|
-
|
226
|
+
begin
|
227
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
228
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
229
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
230
|
+
end
|
228
231
|
end
|
229
232
|
|
230
233
|
##
|
@@ -286,8 +289,11 @@ module Google
|
|
286
289
|
return result
|
287
290
|
end
|
288
291
|
rescue ::Faraday::Error => e
|
289
|
-
|
290
|
-
|
292
|
+
begin
|
293
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
294
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
295
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
296
|
+
end
|
291
297
|
end
|
292
298
|
|
293
299
|
##
|
@@ -359,8 +365,11 @@ module Google
|
|
359
365
|
return result
|
360
366
|
end
|
361
367
|
rescue ::Faraday::Error => e
|
362
|
-
|
363
|
-
|
368
|
+
begin
|
369
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
370
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
371
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
372
|
+
end
|
364
373
|
end
|
365
374
|
|
366
375
|
##
|
@@ -431,8 +440,11 @@ module Google
|
|
431
440
|
return result
|
432
441
|
end
|
433
442
|
rescue ::Faraday::Error => e
|
434
|
-
|
435
|
-
|
443
|
+
begin
|
444
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
445
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
446
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
447
|
+
end
|
436
448
|
end
|
437
449
|
|
438
450
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -229,8 +229,11 @@ module Google
|
|
229
229
|
return result
|
230
230
|
end
|
231
231
|
rescue ::Faraday::Error => e
|
232
|
-
|
233
|
-
|
232
|
+
begin
|
233
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
234
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
235
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
236
|
+
end
|
234
237
|
end
|
235
238
|
|
236
239
|
##
|
@@ -305,8 +308,11 @@ module Google
|
|
305
308
|
return result
|
306
309
|
end
|
307
310
|
rescue ::Faraday::Error => e
|
308
|
-
|
309
|
-
|
311
|
+
begin
|
312
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
313
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
314
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
315
|
+
end
|
310
316
|
end
|
311
317
|
|
312
318
|
##
|
@@ -370,8 +376,11 @@ module Google
|
|
370
376
|
return result
|
371
377
|
end
|
372
378
|
rescue ::Faraday::Error => e
|
373
|
-
|
374
|
-
|
379
|
+
begin
|
380
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
381
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
382
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
383
|
+
end
|
375
384
|
end
|
376
385
|
|
377
386
|
##
|
@@ -446,8 +455,11 @@ module Google
|
|
446
455
|
return result
|
447
456
|
end
|
448
457
|
rescue ::Faraday::Error => e
|
449
|
-
|
450
|
-
|
458
|
+
begin
|
459
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
460
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
461
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
462
|
+
end
|
451
463
|
end
|
452
464
|
|
453
465
|
##
|
@@ -520,8 +532,11 @@ module Google
|
|
520
532
|
return result
|
521
533
|
end
|
522
534
|
rescue ::Faraday::Error => e
|
523
|
-
|
524
|
-
|
535
|
+
begin
|
536
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
537
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
538
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
539
|
+
end
|
525
540
|
end
|
526
541
|
|
527
542
|
##
|
@@ -598,8 +613,11 @@ module Google
|
|
598
613
|
return result
|
599
614
|
end
|
600
615
|
rescue ::Faraday::Error => e
|
601
|
-
|
602
|
-
|
616
|
+
begin
|
617
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
618
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
619
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
620
|
+
end
|
603
621
|
end
|
604
622
|
|
605
623
|
##
|
@@ -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
|
##
|