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
@@ -250,8 +250,11 @@ module Google
250
250
  return result
251
251
  end
252
252
  rescue ::Faraday::Error => e
253
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
254
- raise ::Google::Cloud::Error.from_error(gapic_error)
253
+ begin
254
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
255
+ rescue ::Gapic::Rest::Error => gapic_error
256
+ raise ::Google::Cloud::Error.from_error gapic_error
257
+ end
255
258
  end
256
259
 
257
260
  ##
@@ -324,8 +327,11 @@ module Google
324
327
  return result
325
328
  end
326
329
  rescue ::Faraday::Error => e
327
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
328
- raise ::Google::Cloud::Error.from_error(gapic_error)
330
+ begin
331
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
332
+ rescue ::Gapic::Rest::Error => gapic_error
333
+ raise ::Google::Cloud::Error.from_error gapic_error
334
+ end
329
335
  end
330
336
 
331
337
  ##
@@ -400,8 +406,11 @@ module Google
400
406
  return result
401
407
  end
402
408
  rescue ::Faraday::Error => e
403
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
404
- raise ::Google::Cloud::Error.from_error(gapic_error)
409
+ begin
410
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
411
+ rescue ::Gapic::Rest::Error => gapic_error
412
+ raise ::Google::Cloud::Error.from_error gapic_error
413
+ end
405
414
  end
406
415
 
407
416
  ##
@@ -478,8 +487,11 @@ module Google
478
487
  return result
479
488
  end
480
489
  rescue ::Faraday::Error => e
481
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
482
- 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
483
495
  end
484
496
 
485
497
  ##
@@ -543,8 +555,11 @@ module Google
543
555
  return result
544
556
  end
545
557
  rescue ::Faraday::Error => e
546
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
547
- raise ::Google::Cloud::Error.from_error(gapic_error)
558
+ begin
559
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
560
+ rescue ::Gapic::Rest::Error => gapic_error
561
+ raise ::Google::Cloud::Error.from_error gapic_error
562
+ end
548
563
  end
549
564
 
550
565
  ##
@@ -610,8 +625,11 @@ module Google
610
625
  return result
611
626
  end
612
627
  rescue ::Faraday::Error => e
613
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
614
- raise ::Google::Cloud::Error.from_error(gapic_error)
628
+ begin
629
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
630
+ rescue ::Gapic::Rest::Error => gapic_error
631
+ raise ::Google::Cloud::Error.from_error gapic_error
632
+ end
615
633
  end
616
634
 
617
635
  ##
@@ -688,8 +706,11 @@ module Google
688
706
  return result
689
707
  end
690
708
  rescue ::Faraday::Error => e
691
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
692
- raise ::Google::Cloud::Error.from_error(gapic_error)
709
+ begin
710
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
711
+ rescue ::Gapic::Rest::Error => gapic_error
712
+ raise ::Google::Cloud::Error.from_error gapic_error
713
+ end
693
714
  end
694
715
 
695
716
  ##
@@ -762,8 +783,11 @@ module Google
762
783
  return result
763
784
  end
764
785
  rescue ::Faraday::Error => e
765
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
766
- raise ::Google::Cloud::Error.from_error(gapic_error)
786
+ begin
787
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
788
+ rescue ::Gapic::Rest::Error => gapic_error
789
+ raise ::Google::Cloud::Error.from_error gapic_error
790
+ end
767
791
  end
768
792
 
769
793
  ##
@@ -838,8 +862,11 @@ module Google
838
862
  return result
839
863
  end
840
864
  rescue ::Faraday::Error => e
841
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
842
- raise ::Google::Cloud::Error.from_error(gapic_error)
865
+ begin
866
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
867
+ rescue ::Gapic::Rest::Error => gapic_error
868
+ raise ::Google::Cloud::Error.from_error gapic_error
869
+ end
843
870
  end
844
871
 
845
872
  ##
@@ -916,8 +943,11 @@ module Google
916
943
  return result
917
944
  end
918
945
  rescue ::Faraday::Error => e
919
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
920
- raise ::Google::Cloud::Error.from_error(gapic_error)
946
+ begin
947
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
948
+ rescue ::Gapic::Rest::Error => gapic_error
949
+ raise ::Google::Cloud::Error.from_error gapic_error
950
+ end
921
951
  end
922
952
 
923
953
  ##
@@ -983,8 +1013,11 @@ module Google
983
1013
  return result
984
1014
  end
985
1015
  rescue ::Faraday::Error => e
986
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
987
- raise ::Google::Cloud::Error.from_error(gapic_error)
1016
+ begin
1017
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1018
+ rescue ::Gapic::Rest::Error => gapic_error
1019
+ raise ::Google::Cloud::Error.from_error gapic_error
1020
+ end
988
1021
  end
989
1022
 
990
1023
  ##
@@ -1061,8 +1094,11 @@ module Google
1061
1094
  return result
1062
1095
  end
1063
1096
  rescue ::Faraday::Error => e
1064
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1065
- raise ::Google::Cloud::Error.from_error(gapic_error)
1097
+ begin
1098
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1099
+ rescue ::Gapic::Rest::Error => gapic_error
1100
+ raise ::Google::Cloud::Error.from_error gapic_error
1101
+ end
1066
1102
  end
1067
1103
 
1068
1104
  ##
@@ -1128,8 +1164,11 @@ module Google
1128
1164
  return result
1129
1165
  end
1130
1166
  rescue ::Faraday::Error => e
1131
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1132
- raise ::Google::Cloud::Error.from_error(gapic_error)
1167
+ begin
1168
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1169
+ rescue ::Gapic::Rest::Error => gapic_error
1170
+ raise ::Google::Cloud::Error.from_error gapic_error
1171
+ end
1133
1172
  end
1134
1173
 
1135
1174
  ##
@@ -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
  ##
@@ -236,8 +236,11 @@ module Google
236
236
  return result
237
237
  end
238
238
  rescue ::Faraday::Error => e
239
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
240
- raise ::Google::Cloud::Error.from_error(gapic_error)
239
+ begin
240
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
241
+ rescue ::Gapic::Rest::Error => gapic_error
242
+ raise ::Google::Cloud::Error.from_error gapic_error
243
+ end
241
244
  end
242
245
 
243
246
  ##
@@ -312,8 +315,11 @@ module Google
312
315
  return result
313
316
  end
314
317
  rescue ::Faraday::Error => e
315
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
316
- raise ::Google::Cloud::Error.from_error(gapic_error)
318
+ begin
319
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
320
+ rescue ::Gapic::Rest::Error => gapic_error
321
+ raise ::Google::Cloud::Error.from_error gapic_error
322
+ end
317
323
  end
318
324
 
319
325
  ##
@@ -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
  ##
@@ -444,8 +453,11 @@ module Google
444
453
  return result
445
454
  end
446
455
  rescue ::Faraday::Error => e
447
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
448
- raise ::Google::Cloud::Error.from_error(gapic_error)
456
+ begin
457
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
458
+ rescue ::Gapic::Rest::Error => gapic_error
459
+ raise ::Google::Cloud::Error.from_error gapic_error
460
+ end
449
461
  end
450
462
 
451
463
  ##
@@ -520,8 +532,11 @@ module Google
520
532
  return result
521
533
  end
522
534
  rescue ::Faraday::Error => e
523
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
524
- raise ::Google::Cloud::Error.from_error(gapic_error)
535
+ begin
536
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
537
+ rescue ::Gapic::Rest::Error => gapic_error
538
+ raise ::Google::Cloud::Error.from_error gapic_error
539
+ end
525
540
  end
526
541
 
527
542
  ##
@@ -594,8 +609,11 @@ module Google
594
609
  return result
595
610
  end
596
611
  rescue ::Faraday::Error => e
597
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
598
- raise ::Google::Cloud::Error.from_error(gapic_error)
612
+ begin
613
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
614
+ rescue ::Gapic::Rest::Error => gapic_error
615
+ raise ::Google::Cloud::Error.from_error gapic_error
616
+ end
599
617
  end
600
618
 
601
619
  ##
@@ -661,8 +679,11 @@ module Google
661
679
  return result
662
680
  end
663
681
  rescue ::Faraday::Error => e
664
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
665
- raise ::Google::Cloud::Error.from_error(gapic_error)
682
+ begin
683
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
684
+ rescue ::Gapic::Rest::Error => gapic_error
685
+ raise ::Google::Cloud::Error.from_error gapic_error
686
+ end
666
687
  end
667
688
 
668
689
  ##
@@ -728,8 +749,11 @@ module Google
728
749
  return result
729
750
  end
730
751
  rescue ::Faraday::Error => e
731
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
732
- raise ::Google::Cloud::Error.from_error(gapic_error)
752
+ begin
753
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
754
+ rescue ::Gapic::Rest::Error => gapic_error
755
+ raise ::Google::Cloud::Error.from_error gapic_error
756
+ end
733
757
  end
734
758
 
735
759
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -210,8 +210,11 @@ module Google
210
210
  return result
211
211
  end
212
212
  rescue ::Faraday::Error => e
213
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
214
- raise ::Google::Cloud::Error.from_error(gapic_error)
213
+ begin
214
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
215
+ rescue ::Gapic::Rest::Error => gapic_error
216
+ raise ::Google::Cloud::Error.from_error gapic_error
217
+ end
215
218
  end
216
219
 
217
220
  ##
@@ -275,8 +278,11 @@ module Google
275
278
  return result
276
279
  end
277
280
  rescue ::Faraday::Error => e
278
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
279
- raise ::Google::Cloud::Error.from_error(gapic_error)
281
+ begin
282
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
283
+ rescue ::Gapic::Rest::Error => gapic_error
284
+ raise ::Google::Cloud::Error.from_error gapic_error
285
+ end
280
286
  end
281
287
 
282
288
  ##
@@ -349,8 +355,11 @@ module Google
349
355
  return result
350
356
  end
351
357
  rescue ::Faraday::Error => e
352
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
353
- raise ::Google::Cloud::Error.from_error(gapic_error)
358
+ begin
359
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
360
+ rescue ::Gapic::Rest::Error => gapic_error
361
+ raise ::Google::Cloud::Error.from_error gapic_error
362
+ end
354
363
  end
355
364
 
356
365
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -231,8 +231,11 @@ module Google
231
231
  return result
232
232
  end
233
233
  rescue ::Faraday::Error => e
234
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
235
- raise ::Google::Cloud::Error.from_error(gapic_error)
234
+ begin
235
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
236
+ rescue ::Gapic::Rest::Error => gapic_error
237
+ raise ::Google::Cloud::Error.from_error gapic_error
238
+ end
236
239
  end
237
240
 
238
241
  ##
@@ -307,8 +310,11 @@ module Google
307
310
  return result
308
311
  end
309
312
  rescue ::Faraday::Error => e
310
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
311
- raise ::Google::Cloud::Error.from_error(gapic_error)
313
+ begin
314
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
315
+ rescue ::Gapic::Rest::Error => gapic_error
316
+ raise ::Google::Cloud::Error.from_error gapic_error
317
+ end
312
318
  end
313
319
 
314
320
  ##
@@ -372,8 +378,11 @@ module Google
372
378
  return result
373
379
  end
374
380
  rescue ::Faraday::Error => e
375
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
376
- raise ::Google::Cloud::Error.from_error(gapic_error)
381
+ begin
382
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
383
+ rescue ::Gapic::Rest::Error => gapic_error
384
+ raise ::Google::Cloud::Error.from_error gapic_error
385
+ end
377
386
  end
378
387
 
379
388
  ##
@@ -448,8 +457,11 @@ module Google
448
457
  return result
449
458
  end
450
459
  rescue ::Faraday::Error => e
451
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
452
- raise ::Google::Cloud::Error.from_error(gapic_error)
460
+ begin
461
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
462
+ rescue ::Gapic::Rest::Error => gapic_error
463
+ raise ::Google::Cloud::Error.from_error gapic_error
464
+ end
453
465
  end
454
466
 
455
467
  ##
@@ -522,8 +534,11 @@ module Google
522
534
  return result
523
535
  end
524
536
  rescue ::Faraday::Error => e
525
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
526
- raise ::Google::Cloud::Error.from_error(gapic_error)
537
+ begin
538
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
539
+ rescue ::Gapic::Rest::Error => gapic_error
540
+ raise ::Google::Cloud::Error.from_error gapic_error
541
+ end
527
542
  end
528
543
 
529
544
  ##
@@ -600,8 +615,11 @@ module Google
600
615
  return result
601
616
  end
602
617
  rescue ::Faraday::Error => e
603
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
604
- raise ::Google::Cloud::Error.from_error(gapic_error)
618
+ begin
619
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
620
+ rescue ::Gapic::Rest::Error => gapic_error
621
+ raise ::Google::Cloud::Error.from_error gapic_error
622
+ end
605
623
  end
606
624
 
607
625
  ##
@@ -667,8 +685,11 @@ module Google
667
685
  return result
668
686
  end
669
687
  rescue ::Faraday::Error => e
670
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
671
- raise ::Google::Cloud::Error.from_error(gapic_error)
688
+ begin
689
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
690
+ rescue ::Gapic::Rest::Error => gapic_error
691
+ raise ::Google::Cloud::Error.from_error gapic_error
692
+ end
672
693
  end
673
694
 
674
695
  ##
@@ -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
  ##
@@ -240,8 +240,11 @@ module Google
240
240
  return result
241
241
  end
242
242
  rescue ::Faraday::Error => e
243
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
244
- raise ::Google::Cloud::Error.from_error(gapic_error)
243
+ begin
244
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
245
+ rescue ::Gapic::Rest::Error => gapic_error
246
+ raise ::Google::Cloud::Error.from_error gapic_error
247
+ end
245
248
  end
246
249
 
247
250
  ##
@@ -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
  ##
@@ -384,8 +390,11 @@ module Google
384
390
  return result
385
391
  end
386
392
  rescue ::Faraday::Error => e
387
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
388
- raise ::Google::Cloud::Error.from_error(gapic_error)
393
+ begin
394
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
395
+ rescue ::Gapic::Rest::Error => gapic_error
396
+ raise ::Google::Cloud::Error.from_error gapic_error
397
+ end
389
398
  end
390
399
 
391
400
  ##
@@ -457,8 +466,11 @@ module Google
457
466
  return result
458
467
  end
459
468
  rescue ::Faraday::Error => e
460
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
461
- raise ::Google::Cloud::Error.from_error(gapic_error)
469
+ begin
470
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
471
+ rescue ::Gapic::Rest::Error => gapic_error
472
+ raise ::Google::Cloud::Error.from_error gapic_error
473
+ end
462
474
  end
463
475
 
464
476
  ##
@@ -518,8 +530,11 @@ module Google
518
530
  return result
519
531
  end
520
532
  rescue ::Faraday::Error => e
521
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
522
- raise ::Google::Cloud::Error.from_error(gapic_error)
533
+ begin
534
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
535
+ rescue ::Gapic::Rest::Error => gapic_error
536
+ raise ::Google::Cloud::Error.from_error gapic_error
537
+ end
523
538
  end
524
539
 
525
540
  ##
@@ -579,8 +594,11 @@ module Google
579
594
  return result
580
595
  end
581
596
  rescue ::Faraday::Error => e
582
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
583
- raise ::Google::Cloud::Error.from_error(gapic_error)
597
+ begin
598
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
599
+ rescue ::Gapic::Rest::Error => gapic_error
600
+ raise ::Google::Cloud::Error.from_error gapic_error
601
+ end
584
602
  end
585
603
 
586
604
  ##
@@ -651,8 +669,11 @@ module Google
651
669
  return result
652
670
  end
653
671
  rescue ::Faraday::Error => e
654
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
655
- raise ::Google::Cloud::Error.from_error(gapic_error)
672
+ begin
673
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
674
+ rescue ::Gapic::Rest::Error => gapic_error
675
+ raise ::Google::Cloud::Error.from_error gapic_error
676
+ end
656
677
  end
657
678
 
658
679
  ##
@@ -725,8 +746,11 @@ module Google
725
746
  return result
726
747
  end
727
748
  rescue ::Faraday::Error => e
728
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
729
- raise ::Google::Cloud::Error.from_error(gapic_error)
749
+ begin
750
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
751
+ rescue ::Gapic::Rest::Error => gapic_error
752
+ raise ::Google::Cloud::Error.from_error gapic_error
753
+ end
730
754
  end
731
755
 
732
756
  ##
@@ -798,8 +822,11 @@ module Google
798
822
  return result
799
823
  end
800
824
  rescue ::Faraday::Error => e
801
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
802
- raise ::Google::Cloud::Error.from_error(gapic_error)
825
+ begin
826
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
827
+ rescue ::Gapic::Rest::Error => gapic_error
828
+ raise ::Google::Cloud::Error.from_error gapic_error
829
+ end
803
830
  end
804
831
 
805
832
  ##
@@ -871,8 +898,11 @@ module Google
871
898
  return result
872
899
  end
873
900
  rescue ::Faraday::Error => e
874
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
875
- raise ::Google::Cloud::Error.from_error(gapic_error)
901
+ begin
902
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
903
+ rescue ::Gapic::Rest::Error => gapic_error
904
+ raise ::Google::Cloud::Error.from_error gapic_error
905
+ end
876
906
  end
877
907
 
878
908
  ##
@@ -944,8 +974,11 @@ module Google
944
974
  return result
945
975
  end
946
976
  rescue ::Faraday::Error => e
947
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
948
- raise ::Google::Cloud::Error.from_error(gapic_error)
977
+ begin
978
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
979
+ rescue ::Gapic::Rest::Error => gapic_error
980
+ raise ::Google::Cloud::Error.from_error gapic_error
981
+ end
949
982
  end
950
983
 
951
984
  ##
@@ -1017,8 +1050,11 @@ module Google
1017
1050
  return result
1018
1051
  end
1019
1052
  rescue ::Faraday::Error => e
1020
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1021
- raise ::Google::Cloud::Error.from_error(gapic_error)
1053
+ begin
1054
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1055
+ rescue ::Gapic::Rest::Error => gapic_error
1056
+ raise ::Google::Cloud::Error.from_error gapic_error
1057
+ end
1022
1058
  end
1023
1059
 
1024
1060
  ##
@@ -1090,8 +1126,11 @@ module Google
1090
1126
  return result
1091
1127
  end
1092
1128
  rescue ::Faraday::Error => e
1093
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1094
- raise ::Google::Cloud::Error.from_error(gapic_error)
1129
+ begin
1130
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1131
+ rescue ::Gapic::Rest::Error => gapic_error
1132
+ raise ::Google::Cloud::Error.from_error gapic_error
1133
+ end
1095
1134
  end
1096
1135
 
1097
1136
  ##
@@ -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
  ##