google-cloud-compute-v1 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +15 -6
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +30 -12
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -1
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +35 -14
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +45 -18
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +70 -28
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
  12. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
  15. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  16. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  18. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  20. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
  21. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  22. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  24. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +25 -10
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
  26. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -14
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  28. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +35 -14
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  30. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +25 -10
  31. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  32. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +15 -6
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  34. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +25 -10
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  36. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +35 -14
  37. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  38. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -2
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  40. data/lib/google/cloud/compute/v1/images/rest/client.rb +55 -22
  41. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  42. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +100 -40
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  44. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +45 -18
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  46. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +35 -14
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  48. data/lib/google/cloud/compute/v1/instances/rest/client.rb +225 -90
  49. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  50. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +35 -14
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
  52. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -4
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  54. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +35 -14
  55. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -1
  56. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -4
  57. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  58. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -14
  59. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  60. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -14
  61. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  62. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -6
  63. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  64. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +25 -10
  65. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  66. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +45 -18
  67. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  68. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +80 -32
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  70. data/lib/google/cloud/compute/v1/networks/rest/client.rb +55 -22
  71. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  72. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +65 -26
  73. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  74. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +40 -16
  75. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  76. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -6
  77. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  78. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +35 -14
  79. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  80. data/lib/google/cloud/compute/v1/projects/rest/client.rb +65 -26
  81. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  82. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +25 -10
  83. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  84. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +30 -12
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  86. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +30 -12
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  88. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +45 -18
  89. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
  90. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
  91. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  92. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
  93. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  94. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
  95. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  96. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
  97. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  98. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
  99. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  100. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
  101. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  102. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
  103. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  104. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
  105. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  106. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
  107. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  108. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
  109. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
  110. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
  111. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  112. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
  113. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  114. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +25 -10
  115. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  116. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
  117. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  118. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +30 -12
  119. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
  120. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +25 -10
  121. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  122. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -14
  123. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  124. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +20 -8
  125. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
  126. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -14
  127. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  128. data/lib/google/cloud/compute/v1/regions/rest/client.rb +10 -4
  129. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  130. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +50 -20
  131. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  132. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +40 -16
  133. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  134. data/lib/google/cloud/compute/v1/routers/rest/client.rb +50 -20
  135. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  136. data/lib/google/cloud/compute/v1/routes/rest/client.rb +20 -8
  137. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  138. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +60 -24
  139. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
  140. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +45 -18
  141. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  142. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +40 -16
  143. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  144. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +25 -10
  145. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  146. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +35 -14
  147. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
  148. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +60 -24
  149. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  150. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +25 -10
  151. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  152. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +35 -14
  153. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  154. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +55 -22
  155. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  156. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +25 -10
  157. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  158. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +55 -22
  159. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  160. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +45 -18
  161. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  162. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +30 -12
  163. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  164. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +30 -12
  165. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
  166. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +45 -18
  167. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  168. data/lib/google/cloud/compute/v1/version.rb +1 -1
  169. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +40 -16
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  171. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +30 -12
  172. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
  173. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +20 -8
  174. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  175. data/lib/google/cloud/compute/v1/zones/rest/client.rb +10 -4
  176. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  177. metadata +4 -4
@@ -235,8 +235,11 @@ module Google
235
235
  return result
236
236
  end
237
237
  rescue ::Faraday::Error => e
238
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
239
- raise ::Google::Cloud::Error.from_error(gapic_error)
238
+ begin
239
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
240
+ rescue ::Gapic::Rest::Error => gapic_error
241
+ raise ::Google::Cloud::Error.from_error gapic_error
242
+ end
240
243
  end
241
244
 
242
245
  ##
@@ -313,8 +316,11 @@ module Google
313
316
  return result
314
317
  end
315
318
  rescue ::Faraday::Error => e
316
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
317
- raise ::Google::Cloud::Error.from_error(gapic_error)
319
+ begin
320
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
321
+ rescue ::Gapic::Rest::Error => gapic_error
322
+ raise ::Google::Cloud::Error.from_error gapic_error
323
+ end
318
324
  end
319
325
 
320
326
  ##
@@ -389,8 +395,11 @@ module Google
389
395
  return result
390
396
  end
391
397
  rescue ::Faraday::Error => e
392
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
393
- raise ::Google::Cloud::Error.from_error(gapic_error)
398
+ begin
399
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
400
+ rescue ::Gapic::Rest::Error => gapic_error
401
+ raise ::Google::Cloud::Error.from_error gapic_error
402
+ end
394
403
  end
395
404
 
396
405
  ##
@@ -467,8 +476,11 @@ module Google
467
476
  return result
468
477
  end
469
478
  rescue ::Faraday::Error => e
470
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
471
- raise ::Google::Cloud::Error.from_error(gapic_error)
479
+ begin
480
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
481
+ rescue ::Gapic::Rest::Error => gapic_error
482
+ raise ::Google::Cloud::Error.from_error gapic_error
483
+ end
472
484
  end
473
485
 
474
486
  ##
@@ -532,8 +544,11 @@ module Google
532
544
  return result
533
545
  end
534
546
  rescue ::Faraday::Error => e
535
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
536
- raise ::Google::Cloud::Error.from_error(gapic_error)
547
+ begin
548
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
549
+ rescue ::Gapic::Rest::Error => gapic_error
550
+ raise ::Google::Cloud::Error.from_error gapic_error
551
+ end
537
552
  end
538
553
 
539
554
  ##
@@ -608,8 +623,11 @@ module Google
608
623
  return result
609
624
  end
610
625
  rescue ::Faraday::Error => e
611
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
612
- raise ::Google::Cloud::Error.from_error(gapic_error)
626
+ begin
627
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
628
+ rescue ::Gapic::Rest::Error => gapic_error
629
+ raise ::Google::Cloud::Error.from_error gapic_error
630
+ end
613
631
  end
614
632
 
615
633
  ##
@@ -682,8 +700,11 @@ module Google
682
700
  return result
683
701
  end
684
702
  rescue ::Faraday::Error => e
685
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
686
- raise ::Google::Cloud::Error.from_error(gapic_error)
703
+ begin
704
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
705
+ rescue ::Gapic::Rest::Error => gapic_error
706
+ raise ::Google::Cloud::Error.from_error gapic_error
707
+ end
687
708
  end
688
709
 
689
710
  ##
@@ -760,8 +781,11 @@ module Google
760
781
  return result
761
782
  end
762
783
  rescue ::Faraday::Error => e
763
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
764
- raise ::Google::Cloud::Error.from_error(gapic_error)
784
+ begin
785
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
786
+ rescue ::Gapic::Rest::Error => gapic_error
787
+ raise ::Google::Cloud::Error.from_error gapic_error
788
+ end
765
789
  end
766
790
 
767
791
  ##
@@ -827,8 +851,11 @@ module Google
827
851
  return result
828
852
  end
829
853
  rescue ::Faraday::Error => e
830
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
831
- raise ::Google::Cloud::Error.from_error(gapic_error)
854
+ begin
855
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
856
+ rescue ::Gapic::Rest::Error => gapic_error
857
+ raise ::Google::Cloud::Error.from_error gapic_error
858
+ end
832
859
  end
833
860
 
834
861
  ##
@@ -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
  ##
@@ -258,8 +258,11 @@ module Google
258
258
  return result
259
259
  end
260
260
  rescue ::Faraday::Error => e
261
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
262
- raise ::Google::Cloud::Error.from_error(gapic_error)
261
+ begin
262
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
263
+ rescue ::Gapic::Rest::Error => gapic_error
264
+ raise ::Google::Cloud::Error.from_error gapic_error
265
+ end
263
266
  end
264
267
 
265
268
  ##
@@ -337,8 +340,11 @@ module Google
337
340
  return result
338
341
  end
339
342
  rescue ::Faraday::Error => e
340
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
341
- raise ::Google::Cloud::Error.from_error(gapic_error)
343
+ begin
344
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
345
+ rescue ::Gapic::Rest::Error => gapic_error
346
+ raise ::Google::Cloud::Error.from_error gapic_error
347
+ end
342
348
  end
343
349
 
344
350
  ##
@@ -412,8 +418,11 @@ module Google
412
418
  return result
413
419
  end
414
420
  rescue ::Faraday::Error => e
415
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
416
- raise ::Google::Cloud::Error.from_error(gapic_error)
421
+ begin
422
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
423
+ rescue ::Gapic::Rest::Error => gapic_error
424
+ raise ::Google::Cloud::Error.from_error gapic_error
425
+ end
417
426
  end
418
427
 
419
428
  ##
@@ -485,8 +494,11 @@ module Google
485
494
  return result
486
495
  end
487
496
  rescue ::Faraday::Error => e
488
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
489
- raise ::Google::Cloud::Error.from_error(gapic_error)
497
+ begin
498
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
499
+ rescue ::Gapic::Rest::Error => gapic_error
500
+ raise ::Google::Cloud::Error.from_error gapic_error
501
+ end
490
502
  end
491
503
 
492
504
  ##
@@ -548,8 +560,11 @@ module Google
548
560
  return result
549
561
  end
550
562
  rescue ::Faraday::Error => e
551
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
552
- raise ::Google::Cloud::Error.from_error(gapic_error)
563
+ begin
564
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
565
+ rescue ::Gapic::Rest::Error => gapic_error
566
+ raise ::Google::Cloud::Error.from_error gapic_error
567
+ end
553
568
  end
554
569
 
555
570
  ##
@@ -613,8 +628,11 @@ module Google
613
628
  return result
614
629
  end
615
630
  rescue ::Faraday::Error => e
616
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
617
- raise ::Google::Cloud::Error.from_error(gapic_error)
631
+ begin
632
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
633
+ rescue ::Gapic::Rest::Error => gapic_error
634
+ raise ::Google::Cloud::Error.from_error gapic_error
635
+ end
618
636
  end
619
637
 
620
638
  ##
@@ -678,8 +696,11 @@ module Google
678
696
  return result
679
697
  end
680
698
  rescue ::Faraday::Error => e
681
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
682
- raise ::Google::Cloud::Error.from_error(gapic_error)
699
+ begin
700
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
701
+ rescue ::Gapic::Rest::Error => gapic_error
702
+ raise ::Google::Cloud::Error.from_error gapic_error
703
+ end
683
704
  end
684
705
 
685
706
  ##
@@ -743,8 +764,11 @@ module Google
743
764
  return result
744
765
  end
745
766
  rescue ::Faraday::Error => e
746
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
747
- raise ::Google::Cloud::Error.from_error(gapic_error)
767
+ begin
768
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
769
+ rescue ::Gapic::Rest::Error => gapic_error
770
+ raise ::Google::Cloud::Error.from_error gapic_error
771
+ end
748
772
  end
749
773
 
750
774
  ##
@@ -816,8 +840,11 @@ module Google
816
840
  return result
817
841
  end
818
842
  rescue ::Faraday::Error => e
819
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
820
- raise ::Google::Cloud::Error.from_error(gapic_error)
843
+ begin
844
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
845
+ rescue ::Gapic::Rest::Error => gapic_error
846
+ raise ::Google::Cloud::Error.from_error gapic_error
847
+ end
821
848
  end
822
849
 
823
850
  ##
@@ -888,8 +915,11 @@ module Google
888
915
  return result
889
916
  end
890
917
  rescue ::Faraday::Error => e
891
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
892
- raise ::Google::Cloud::Error.from_error(gapic_error)
918
+ begin
919
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
920
+ rescue ::Gapic::Rest::Error => gapic_error
921
+ raise ::Google::Cloud::Error.from_error gapic_error
922
+ end
893
923
  end
894
924
 
895
925
  ##
@@ -963,8 +993,11 @@ module Google
963
993
  return result
964
994
  end
965
995
  rescue ::Faraday::Error => e
966
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
967
- raise ::Google::Cloud::Error.from_error(gapic_error)
996
+ begin
997
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
998
+ rescue ::Gapic::Rest::Error => gapic_error
999
+ raise ::Google::Cloud::Error.from_error gapic_error
1000
+ end
968
1001
  end
969
1002
 
970
1003
  ##
@@ -1040,8 +1073,11 @@ module Google
1040
1073
  return result
1041
1074
  end
1042
1075
  rescue ::Faraday::Error => e
1043
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1044
- raise ::Google::Cloud::Error.from_error(gapic_error)
1076
+ begin
1077
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1078
+ rescue ::Gapic::Rest::Error => gapic_error
1079
+ raise ::Google::Cloud::Error.from_error gapic_error
1080
+ end
1045
1081
  end
1046
1082
 
1047
1083
  ##
@@ -1115,8 +1151,11 @@ module Google
1115
1151
  return result
1116
1152
  end
1117
1153
  rescue ::Faraday::Error => e
1118
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1119
- raise ::Google::Cloud::Error.from_error(gapic_error)
1154
+ begin
1155
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1156
+ rescue ::Gapic::Rest::Error => gapic_error
1157
+ raise ::Google::Cloud::Error.from_error gapic_error
1158
+ end
1120
1159
  end
1121
1160
 
1122
1161
  ##
@@ -1190,8 +1229,11 @@ module Google
1190
1229
  return result
1191
1230
  end
1192
1231
  rescue ::Faraday::Error => e
1193
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1194
- raise ::Google::Cloud::Error.from_error(gapic_error)
1232
+ begin
1233
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1234
+ rescue ::Gapic::Rest::Error => gapic_error
1235
+ raise ::Google::Cloud::Error.from_error gapic_error
1236
+ end
1195
1237
  end
1196
1238
 
1197
1239
  ##
@@ -1255,8 +1297,11 @@ module Google
1255
1297
  return result
1256
1298
  end
1257
1299
  rescue ::Faraday::Error => e
1258
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1259
- raise ::Google::Cloud::Error.from_error(gapic_error)
1300
+ begin
1301
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1302
+ rescue ::Gapic::Rest::Error => gapic_error
1303
+ raise ::Google::Cloud::Error.from_error gapic_error
1304
+ end
1260
1305
  end
1261
1306
 
1262
1307
  ##
@@ -1320,8 +1365,11 @@ module Google
1320
1365
  return result
1321
1366
  end
1322
1367
  rescue ::Faraday::Error => e
1323
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1324
- raise ::Google::Cloud::Error.from_error(gapic_error)
1368
+ begin
1369
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1370
+ rescue ::Gapic::Rest::Error => gapic_error
1371
+ raise ::Google::Cloud::Error.from_error gapic_error
1372
+ end
1325
1373
  end
1326
1374
 
1327
1375
  ##
@@ -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
  ##
@@ -243,8 +243,11 @@ module Google
243
243
  return result
244
244
  end
245
245
  rescue ::Faraday::Error => e
246
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
247
- raise ::Google::Cloud::Error.from_error(gapic_error)
246
+ begin
247
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
248
+ rescue ::Gapic::Rest::Error => gapic_error
249
+ raise ::Google::Cloud::Error.from_error gapic_error
250
+ end
248
251
  end
249
252
 
250
253
  ##
@@ -316,8 +319,11 @@ module Google
316
319
  return result
317
320
  end
318
321
  rescue ::Faraday::Error => e
319
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
320
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
383
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
446
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -515,8 +527,11 @@ module Google
515
527
  return result
516
528
  end
517
529
  rescue ::Faraday::Error => e
518
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
519
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -587,8 +602,11 @@ module Google
587
602
  return result
588
603
  end
589
604
  rescue ::Faraday::Error => e
590
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
591
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -668,8 +686,11 @@ module Google
668
686
  return result
669
687
  end
670
688
  rescue ::Faraday::Error => e
671
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
672
- raise ::Google::Cloud::Error.from_error(gapic_error)
689
+ begin
690
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
691
+ rescue ::Gapic::Rest::Error => gapic_error
692
+ raise ::Google::Cloud::Error.from_error gapic_error
693
+ end
673
694
  end
674
695
 
675
696
  ##
@@ -743,8 +764,11 @@ module Google
743
764
  return result
744
765
  end
745
766
  rescue ::Faraday::Error => e
746
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
747
- raise ::Google::Cloud::Error.from_error(gapic_error)
767
+ begin
768
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
769
+ rescue ::Gapic::Rest::Error => gapic_error
770
+ raise ::Google::Cloud::Error.from_error gapic_error
771
+ end
748
772
  end
749
773
 
750
774
  ##
@@ -818,8 +842,11 @@ module Google
818
842
  return result
819
843
  end
820
844
  rescue ::Faraday::Error => e
821
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
822
- raise ::Google::Cloud::Error.from_error(gapic_error)
845
+ begin
846
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
847
+ rescue ::Gapic::Rest::Error => gapic_error
848
+ raise ::Google::Cloud::Error.from_error gapic_error
849
+ end
823
850
  end
824
851
 
825
852
  ##
@@ -891,8 +918,11 @@ module Google
891
918
  return result
892
919
  end
893
920
  rescue ::Faraday::Error => e
894
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
895
- raise ::Google::Cloud::Error.from_error(gapic_error)
921
+ begin
922
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
923
+ rescue ::Gapic::Rest::Error => gapic_error
924
+ raise ::Google::Cloud::Error.from_error gapic_error
925
+ end
896
926
  end
897
927
 
898
928
  ##
@@ -966,8 +996,11 @@ module Google
966
996
  return result
967
997
  end
968
998
  rescue ::Faraday::Error => e
969
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
970
- raise ::Google::Cloud::Error.from_error(gapic_error)
999
+ begin
1000
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1001
+ rescue ::Gapic::Rest::Error => gapic_error
1002
+ raise ::Google::Cloud::Error.from_error gapic_error
1003
+ end
971
1004
  end
972
1005
 
973
1006
  ##
@@ -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
  ##