google-cloud-compute-v1 1.6.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +15 -6
  4. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
  5. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +115 -10
  6. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +62 -1
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +35 -14
  8. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +45 -18
  10. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
  11. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +217 -24
  12. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -1
  13. data/lib/google/cloud/compute/v1/compute_pb.rb +228 -0
  14. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -6
  15. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  16. data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
  17. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  18. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
  19. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
  21. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  22. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
  23. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  24. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
  25. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +105 -8
  27. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +61 -1
  28. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -14
  29. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  30. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +35 -14
  31. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  32. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +25 -10
  33. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +15 -6
  35. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +25 -10
  37. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  38. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +35 -14
  39. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -2
  41. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  42. data/lib/google/cloud/compute/v1/images/rest/client.rb +55 -22
  43. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +100 -40
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +45 -18
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +35 -14
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +225 -90
  51. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +120 -12
  53. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +62 -1
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -4
  55. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  56. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +115 -12
  57. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +61 -1
  58. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -4
  59. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  60. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -14
  61. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  62. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -14
  63. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  64. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -6
  65. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  66. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +25 -10
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  68. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +45 -18
  69. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  70. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +80 -32
  71. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  72. data/lib/google/cloud/compute/v1/networks/rest/client.rb +55 -22
  73. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  74. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +65 -26
  75. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  76. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +40 -16
  77. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  78. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -6
  79. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  80. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +35 -14
  81. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  82. data/lib/google/cloud/compute/v1/projects/rest/client.rb +65 -26
  83. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  84. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +25 -10
  85. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  86. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +30 -12
  87. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  88. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +30 -12
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  90. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +196 -14
  91. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +122 -1
  92. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
  93. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  94. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  96. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
  97. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  98. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
  99. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  100. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
  101. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  102. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
  103. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  104. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
  105. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  106. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
  107. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  108. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
  109. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  110. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
  111. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
  112. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
  113. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  114. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
  115. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  116. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +25 -10
  117. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  118. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
  119. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  120. data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
  121. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +777 -0
  122. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
  123. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
  124. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
  125. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +25 -10
  126. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  127. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -14
  128. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  129. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
  130. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +599 -0
  131. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
  132. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
  133. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
  134. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -14
  135. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  136. data/lib/google/cloud/compute/v1/regions/rest/client.rb +10 -4
  137. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  138. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +50 -20
  139. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  140. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +40 -16
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  142. data/lib/google/cloud/compute/v1/routers/rest/client.rb +50 -20
  143. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  144. data/lib/google/cloud/compute/v1/routes/rest/client.rb +20 -8
  145. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  146. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +140 -22
  147. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +61 -1
  148. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +45 -18
  149. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  150. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +40 -16
  151. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  152. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +25 -10
  153. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  154. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +119 -12
  155. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +59 -1
  156. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +60 -24
  157. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  158. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +25 -10
  159. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  160. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +35 -14
  161. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  162. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +55 -22
  163. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  164. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +25 -10
  165. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  166. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +55 -22
  167. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  168. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +45 -18
  169. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  170. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +30 -12
  171. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  172. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +115 -10
  173. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +62 -1
  174. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +45 -18
  175. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  176. data/lib/google/cloud/compute/v1/version.rb +1 -1
  177. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +40 -16
  178. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  179. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +115 -10
  180. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +62 -1
  181. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +20 -8
  182. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  183. data/lib/google/cloud/compute/v1/zones/rest/client.rb +10 -4
  184. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  185. data/lib/google/cloud/compute/v1.rb +2 -0
  186. data/proto_docs/google/cloud/compute/v1/compute.rb +637 -26
  187. metadata +14 -4
@@ -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
  ##
@@ -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
  ##