google-cloud-compute-v1 1.7.0 → 1.8.0
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/compute_pb.rb +66 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +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 +26 -11
- 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 +61 -25
- 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
- data/proto_docs/google/cloud/compute/v1/compute.rb +227 -60
- metadata +4 -4
@@ -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
|
##
|
@@ -235,8 +235,11 @@ module Google
|
|
235
235
|
return result
|
236
236
|
end
|
237
237
|
rescue ::Faraday::Error => e
|
238
|
-
|
239
|
-
|
238
|
+
begin
|
239
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
240
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
241
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
242
|
+
end
|
240
243
|
end
|
241
244
|
|
242
245
|
##
|
@@ -308,8 +311,11 @@ module Google
|
|
308
311
|
return result
|
309
312
|
end
|
310
313
|
rescue ::Faraday::Error => e
|
311
|
-
|
312
|
-
|
314
|
+
begin
|
315
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
316
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
317
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
318
|
+
end
|
313
319
|
end
|
314
320
|
|
315
321
|
##
|
@@ -371,8 +377,11 @@ module Google
|
|
371
377
|
return result
|
372
378
|
end
|
373
379
|
rescue ::Faraday::Error => e
|
374
|
-
|
375
|
-
|
380
|
+
begin
|
381
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
382
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
383
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
384
|
+
end
|
376
385
|
end
|
377
386
|
|
378
387
|
##
|
@@ -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
|
##
|
@@ -519,8 +531,11 @@ module Google
|
|
519
531
|
return result
|
520
532
|
end
|
521
533
|
rescue ::Faraday::Error => e
|
522
|
-
|
523
|
-
|
534
|
+
begin
|
535
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
536
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
537
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
538
|
+
end
|
524
539
|
end
|
525
540
|
|
526
541
|
##
|
@@ -591,8 +606,11 @@ module Google
|
|
591
606
|
return result
|
592
607
|
end
|
593
608
|
rescue ::Faraday::Error => e
|
594
|
-
|
595
|
-
|
609
|
+
begin
|
610
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
611
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
612
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
613
|
+
end
|
596
614
|
end
|
597
615
|
|
598
616
|
##
|
@@ -666,8 +684,11 @@ module Google
|
|
666
684
|
return result
|
667
685
|
end
|
668
686
|
rescue ::Faraday::Error => e
|
669
|
-
|
670
|
-
|
687
|
+
begin
|
688
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
689
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
690
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
691
|
+
end
|
671
692
|
end
|
672
693
|
|
673
694
|
##
|
@@ -741,8 +762,11 @@ module Google
|
|
741
762
|
return result
|
742
763
|
end
|
743
764
|
rescue ::Faraday::Error => e
|
744
|
-
|
745
|
-
|
765
|
+
begin
|
766
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
767
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
768
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
769
|
+
end
|
746
770
|
end
|
747
771
|
|
748
772
|
##
|
@@ -806,8 +830,11 @@ module Google
|
|
806
830
|
return result
|
807
831
|
end
|
808
832
|
rescue ::Faraday::Error => e
|
809
|
-
|
810
|
-
|
833
|
+
begin
|
834
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
835
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
836
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
837
|
+
end
|
811
838
|
end
|
812
839
|
|
813
840
|
##
|
@@ -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
|
##
|
@@ -236,8 +236,11 @@ module Google
|
|
236
236
|
return result
|
237
237
|
end
|
238
238
|
rescue ::Faraday::Error => e
|
239
|
-
|
240
|
-
|
239
|
+
begin
|
240
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
241
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
242
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
243
|
+
end
|
241
244
|
end
|
242
245
|
|
243
246
|
##
|
@@ -312,8 +315,11 @@ module Google
|
|
312
315
|
return result
|
313
316
|
end
|
314
317
|
rescue ::Faraday::Error => e
|
315
|
-
|
316
|
-
|
318
|
+
begin
|
319
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
320
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
321
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
322
|
+
end
|
317
323
|
end
|
318
324
|
|
319
325
|
##
|
@@ -377,8 +383,11 @@ module Google
|
|
377
383
|
return result
|
378
384
|
end
|
379
385
|
rescue ::Faraday::Error => e
|
380
|
-
|
381
|
-
|
386
|
+
begin
|
387
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
388
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
389
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
390
|
+
end
|
382
391
|
end
|
383
392
|
|
384
393
|
##
|
@@ -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
|
##
|
@@ -518,8 +530,11 @@ module Google
|
|
518
530
|
return result
|
519
531
|
end
|
520
532
|
rescue ::Faraday::Error => e
|
521
|
-
|
522
|
-
|
533
|
+
begin
|
534
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
535
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
536
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
537
|
+
end
|
523
538
|
end
|
524
539
|
|
525
540
|
##
|
@@ -592,8 +607,11 @@ module Google
|
|
592
607
|
return result
|
593
608
|
end
|
594
609
|
rescue ::Faraday::Error => e
|
595
|
-
|
596
|
-
|
610
|
+
begin
|
611
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
612
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
613
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
614
|
+
end
|
597
615
|
end
|
598
616
|
|
599
617
|
##
|
@@ -670,8 +688,11 @@ module Google
|
|
670
688
|
return result
|
671
689
|
end
|
672
690
|
rescue ::Faraday::Error => e
|
673
|
-
|
674
|
-
|
691
|
+
begin
|
692
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
693
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
694
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
695
|
+
end
|
675
696
|
end
|
676
697
|
|
677
698
|
##
|
@@ -737,8 +758,11 @@ module Google
|
|
737
758
|
return result
|
738
759
|
end
|
739
760
|
rescue ::Faraday::Error => e
|
740
|
-
|
741
|
-
|
761
|
+
begin
|
762
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
763
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
764
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
765
|
+
end
|
742
766
|
end
|
743
767
|
|
744
768
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -194,8 +194,11 @@ module Google
|
|
194
194
|
return result
|
195
195
|
end
|
196
196
|
rescue ::Faraday::Error => e
|
197
|
-
|
198
|
-
|
197
|
+
begin
|
198
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
199
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
200
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
201
|
+
end
|
199
202
|
end
|
200
203
|
|
201
204
|
##
|
@@ -266,8 +269,11 @@ module Google
|
|
266
269
|
return result
|
267
270
|
end
|
268
271
|
rescue ::Faraday::Error => e
|
269
|
-
|
270
|
-
|
272
|
+
begin
|
273
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
274
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
275
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
276
|
+
end
|
271
277
|
end
|
272
278
|
|
273
279
|
##
|
@@ -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
|
##
|