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
@@ -264,8 +264,11 @@ module Google
264
264
  return result
265
265
  end
266
266
  rescue ::Faraday::Error => e
267
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
268
- raise ::Google::Cloud::Error.from_error(gapic_error)
267
+ begin
268
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
269
+ rescue ::Gapic::Rest::Error => gapic_error
270
+ raise ::Google::Cloud::Error.from_error gapic_error
271
+ end
269
272
  end
270
273
 
271
274
  ##
@@ -338,8 +341,11 @@ module Google
338
341
  return result
339
342
  end
340
343
  rescue ::Faraday::Error => e
341
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
342
- raise ::Google::Cloud::Error.from_error(gapic_error)
344
+ begin
345
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
346
+ rescue ::Gapic::Rest::Error => gapic_error
347
+ raise ::Google::Cloud::Error.from_error gapic_error
348
+ end
343
349
  end
344
350
 
345
351
  ##
@@ -414,8 +420,11 @@ module Google
414
420
  return result
415
421
  end
416
422
  rescue ::Faraday::Error => e
417
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
418
- raise ::Google::Cloud::Error.from_error(gapic_error)
423
+ begin
424
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
425
+ rescue ::Gapic::Rest::Error => gapic_error
426
+ raise ::Google::Cloud::Error.from_error gapic_error
427
+ end
419
428
  end
420
429
 
421
430
  ##
@@ -492,8 +501,11 @@ module Google
492
501
  return result
493
502
  end
494
503
  rescue ::Faraday::Error => e
495
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
496
- raise ::Google::Cloud::Error.from_error(gapic_error)
504
+ begin
505
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
506
+ rescue ::Gapic::Rest::Error => gapic_error
507
+ raise ::Google::Cloud::Error.from_error gapic_error
508
+ end
497
509
  end
498
510
 
499
511
  ##
@@ -568,8 +580,11 @@ module Google
568
580
  return result
569
581
  end
570
582
  rescue ::Faraday::Error => e
571
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
572
- raise ::Google::Cloud::Error.from_error(gapic_error)
583
+ begin
584
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
585
+ rescue ::Gapic::Rest::Error => gapic_error
586
+ raise ::Google::Cloud::Error.from_error gapic_error
587
+ end
573
588
  end
574
589
 
575
590
  ##
@@ -646,8 +661,11 @@ module Google
646
661
  return result
647
662
  end
648
663
  rescue ::Faraday::Error => e
649
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
650
- raise ::Google::Cloud::Error.from_error(gapic_error)
664
+ begin
665
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
666
+ rescue ::Gapic::Rest::Error => gapic_error
667
+ raise ::Google::Cloud::Error.from_error gapic_error
668
+ end
651
669
  end
652
670
 
653
671
  ##
@@ -722,8 +740,11 @@ module Google
722
740
  return result
723
741
  end
724
742
  rescue ::Faraday::Error => e
725
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
726
- raise ::Google::Cloud::Error.from_error(gapic_error)
743
+ begin
744
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
745
+ rescue ::Gapic::Rest::Error => gapic_error
746
+ raise ::Google::Cloud::Error.from_error gapic_error
747
+ end
727
748
  end
728
749
 
729
750
  ##
@@ -787,8 +808,11 @@ module Google
787
808
  return result
788
809
  end
789
810
  rescue ::Faraday::Error => e
790
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
791
- raise ::Google::Cloud::Error.from_error(gapic_error)
811
+ begin
812
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
813
+ rescue ::Gapic::Rest::Error => gapic_error
814
+ raise ::Google::Cloud::Error.from_error gapic_error
815
+ end
792
816
  end
793
817
 
794
818
  ##
@@ -863,8 +887,11 @@ module Google
863
887
  return result
864
888
  end
865
889
  rescue ::Faraday::Error => e
866
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
867
- raise ::Google::Cloud::Error.from_error(gapic_error)
890
+ begin
891
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
892
+ rescue ::Gapic::Rest::Error => gapic_error
893
+ raise ::Google::Cloud::Error.from_error gapic_error
894
+ end
868
895
  end
869
896
 
870
897
  ##
@@ -937,8 +964,11 @@ module Google
937
964
  return result
938
965
  end
939
966
  rescue ::Faraday::Error => e
940
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
941
- raise ::Google::Cloud::Error.from_error(gapic_error)
967
+ begin
968
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
969
+ rescue ::Gapic::Rest::Error => gapic_error
970
+ raise ::Google::Cloud::Error.from_error gapic_error
971
+ end
942
972
  end
943
973
 
944
974
  ##
@@ -1013,8 +1043,11 @@ module Google
1013
1043
  return result
1014
1044
  end
1015
1045
  rescue ::Faraday::Error => e
1016
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1017
- raise ::Google::Cloud::Error.from_error(gapic_error)
1046
+ begin
1047
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1048
+ rescue ::Gapic::Rest::Error => gapic_error
1049
+ raise ::Google::Cloud::Error.from_error gapic_error
1050
+ end
1018
1051
  end
1019
1052
 
1020
1053
  ##
@@ -1089,8 +1122,11 @@ module Google
1089
1122
  return result
1090
1123
  end
1091
1124
  rescue ::Faraday::Error => e
1092
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1093
- raise ::Google::Cloud::Error.from_error(gapic_error)
1125
+ begin
1126
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1127
+ rescue ::Gapic::Rest::Error => gapic_error
1128
+ raise ::Google::Cloud::Error.from_error gapic_error
1129
+ end
1094
1130
  end
1095
1131
 
1096
1132
  ##
@@ -1165,8 +1201,11 @@ module Google
1165
1201
  return result
1166
1202
  end
1167
1203
  rescue ::Faraday::Error => e
1168
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1169
- raise ::Google::Cloud::Error.from_error(gapic_error)
1204
+ begin
1205
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1206
+ rescue ::Gapic::Rest::Error => gapic_error
1207
+ raise ::Google::Cloud::Error.from_error gapic_error
1208
+ end
1170
1209
  end
1171
1210
 
1172
1211
  ##
@@ -1243,8 +1282,11 @@ module Google
1243
1282
  return result
1244
1283
  end
1245
1284
  rescue ::Faraday::Error => e
1246
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1247
- raise ::Google::Cloud::Error.from_error(gapic_error)
1285
+ begin
1286
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1287
+ rescue ::Gapic::Rest::Error => gapic_error
1288
+ raise ::Google::Cloud::Error.from_error gapic_error
1289
+ end
1248
1290
  end
1249
1291
 
1250
1292
  ##
@@ -1321,8 +1363,11 @@ module Google
1321
1363
  return result
1322
1364
  end
1323
1365
  rescue ::Faraday::Error => e
1324
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1325
- raise ::Google::Cloud::Error.from_error(gapic_error)
1366
+ begin
1367
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1368
+ rescue ::Gapic::Rest::Error => gapic_error
1369
+ raise ::Google::Cloud::Error.from_error gapic_error
1370
+ end
1326
1371
  end
1327
1372
 
1328
1373
  ##
@@ -1399,8 +1444,11 @@ module Google
1399
1444
  return result
1400
1445
  end
1401
1446
  rescue ::Faraday::Error => e
1402
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1403
- raise ::Google::Cloud::Error.from_error(gapic_error)
1447
+ begin
1448
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1449
+ rescue ::Gapic::Rest::Error => gapic_error
1450
+ raise ::Google::Cloud::Error.from_error gapic_error
1451
+ end
1404
1452
  end
1405
1453
 
1406
1454
  ##
@@ -1477,8 +1525,11 @@ module Google
1477
1525
  return result
1478
1526
  end
1479
1527
  rescue ::Faraday::Error => e
1480
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1481
- raise ::Google::Cloud::Error.from_error(gapic_error)
1528
+ begin
1529
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1530
+ rescue ::Gapic::Rest::Error => gapic_error
1531
+ raise ::Google::Cloud::Error.from_error gapic_error
1532
+ end
1482
1533
  end
1483
1534
 
1484
1535
  ##
@@ -1555,8 +1606,11 @@ module Google
1555
1606
  return result
1556
1607
  end
1557
1608
  rescue ::Faraday::Error => e
1558
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1559
- raise ::Google::Cloud::Error.from_error(gapic_error)
1609
+ begin
1610
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1611
+ rescue ::Gapic::Rest::Error => gapic_error
1612
+ raise ::Google::Cloud::Error.from_error gapic_error
1613
+ end
1560
1614
  end
1561
1615
 
1562
1616
  ##
@@ -1633,8 +1687,11 @@ module Google
1633
1687
  return result
1634
1688
  end
1635
1689
  rescue ::Faraday::Error => e
1636
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1637
- raise ::Google::Cloud::Error.from_error(gapic_error)
1690
+ begin
1691
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1692
+ rescue ::Gapic::Rest::Error => gapic_error
1693
+ raise ::Google::Cloud::Error.from_error gapic_error
1694
+ end
1638
1695
  end
1639
1696
 
1640
1697
  ##
@@ -1711,8 +1768,11 @@ module Google
1711
1768
  return result
1712
1769
  end
1713
1770
  rescue ::Faraday::Error => e
1714
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1715
- raise ::Google::Cloud::Error.from_error(gapic_error)
1771
+ begin
1772
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1773
+ rescue ::Gapic::Rest::Error => gapic_error
1774
+ raise ::Google::Cloud::Error.from_error gapic_error
1775
+ end
1716
1776
  end
1717
1777
 
1718
1778
  ##
@@ -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
  ##
@@ -239,8 +239,11 @@ module Google
239
239
  return result
240
240
  end
241
241
  rescue ::Faraday::Error => e
242
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
243
- raise ::Google::Cloud::Error.from_error(gapic_error)
242
+ begin
243
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
244
+ rescue ::Gapic::Rest::Error => gapic_error
245
+ raise ::Google::Cloud::Error.from_error gapic_error
246
+ end
244
247
  end
245
248
 
246
249
  ##
@@ -313,8 +316,11 @@ module Google
313
316
  return result
314
317
  end
315
318
  rescue ::Faraday::Error => e
316
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
317
- raise ::Google::Cloud::Error.from_error(gapic_error)
319
+ begin
320
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
321
+ rescue ::Gapic::Rest::Error => gapic_error
322
+ raise ::Google::Cloud::Error.from_error gapic_error
323
+ end
318
324
  end
319
325
 
320
326
  ##
@@ -389,8 +395,11 @@ module Google
389
395
  return result
390
396
  end
391
397
  rescue ::Faraday::Error => e
392
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
393
- raise ::Google::Cloud::Error.from_error(gapic_error)
398
+ begin
399
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
400
+ rescue ::Gapic::Rest::Error => gapic_error
401
+ raise ::Google::Cloud::Error.from_error gapic_error
402
+ end
394
403
  end
395
404
 
396
405
  ##
@@ -454,8 +463,11 @@ module Google
454
463
  return result
455
464
  end
456
465
  rescue ::Faraday::Error => e
457
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
458
- raise ::Google::Cloud::Error.from_error(gapic_error)
466
+ begin
467
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
468
+ rescue ::Gapic::Rest::Error => gapic_error
469
+ raise ::Google::Cloud::Error.from_error gapic_error
470
+ end
459
471
  end
460
472
 
461
473
  ##
@@ -530,8 +542,11 @@ module Google
530
542
  return result
531
543
  end
532
544
  rescue ::Faraday::Error => e
533
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
534
- raise ::Google::Cloud::Error.from_error(gapic_error)
545
+ begin
546
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
547
+ rescue ::Gapic::Rest::Error => gapic_error
548
+ raise ::Google::Cloud::Error.from_error gapic_error
549
+ end
535
550
  end
536
551
 
537
552
  ##
@@ -604,8 +619,11 @@ module Google
604
619
  return result
605
620
  end
606
621
  rescue ::Faraday::Error => e
607
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
608
- raise ::Google::Cloud::Error.from_error(gapic_error)
622
+ begin
623
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
624
+ rescue ::Gapic::Rest::Error => gapic_error
625
+ raise ::Google::Cloud::Error.from_error gapic_error
626
+ end
609
627
  end
610
628
 
611
629
  ##
@@ -682,8 +700,11 @@ module Google
682
700
  return result
683
701
  end
684
702
  rescue ::Faraday::Error => e
685
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
686
- raise ::Google::Cloud::Error.from_error(gapic_error)
703
+ begin
704
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
705
+ rescue ::Gapic::Rest::Error => gapic_error
706
+ raise ::Google::Cloud::Error.from_error gapic_error
707
+ end
687
708
  end
688
709
 
689
710
  ##
@@ -760,8 +781,11 @@ module Google
760
781
  return result
761
782
  end
762
783
  rescue ::Faraday::Error => e
763
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
764
- raise ::Google::Cloud::Error.from_error(gapic_error)
784
+ begin
785
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
786
+ rescue ::Gapic::Rest::Error => gapic_error
787
+ raise ::Google::Cloud::Error.from_error gapic_error
788
+ end
765
789
  end
766
790
 
767
791
  ##
@@ -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
  ##
@@ -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
  ##
@@ -230,8 +230,11 @@ module Google
230
230
  return result
231
231
  end
232
232
  rescue ::Faraday::Error => e
233
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
234
- raise ::Google::Cloud::Error.from_error(gapic_error)
233
+ begin
234
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
235
+ rescue ::Gapic::Rest::Error => gapic_error
236
+ raise ::Google::Cloud::Error.from_error gapic_error
237
+ end
235
238
  end
236
239
 
237
240
  ##
@@ -293,8 +296,11 @@ module Google
293
296
  return result
294
297
  end
295
298
  rescue ::Faraday::Error => e
296
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
297
- raise ::Google::Cloud::Error.from_error(gapic_error)
299
+ begin
300
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
301
+ rescue ::Gapic::Rest::Error => gapic_error
302
+ raise ::Google::Cloud::Error.from_error gapic_error
303
+ end
298
304
  end
299
305
 
300
306
  ##
@@ -358,8 +364,11 @@ module Google
358
364
  return result
359
365
  end
360
366
  rescue ::Faraday::Error => e
361
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
362
- raise ::Google::Cloud::Error.from_error(gapic_error)
367
+ begin
368
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
369
+ rescue ::Gapic::Rest::Error => gapic_error
370
+ raise ::Google::Cloud::Error.from_error gapic_error
371
+ end
363
372
  end
364
373
 
365
374
  ##
@@ -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
  ##
@@ -503,8 +515,11 @@ module Google
503
515
  return result
504
516
  end
505
517
  rescue ::Faraday::Error => e
506
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
507
- raise ::Google::Cloud::Error.from_error(gapic_error)
518
+ begin
519
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
520
+ rescue ::Gapic::Rest::Error => gapic_error
521
+ raise ::Google::Cloud::Error.from_error gapic_error
522
+ end
508
523
  end
509
524
 
510
525
  ##
@@ -568,8 +583,11 @@ module Google
568
583
  return result
569
584
  end
570
585
  rescue ::Faraday::Error => e
571
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
572
- raise ::Google::Cloud::Error.from_error(gapic_error)
586
+ begin
587
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
588
+ rescue ::Gapic::Rest::Error => gapic_error
589
+ raise ::Google::Cloud::Error.from_error gapic_error
590
+ end
573
591
  end
574
592
 
575
593
  ##
@@ -633,8 +651,11 @@ module Google
633
651
  return result
634
652
  end
635
653
  rescue ::Faraday::Error => e
636
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
637
- raise ::Google::Cloud::Error.from_error(gapic_error)
654
+ begin
655
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
656
+ rescue ::Gapic::Rest::Error => gapic_error
657
+ raise ::Google::Cloud::Error.from_error gapic_error
658
+ end
638
659
  end
639
660
 
640
661
  ##
@@ -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
  ##