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
@@ -232,8 +232,11 @@ module Google
|
|
232
232
|
return result
|
233
233
|
end
|
234
234
|
rescue ::Faraday::Error => e
|
235
|
-
|
236
|
-
|
235
|
+
begin
|
236
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
237
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
238
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
239
|
+
end
|
237
240
|
end
|
238
241
|
|
239
242
|
##
|
@@ -295,8 +298,11 @@ module Google
|
|
295
298
|
return result
|
296
299
|
end
|
297
300
|
rescue ::Faraday::Error => e
|
298
|
-
|
299
|
-
|
301
|
+
begin
|
302
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
303
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
304
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
305
|
+
end
|
300
306
|
end
|
301
307
|
|
302
308
|
##
|
@@ -360,8 +366,11 @@ module Google
|
|
360
366
|
return result
|
361
367
|
end
|
362
368
|
rescue ::Faraday::Error => e
|
363
|
-
|
364
|
-
|
369
|
+
begin
|
370
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
371
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
372
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
373
|
+
end
|
365
374
|
end
|
366
375
|
|
367
376
|
##
|
@@ -433,8 +442,11 @@ module Google
|
|
433
442
|
return result
|
434
443
|
end
|
435
444
|
rescue ::Faraday::Error => e
|
436
|
-
|
437
|
-
|
445
|
+
begin
|
446
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
447
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
448
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
449
|
+
end
|
438
450
|
end
|
439
451
|
|
440
452
|
##
|
@@ -505,8 +517,11 @@ module Google
|
|
505
517
|
return result
|
506
518
|
end
|
507
519
|
rescue ::Faraday::Error => e
|
508
|
-
|
509
|
-
|
520
|
+
begin
|
521
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
522
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
523
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
524
|
+
end
|
510
525
|
end
|
511
526
|
|
512
527
|
##
|
@@ -570,8 +585,11 @@ module Google
|
|
570
585
|
return result
|
571
586
|
end
|
572
587
|
rescue ::Faraday::Error => e
|
573
|
-
|
574
|
-
|
588
|
+
begin
|
589
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
590
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
591
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
592
|
+
end
|
575
593
|
end
|
576
594
|
|
577
595
|
##
|
@@ -643,8 +661,11 @@ module Google
|
|
643
661
|
return result
|
644
662
|
end
|
645
663
|
rescue ::Faraday::Error => e
|
646
|
-
|
647
|
-
|
664
|
+
begin
|
665
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
666
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
667
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
668
|
+
end
|
648
669
|
end
|
649
670
|
|
650
671
|
##
|
@@ -708,8 +729,11 @@ module Google
|
|
708
729
|
return result
|
709
730
|
end
|
710
731
|
rescue ::Faraday::Error => e
|
711
|
-
|
712
|
-
|
732
|
+
begin
|
733
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
734
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
735
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
736
|
+
end
|
713
737
|
end
|
714
738
|
|
715
739
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -227,8 +227,11 @@ module Google
|
|
227
227
|
return result
|
228
228
|
end
|
229
229
|
rescue ::Faraday::Error => e
|
230
|
-
|
231
|
-
|
230
|
+
begin
|
231
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
232
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
233
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
234
|
+
end
|
232
235
|
end
|
233
236
|
|
234
237
|
##
|
@@ -300,8 +303,11 @@ module Google
|
|
300
303
|
return result
|
301
304
|
end
|
302
305
|
rescue ::Faraday::Error => e
|
303
|
-
|
304
|
-
|
306
|
+
begin
|
307
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
308
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
309
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
310
|
+
end
|
305
311
|
end
|
306
312
|
|
307
313
|
##
|
@@ -363,8 +369,11 @@ module Google
|
|
363
369
|
return result
|
364
370
|
end
|
365
371
|
rescue ::Faraday::Error => e
|
366
|
-
|
367
|
-
|
372
|
+
begin
|
373
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
374
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
375
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
376
|
+
end
|
368
377
|
end
|
369
378
|
|
370
379
|
##
|
@@ -436,8 +445,11 @@ module Google
|
|
436
445
|
return result
|
437
446
|
end
|
438
447
|
rescue ::Faraday::Error => e
|
439
|
-
|
440
|
-
|
448
|
+
begin
|
449
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
450
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
451
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
452
|
+
end
|
441
453
|
end
|
442
454
|
|
443
455
|
##
|
@@ -508,8 +520,11 @@ module Google
|
|
508
520
|
return result
|
509
521
|
end
|
510
522
|
rescue ::Faraday::Error => e
|
511
|
-
|
512
|
-
|
523
|
+
begin
|
524
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
525
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
526
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
527
|
+
end
|
513
528
|
end
|
514
529
|
|
515
530
|
##
|
@@ -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
|
##
|
@@ -234,8 +234,11 @@ module Google
|
|
234
234
|
return result
|
235
235
|
end
|
236
236
|
rescue ::Faraday::Error => e
|
237
|
-
|
238
|
-
|
237
|
+
begin
|
238
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
239
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
240
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
241
|
+
end
|
239
242
|
end
|
240
243
|
|
241
244
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -515,8 +527,11 @@ module Google
|
|
515
527
|
return result
|
516
528
|
end
|
517
529
|
rescue ::Faraday::Error => e
|
518
|
-
|
519
|
-
|
530
|
+
begin
|
531
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
532
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
533
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
534
|
+
end
|
520
535
|
end
|
521
536
|
|
522
537
|
##
|
@@ -586,8 +601,11 @@ module Google
|
|
586
601
|
return result
|
587
602
|
end
|
588
603
|
rescue ::Faraday::Error => e
|
589
|
-
|
590
|
-
|
604
|
+
begin
|
605
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
606
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
607
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
608
|
+
end
|
591
609
|
end
|
592
610
|
|
593
611
|
##
|
@@ -661,8 +679,11 @@ module Google
|
|
661
679
|
return result
|
662
680
|
end
|
663
681
|
rescue ::Faraday::Error => e
|
664
|
-
|
665
|
-
|
682
|
+
begin
|
683
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
684
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
685
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
686
|
+
end
|
666
687
|
end
|
667
688
|
|
668
689
|
##
|
@@ -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
|
##
|
@@ -247,8 +247,11 @@ module Google
|
|
247
247
|
return result
|
248
248
|
end
|
249
249
|
rescue ::Faraday::Error => e
|
250
|
-
|
251
|
-
|
250
|
+
begin
|
251
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
252
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
253
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
254
|
+
end
|
252
255
|
end
|
253
256
|
|
254
257
|
##
|
@@ -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
|
##
|
@@ -401,8 +407,11 @@ module Google
|
|
401
407
|
return result
|
402
408
|
end
|
403
409
|
rescue ::Faraday::Error => e
|
404
|
-
|
405
|
-
|
410
|
+
begin
|
411
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
412
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
413
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
414
|
+
end
|
406
415
|
end
|
407
416
|
|
408
417
|
##
|
@@ -466,8 +475,11 @@ module Google
|
|
466
475
|
return result
|
467
476
|
end
|
468
477
|
rescue ::Faraday::Error => e
|
469
|
-
|
470
|
-
|
478
|
+
begin
|
479
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
480
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
481
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
482
|
+
end
|
471
483
|
end
|
472
484
|
|
473
485
|
##
|
@@ -533,8 +545,11 @@ module Google
|
|
533
545
|
return result
|
534
546
|
end
|
535
547
|
rescue ::Faraday::Error => e
|
536
|
-
|
537
|
-
|
548
|
+
begin
|
549
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
550
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
551
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
552
|
+
end
|
538
553
|
end
|
539
554
|
|
540
555
|
##
|
@@ -609,8 +624,11 @@ module Google
|
|
609
624
|
return result
|
610
625
|
end
|
611
626
|
rescue ::Faraday::Error => e
|
612
|
-
|
613
|
-
|
627
|
+
begin
|
628
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
629
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
630
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
631
|
+
end
|
614
632
|
end
|
615
633
|
|
616
634
|
##
|
@@ -683,8 +701,11 @@ module Google
|
|
683
701
|
return result
|
684
702
|
end
|
685
703
|
rescue ::Faraday::Error => e
|
686
|
-
|
687
|
-
|
704
|
+
begin
|
705
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
706
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
707
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
708
|
+
end
|
688
709
|
end
|
689
710
|
|
690
711
|
##
|
@@ -755,8 +776,11 @@ module Google
|
|
755
776
|
return result
|
756
777
|
end
|
757
778
|
rescue ::Faraday::Error => e
|
758
|
-
|
759
|
-
|
779
|
+
begin
|
780
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
781
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
782
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
783
|
+
end
|
760
784
|
end
|
761
785
|
|
762
786
|
##
|
@@ -835,8 +859,11 @@ module Google
|
|
835
859
|
return result
|
836
860
|
end
|
837
861
|
rescue ::Faraday::Error => e
|
838
|
-
|
839
|
-
|
862
|
+
begin
|
863
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
864
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
865
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
866
|
+
end
|
840
867
|
end
|
841
868
|
|
842
869
|
##
|
@@ -902,8 +929,11 @@ module Google
|
|
902
929
|
return result
|
903
930
|
end
|
904
931
|
rescue ::Faraday::Error => e
|
905
|
-
|
906
|
-
|
932
|
+
begin
|
933
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
934
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
935
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
936
|
+
end
|
907
937
|
end
|
908
938
|
|
909
939
|
##
|
@@ -980,8 +1010,11 @@ module Google
|
|
980
1010
|
return result
|
981
1011
|
end
|
982
1012
|
rescue ::Faraday::Error => e
|
983
|
-
|
984
|
-
|
1013
|
+
begin
|
1014
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1015
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1016
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1017
|
+
end
|
985
1018
|
end
|
986
1019
|
|
987
1020
|
##
|
@@ -1047,8 +1080,11 @@ module Google
|
|
1047
1080
|
return result
|
1048
1081
|
end
|
1049
1082
|
rescue ::Faraday::Error => e
|
1050
|
-
|
1051
|
-
|
1083
|
+
begin
|
1084
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
1085
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
1086
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
1087
|
+
end
|
1052
1088
|
end
|
1053
1089
|
|
1054
1090
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -223,8 +223,11 @@ module Google
|
|
223
223
|
return result
|
224
224
|
end
|
225
225
|
rescue ::Faraday::Error => e
|
226
|
-
|
227
|
-
|
226
|
+
begin
|
227
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
228
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
229
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
230
|
+
end
|
228
231
|
end
|
229
232
|
|
230
233
|
##
|
@@ -286,8 +289,11 @@ module Google
|
|
286
289
|
return result
|
287
290
|
end
|
288
291
|
rescue ::Faraday::Error => e
|
289
|
-
|
290
|
-
|
292
|
+
begin
|
293
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
294
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
295
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
296
|
+
end
|
291
297
|
end
|
292
298
|
|
293
299
|
##
|
@@ -359,8 +365,11 @@ module Google
|
|
359
365
|
return result
|
360
366
|
end
|
361
367
|
rescue ::Faraday::Error => e
|
362
|
-
|
363
|
-
|
368
|
+
begin
|
369
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
370
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
371
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
372
|
+
end
|
364
373
|
end
|
365
374
|
|
366
375
|
##
|
@@ -431,8 +440,11 @@ module Google
|
|
431
440
|
return result
|
432
441
|
end
|
433
442
|
rescue ::Faraday::Error => e
|
434
|
-
|
435
|
-
|
443
|
+
begin
|
444
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
445
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
446
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
447
|
+
end
|
436
448
|
end
|
437
449
|
|
438
450
|
##
|
@@ -506,8 +518,11 @@ module Google
|
|
506
518
|
return result
|
507
519
|
end
|
508
520
|
rescue ::Faraday::Error => e
|
509
|
-
|
510
|
-
|
521
|
+
begin
|
522
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
523
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
524
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
525
|
+
end
|
511
526
|
end
|
512
527
|
|
513
528
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -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
|
##
|
@@ -304,8 +307,11 @@ module Google
|
|
304
307
|
return result
|
305
308
|
end
|
306
309
|
rescue ::Faraday::Error => e
|
307
|
-
|
308
|
-
|
310
|
+
begin
|
311
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
312
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
313
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
314
|
+
end
|
309
315
|
end
|
310
316
|
|
311
317
|
##
|
@@ -367,8 +373,11 @@ module Google
|
|
367
373
|
return result
|
368
374
|
end
|
369
375
|
rescue ::Faraday::Error => e
|
370
|
-
|
371
|
-
|
376
|
+
begin
|
377
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
378
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
379
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
380
|
+
end
|
372
381
|
end
|
373
382
|
|
374
383
|
##
|
@@ -440,8 +449,11 @@ module Google
|
|
440
449
|
return result
|
441
450
|
end
|
442
451
|
rescue ::Faraday::Error => e
|
443
|
-
|
444
|
-
|
452
|
+
begin
|
453
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
454
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
455
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
456
|
+
end
|
445
457
|
end
|
446
458
|
|
447
459
|
##
|
@@ -512,8 +524,11 @@ module Google
|
|
512
524
|
return result
|
513
525
|
end
|
514
526
|
rescue ::Faraday::Error => e
|
515
|
-
|
516
|
-
|
527
|
+
begin
|
528
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
529
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
530
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
531
|
+
end
|
517
532
|
end
|
518
533
|
|
519
534
|
##
|
@@ -587,8 +602,11 @@ module Google
|
|
587
602
|
return result
|
588
603
|
end
|
589
604
|
rescue ::Faraday::Error => e
|
590
|
-
|
591
|
-
|
605
|
+
begin
|
606
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
607
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
608
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
609
|
+
end
|
592
610
|
end
|
593
611
|
|
594
612
|
##
|
@@ -662,8 +680,11 @@ module Google
|
|
662
680
|
return result
|
663
681
|
end
|
664
682
|
rescue ::Faraday::Error => e
|
665
|
-
|
666
|
-
|
683
|
+
begin
|
684
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
685
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
686
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
687
|
+
end
|
667
688
|
end
|
668
689
|
|
669
690
|
##
|
@@ -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
|
##
|