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
@@ -233,8 +233,11 @@ module Google
233
233
  return result
234
234
  end
235
235
  rescue ::Faraday::Error => e
236
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
237
- raise ::Google::Cloud::Error.from_error(gapic_error)
236
+ begin
237
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
238
+ rescue ::Gapic::Rest::Error => gapic_error
239
+ raise ::Google::Cloud::Error.from_error gapic_error
240
+ end
238
241
  end
239
242
 
240
243
  ##
@@ -309,8 +312,11 @@ module Google
309
312
  return result
310
313
  end
311
314
  rescue ::Faraday::Error => e
312
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
313
- raise ::Google::Cloud::Error.from_error(gapic_error)
315
+ begin
316
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
317
+ rescue ::Gapic::Rest::Error => gapic_error
318
+ raise ::Google::Cloud::Error.from_error gapic_error
319
+ end
314
320
  end
315
321
 
316
322
  ##
@@ -374,8 +380,11 @@ module Google
374
380
  return result
375
381
  end
376
382
  rescue ::Faraday::Error => e
377
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
378
- raise ::Google::Cloud::Error.from_error(gapic_error)
383
+ begin
384
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
385
+ rescue ::Gapic::Rest::Error => gapic_error
386
+ raise ::Google::Cloud::Error.from_error gapic_error
387
+ end
379
388
  end
380
389
 
381
390
  ##
@@ -450,8 +459,11 @@ module Google
450
459
  return result
451
460
  end
452
461
  rescue ::Faraday::Error => e
453
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
454
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
528
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
606
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
684
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -758,8 +779,11 @@ module Google
758
779
  return result
759
780
  end
760
781
  rescue ::Faraday::Error => e
761
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
762
- raise ::Google::Cloud::Error.from_error(gapic_error)
782
+ begin
783
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
784
+ rescue ::Gapic::Rest::Error => gapic_error
785
+ raise ::Google::Cloud::Error.from_error gapic_error
786
+ end
763
787
  end
764
788
 
765
789
  ##
@@ -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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
227
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
290
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
363
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
435
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -504,8 +516,11 @@ module Google
504
516
  return result
505
517
  end
506
518
  rescue ::Faraday::Error => e
507
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
508
- raise ::Google::Cloud::Error.from_error(gapic_error)
519
+ begin
520
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
521
+ rescue ::Gapic::Rest::Error => gapic_error
522
+ raise ::Google::Cloud::Error.from_error gapic_error
523
+ end
509
524
  end
510
525
 
511
526
  ##
@@ -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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
231
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -290,8 +293,11 @@ module Google
290
293
  return result
291
294
  end
292
295
  rescue ::Faraday::Error => e
293
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
294
- raise ::Google::Cloud::Error.from_error(gapic_error)
296
+ begin
297
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
298
+ rescue ::Gapic::Rest::Error => gapic_error
299
+ raise ::Google::Cloud::Error.from_error gapic_error
300
+ end
295
301
  end
296
302
 
297
303
  ##
@@ -363,8 +369,11 @@ module Google
363
369
  return result
364
370
  end
365
371
  rescue ::Faraday::Error => e
366
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
367
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -435,8 +444,11 @@ module Google
435
444
  return result
436
445
  end
437
446
  rescue ::Faraday::Error => e
438
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
439
- raise ::Google::Cloud::Error.from_error(gapic_error)
447
+ begin
448
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
449
+ rescue ::Gapic::Rest::Error => gapic_error
450
+ raise ::Google::Cloud::Error.from_error gapic_error
451
+ end
440
452
  end
441
453
 
442
454
  ##
@@ -510,8 +522,11 @@ module Google
510
522
  return result
511
523
  end
512
524
  rescue ::Faraday::Error => e
513
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
514
- raise ::Google::Cloud::Error.from_error(gapic_error)
525
+ begin
526
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
527
+ rescue ::Gapic::Rest::Error => gapic_error
528
+ raise ::Google::Cloud::Error.from_error gapic_error
529
+ end
515
530
  end
516
531
 
517
532
  ##
@@ -583,8 +598,11 @@ module Google
583
598
  return result
584
599
  end
585
600
  rescue ::Faraday::Error => e
586
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
587
- raise ::Google::Cloud::Error.from_error(gapic_error)
601
+ begin
602
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
603
+ rescue ::Gapic::Rest::Error => gapic_error
604
+ raise ::Google::Cloud::Error.from_error gapic_error
605
+ end
588
606
  end
589
607
 
590
608
  ##
@@ -658,8 +676,11 @@ module Google
658
676
  return result
659
677
  end
660
678
  rescue ::Faraday::Error => e
661
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
662
- raise ::Google::Cloud::Error.from_error(gapic_error)
679
+ begin
680
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
681
+ rescue ::Gapic::Rest::Error => gapic_error
682
+ raise ::Google::Cloud::Error.from_error gapic_error
683
+ end
663
684
  end
664
685
 
665
686
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -229,8 +229,11 @@ module Google
229
229
  return result
230
230
  end
231
231
  rescue ::Faraday::Error => e
232
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
233
- raise ::Google::Cloud::Error.from_error(gapic_error)
232
+ begin
233
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
234
+ rescue ::Gapic::Rest::Error => gapic_error
235
+ raise ::Google::Cloud::Error.from_error gapic_error
236
+ end
234
237
  end
235
238
 
236
239
  ##
@@ -302,8 +305,11 @@ module Google
302
305
  return result
303
306
  end
304
307
  rescue ::Faraday::Error => e
305
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
306
- raise ::Google::Cloud::Error.from_error(gapic_error)
308
+ begin
309
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
310
+ rescue ::Gapic::Rest::Error => gapic_error
311
+ raise ::Google::Cloud::Error.from_error gapic_error
312
+ end
307
313
  end
308
314
 
309
315
  ##
@@ -377,8 +383,11 @@ module Google
377
383
  return result
378
384
  end
379
385
  rescue ::Faraday::Error => e
380
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
381
- raise ::Google::Cloud::Error.from_error(gapic_error)
386
+ begin
387
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
388
+ rescue ::Gapic::Rest::Error => gapic_error
389
+ raise ::Google::Cloud::Error.from_error gapic_error
390
+ end
382
391
  end
383
392
 
384
393
  ##
@@ -440,8 +449,11 @@ module Google
440
449
  return result
441
450
  end
442
451
  rescue ::Faraday::Error => e
443
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
444
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##
@@ -513,8 +525,11 @@ module Google
513
525
  return result
514
526
  end
515
527
  rescue ::Faraday::Error => e
516
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
517
- raise ::Google::Cloud::Error.from_error(gapic_error)
528
+ begin
529
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
530
+ rescue ::Gapic::Rest::Error => gapic_error
531
+ raise ::Google::Cloud::Error.from_error gapic_error
532
+ end
518
533
  end
519
534
 
520
535
  ##
@@ -585,8 +600,11 @@ module Google
585
600
  return result
586
601
  end
587
602
  rescue ::Faraday::Error => e
588
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
589
- raise ::Google::Cloud::Error.from_error(gapic_error)
603
+ begin
604
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
605
+ rescue ::Gapic::Rest::Error => gapic_error
606
+ raise ::Google::Cloud::Error.from_error gapic_error
607
+ end
590
608
  end
591
609
 
592
610
  ##
@@ -659,8 +677,11 @@ module Google
659
677
  return result
660
678
  end
661
679
  rescue ::Faraday::Error => e
662
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
663
- raise ::Google::Cloud::Error.from_error(gapic_error)
680
+ begin
681
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
682
+ rescue ::Gapic::Rest::Error => gapic_error
683
+ raise ::Google::Cloud::Error.from_error gapic_error
684
+ end
664
685
  end
665
686
 
666
687
  ##
@@ -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
  ##
@@ -214,8 +214,11 @@ module Google
214
214
  return result
215
215
  end
216
216
  rescue ::Faraday::Error => e
217
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
218
- raise ::Google::Cloud::Error.from_error(gapic_error)
217
+ begin
218
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
219
+ rescue ::Gapic::Rest::Error => gapic_error
220
+ raise ::Google::Cloud::Error.from_error gapic_error
221
+ end
219
222
  end
220
223
 
221
224
  ##
@@ -277,8 +280,11 @@ module Google
277
280
  return result
278
281
  end
279
282
  rescue ::Faraday::Error => e
280
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
281
- raise ::Google::Cloud::Error.from_error(gapic_error)
283
+ begin
284
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
285
+ rescue ::Gapic::Rest::Error => gapic_error
286
+ raise ::Google::Cloud::Error.from_error gapic_error
287
+ end
282
288
  end
283
289
 
284
290
  ##
@@ -340,8 +346,11 @@ module Google
340
346
  return result
341
347
  end
342
348
  rescue ::Faraday::Error => e
343
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
344
- raise ::Google::Cloud::Error.from_error(gapic_error)
349
+ begin
350
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
351
+ rescue ::Gapic::Rest::Error => gapic_error
352
+ raise ::Google::Cloud::Error.from_error gapic_error
353
+ end
345
354
  end
346
355
 
347
356
  ##
@@ -412,8 +421,11 @@ module Google
412
421
  return result
413
422
  end
414
423
  rescue ::Faraday::Error => e
415
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
416
- raise ::Google::Cloud::Error.from_error(gapic_error)
424
+ begin
425
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
426
+ rescue ::Gapic::Rest::Error => gapic_error
427
+ raise ::Google::Cloud::Error.from_error gapic_error
428
+ end
417
429
  end
418
430
 
419
431
  ##
@@ -475,8 +487,11 @@ module Google
475
487
  return result
476
488
  end
477
489
  rescue ::Faraday::Error => e
478
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
479
- raise ::Google::Cloud::Error.from_error(gapic_error)
490
+ begin
491
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
492
+ rescue ::Gapic::Rest::Error => gapic_error
493
+ raise ::Google::Cloud::Error.from_error gapic_error
494
+ end
480
495
  end
481
496
 
482
497
  ##
@@ -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
  ##
@@ -196,8 +196,11 @@ module Google
196
196
  return result
197
197
  end
198
198
  rescue ::Faraday::Error => e
199
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
200
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
263
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
335
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
227
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
290
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
363
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
435
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
510
- raise ::Google::Cloud::Error.from_error(gapic_error)
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
  ##