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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0aaa16fd7afb4567283bb33beebd318db50ff76376e50533a50459d454a012f
4
- data.tar.gz: 2124b114f86fd09ab529e297ef8e4cd3d289d73aae4605a765a9435b581550f4
3
+ metadata.gz: 14aa233f2dad3703db8fcb687d846f5d4d6b84bfca70e40da9149fd3fcace30b
4
+ data.tar.gz: 73e8e8e5252c3be033ee58dad81bbf522c53979fbe5b9ee88a5e07a81f0e9d92
5
5
  SHA512:
6
- metadata.gz: cbcf833d82e49dd635485752e931a06cf5fa9e748127a5a53cab594e8605c74c8366744abce1ff81d798a34ca7789859d952c894729b5bb90c0d965b27ea6ae0
7
- data.tar.gz: ed6f83765dbe2269082400f69c6e344b5dece40392f9c6536195f621b520c22982a5752640cc328cc607a91153a3e7ca6613a228dd144e0d9d8e0ea9bb506391
6
+ metadata.gz: 2b749a22253c9faafb9303a4280c687405f2a01984d9fb09ecfb8709bc23006613c00b2bc05c54833c069250c4bb6c8145d7bcb347c25d1fe054876c57951b69
7
+ data.tar.gz: 830389ad60f5299b839af1b9e87d43d5a9944a4f250f4d86ef7749b30dd130ae641e62a45235a30ad6a4e2e3a68203d7e0f2215b245f433e452873dbecbb6d27
@@ -212,8 +212,11 @@ module Google
212
212
  return result
213
213
  end
214
214
  rescue ::Faraday::Error => e
215
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
216
- raise ::Google::Cloud::Error.from_error(gapic_error)
215
+ begin
216
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
217
+ rescue ::Gapic::Rest::Error => gapic_error
218
+ raise ::Google::Cloud::Error.from_error gapic_error
219
+ end
217
220
  end
218
221
 
219
222
  ##
@@ -277,8 +280,11 @@ module Google
277
280
  return result
278
281
  end
279
282
  rescue ::Faraday::Error => e
280
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
281
- raise ::Google::Cloud::Error.from_error(gapic_error)
283
+ begin
284
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
285
+ rescue ::Gapic::Rest::Error => gapic_error
286
+ raise ::Google::Cloud::Error.from_error gapic_error
287
+ end
282
288
  end
283
289
 
284
290
  ##
@@ -351,8 +357,11 @@ module Google
351
357
  return result
352
358
  end
353
359
  rescue ::Faraday::Error => e
354
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
355
- raise ::Google::Cloud::Error.from_error(gapic_error)
360
+ begin
361
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
362
+ rescue ::Gapic::Rest::Error => gapic_error
363
+ raise ::Google::Cloud::Error.from_error gapic_error
364
+ end
356
365
  end
357
366
 
358
367
  ##
@@ -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
  ##
@@ -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
  ##
@@ -678,8 +696,11 @@ module Google
678
696
  return result
679
697
  end
680
698
  rescue ::Faraday::Error => e
681
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
682
- raise ::Google::Cloud::Error.from_error(gapic_error)
699
+ begin
700
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
701
+ rescue ::Gapic::Rest::Error => gapic_error
702
+ raise ::Google::Cloud::Error.from_error gapic_error
703
+ end
683
704
  end
684
705
 
685
706
  ##
@@ -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
  ##
@@ -233,8 +233,11 @@ module Google
233
233
  return result
234
234
  end
235
235
  rescue ::Faraday::Error => e
236
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
237
- raise ::Google::Cloud::Error.from_error(gapic_error)
236
+ begin
237
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
238
+ rescue ::Gapic::Rest::Error => gapic_error
239
+ raise ::Google::Cloud::Error.from_error gapic_error
240
+ end
238
241
  end
239
242
 
240
243
  ##
@@ -306,8 +309,11 @@ module Google
306
309
  return result
307
310
  end
308
311
  rescue ::Faraday::Error => e
309
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
310
- raise ::Google::Cloud::Error.from_error(gapic_error)
312
+ begin
313
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
314
+ rescue ::Gapic::Rest::Error => gapic_error
315
+ raise ::Google::Cloud::Error.from_error gapic_error
316
+ end
311
317
  end
312
318
 
313
319
  ##
@@ -381,8 +387,11 @@ module Google
381
387
  return result
382
388
  end
383
389
  rescue ::Faraday::Error => e
384
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
385
- raise ::Google::Cloud::Error.from_error(gapic_error)
390
+ begin
391
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
392
+ rescue ::Gapic::Rest::Error => gapic_error
393
+ raise ::Google::Cloud::Error.from_error gapic_error
394
+ end
386
395
  end
387
396
 
388
397
  ##
@@ -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
  ##
@@ -517,8 +529,11 @@ module Google
517
529
  return result
518
530
  end
519
531
  rescue ::Faraday::Error => e
520
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
521
- raise ::Google::Cloud::Error.from_error(gapic_error)
532
+ begin
533
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
534
+ rescue ::Gapic::Rest::Error => gapic_error
535
+ raise ::Google::Cloud::Error.from_error gapic_error
536
+ end
522
537
  end
523
538
 
524
539
  ##
@@ -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
  ##
@@ -249,8 +249,11 @@ module Google
249
249
  return result
250
250
  end
251
251
  rescue ::Faraday::Error => e
252
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
253
- raise ::Google::Cloud::Error.from_error(gapic_error)
252
+ begin
253
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
254
+ rescue ::Gapic::Rest::Error => gapic_error
255
+ raise ::Google::Cloud::Error.from_error gapic_error
256
+ end
254
257
  end
255
258
 
256
259
  ##
@@ -323,8 +326,11 @@ module Google
323
326
  return result
324
327
  end
325
328
  rescue ::Faraday::Error => e
326
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
327
- raise ::Google::Cloud::Error.from_error(gapic_error)
329
+ begin
330
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
331
+ rescue ::Gapic::Rest::Error => gapic_error
332
+ raise ::Google::Cloud::Error.from_error gapic_error
333
+ end
328
334
  end
329
335
 
330
336
  ##
@@ -396,8 +402,11 @@ module Google
396
402
  return result
397
403
  end
398
404
  rescue ::Faraday::Error => e
399
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
400
- raise ::Google::Cloud::Error.from_error(gapic_error)
405
+ begin
406
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
407
+ rescue ::Gapic::Rest::Error => gapic_error
408
+ raise ::Google::Cloud::Error.from_error gapic_error
409
+ end
401
410
  end
402
411
 
403
412
  ##
@@ -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
  ##
@@ -534,8 +546,11 @@ module Google
534
546
  return result
535
547
  end
536
548
  rescue ::Faraday::Error => e
537
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
538
- raise ::Google::Cloud::Error.from_error(gapic_error)
549
+ begin
550
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
551
+ rescue ::Gapic::Rest::Error => gapic_error
552
+ raise ::Google::Cloud::Error.from_error gapic_error
553
+ end
539
554
  end
540
555
 
541
556
  ##
@@ -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
  ##
@@ -663,8 +681,11 @@ module Google
663
681
  return result
664
682
  end
665
683
  rescue ::Faraday::Error => e
666
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
667
- raise ::Google::Cloud::Error.from_error(gapic_error)
684
+ begin
685
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
686
+ rescue ::Gapic::Rest::Error => gapic_error
687
+ raise ::Google::Cloud::Error.from_error gapic_error
688
+ end
668
689
  end
669
690
 
670
691
  ##
@@ -736,8 +757,11 @@ module Google
736
757
  return result
737
758
  end
738
759
  rescue ::Faraday::Error => e
739
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
740
- raise ::Google::Cloud::Error.from_error(gapic_error)
760
+ begin
761
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
762
+ rescue ::Gapic::Rest::Error => gapic_error
763
+ raise ::Google::Cloud::Error.from_error gapic_error
764
+ end
741
765
  end
742
766
 
743
767
  ##
@@ -808,8 +832,11 @@ module Google
808
832
  return result
809
833
  end
810
834
  rescue ::Faraday::Error => e
811
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
812
- raise ::Google::Cloud::Error.from_error(gapic_error)
835
+ begin
836
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
837
+ rescue ::Gapic::Rest::Error => gapic_error
838
+ raise ::Google::Cloud::Error.from_error gapic_error
839
+ end
813
840
  end
814
841
 
815
842
  ##
@@ -883,8 +910,11 @@ module Google
883
910
  return result
884
911
  end
885
912
  rescue ::Faraday::Error => e
886
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
887
- raise ::Google::Cloud::Error.from_error(gapic_error)
913
+ begin
914
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
915
+ rescue ::Gapic::Rest::Error => gapic_error
916
+ raise ::Google::Cloud::Error.from_error gapic_error
917
+ end
888
918
  end
889
919
 
890
920
  ##
@@ -958,8 +988,11 @@ module Google
958
988
  return result
959
989
  end
960
990
  rescue ::Faraday::Error => e
961
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
962
- raise ::Google::Cloud::Error.from_error(gapic_error)
991
+ begin
992
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
993
+ rescue ::Gapic::Rest::Error => gapic_error
994
+ raise ::Google::Cloud::Error.from_error gapic_error
995
+ end
963
996
  end
964
997
 
965
998
  ##
@@ -1023,8 +1056,11 @@ module Google
1023
1056
  return result
1024
1057
  end
1025
1058
  rescue ::Faraday::Error => e
1026
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1027
- raise ::Google::Cloud::Error.from_error(gapic_error)
1059
+ begin
1060
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1061
+ rescue ::Gapic::Rest::Error => gapic_error
1062
+ raise ::Google::Cloud::Error.from_error gapic_error
1063
+ end
1028
1064
  end
1029
1065
 
1030
1066
  ##
@@ -1098,8 +1134,11 @@ module Google
1098
1134
  return result
1099
1135
  end
1100
1136
  rescue ::Faraday::Error => e
1101
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1102
- raise ::Google::Cloud::Error.from_error(gapic_error)
1137
+ begin
1138
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1139
+ rescue ::Gapic::Rest::Error => gapic_error
1140
+ raise ::Google::Cloud::Error.from_error gapic_error
1141
+ end
1103
1142
  end
1104
1143
 
1105
1144
  ##
@@ -1173,8 +1212,11 @@ module Google
1173
1212
  return result
1174
1213
  end
1175
1214
  rescue ::Faraday::Error => e
1176
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1177
- raise ::Google::Cloud::Error.from_error(gapic_error)
1215
+ begin
1216
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1217
+ rescue ::Gapic::Rest::Error => gapic_error
1218
+ raise ::Google::Cloud::Error.from_error gapic_error
1219
+ end
1178
1220
  end
1179
1221
 
1180
1222
  ##
@@ -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
  ##