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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4df0057408d303fa690748467bbacd0083ee1c24b31067a5f81f49baf9011c9
|
4
|
+
data.tar.gz: 56050ef5ac59ec598dcb41771dc241c4cc1326a7871480b961ac752a94800e78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afeeb43e8641b86d012f3916e95bd80b7b5669b6a2627a8432823614de9f75f4a39bc54a14ec6b654642c52151c52c4ff9d5e8253060d5caba7ceb7d8e803967
|
7
|
+
data.tar.gz: 7eb1c2decd112c9d6409f44dc3f920ad948faf2fa781460a16366d8b032cdefb6dfb105c7392b054150c976d7b984c749a149cf9d29984320e05eef1bee91baa
|
@@ -212,8 +212,11 @@ module Google
|
|
212
212
|
return result
|
213
213
|
end
|
214
214
|
rescue ::Faraday::Error => e
|
215
|
-
|
216
|
-
|
215
|
+
begin
|
216
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
217
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
218
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
219
|
+
end
|
217
220
|
end
|
218
221
|
|
219
222
|
##
|
@@ -277,8 +280,11 @@ module Google
|
|
277
280
|
return result
|
278
281
|
end
|
279
282
|
rescue ::Faraday::Error => e
|
280
|
-
|
281
|
-
|
283
|
+
begin
|
284
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
285
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
286
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
287
|
+
end
|
282
288
|
end
|
283
289
|
|
284
290
|
##
|
@@ -351,8 +357,11 @@ module Google
|
|
351
357
|
return result
|
352
358
|
end
|
353
359
|
rescue ::Faraday::Error => e
|
354
|
-
|
355
|
-
|
360
|
+
begin
|
361
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
362
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
363
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
364
|
+
end
|
356
365
|
end
|
357
366
|
|
358
367
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -678,8 +696,11 @@ module Google
|
|
678
696
|
return result
|
679
697
|
end
|
680
698
|
rescue ::Faraday::Error => e
|
681
|
-
|
682
|
-
|
699
|
+
begin
|
700
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
701
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
702
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
703
|
+
end
|
683
704
|
end
|
684
705
|
|
685
706
|
##
|
@@ -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
|
##
|
@@ -233,8 +233,11 @@ module Google
|
|
233
233
|
return result
|
234
234
|
end
|
235
235
|
rescue ::Faraday::Error => e
|
236
|
-
|
237
|
-
|
236
|
+
begin
|
237
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
238
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
239
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
240
|
+
end
|
238
241
|
end
|
239
242
|
|
240
243
|
##
|
@@ -306,8 +309,11 @@ module Google
|
|
306
309
|
return result
|
307
310
|
end
|
308
311
|
rescue ::Faraday::Error => e
|
309
|
-
|
310
|
-
|
312
|
+
begin
|
313
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
314
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
315
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
316
|
+
end
|
311
317
|
end
|
312
318
|
|
313
319
|
##
|
@@ -381,8 +387,11 @@ module Google
|
|
381
387
|
return result
|
382
388
|
end
|
383
389
|
rescue ::Faraday::Error => e
|
384
|
-
|
385
|
-
|
390
|
+
begin
|
391
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
392
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
393
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
394
|
+
end
|
386
395
|
end
|
387
396
|
|
388
397
|
##
|
@@ -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
|
##
|
@@ -517,8 +529,11 @@ module Google
|
|
517
529
|
return result
|
518
530
|
end
|
519
531
|
rescue ::Faraday::Error => e
|
520
|
-
|
521
|
-
|
532
|
+
begin
|
533
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
534
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
535
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
536
|
+
end
|
522
537
|
end
|
523
538
|
|
524
539
|
##
|
@@ -589,8 +604,11 @@ module Google
|
|
589
604
|
return result
|
590
605
|
end
|
591
606
|
rescue ::Faraday::Error => e
|
592
|
-
|
593
|
-
|
607
|
+
begin
|
608
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
609
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
610
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
611
|
+
end
|
594
612
|
end
|
595
613
|
|
596
614
|
##
|
@@ -664,8 +682,11 @@ module Google
|
|
664
682
|
return result
|
665
683
|
end
|
666
684
|
rescue ::Faraday::Error => e
|
667
|
-
|
668
|
-
|
685
|
+
begin
|
686
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
687
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
688
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
689
|
+
end
|
669
690
|
end
|
670
691
|
|
671
692
|
##
|
@@ -739,8 +760,11 @@ module Google
|
|
739
760
|
return result
|
740
761
|
end
|
741
762
|
rescue ::Faraday::Error => e
|
742
|
-
|
743
|
-
|
763
|
+
begin
|
764
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
765
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
766
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
767
|
+
end
|
744
768
|
end
|
745
769
|
|
746
770
|
##
|
@@ -814,8 +838,11 @@ module Google
|
|
814
838
|
return result
|
815
839
|
end
|
816
840
|
rescue ::Faraday::Error => e
|
817
|
-
|
818
|
-
|
841
|
+
begin
|
842
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
843
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
844
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
845
|
+
end
|
819
846
|
end
|
820
847
|
|
821
848
|
##
|
@@ -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
|
##
|
@@ -249,8 +249,11 @@ module Google
|
|
249
249
|
return result
|
250
250
|
end
|
251
251
|
rescue ::Faraday::Error => e
|
252
|
-
|
253
|
-
|
252
|
+
begin
|
253
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
254
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
255
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
256
|
+
end
|
254
257
|
end
|
255
258
|
|
256
259
|
##
|
@@ -323,8 +326,11 @@ module Google
|
|
323
326
|
return result
|
324
327
|
end
|
325
328
|
rescue ::Faraday::Error => e
|
326
|
-
|
327
|
-
|
329
|
+
begin
|
330
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
331
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
332
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
333
|
+
end
|
328
334
|
end
|
329
335
|
|
330
336
|
##
|
@@ -396,8 +402,11 @@ module Google
|
|
396
402
|
return result
|
397
403
|
end
|
398
404
|
rescue ::Faraday::Error => e
|
399
|
-
|
400
|
-
|
405
|
+
begin
|
406
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
407
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
408
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
409
|
+
end
|
401
410
|
end
|
402
411
|
|
403
412
|
##
|
@@ -471,8 +480,11 @@ module Google
|
|
471
480
|
return result
|
472
481
|
end
|
473
482
|
rescue ::Faraday::Error => e
|
474
|
-
|
475
|
-
|
483
|
+
begin
|
484
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
485
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
486
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
487
|
+
end
|
476
488
|
end
|
477
489
|
|
478
490
|
##
|
@@ -534,8 +546,11 @@ module Google
|
|
534
546
|
return result
|
535
547
|
end
|
536
548
|
rescue ::Faraday::Error => e
|
537
|
-
|
538
|
-
|
549
|
+
begin
|
550
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
551
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
552
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
553
|
+
end
|
539
554
|
end
|
540
555
|
|
541
556
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -736,8 +757,11 @@ module Google
|
|
736
757
|
return result
|
737
758
|
end
|
738
759
|
rescue ::Faraday::Error => e
|
739
|
-
|
740
|
-
|
760
|
+
begin
|
761
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
762
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
763
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
764
|
+
end
|
741
765
|
end
|
742
766
|
|
743
767
|
##
|
@@ -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
|
##
|
@@ -883,8 +910,11 @@ module Google
|
|
883
910
|
return result
|
884
911
|
end
|
885
912
|
rescue ::Faraday::Error => e
|
886
|
-
|
887
|
-
|
913
|
+
begin
|
914
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
915
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
916
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
917
|
+
end
|
888
918
|
end
|
889
919
|
|
890
920
|
##
|
@@ -958,8 +988,11 @@ module Google
|
|
958
988
|
return result
|
959
989
|
end
|
960
990
|
rescue ::Faraday::Error => e
|
961
|
-
|
962
|
-
|
991
|
+
begin
|
992
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
993
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
994
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
995
|
+
end
|
963
996
|
end
|
964
997
|
|
965
998
|
##
|
@@ -1023,8 +1056,11 @@ module Google
|
|
1023
1056
|
return result
|
1024
1057
|
end
|
1025
1058
|
rescue ::Faraday::Error => e
|
1026
|
-
|
1027
|
-
|
1059
|
+
begin
|
1060
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1061
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1062
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1063
|
+
end
|
1028
1064
|
end
|
1029
1065
|
|
1030
1066
|
##
|
@@ -1098,8 +1134,11 @@ module Google
|
|
1098
1134
|
return result
|
1099
1135
|
end
|
1100
1136
|
rescue ::Faraday::Error => e
|
1101
|
-
|
1102
|
-
|
1137
|
+
begin
|
1138
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1139
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1140
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1141
|
+
end
|
1103
1142
|
end
|
1104
1143
|
|
1105
1144
|
##
|
@@ -1173,8 +1212,11 @@ module Google
|
|
1173
1212
|
return result
|
1174
1213
|
end
|
1175
1214
|
rescue ::Faraday::Error => e
|
1176
|
-
|
1177
|
-
|
1215
|
+
begin
|
1216
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1217
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1218
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1219
|
+
end
|
1178
1220
|
end
|
1179
1221
|
|
1180
1222
|
##
|
@@ -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
|
##
|