google-cloud-compute-v1 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -231,8 +231,11 @@ module Google
|
|
231
231
|
return result
|
232
232
|
end
|
233
233
|
rescue ::Faraday::Error => e
|
234
|
-
|
235
|
-
|
234
|
+
begin
|
235
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
236
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
237
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
238
|
+
end
|
236
239
|
end
|
237
240
|
|
238
241
|
##
|
@@ -307,8 +310,11 @@ module Google
|
|
307
310
|
return result
|
308
311
|
end
|
309
312
|
rescue ::Faraday::Error => e
|
310
|
-
|
311
|
-
|
313
|
+
begin
|
314
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
315
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
316
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
317
|
+
end
|
312
318
|
end
|
313
319
|
|
314
320
|
##
|
@@ -372,8 +378,11 @@ module Google
|
|
372
378
|
return result
|
373
379
|
end
|
374
380
|
rescue ::Faraday::Error => e
|
375
|
-
|
376
|
-
|
381
|
+
begin
|
382
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
383
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
384
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
385
|
+
end
|
377
386
|
end
|
378
387
|
|
379
388
|
##
|
@@ -450,8 +459,11 @@ module Google
|
|
450
459
|
return result
|
451
460
|
end
|
452
461
|
rescue ::Faraday::Error => e
|
453
|
-
|
454
|
-
|
462
|
+
begin
|
463
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
464
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
465
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
466
|
+
end
|
455
467
|
end
|
456
468
|
|
457
469
|
##
|
@@ -524,8 +536,11 @@ module Google
|
|
524
536
|
return result
|
525
537
|
end
|
526
538
|
rescue ::Faraday::Error => e
|
527
|
-
|
528
|
-
|
539
|
+
begin
|
540
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
541
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
542
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
543
|
+
end
|
529
544
|
end
|
530
545
|
|
531
546
|
##
|
@@ -602,8 +617,11 @@ module Google
|
|
602
617
|
return result
|
603
618
|
end
|
604
619
|
rescue ::Faraday::Error => e
|
605
|
-
|
606
|
-
|
620
|
+
begin
|
621
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
622
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
623
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
624
|
+
end
|
607
625
|
end
|
608
626
|
|
609
627
|
##
|
@@ -680,8 +698,11 @@ module Google
|
|
680
698
|
return result
|
681
699
|
end
|
682
700
|
rescue ::Faraday::Error => e
|
683
|
-
|
684
|
-
|
701
|
+
begin
|
702
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
703
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
704
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
705
|
+
end
|
685
706
|
end
|
686
707
|
|
687
708
|
##
|
@@ -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
|
##
|
@@ -230,8 +230,11 @@ module Google
|
|
230
230
|
return result
|
231
231
|
end
|
232
232
|
rescue ::Faraday::Error => e
|
233
|
-
|
234
|
-
|
233
|
+
begin
|
234
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
235
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
236
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
237
|
+
end
|
235
238
|
end
|
236
239
|
|
237
240
|
##
|
@@ -293,8 +296,11 @@ module Google
|
|
293
296
|
return result
|
294
297
|
end
|
295
298
|
rescue ::Faraday::Error => e
|
296
|
-
|
297
|
-
|
299
|
+
begin
|
300
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
301
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
302
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
303
|
+
end
|
298
304
|
end
|
299
305
|
|
300
306
|
##
|
@@ -356,8 +362,11 @@ module Google
|
|
356
362
|
return result
|
357
363
|
end
|
358
364
|
rescue ::Faraday::Error => e
|
359
|
-
|
360
|
-
|
365
|
+
begin
|
366
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
367
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
368
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
369
|
+
end
|
361
370
|
end
|
362
371
|
|
363
372
|
##
|
@@ -429,8 +438,11 @@ module Google
|
|
429
438
|
return result
|
430
439
|
end
|
431
440
|
rescue ::Faraday::Error => e
|
432
|
-
|
433
|
-
|
441
|
+
begin
|
442
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
443
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
444
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
445
|
+
end
|
434
446
|
end
|
435
447
|
|
436
448
|
##
|
@@ -501,8 +513,11 @@ module Google
|
|
501
513
|
return result
|
502
514
|
end
|
503
515
|
rescue ::Faraday::Error => e
|
504
|
-
|
505
|
-
|
516
|
+
begin
|
517
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
518
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
519
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
520
|
+
end
|
506
521
|
end
|
507
522
|
|
508
523
|
##
|
@@ -576,8 +591,11 @@ module Google
|
|
576
591
|
return result
|
577
592
|
end
|
578
593
|
rescue ::Faraday::Error => e
|
579
|
-
|
580
|
-
|
594
|
+
begin
|
595
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
596
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
597
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
598
|
+
end
|
581
599
|
end
|
582
600
|
|
583
601
|
##
|
@@ -649,8 +667,11 @@ module Google
|
|
649
667
|
return result
|
650
668
|
end
|
651
669
|
rescue ::Faraday::Error => e
|
652
|
-
|
653
|
-
|
670
|
+
begin
|
671
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
672
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
673
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
674
|
+
end
|
654
675
|
end
|
655
676
|
|
656
677
|
##
|
@@ -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
|
##
|
@@ -191,8 +191,11 @@ module Google
|
|
191
191
|
return result
|
192
192
|
end
|
193
193
|
rescue ::Faraday::Error => e
|
194
|
-
|
195
|
-
|
194
|
+
begin
|
195
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
196
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
197
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
198
|
+
end
|
196
199
|
end
|
197
200
|
|
198
201
|
##
|
@@ -256,8 +259,11 @@ module Google
|
|
256
259
|
return result
|
257
260
|
end
|
258
261
|
rescue ::Faraday::Error => e
|
259
|
-
|
260
|
-
|
262
|
+
begin
|
263
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
264
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
265
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
266
|
+
end
|
261
267
|
end
|
262
268
|
|
263
269
|
##
|
@@ -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
|
##
|
@@ -230,8 +230,11 @@ module Google
|
|
230
230
|
return result
|
231
231
|
end
|
232
232
|
rescue ::Faraday::Error => e
|
233
|
-
|
234
|
-
|
233
|
+
begin
|
234
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
235
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
236
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
237
|
+
end
|
235
238
|
end
|
236
239
|
|
237
240
|
##
|
@@ -293,8 +296,11 @@ module Google
|
|
293
296
|
return result
|
294
297
|
end
|
295
298
|
rescue ::Faraday::Error => e
|
296
|
-
|
297
|
-
|
299
|
+
begin
|
300
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
301
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
302
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
303
|
+
end
|
298
304
|
end
|
299
305
|
|
300
306
|
##
|
@@ -358,8 +364,11 @@ module Google
|
|
358
364
|
return result
|
359
365
|
end
|
360
366
|
rescue ::Faraday::Error => e
|
361
|
-
|
362
|
-
|
367
|
+
begin
|
368
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
369
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
370
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
371
|
+
end
|
363
372
|
end
|
364
373
|
|
365
374
|
##
|
@@ -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
|
##
|
@@ -503,8 +515,11 @@ module Google
|
|
503
515
|
return result
|
504
516
|
end
|
505
517
|
rescue ::Faraday::Error => e
|
506
|
-
|
507
|
-
|
518
|
+
begin
|
519
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
520
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
521
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
522
|
+
end
|
508
523
|
end
|
509
524
|
|
510
525
|
##
|
@@ -568,8 +583,11 @@ module Google
|
|
568
583
|
return result
|
569
584
|
end
|
570
585
|
rescue ::Faraday::Error => e
|
571
|
-
|
572
|
-
|
586
|
+
begin
|
587
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
588
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
589
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
590
|
+
end
|
573
591
|
end
|
574
592
|
|
575
593
|
##
|
@@ -633,8 +651,11 @@ module Google
|
|
633
651
|
return result
|
634
652
|
end
|
635
653
|
rescue ::Faraday::Error => e
|
636
|
-
|
637
|
-
|
654
|
+
begin
|
655
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
656
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
657
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
658
|
+
end
|
638
659
|
end
|
639
660
|
|
640
661
|
##
|
@@ -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
|
##
|
@@ -230,8 +230,11 @@ module Google
|
|
230
230
|
return result
|
231
231
|
end
|
232
232
|
rescue ::Faraday::Error => e
|
233
|
-
|
234
|
-
|
233
|
+
begin
|
234
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
235
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
236
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
237
|
+
end
|
235
238
|
end
|
236
239
|
|
237
240
|
##
|
@@ -293,8 +296,11 @@ module Google
|
|
293
296
|
return result
|
294
297
|
end
|
295
298
|
rescue ::Faraday::Error => e
|
296
|
-
|
297
|
-
|
299
|
+
begin
|
300
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
301
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
302
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
303
|
+
end
|
298
304
|
end
|
299
305
|
|
300
306
|
##
|
@@ -358,8 +364,11 @@ module Google
|
|
358
364
|
return result
|
359
365
|
end
|
360
366
|
rescue ::Faraday::Error => e
|
361
|
-
|
362
|
-
|
367
|
+
begin
|
368
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
369
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
370
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
371
|
+
end
|
363
372
|
end
|
364
373
|
|
365
374
|
##
|
@@ -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
|
##
|
@@ -635,8 +653,11 @@ module Google
|
|
635
653
|
return result
|
636
654
|
end
|
637
655
|
rescue ::Faraday::Error => e
|
638
|
-
|
639
|
-
|
656
|
+
begin
|
657
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
658
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
659
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
660
|
+
end
|
640
661
|
end
|
641
662
|
|
642
663
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -210,8 +210,11 @@ module Google
|
|
210
210
|
return result
|
211
211
|
end
|
212
212
|
rescue ::Faraday::Error => e
|
213
|
-
|
214
|
-
|
213
|
+
begin
|
214
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
215
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
216
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
217
|
+
end
|
215
218
|
end
|
216
219
|
|
217
220
|
##
|
@@ -275,8 +278,11 @@ module Google
|
|
275
278
|
return result
|
276
279
|
end
|
277
280
|
rescue ::Faraday::Error => e
|
278
|
-
|
279
|
-
|
281
|
+
begin
|
282
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
283
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
284
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
285
|
+
end
|
280
286
|
end
|
281
287
|
|
282
288
|
##
|
@@ -349,8 +355,11 @@ module Google
|
|
349
355
|
return result
|
350
356
|
end
|
351
357
|
rescue ::Faraday::Error => e
|
352
|
-
|
353
|
-
|
358
|
+
begin
|
359
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
360
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
361
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
362
|
+
end
|
354
363
|
end
|
355
364
|
|
356
365
|
##
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -524,8 +536,11 @@ module Google
|
|
524
536
|
return result
|
525
537
|
end
|
526
538
|
rescue ::Faraday::Error => e
|
527
|
-
|
528
|
-
|
539
|
+
begin
|
540
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
541
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
542
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
543
|
+
end
|
529
544
|
end
|
530
545
|
|
531
546
|
##
|
@@ -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
|
##
|