google-cloud-compute-v1 1.6.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- 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 +115 -10
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +62 -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 +217 -24
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -1
- data/lib/google/cloud/compute/v1/compute_pb.rb +228 -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 +105 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +61 -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 +120 -12
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +62 -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 +115 -12
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +61 -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 +196 -14
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +122 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +25 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +777 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
- 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/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +599 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
- 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 +140 -22
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +61 -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 +119 -12
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +59 -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 +115 -10
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +62 -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 +115 -10
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +62 -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/lib/google/cloud/compute/v1.rb +2 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +637 -26
- metadata +14 -4
@@ -196,8 +196,11 @@ module Google
|
|
196
196
|
return result
|
197
197
|
end
|
198
198
|
rescue ::Faraday::Error => e
|
199
|
-
|
200
|
-
|
199
|
+
begin
|
200
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
201
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
202
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
203
|
+
end
|
201
204
|
end
|
202
205
|
|
203
206
|
##
|
@@ -259,8 +262,11 @@ module Google
|
|
259
262
|
return result
|
260
263
|
end
|
261
264
|
rescue ::Faraday::Error => e
|
262
|
-
|
263
|
-
|
265
|
+
begin
|
266
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
267
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
268
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
269
|
+
end
|
264
270
|
end
|
265
271
|
|
266
272
|
##
|
@@ -331,8 +337,11 @@ module Google
|
|
331
337
|
return result
|
332
338
|
end
|
333
339
|
rescue ::Faraday::Error => e
|
334
|
-
|
335
|
-
|
340
|
+
begin
|
341
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
342
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
343
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
344
|
+
end
|
336
345
|
end
|
337
346
|
|
338
347
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
##
|
@@ -241,8 +241,11 @@ module Google
|
|
241
241
|
return result
|
242
242
|
end
|
243
243
|
rescue ::Faraday::Error => e
|
244
|
-
|
245
|
-
|
244
|
+
begin
|
245
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
246
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
247
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
248
|
+
end
|
246
249
|
end
|
247
250
|
|
248
251
|
##
|
@@ -316,8 +319,11 @@ module Google
|
|
316
319
|
return result
|
317
320
|
end
|
318
321
|
rescue ::Faraday::Error => e
|
319
|
-
|
320
|
-
|
322
|
+
begin
|
323
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
324
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
325
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
326
|
+
end
|
321
327
|
end
|
322
328
|
|
323
329
|
##
|
@@ -379,8 +385,11 @@ module Google
|
|
379
385
|
return result
|
380
386
|
end
|
381
387
|
rescue ::Faraday::Error => e
|
382
|
-
|
383
|
-
|
388
|
+
begin
|
389
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
390
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
391
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
392
|
+
end
|
384
393
|
end
|
385
394
|
|
386
395
|
##
|
@@ -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
|
##
|
@@ -507,8 +519,11 @@ module Google
|
|
507
519
|
return result
|
508
520
|
end
|
509
521
|
rescue ::Faraday::Error => e
|
510
|
-
|
511
|
-
|
522
|
+
begin
|
523
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
524
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
525
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
526
|
+
end
|
512
527
|
end
|
513
528
|
|
514
529
|
##
|
@@ -582,8 +597,11 @@ module Google
|
|
582
597
|
return result
|
583
598
|
end
|
584
599
|
rescue ::Faraday::Error => e
|
585
|
-
|
586
|
-
|
600
|
+
begin
|
601
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
602
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
603
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
604
|
+
end
|
587
605
|
end
|
588
606
|
|
589
607
|
##
|
@@ -654,8 +672,11 @@ module Google
|
|
654
672
|
return result
|
655
673
|
end
|
656
674
|
rescue ::Faraday::Error => e
|
657
|
-
|
658
|
-
|
675
|
+
begin
|
676
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
677
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
678
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
679
|
+
end
|
659
680
|
end
|
660
681
|
|
661
682
|
##
|
@@ -729,8 +750,11 @@ module Google
|
|
729
750
|
return result
|
730
751
|
end
|
731
752
|
rescue ::Faraday::Error => e
|
732
|
-
|
733
|
-
|
753
|
+
begin
|
754
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
755
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
756
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
757
|
+
end
|
734
758
|
end
|
735
759
|
|
736
760
|
##
|
@@ -794,8 +818,11 @@ module Google
|
|
794
818
|
return result
|
795
819
|
end
|
796
820
|
rescue ::Faraday::Error => e
|
797
|
-
|
798
|
-
|
821
|
+
begin
|
822
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
823
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
824
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
825
|
+
end
|
799
826
|
end
|
800
827
|
|
801
828
|
##
|
@@ -867,8 +894,11 @@ module Google
|
|
867
894
|
return result
|
868
895
|
end
|
869
896
|
rescue ::Faraday::Error => e
|
870
|
-
|
871
|
-
|
897
|
+
begin
|
898
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
899
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
900
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
901
|
+
end
|
872
902
|
end
|
873
903
|
|
874
904
|
##
|
@@ -932,8 +962,11 @@ module Google
|
|
932
962
|
return result
|
933
963
|
end
|
934
964
|
rescue ::Faraday::Error => e
|
935
|
-
|
936
|
-
|
965
|
+
begin
|
966
|
+
raise ::Gapic::Rest::Error.wrap_faraday_error e
|
967
|
+
rescue ::Gapic::Rest::Error => gapic_error
|
968
|
+
raise ::Google::Cloud::Error.from_error gapic_error
|
969
|
+
end
|
937
970
|
end
|
938
971
|
|
939
972
|
##
|
@@ -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
|
##
|