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
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -224,8 +224,11 @@ module Google
|
|
224
224
|
return result
|
225
225
|
end
|
226
226
|
rescue ::Faraday::Error => e
|
227
|
-
|
228
|
-
|
227
|
+
begin
|
228
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
229
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
230
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
231
|
+
end
|
229
232
|
end
|
230
233
|
|
231
234
|
##
|
@@ -289,8 +292,11 @@ module Google
|
|
289
292
|
return result
|
290
293
|
end
|
291
294
|
rescue ::Faraday::Error => e
|
292
|
-
|
293
|
-
|
295
|
+
begin
|
296
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
297
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
298
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
299
|
+
end
|
294
300
|
end
|
295
301
|
|
296
302
|
##
|
@@ -365,8 +371,11 @@ module Google
|
|
365
371
|
return result
|
366
372
|
end
|
367
373
|
rescue ::Faraday::Error => e
|
368
|
-
|
369
|
-
|
374
|
+
begin
|
375
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
376
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
377
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
378
|
+
end
|
370
379
|
end
|
371
380
|
|
372
381
|
##
|
@@ -439,8 +448,11 @@ module Google
|
|
439
448
|
return result
|
440
449
|
end
|
441
450
|
rescue ::Faraday::Error => e
|
442
|
-
|
443
|
-
|
451
|
+
begin
|
452
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
453
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
454
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
455
|
+
end
|
444
456
|
end
|
445
457
|
|
446
458
|
##
|
@@ -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
|
##
|
@@ -266,8 +266,11 @@ module Google
|
|
266
266
|
return result
|
267
267
|
end
|
268
268
|
rescue ::Faraday::Error => e
|
269
|
-
|
270
|
-
|
269
|
+
begin
|
270
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
271
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
272
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
273
|
+
end
|
271
274
|
end
|
272
275
|
|
273
276
|
##
|
@@ -348,8 +351,11 @@ module Google
|
|
348
351
|
return result
|
349
352
|
end
|
350
353
|
rescue ::Faraday::Error => e
|
351
|
-
|
352
|
-
|
354
|
+
begin
|
355
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
356
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
357
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
358
|
+
end
|
353
359
|
end
|
354
360
|
|
355
361
|
##
|
@@ -426,8 +432,11 @@ module Google
|
|
426
432
|
return result
|
427
433
|
end
|
428
434
|
rescue ::Faraday::Error => e
|
429
|
-
|
430
|
-
|
435
|
+
begin
|
436
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
437
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
438
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
439
|
+
end
|
431
440
|
end
|
432
441
|
|
433
442
|
##
|
@@ -502,8 +511,11 @@ module Google
|
|
502
511
|
return result
|
503
512
|
end
|
504
513
|
rescue ::Faraday::Error => e
|
505
|
-
|
506
|
-
|
514
|
+
begin
|
515
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
516
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
517
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
518
|
+
end
|
507
519
|
end
|
508
520
|
|
509
521
|
##
|
@@ -567,8 +579,11 @@ module Google
|
|
567
579
|
return result
|
568
580
|
end
|
569
581
|
rescue ::Faraday::Error => e
|
570
|
-
|
571
|
-
|
582
|
+
begin
|
583
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
584
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
585
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
586
|
+
end
|
572
587
|
end
|
573
588
|
|
574
589
|
##
|
@@ -634,8 +649,11 @@ module Google
|
|
634
649
|
return result
|
635
650
|
end
|
636
651
|
rescue ::Faraday::Error => e
|
637
|
-
|
638
|
-
|
652
|
+
begin
|
653
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
654
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
655
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
656
|
+
end
|
639
657
|
end
|
640
658
|
|
641
659
|
##
|
@@ -699,8 +717,11 @@ module Google
|
|
699
717
|
return result
|
700
718
|
end
|
701
719
|
rescue ::Faraday::Error => e
|
702
|
-
|
703
|
-
|
720
|
+
begin
|
721
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
722
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
723
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
724
|
+
end
|
704
725
|
end
|
705
726
|
|
706
727
|
##
|
@@ -766,8 +787,11 @@ module Google
|
|
766
787
|
return result
|
767
788
|
end
|
768
789
|
rescue ::Faraday::Error => e
|
769
|
-
|
770
|
-
|
790
|
+
begin
|
791
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
792
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
793
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
794
|
+
end
|
771
795
|
end
|
772
796
|
|
773
797
|
##
|
@@ -833,8 +857,11 @@ module Google
|
|
833
857
|
return result
|
834
858
|
end
|
835
859
|
rescue ::Faraday::Error => e
|
836
|
-
|
837
|
-
|
860
|
+
begin
|
861
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
862
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
863
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
864
|
+
end
|
838
865
|
end
|
839
866
|
|
840
867
|
##
|
@@ -909,8 +936,11 @@ module Google
|
|
909
936
|
return result
|
910
937
|
end
|
911
938
|
rescue ::Faraday::Error => e
|
912
|
-
|
913
|
-
|
939
|
+
begin
|
940
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
941
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
942
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
943
|
+
end
|
914
944
|
end
|
915
945
|
|
916
946
|
##
|
@@ -983,8 +1013,11 @@ module Google
|
|
983
1013
|
return result
|
984
1014
|
end
|
985
1015
|
rescue ::Faraday::Error => e
|
986
|
-
|
987
|
-
|
1016
|
+
begin
|
1017
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1018
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1019
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1020
|
+
end
|
988
1021
|
end
|
989
1022
|
|
990
1023
|
##
|
@@ -1061,8 +1094,11 @@ module Google
|
|
1061
1094
|
return result
|
1062
1095
|
end
|
1063
1096
|
rescue ::Faraday::Error => e
|
1064
|
-
|
1065
|
-
|
1097
|
+
begin
|
1098
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1099
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1100
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1101
|
+
end
|
1066
1102
|
end
|
1067
1103
|
|
1068
1104
|
##
|
@@ -1141,8 +1177,11 @@ module Google
|
|
1141
1177
|
return result
|
1142
1178
|
end
|
1143
1179
|
rescue ::Faraday::Error => e
|
1144
|
-
|
1145
|
-
|
1180
|
+
begin
|
1181
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1182
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1183
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1184
|
+
end
|
1146
1185
|
end
|
1147
1186
|
|
1148
1187
|
##
|
@@ -1219,8 +1258,11 @@ module Google
|
|
1219
1258
|
return result
|
1220
1259
|
end
|
1221
1260
|
rescue ::Faraday::Error => e
|
1222
|
-
|
1223
|
-
|
1261
|
+
begin
|
1262
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1263
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1264
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1265
|
+
end
|
1224
1266
|
end
|
1225
1267
|
|
1226
1268
|
##
|
@@ -1297,8 +1339,11 @@ module Google
|
|
1297
1339
|
return result
|
1298
1340
|
end
|
1299
1341
|
rescue ::Faraday::Error => e
|
1300
|
-
|
1301
|
-
|
1342
|
+
begin
|
1343
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1344
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1345
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1346
|
+
end
|
1302
1347
|
end
|
1303
1348
|
|
1304
1349
|
##
|
@@ -1364,8 +1409,11 @@ module Google
|
|
1364
1409
|
return result
|
1365
1410
|
end
|
1366
1411
|
rescue ::Faraday::Error => e
|
1367
|
-
|
1368
|
-
|
1412
|
+
begin
|
1413
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1414
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1415
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1416
|
+
end
|
1369
1417
|
end
|
1370
1418
|
|
1371
1419
|
##
|
@@ -1431,8 +1479,11 @@ module Google
|
|
1431
1479
|
return result
|
1432
1480
|
end
|
1433
1481
|
rescue ::Faraday::Error => e
|
1434
|
-
|
1435
|
-
|
1482
|
+
begin
|
1483
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1484
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1485
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1486
|
+
end
|
1436
1487
|
end
|
1437
1488
|
|
1438
1489
|
##
|
@@ -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
|
##
|
@@ -224,8 +224,11 @@ module Google
|
|
224
224
|
return result
|
225
225
|
end
|
226
226
|
rescue ::Faraday::Error => e
|
227
|
-
|
228
|
-
|
227
|
+
begin
|
228
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
229
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
230
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
231
|
+
end
|
229
232
|
end
|
230
233
|
|
231
234
|
##
|
@@ -289,8 +292,11 @@ module Google
|
|
289
292
|
return result
|
290
293
|
end
|
291
294
|
rescue ::Faraday::Error => e
|
292
|
-
|
293
|
-
|
295
|
+
begin
|
296
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
297
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
298
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
299
|
+
end
|
294
300
|
end
|
295
301
|
|
296
302
|
##
|
@@ -365,8 +371,11 @@ module Google
|
|
365
371
|
return result
|
366
372
|
end
|
367
373
|
rescue ::Faraday::Error => e
|
368
|
-
|
369
|
-
|
374
|
+
begin
|
375
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
376
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
377
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
378
|
+
end
|
370
379
|
end
|
371
380
|
|
372
381
|
##
|
@@ -439,8 +448,11 @@ module Google
|
|
439
448
|
return result
|
440
449
|
end
|
441
450
|
rescue ::Faraday::Error => e
|
442
|
-
|
443
|
-
|
451
|
+
begin
|
452
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
453
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
454
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
455
|
+
end
|
444
456
|
end
|
445
457
|
|
446
458
|
##
|
@@ -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
|
##
|
@@ -200,8 +200,11 @@ module Google
|
|
200
200
|
return result
|
201
201
|
end
|
202
202
|
rescue ::Faraday::Error => e
|
203
|
-
|
204
|
-
|
203
|
+
begin
|
204
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
205
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
206
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
207
|
+
end
|
205
208
|
end
|
206
209
|
|
207
210
|
##
|
@@ -265,8 +268,11 @@ module Google
|
|
265
268
|
return result
|
266
269
|
end
|
267
270
|
rescue ::Faraday::Error => e
|
268
|
-
|
269
|
-
|
271
|
+
begin
|
272
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
273
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
274
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
275
|
+
end
|
270
276
|
end
|
271
277
|
|
272
278
|
##
|
@@ -339,8 +345,11 @@ module Google
|
|
339
345
|
return result
|
340
346
|
end
|
341
347
|
rescue ::Faraday::Error => e
|
342
|
-
|
343
|
-
|
348
|
+
begin
|
349
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
350
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
351
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
352
|
+
end
|
344
353
|
end
|
345
354
|
|
346
355
|
##
|
@@ -404,8 +413,11 @@ module Google
|
|
404
413
|
return result
|
405
414
|
end
|
406
415
|
rescue ::Faraday::Error => e
|
407
|
-
|
408
|
-
|
416
|
+
begin
|
417
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
418
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
419
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
420
|
+
end
|
409
421
|
end
|
410
422
|
|
411
423
|
##
|
@@ -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
|
##
|
@@ -226,8 +226,11 @@ module Google
|
|
226
226
|
return result
|
227
227
|
end
|
228
228
|
rescue ::Faraday::Error => e
|
229
|
-
|
230
|
-
|
229
|
+
begin
|
230
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
231
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
232
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
233
|
+
end
|
231
234
|
end
|
232
235
|
|
233
236
|
##
|
@@ -291,8 +294,11 @@ module Google
|
|
291
294
|
return result
|
292
295
|
end
|
293
296
|
rescue ::Faraday::Error => e
|
294
|
-
|
295
|
-
|
297
|
+
begin
|
298
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
299
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
300
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
301
|
+
end
|
296
302
|
end
|
297
303
|
|
298
304
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -224,8 +224,11 @@ module Google
|
|
224
224
|
return result
|
225
225
|
end
|
226
226
|
rescue ::Faraday::Error => e
|
227
|
-
|
228
|
-
|
227
|
+
begin
|
228
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
229
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
230
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
231
|
+
end
|
229
232
|
end
|
230
233
|
|
231
234
|
##
|
@@ -289,8 +292,11 @@ module Google
|
|
289
292
|
return result
|
290
293
|
end
|
291
294
|
rescue ::Faraday::Error => e
|
292
|
-
|
293
|
-
|
295
|
+
begin
|
296
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
297
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
298
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
299
|
+
end
|
294
300
|
end
|
295
301
|
|
296
302
|
##
|
@@ -365,8 +371,11 @@ module Google
|
|
365
371
|
return result
|
366
372
|
end
|
367
373
|
rescue ::Faraday::Error => e
|
368
|
-
|
369
|
-
|
374
|
+
begin
|
375
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
376
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
377
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
378
|
+
end
|
370
379
|
end
|
371
380
|
|
372
381
|
##
|
@@ -439,8 +448,11 @@ module Google
|
|
439
448
|
return result
|
440
449
|
end
|
441
450
|
rescue ::Faraday::Error => e
|
442
|
-
|
443
|
-
|
451
|
+
begin
|
452
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
453
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
454
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
455
|
+
end
|
444
456
|
end
|
445
457
|
|
446
458
|
##
|
@@ -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
|
##
|