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
@@ -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
|
##
|
@@ -228,8 +228,11 @@ module Google
|
|
228
228
|
return result
|
229
229
|
end
|
230
230
|
rescue ::Faraday::Error => e
|
231
|
-
|
232
|
-
|
231
|
+
begin
|
232
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
233
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
234
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
235
|
+
end
|
233
236
|
end
|
234
237
|
|
235
238
|
##
|
@@ -293,8 +296,11 @@ module Google
|
|
293
296
|
return result
|
294
297
|
end
|
295
298
|
rescue ::Faraday::Error => e
|
296
|
-
|
297
|
-
|
299
|
+
begin
|
300
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
301
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
302
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
303
|
+
end
|
298
304
|
end
|
299
305
|
|
300
306
|
##
|
@@ -369,8 +375,11 @@ module Google
|
|
369
375
|
return result
|
370
376
|
end
|
371
377
|
rescue ::Faraday::Error => e
|
372
|
-
|
373
|
-
|
378
|
+
begin
|
379
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
380
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
381
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
382
|
+
end
|
374
383
|
end
|
375
384
|
|
376
385
|
##
|
@@ -443,8 +452,11 @@ module Google
|
|
443
452
|
return result
|
444
453
|
end
|
445
454
|
rescue ::Faraday::Error => e
|
446
|
-
|
447
|
-
|
455
|
+
begin
|
456
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
457
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
458
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
459
|
+
end
|
448
460
|
end
|
449
461
|
|
450
462
|
##
|
@@ -521,8 +533,11 @@ module Google
|
|
521
533
|
return result
|
522
534
|
end
|
523
535
|
rescue ::Faraday::Error => e
|
524
|
-
|
525
|
-
|
536
|
+
begin
|
537
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
538
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
539
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
540
|
+
end
|
526
541
|
end
|
527
542
|
|
528
543
|
##
|
@@ -599,8 +614,11 @@ module Google
|
|
599
614
|
return result
|
600
615
|
end
|
601
616
|
rescue ::Faraday::Error => e
|
602
|
-
|
603
|
-
|
617
|
+
begin
|
618
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
619
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
620
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
621
|
+
end
|
604
622
|
end
|
605
623
|
|
606
624
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -237,8 +237,11 @@ module Google
|
|
237
237
|
return result
|
238
238
|
end
|
239
239
|
rescue ::Faraday::Error => e
|
240
|
-
|
241
|
-
|
240
|
+
begin
|
241
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
242
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
243
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
244
|
+
end
|
242
245
|
end
|
243
246
|
|
244
247
|
##
|
@@ -302,8 +305,11 @@ module Google
|
|
302
305
|
return result
|
303
306
|
end
|
304
307
|
rescue ::Faraday::Error => e
|
305
|
-
|
306
|
-
|
308
|
+
begin
|
309
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
310
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
311
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
312
|
+
end
|
307
313
|
end
|
308
314
|
|
309
315
|
##
|
@@ -368,8 +374,11 @@ module Google
|
|
368
374
|
return result
|
369
375
|
end
|
370
376
|
rescue ::Faraday::Error => e
|
371
|
-
|
372
|
-
|
377
|
+
begin
|
378
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
379
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
380
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
381
|
+
end
|
373
382
|
end
|
374
383
|
|
375
384
|
##
|
@@ -435,8 +444,11 @@ module Google
|
|
435
444
|
return result
|
436
445
|
end
|
437
446
|
rescue ::Faraday::Error => e
|
438
|
-
|
439
|
-
|
447
|
+
begin
|
448
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
449
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
450
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
451
|
+
end
|
440
452
|
end
|
441
453
|
|
442
454
|
##
|
@@ -511,8 +523,11 @@ module Google
|
|
511
523
|
return result
|
512
524
|
end
|
513
525
|
rescue ::Faraday::Error => e
|
514
|
-
|
515
|
-
|
526
|
+
begin
|
527
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
528
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
529
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
530
|
+
end
|
516
531
|
end
|
517
532
|
|
518
533
|
##
|
@@ -585,8 +600,11 @@ module Google
|
|
585
600
|
return result
|
586
601
|
end
|
587
602
|
rescue ::Faraday::Error => e
|
588
|
-
|
589
|
-
|
603
|
+
begin
|
604
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
605
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
606
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
607
|
+
end
|
590
608
|
end
|
591
609
|
|
592
610
|
##
|
@@ -663,8 +681,11 @@ module Google
|
|
663
681
|
return result
|
664
682
|
end
|
665
683
|
rescue ::Faraday::Error => e
|
666
|
-
|
667
|
-
|
684
|
+
begin
|
685
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
686
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
687
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
688
|
+
end
|
668
689
|
end
|
669
690
|
|
670
691
|
##
|
@@ -730,8 +751,11 @@ module Google
|
|
730
751
|
return result
|
731
752
|
end
|
732
753
|
rescue ::Faraday::Error => e
|
733
|
-
|
734
|
-
|
754
|
+
begin
|
755
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
756
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
757
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
758
|
+
end
|
735
759
|
end
|
736
760
|
|
737
761
|
##
|
@@ -808,8 +832,11 @@ module Google
|
|
808
832
|
return result
|
809
833
|
end
|
810
834
|
rescue ::Faraday::Error => e
|
811
|
-
|
812
|
-
|
835
|
+
begin
|
836
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
837
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
838
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
839
|
+
end
|
813
840
|
end
|
814
841
|
|
815
842
|
##
|
@@ -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
|
##
|
@@ -227,8 +227,11 @@ module Google
|
|
227
227
|
return result
|
228
228
|
end
|
229
229
|
rescue ::Faraday::Error => e
|
230
|
-
|
231
|
-
|
230
|
+
begin
|
231
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
232
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
233
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
234
|
+
end
|
232
235
|
end
|
233
236
|
|
234
237
|
##
|
@@ -292,8 +295,11 @@ module Google
|
|
292
295
|
return result
|
293
296
|
end
|
294
297
|
rescue ::Faraday::Error => e
|
295
|
-
|
296
|
-
|
298
|
+
begin
|
299
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
300
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
301
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
302
|
+
end
|
297
303
|
end
|
298
304
|
|
299
305
|
##
|
@@ -368,8 +374,11 @@ module Google
|
|
368
374
|
return result
|
369
375
|
end
|
370
376
|
rescue ::Faraday::Error => e
|
371
|
-
|
372
|
-
|
377
|
+
begin
|
378
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
379
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
380
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
381
|
+
end
|
373
382
|
end
|
374
383
|
|
375
384
|
##
|
@@ -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
|
##
|
@@ -523,8 +535,11 @@ module Google
|
|
523
535
|
return result
|
524
536
|
end
|
525
537
|
rescue ::Faraday::Error => e
|
526
|
-
|
527
|
-
|
538
|
+
begin
|
539
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
540
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
541
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
542
|
+
end
|
528
543
|
end
|
529
544
|
|
530
545
|
##
|
@@ -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
|
##
|
@@ -196,8 +196,11 @@ module Google
|
|
196
196
|
return result
|
197
197
|
end
|
198
198
|
rescue ::Faraday::Error => e
|
199
|
-
|
200
|
-
|
199
|
+
begin
|
200
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
201
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
202
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
203
|
+
end
|
201
204
|
end
|
202
205
|
|
203
206
|
##
|
@@ -270,8 +273,11 @@ module Google
|
|
270
273
|
return result
|
271
274
|
end
|
272
275
|
rescue ::Faraday::Error => e
|
273
|
-
|
274
|
-
|
276
|
+
begin
|
277
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
278
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
279
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
280
|
+
end
|
275
281
|
end
|
276
282
|
|
277
283
|
##
|
@@ -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
|
##
|