google-cloud-compute-v1 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) 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/compute_pb.rb +66 -0
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -6
  14. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  15. data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
  18. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  21. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
  22. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
  24. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +25 -10
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -14
  28. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +35 -14
  30. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  31. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +25 -10
  32. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +15 -6
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +25 -10
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  37. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +35 -14
  38. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -2
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  41. data/lib/google/cloud/compute/v1/images/rest/client.rb +55 -22
  42. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +100 -40
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +45 -18
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +35 -14
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +225 -90
  50. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +35 -14
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -4
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  55. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +35 -14
  56. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -1
  57. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -4
  58. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  59. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -14
  60. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -14
  62. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  63. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -6
  64. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  65. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +25 -10
  66. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  67. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +45 -18
  68. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +80 -32
  70. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  71. data/lib/google/cloud/compute/v1/networks/rest/client.rb +55 -22
  72. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  73. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +65 -26
  74. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  75. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +40 -16
  76. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  77. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -6
  78. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  79. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +35 -14
  80. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  81. data/lib/google/cloud/compute/v1/projects/rest/client.rb +65 -26
  82. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  83. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +25 -10
  84. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +30 -12
  86. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +30 -12
  88. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  89. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +45 -18
  90. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
  91. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
  92. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  93. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
  94. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  95. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
  96. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  97. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
  98. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  99. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
  100. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  101. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
  102. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  103. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
  104. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  105. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
  106. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  107. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
  108. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  109. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
  110. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
  111. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
  112. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  113. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
  114. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  115. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +26 -11
  116. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  117. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
  118. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  119. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +30 -12
  120. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
  121. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +25 -10
  122. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  123. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -14
  124. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  125. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +20 -8
  126. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
  127. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -14
  128. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  129. data/lib/google/cloud/compute/v1/regions/rest/client.rb +10 -4
  130. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  131. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +50 -20
  132. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  133. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +40 -16
  134. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  135. data/lib/google/cloud/compute/v1/routers/rest/client.rb +50 -20
  136. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  137. data/lib/google/cloud/compute/v1/routes/rest/client.rb +20 -8
  138. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  139. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +61 -25
  140. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
  141. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +45 -18
  142. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  143. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +40 -16
  144. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  145. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +25 -10
  146. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  147. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +35 -14
  148. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
  149. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +60 -24
  150. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  151. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +25 -10
  152. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  153. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +35 -14
  154. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  155. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +55 -22
  156. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  157. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +25 -10
  158. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  159. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +55 -22
  160. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  161. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +45 -18
  162. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  163. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +30 -12
  164. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  165. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +30 -12
  166. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
  167. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +45 -18
  168. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  169. data/lib/google/cloud/compute/v1/version.rb +1 -1
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +40 -16
  171. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  172. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +30 -12
  173. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
  174. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +20 -8
  175. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  176. data/lib/google/cloud/compute/v1/zones/rest/client.rb +10 -4
  177. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  178. data/proto_docs/google/cloud/compute/v1/compute.rb +227 -60
  179. metadata +4 -4
@@ -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
  ##
@@ -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
  ##
@@ -375,8 +381,11 @@ module Google
375
381
  return result
376
382
  end
377
383
  rescue ::Faraday::Error => e
378
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
379
- raise ::Google::Cloud::Error.from_error(gapic_error)
384
+ begin
385
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
386
+ rescue ::Gapic::Rest::Error => gapic_error
387
+ raise ::Google::Cloud::Error.from_error gapic_error
388
+ end
380
389
  end
381
390
 
382
391
  ##
@@ -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
  ##
@@ -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
  ##
@@ -595,8 +610,11 @@ module Google
595
610
  return result
596
611
  end
597
612
  rescue ::Faraday::Error => e
598
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
599
- raise ::Google::Cloud::Error.from_error(gapic_error)
613
+ begin
614
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
615
+ rescue ::Gapic::Rest::Error => gapic_error
616
+ raise ::Google::Cloud::Error.from_error gapic_error
617
+ end
600
618
  end
601
619
 
602
620
  ##
@@ -670,8 +688,11 @@ module Google
670
688
  return result
671
689
  end
672
690
  rescue ::Faraday::Error => e
673
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
674
- raise ::Google::Cloud::Error.from_error(gapic_error)
691
+ begin
692
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
693
+ rescue ::Gapic::Rest::Error => gapic_error
694
+ raise ::Google::Cloud::Error.from_error gapic_error
695
+ end
675
696
  end
676
697
 
677
698
  ##
@@ -745,8 +766,11 @@ module Google
745
766
  return result
746
767
  end
747
768
  rescue ::Faraday::Error => e
748
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
749
- raise ::Google::Cloud::Error.from_error(gapic_error)
769
+ begin
770
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
771
+ rescue ::Gapic::Rest::Error => gapic_error
772
+ raise ::Google::Cloud::Error.from_error gapic_error
773
+ end
750
774
  end
751
775
 
752
776
  ##
@@ -820,8 +844,11 @@ module Google
820
844
  return result
821
845
  end
822
846
  rescue ::Faraday::Error => e
823
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
824
- raise ::Google::Cloud::Error.from_error(gapic_error)
847
+ begin
848
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
849
+ rescue ::Gapic::Rest::Error => gapic_error
850
+ raise ::Google::Cloud::Error.from_error gapic_error
851
+ end
825
852
  end
826
853
 
827
854
  ##
@@ -895,8 +922,11 @@ module Google
895
922
  return result
896
923
  end
897
924
  rescue ::Faraday::Error => e
898
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
899
- raise ::Google::Cloud::Error.from_error(gapic_error)
925
+ begin
926
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
927
+ rescue ::Gapic::Rest::Error => gapic_error
928
+ raise ::Google::Cloud::Error.from_error gapic_error
929
+ end
900
930
  end
901
931
 
902
932
  ##
@@ -970,8 +1000,11 @@ module Google
970
1000
  return result
971
1001
  end
972
1002
  rescue ::Faraday::Error => e
973
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
974
- raise ::Google::Cloud::Error.from_error(gapic_error)
1003
+ begin
1004
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1005
+ rescue ::Gapic::Rest::Error => gapic_error
1006
+ raise ::Google::Cloud::Error.from_error gapic_error
1007
+ end
975
1008
  end
976
1009
 
977
1010
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -227,8 +227,11 @@ module Google
227
227
  return result
228
228
  end
229
229
  rescue ::Faraday::Error => e
230
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
231
- raise ::Google::Cloud::Error.from_error(gapic_error)
230
+ begin
231
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
232
+ rescue ::Gapic::Rest::Error => gapic_error
233
+ raise ::Google::Cloud::Error.from_error gapic_error
234
+ end
232
235
  end
233
236
 
234
237
  ##
@@ -303,8 +306,11 @@ module Google
303
306
  return result
304
307
  end
305
308
  rescue ::Faraday::Error => e
306
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
307
- raise ::Google::Cloud::Error.from_error(gapic_error)
309
+ begin
310
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
311
+ rescue ::Gapic::Rest::Error => gapic_error
312
+ raise ::Google::Cloud::Error.from_error gapic_error
313
+ end
308
314
  end
309
315
 
310
316
  ##
@@ -368,8 +374,11 @@ module Google
368
374
  return result
369
375
  end
370
376
  rescue ::Faraday::Error => e
371
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
372
- raise ::Google::Cloud::Error.from_error(gapic_error)
377
+ begin
378
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
379
+ rescue ::Gapic::Rest::Error => gapic_error
380
+ raise ::Google::Cloud::Error.from_error gapic_error
381
+ end
373
382
  end
374
383
 
375
384
  ##
@@ -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
  ##
@@ -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
  ##
@@ -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
  ##
@@ -321,8 +324,11 @@ module Google
321
324
  return result
322
325
  end
323
326
  rescue ::Faraday::Error => e
324
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
325
- raise ::Google::Cloud::Error.from_error(gapic_error)
327
+ begin
328
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
329
+ rescue ::Gapic::Rest::Error => gapic_error
330
+ raise ::Google::Cloud::Error.from_error gapic_error
331
+ end
326
332
  end
327
333
 
328
334
  ##
@@ -395,8 +401,11 @@ module Google
395
401
  return result
396
402
  end
397
403
  rescue ::Faraday::Error => e
398
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
399
- raise ::Google::Cloud::Error.from_error(gapic_error)
404
+ begin
405
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
406
+ rescue ::Gapic::Rest::Error => gapic_error
407
+ raise ::Google::Cloud::Error.from_error gapic_error
408
+ end
400
409
  end
401
410
 
402
411
  ##
@@ -471,8 +480,11 @@ module Google
471
480
  return result
472
481
  end
473
482
  rescue ::Faraday::Error => e
474
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
475
- raise ::Google::Cloud::Error.from_error(gapic_error)
483
+ begin
484
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
485
+ rescue ::Gapic::Rest::Error => gapic_error
486
+ raise ::Google::Cloud::Error.from_error gapic_error
487
+ end
476
488
  end
477
489
 
478
490
  ##
@@ -536,8 +548,11 @@ module Google
536
548
  return result
537
549
  end
538
550
  rescue ::Faraday::Error => e
539
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
540
- raise ::Google::Cloud::Error.from_error(gapic_error)
551
+ begin
552
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
553
+ rescue ::Gapic::Rest::Error => gapic_error
554
+ raise ::Google::Cloud::Error.from_error gapic_error
555
+ end
541
556
  end
542
557
 
543
558
  ##
@@ -603,8 +618,11 @@ module Google
603
618
  return result
604
619
  end
605
620
  rescue ::Faraday::Error => e
606
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
607
- raise ::Google::Cloud::Error.from_error(gapic_error)
621
+ begin
622
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
623
+ rescue ::Gapic::Rest::Error => gapic_error
624
+ raise ::Google::Cloud::Error.from_error gapic_error
625
+ end
608
626
  end
609
627
 
610
628
  ##
@@ -679,8 +697,11 @@ module Google
679
697
  return result
680
698
  end
681
699
  rescue ::Faraday::Error => e
682
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
683
- raise ::Google::Cloud::Error.from_error(gapic_error)
700
+ begin
701
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
702
+ rescue ::Gapic::Rest::Error => gapic_error
703
+ raise ::Google::Cloud::Error.from_error gapic_error
704
+ end
684
705
  end
685
706
 
686
707
  ##
@@ -753,8 +774,11 @@ module Google
753
774
  return result
754
775
  end
755
776
  rescue ::Faraday::Error => e
756
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
757
- raise ::Google::Cloud::Error.from_error(gapic_error)
777
+ begin
778
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
779
+ rescue ::Gapic::Rest::Error => gapic_error
780
+ raise ::Google::Cloud::Error.from_error gapic_error
781
+ end
758
782
  end
759
783
 
760
784
  ##
@@ -831,8 +855,11 @@ module Google
831
855
  return result
832
856
  end
833
857
  rescue ::Faraday::Error => e
834
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
835
- raise ::Google::Cloud::Error.from_error(gapic_error)
858
+ begin
859
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
860
+ rescue ::Gapic::Rest::Error => gapic_error
861
+ raise ::Google::Cloud::Error.from_error gapic_error
862
+ end
836
863
  end
837
864
 
838
865
  ##
@@ -909,8 +936,11 @@ module Google
909
936
  return result
910
937
  end
911
938
  rescue ::Faraday::Error => e
912
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
913
- raise ::Google::Cloud::Error.from_error(gapic_error)
939
+ begin
940
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
941
+ rescue ::Gapic::Rest::Error => gapic_error
942
+ raise ::Google::Cloud::Error.from_error gapic_error
943
+ end
914
944
  end
915
945
 
916
946
  ##
@@ -989,8 +1019,11 @@ module Google
989
1019
  return result
990
1020
  end
991
1021
  rescue ::Faraday::Error => e
992
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
993
- raise ::Google::Cloud::Error.from_error(gapic_error)
1022
+ begin
1023
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1024
+ rescue ::Gapic::Rest::Error => gapic_error
1025
+ raise ::Google::Cloud::Error.from_error gapic_error
1026
+ end
994
1027
  end
995
1028
 
996
1029
  ##
@@ -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
  ##
@@ -294,8 +297,11 @@ module Google
294
297
  return result
295
298
  end
296
299
  rescue ::Faraday::Error => e
297
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
298
- raise ::Google::Cloud::Error.from_error(gapic_error)
300
+ begin
301
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
302
+ rescue ::Gapic::Rest::Error => gapic_error
303
+ raise ::Google::Cloud::Error.from_error gapic_error
304
+ end
299
305
  end
300
306
 
301
307
  ##
@@ -367,8 +373,11 @@ module Google
367
373
  return result
368
374
  end
369
375
  rescue ::Faraday::Error => e
370
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
371
- raise ::Google::Cloud::Error.from_error(gapic_error)
376
+ begin
377
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
378
+ rescue ::Gapic::Rest::Error => gapic_error
379
+ raise ::Google::Cloud::Error.from_error gapic_error
380
+ end
372
381
  end
373
382
 
374
383
  ##
@@ -439,8 +448,11 @@ module Google
439
448
  return result
440
449
  end
441
450
  rescue ::Faraday::Error => e
442
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
443
- raise ::Google::Cloud::Error.from_error(gapic_error)
451
+ begin
452
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
453
+ rescue ::Gapic::Rest::Error => gapic_error
454
+ raise ::Google::Cloud::Error.from_error gapic_error
455
+ end
444
456
  end
445
457
 
446
458
  ##
@@ -514,8 +526,11 @@ module Google
514
526
  return result
515
527
  end
516
528
  rescue ::Faraday::Error => e
517
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
518
- raise ::Google::Cloud::Error.from_error(gapic_error)
529
+ begin
530
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
531
+ rescue ::Gapic::Rest::Error => gapic_error
532
+ raise ::Google::Cloud::Error.from_error gapic_error
533
+ end
519
534
  end
520
535
 
521
536
  ##
@@ -589,8 +604,11 @@ module Google
589
604
  return result
590
605
  end
591
606
  rescue ::Faraday::Error => e
592
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
593
- raise ::Google::Cloud::Error.from_error(gapic_error)
607
+ begin
608
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
609
+ rescue ::Gapic::Rest::Error => gapic_error
610
+ raise ::Google::Cloud::Error.from_error gapic_error
611
+ end
594
612
  end
595
613
 
596
614
  ##
@@ -664,8 +682,11 @@ module Google
664
682
  return result
665
683
  end
666
684
  rescue ::Faraday::Error => e
667
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
668
- raise ::Google::Cloud::Error.from_error(gapic_error)
685
+ begin
686
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
687
+ rescue ::Gapic::Rest::Error => gapic_error
688
+ raise ::Google::Cloud::Error.from_error gapic_error
689
+ end
669
690
  end
670
691
 
671
692
  ##
@@ -739,8 +760,11 @@ module Google
739
760
  return result
740
761
  end
741
762
  rescue ::Faraday::Error => e
742
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
743
- raise ::Google::Cloud::Error.from_error(gapic_error)
763
+ begin
764
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
765
+ rescue ::Gapic::Rest::Error => gapic_error
766
+ raise ::Google::Cloud::Error.from_error gapic_error
767
+ end
744
768
  end
745
769
 
746
770
  ##
@@ -814,8 +838,11 @@ module Google
814
838
  return result
815
839
  end
816
840
  rescue ::Faraday::Error => e
817
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
818
- raise ::Google::Cloud::Error.from_error(gapic_error)
841
+ begin
842
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
843
+ rescue ::Gapic::Rest::Error => gapic_error
844
+ raise ::Google::Cloud::Error.from_error gapic_error
845
+ end
819
846
  end
820
847
 
821
848
  ##
@@ -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
  ##
@@ -225,8 +225,11 @@ module Google
225
225
  return result
226
226
  end
227
227
  rescue ::Faraday::Error => e
228
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
229
- raise ::Google::Cloud::Error.from_error(gapic_error)
228
+ begin
229
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
230
+ rescue ::Gapic::Rest::Error => gapic_error
231
+ raise ::Google::Cloud::Error.from_error gapic_error
232
+ end
230
233
  end
231
234
 
232
235
  ##
@@ -288,8 +291,11 @@ module Google
288
291
  return result
289
292
  end
290
293
  rescue ::Faraday::Error => e
291
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
292
- raise ::Google::Cloud::Error.from_error(gapic_error)
294
+ begin
295
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
296
+ rescue ::Gapic::Rest::Error => gapic_error
297
+ raise ::Google::Cloud::Error.from_error gapic_error
298
+ end
293
299
  end
294
300
 
295
301
  ##
@@ -361,8 +367,11 @@ module Google
361
367
  return result
362
368
  end
363
369
  rescue ::Faraday::Error => e
364
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
365
- raise ::Google::Cloud::Error.from_error(gapic_error)
370
+ begin
371
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
372
+ rescue ::Gapic::Rest::Error => gapic_error
373
+ raise ::Google::Cloud::Error.from_error gapic_error
374
+ end
366
375
  end
367
376
 
368
377
  ##
@@ -433,8 +442,11 @@ module Google
433
442
  return result
434
443
  end
435
444
  rescue ::Faraday::Error => e
436
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
437
- raise ::Google::Cloud::Error.from_error(gapic_error)
445
+ begin
446
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
447
+ rescue ::Gapic::Rest::Error => gapic_error
448
+ raise ::Google::Cloud::Error.from_error gapic_error
449
+ end
438
450
  end
439
451
 
440
452
  ##
@@ -508,8 +520,11 @@ module Google
508
520
  return result
509
521
  end
510
522
  rescue ::Faraday::Error => e
511
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
512
- raise ::Google::Cloud::Error.from_error(gapic_error)
523
+ begin
524
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
525
+ rescue ::Gapic::Rest::Error => gapic_error
526
+ raise ::Google::Cloud::Error.from_error gapic_error
527
+ end
513
528
  end
514
529
 
515
530
  ##
@@ -583,8 +598,11 @@ module Google
583
598
  return result
584
599
  end
585
600
  rescue ::Faraday::Error => e
586
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
587
- raise ::Google::Cloud::Error.from_error(gapic_error)
601
+ begin
602
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
603
+ rescue ::Gapic::Rest::Error => gapic_error
604
+ raise ::Google::Cloud::Error.from_error gapic_error
605
+ end
588
606
  end
589
607
 
590
608
  ##
@@ -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
  ##