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
@@ -236,8 +236,11 @@ module Google
236
236
  return result
237
237
  end
238
238
  rescue ::Faraday::Error => e
239
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
240
- raise ::Google::Cloud::Error.from_error(gapic_error)
239
+ begin
240
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
241
+ rescue ::Gapic::Rest::Error => gapic_error
242
+ raise ::Google::Cloud::Error.from_error gapic_error
243
+ end
241
244
  end
242
245
 
243
246
  ##
@@ -312,8 +315,11 @@ module Google
312
315
  return result
313
316
  end
314
317
  rescue ::Faraday::Error => e
315
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
316
- raise ::Google::Cloud::Error.from_error(gapic_error)
318
+ begin
319
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
320
+ rescue ::Gapic::Rest::Error => gapic_error
321
+ raise ::Google::Cloud::Error.from_error gapic_error
322
+ end
317
323
  end
318
324
 
319
325
  ##
@@ -377,8 +383,11 @@ module Google
377
383
  return result
378
384
  end
379
385
  rescue ::Faraday::Error => e
380
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
381
- raise ::Google::Cloud::Error.from_error(gapic_error)
386
+ begin
387
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
388
+ rescue ::Gapic::Rest::Error => gapic_error
389
+ raise ::Google::Cloud::Error.from_error gapic_error
390
+ end
382
391
  end
383
392
 
384
393
  ##
@@ -444,8 +453,11 @@ module Google
444
453
  return result
445
454
  end
446
455
  rescue ::Faraday::Error => e
447
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
448
- raise ::Google::Cloud::Error.from_error(gapic_error)
456
+ begin
457
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
458
+ rescue ::Gapic::Rest::Error => gapic_error
459
+ raise ::Google::Cloud::Error.from_error gapic_error
460
+ end
449
461
  end
450
462
 
451
463
  ##
@@ -520,8 +532,11 @@ module Google
520
532
  return result
521
533
  end
522
534
  rescue ::Faraday::Error => e
523
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
524
- raise ::Google::Cloud::Error.from_error(gapic_error)
535
+ begin
536
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
537
+ rescue ::Gapic::Rest::Error => gapic_error
538
+ raise ::Google::Cloud::Error.from_error gapic_error
539
+ end
525
540
  end
526
541
 
527
542
  ##
@@ -594,8 +609,11 @@ module Google
594
609
  return result
595
610
  end
596
611
  rescue ::Faraday::Error => e
597
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
598
- raise ::Google::Cloud::Error.from_error(gapic_error)
612
+ begin
613
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
614
+ rescue ::Gapic::Rest::Error => gapic_error
615
+ raise ::Google::Cloud::Error.from_error gapic_error
616
+ end
599
617
  end
600
618
 
601
619
  ##
@@ -661,8 +679,11 @@ module Google
661
679
  return result
662
680
  end
663
681
  rescue ::Faraday::Error => e
664
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
665
- raise ::Google::Cloud::Error.from_error(gapic_error)
682
+ begin
683
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
684
+ rescue ::Gapic::Rest::Error => gapic_error
685
+ raise ::Google::Cloud::Error.from_error gapic_error
686
+ end
666
687
  end
667
688
 
668
689
  ##
@@ -728,8 +749,11 @@ module Google
728
749
  return result
729
750
  end
730
751
  rescue ::Faraday::Error => e
731
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
732
- raise ::Google::Cloud::Error.from_error(gapic_error)
752
+ begin
753
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
754
+ rescue ::Gapic::Rest::Error => gapic_error
755
+ raise ::Google::Cloud::Error.from_error gapic_error
756
+ end
733
757
  end
734
758
 
735
759
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -210,8 +210,11 @@ module Google
210
210
  return result
211
211
  end
212
212
  rescue ::Faraday::Error => e
213
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
214
- raise ::Google::Cloud::Error.from_error(gapic_error)
213
+ begin
214
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
215
+ rescue ::Gapic::Rest::Error => gapic_error
216
+ raise ::Google::Cloud::Error.from_error gapic_error
217
+ end
215
218
  end
216
219
 
217
220
  ##
@@ -275,8 +278,11 @@ module Google
275
278
  return result
276
279
  end
277
280
  rescue ::Faraday::Error => e
278
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
279
- raise ::Google::Cloud::Error.from_error(gapic_error)
281
+ begin
282
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
283
+ rescue ::Gapic::Rest::Error => gapic_error
284
+ raise ::Google::Cloud::Error.from_error gapic_error
285
+ end
280
286
  end
281
287
 
282
288
  ##
@@ -349,8 +355,11 @@ module Google
349
355
  return result
350
356
  end
351
357
  rescue ::Faraday::Error => e
352
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
353
- raise ::Google::Cloud::Error.from_error(gapic_error)
358
+ begin
359
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
360
+ rescue ::Gapic::Rest::Error => gapic_error
361
+ raise ::Google::Cloud::Error.from_error gapic_error
362
+ end
354
363
  end
355
364
 
356
365
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -231,8 +231,11 @@ module Google
231
231
  return result
232
232
  end
233
233
  rescue ::Faraday::Error => e
234
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
235
- raise ::Google::Cloud::Error.from_error(gapic_error)
234
+ begin
235
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
236
+ rescue ::Gapic::Rest::Error => gapic_error
237
+ raise ::Google::Cloud::Error.from_error gapic_error
238
+ end
236
239
  end
237
240
 
238
241
  ##
@@ -307,8 +310,11 @@ module Google
307
310
  return result
308
311
  end
309
312
  rescue ::Faraday::Error => e
310
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
311
- raise ::Google::Cloud::Error.from_error(gapic_error)
313
+ begin
314
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
315
+ rescue ::Gapic::Rest::Error => gapic_error
316
+ raise ::Google::Cloud::Error.from_error gapic_error
317
+ end
312
318
  end
313
319
 
314
320
  ##
@@ -372,8 +378,11 @@ module Google
372
378
  return result
373
379
  end
374
380
  rescue ::Faraday::Error => e
375
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
376
- raise ::Google::Cloud::Error.from_error(gapic_error)
381
+ begin
382
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
383
+ rescue ::Gapic::Rest::Error => gapic_error
384
+ raise ::Google::Cloud::Error.from_error gapic_error
385
+ end
377
386
  end
378
387
 
379
388
  ##
@@ -448,8 +457,11 @@ module Google
448
457
  return result
449
458
  end
450
459
  rescue ::Faraday::Error => e
451
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
452
- raise ::Google::Cloud::Error.from_error(gapic_error)
460
+ begin
461
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
462
+ rescue ::Gapic::Rest::Error => gapic_error
463
+ raise ::Google::Cloud::Error.from_error gapic_error
464
+ end
453
465
  end
454
466
 
455
467
  ##
@@ -522,8 +534,11 @@ module Google
522
534
  return result
523
535
  end
524
536
  rescue ::Faraday::Error => e
525
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
526
- raise ::Google::Cloud::Error.from_error(gapic_error)
537
+ begin
538
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
539
+ rescue ::Gapic::Rest::Error => gapic_error
540
+ raise ::Google::Cloud::Error.from_error gapic_error
541
+ end
527
542
  end
528
543
 
529
544
  ##
@@ -600,8 +615,11 @@ module Google
600
615
  return result
601
616
  end
602
617
  rescue ::Faraday::Error => e
603
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
604
- raise ::Google::Cloud::Error.from_error(gapic_error)
618
+ begin
619
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
620
+ rescue ::Gapic::Rest::Error => gapic_error
621
+ raise ::Google::Cloud::Error.from_error gapic_error
622
+ end
605
623
  end
606
624
 
607
625
  ##
@@ -667,8 +685,11 @@ module Google
667
685
  return result
668
686
  end
669
687
  rescue ::Faraday::Error => e
670
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
671
- raise ::Google::Cloud::Error.from_error(gapic_error)
688
+ begin
689
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
690
+ rescue ::Gapic::Rest::Error => gapic_error
691
+ raise ::Google::Cloud::Error.from_error gapic_error
692
+ end
672
693
  end
673
694
 
674
695
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -240,8 +240,11 @@ module Google
240
240
  return result
241
241
  end
242
242
  rescue ::Faraday::Error => e
243
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
244
- raise ::Google::Cloud::Error.from_error(gapic_error)
243
+ begin
244
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
245
+ rescue ::Gapic::Rest::Error => gapic_error
246
+ raise ::Google::Cloud::Error.from_error gapic_error
247
+ end
245
248
  end
246
249
 
247
250
  ##
@@ -313,8 +316,11 @@ module Google
313
316
  return result
314
317
  end
315
318
  rescue ::Faraday::Error => e
316
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
317
- raise ::Google::Cloud::Error.from_error(gapic_error)
319
+ begin
320
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
321
+ rescue ::Gapic::Rest::Error => gapic_error
322
+ raise ::Google::Cloud::Error.from_error gapic_error
323
+ end
318
324
  end
319
325
 
320
326
  ##
@@ -384,8 +390,11 @@ module Google
384
390
  return result
385
391
  end
386
392
  rescue ::Faraday::Error => e
387
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
388
- raise ::Google::Cloud::Error.from_error(gapic_error)
393
+ begin
394
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
395
+ rescue ::Gapic::Rest::Error => gapic_error
396
+ raise ::Google::Cloud::Error.from_error gapic_error
397
+ end
389
398
  end
390
399
 
391
400
  ##
@@ -457,8 +466,11 @@ module Google
457
466
  return result
458
467
  end
459
468
  rescue ::Faraday::Error => e
460
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
461
- raise ::Google::Cloud::Error.from_error(gapic_error)
469
+ begin
470
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
471
+ rescue ::Gapic::Rest::Error => gapic_error
472
+ raise ::Google::Cloud::Error.from_error gapic_error
473
+ end
462
474
  end
463
475
 
464
476
  ##
@@ -518,8 +530,11 @@ module Google
518
530
  return result
519
531
  end
520
532
  rescue ::Faraday::Error => e
521
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
522
- raise ::Google::Cloud::Error.from_error(gapic_error)
533
+ begin
534
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
535
+ rescue ::Gapic::Rest::Error => gapic_error
536
+ raise ::Google::Cloud::Error.from_error gapic_error
537
+ end
523
538
  end
524
539
 
525
540
  ##
@@ -579,8 +594,11 @@ module Google
579
594
  return result
580
595
  end
581
596
  rescue ::Faraday::Error => e
582
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
583
- raise ::Google::Cloud::Error.from_error(gapic_error)
597
+ begin
598
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
599
+ rescue ::Gapic::Rest::Error => gapic_error
600
+ raise ::Google::Cloud::Error.from_error gapic_error
601
+ end
584
602
  end
585
603
 
586
604
  ##
@@ -651,8 +669,11 @@ module Google
651
669
  return result
652
670
  end
653
671
  rescue ::Faraday::Error => e
654
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
655
- raise ::Google::Cloud::Error.from_error(gapic_error)
672
+ begin
673
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
674
+ rescue ::Gapic::Rest::Error => gapic_error
675
+ raise ::Google::Cloud::Error.from_error gapic_error
676
+ end
656
677
  end
657
678
 
658
679
  ##
@@ -725,8 +746,11 @@ module Google
725
746
  return result
726
747
  end
727
748
  rescue ::Faraday::Error => e
728
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
729
- raise ::Google::Cloud::Error.from_error(gapic_error)
749
+ begin
750
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
751
+ rescue ::Gapic::Rest::Error => gapic_error
752
+ raise ::Google::Cloud::Error.from_error gapic_error
753
+ end
730
754
  end
731
755
 
732
756
  ##
@@ -798,8 +822,11 @@ module Google
798
822
  return result
799
823
  end
800
824
  rescue ::Faraday::Error => e
801
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
802
- raise ::Google::Cloud::Error.from_error(gapic_error)
825
+ begin
826
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
827
+ rescue ::Gapic::Rest::Error => gapic_error
828
+ raise ::Google::Cloud::Error.from_error gapic_error
829
+ end
803
830
  end
804
831
 
805
832
  ##
@@ -871,8 +898,11 @@ module Google
871
898
  return result
872
899
  end
873
900
  rescue ::Faraday::Error => e
874
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
875
- raise ::Google::Cloud::Error.from_error(gapic_error)
901
+ begin
902
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
903
+ rescue ::Gapic::Rest::Error => gapic_error
904
+ raise ::Google::Cloud::Error.from_error gapic_error
905
+ end
876
906
  end
877
907
 
878
908
  ##
@@ -944,8 +974,11 @@ module Google
944
974
  return result
945
975
  end
946
976
  rescue ::Faraday::Error => e
947
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
948
- raise ::Google::Cloud::Error.from_error(gapic_error)
977
+ begin
978
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
979
+ rescue ::Gapic::Rest::Error => gapic_error
980
+ raise ::Google::Cloud::Error.from_error gapic_error
981
+ end
949
982
  end
950
983
 
951
984
  ##
@@ -1017,8 +1050,11 @@ module Google
1017
1050
  return result
1018
1051
  end
1019
1052
  rescue ::Faraday::Error => e
1020
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1021
- raise ::Google::Cloud::Error.from_error(gapic_error)
1053
+ begin
1054
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1055
+ rescue ::Gapic::Rest::Error => gapic_error
1056
+ raise ::Google::Cloud::Error.from_error gapic_error
1057
+ end
1022
1058
  end
1023
1059
 
1024
1060
  ##
@@ -1090,8 +1126,11 @@ module Google
1090
1126
  return result
1091
1127
  end
1092
1128
  rescue ::Faraday::Error => e
1093
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1094
- raise ::Google::Cloud::Error.from_error(gapic_error)
1129
+ begin
1130
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1131
+ rescue ::Gapic::Rest::Error => gapic_error
1132
+ raise ::Google::Cloud::Error.from_error gapic_error
1133
+ end
1095
1134
  end
1096
1135
 
1097
1136
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -223,8 +223,11 @@ module Google
223
223
  return result
224
224
  end
225
225
  rescue ::Faraday::Error => e
226
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
227
- raise ::Google::Cloud::Error.from_error(gapic_error)
226
+ begin
227
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
228
+ rescue ::Gapic::Rest::Error => gapic_error
229
+ raise ::Google::Cloud::Error.from_error gapic_error
230
+ end
228
231
  end
229
232
 
230
233
  ##
@@ -286,8 +289,11 @@ module Google
286
289
  return result
287
290
  end
288
291
  rescue ::Faraday::Error => e
289
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
290
- raise ::Google::Cloud::Error.from_error(gapic_error)
292
+ begin
293
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
294
+ rescue ::Gapic::Rest::Error => gapic_error
295
+ raise ::Google::Cloud::Error.from_error gapic_error
296
+ end
291
297
  end
292
298
 
293
299
  ##
@@ -359,8 +365,11 @@ module Google
359
365
  return result
360
366
  end
361
367
  rescue ::Faraday::Error => e
362
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
363
- raise ::Google::Cloud::Error.from_error(gapic_error)
368
+ begin
369
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
370
+ rescue ::Gapic::Rest::Error => gapic_error
371
+ raise ::Google::Cloud::Error.from_error gapic_error
372
+ end
364
373
  end
365
374
 
366
375
  ##
@@ -431,8 +440,11 @@ module Google
431
440
  return result
432
441
  end
433
442
  rescue ::Faraday::Error => e
434
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
435
- raise ::Google::Cloud::Error.from_error(gapic_error)
443
+ begin
444
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
445
+ rescue ::Gapic::Rest::Error => gapic_error
446
+ raise ::Google::Cloud::Error.from_error gapic_error
447
+ end
436
448
  end
437
449
 
438
450
  ##
@@ -506,8 +518,11 @@ module Google
506
518
  return result
507
519
  end
508
520
  rescue ::Faraday::Error => e
509
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
510
- raise ::Google::Cloud::Error.from_error(gapic_error)
521
+ begin
522
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
523
+ rescue ::Gapic::Rest::Error => gapic_error
524
+ raise ::Google::Cloud::Error.from_error gapic_error
525
+ end
511
526
  end
512
527
 
513
528
  ##
@@ -35,7 +35,7 @@ module Google
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: false
39
39
  end
40
40
 
41
41
  ##
@@ -229,8 +229,11 @@ module Google
229
229
  return result
230
230
  end
231
231
  rescue ::Faraday::Error => e
232
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
233
- raise ::Google::Cloud::Error.from_error(gapic_error)
232
+ begin
233
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
234
+ rescue ::Gapic::Rest::Error => gapic_error
235
+ raise ::Google::Cloud::Error.from_error gapic_error
236
+ end
234
237
  end
235
238
 
236
239
  ##
@@ -305,8 +308,11 @@ module Google
305
308
  return result
306
309
  end
307
310
  rescue ::Faraday::Error => e
308
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
309
- raise ::Google::Cloud::Error.from_error(gapic_error)
311
+ begin
312
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
313
+ rescue ::Gapic::Rest::Error => gapic_error
314
+ raise ::Google::Cloud::Error.from_error gapic_error
315
+ end
310
316
  end
311
317
 
312
318
  ##
@@ -370,8 +376,11 @@ module Google
370
376
  return result
371
377
  end
372
378
  rescue ::Faraday::Error => e
373
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
374
- raise ::Google::Cloud::Error.from_error(gapic_error)
379
+ begin
380
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
381
+ rescue ::Gapic::Rest::Error => gapic_error
382
+ raise ::Google::Cloud::Error.from_error gapic_error
383
+ end
375
384
  end
376
385
 
377
386
  ##
@@ -446,8 +455,11 @@ module Google
446
455
  return result
447
456
  end
448
457
  rescue ::Faraday::Error => e
449
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
450
- raise ::Google::Cloud::Error.from_error(gapic_error)
458
+ begin
459
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
460
+ rescue ::Gapic::Rest::Error => gapic_error
461
+ raise ::Google::Cloud::Error.from_error gapic_error
462
+ end
451
463
  end
452
464
 
453
465
  ##
@@ -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
  ##
@@ -598,8 +613,11 @@ module Google
598
613
  return result
599
614
  end
600
615
  rescue ::Faraday::Error => e
601
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
602
- raise ::Google::Cloud::Error.from_error(gapic_error)
616
+ begin
617
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
618
+ rescue ::Gapic::Rest::Error => gapic_error
619
+ raise ::Google::Cloud::Error.from_error gapic_error
620
+ end
603
621
  end
604
622
 
605
623
  ##
@@ -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
  ##