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
@@ -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
  ##
@@ -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
  ##
@@ -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
  ##
@@ -224,8 +224,11 @@ module Google
224
224
  return result
225
225
  end
226
226
  rescue ::Faraday::Error => e
227
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
228
- raise ::Google::Cloud::Error.from_error(gapic_error)
227
+ begin
228
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
229
+ rescue ::Gapic::Rest::Error => gapic_error
230
+ raise ::Google::Cloud::Error.from_error gapic_error
231
+ end
229
232
  end
230
233
 
231
234
  ##
@@ -289,8 +292,11 @@ module Google
289
292
  return result
290
293
  end
291
294
  rescue ::Faraday::Error => e
292
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
293
- raise ::Google::Cloud::Error.from_error(gapic_error)
295
+ begin
296
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
297
+ rescue ::Gapic::Rest::Error => gapic_error
298
+ raise ::Google::Cloud::Error.from_error gapic_error
299
+ end
294
300
  end
295
301
 
296
302
  ##
@@ -365,8 +371,11 @@ module Google
365
371
  return result
366
372
  end
367
373
  rescue ::Faraday::Error => e
368
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
369
- raise ::Google::Cloud::Error.from_error(gapic_error)
374
+ begin
375
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
376
+ rescue ::Gapic::Rest::Error => gapic_error
377
+ raise ::Google::Cloud::Error.from_error gapic_error
378
+ end
370
379
  end
371
380
 
372
381
  ##
@@ -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
  ##
@@ -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
  ##
@@ -266,8 +266,11 @@ module Google
266
266
  return result
267
267
  end
268
268
  rescue ::Faraday::Error => e
269
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
270
- raise ::Google::Cloud::Error.from_error(gapic_error)
269
+ begin
270
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
271
+ rescue ::Gapic::Rest::Error => gapic_error
272
+ raise ::Google::Cloud::Error.from_error gapic_error
273
+ end
271
274
  end
272
275
 
273
276
  ##
@@ -348,8 +351,11 @@ module Google
348
351
  return result
349
352
  end
350
353
  rescue ::Faraday::Error => e
351
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
352
- raise ::Google::Cloud::Error.from_error(gapic_error)
354
+ begin
355
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
356
+ rescue ::Gapic::Rest::Error => gapic_error
357
+ raise ::Google::Cloud::Error.from_error gapic_error
358
+ end
353
359
  end
354
360
 
355
361
  ##
@@ -426,8 +432,11 @@ module Google
426
432
  return result
427
433
  end
428
434
  rescue ::Faraday::Error => e
429
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
430
- raise ::Google::Cloud::Error.from_error(gapic_error)
435
+ begin
436
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
437
+ rescue ::Gapic::Rest::Error => gapic_error
438
+ raise ::Google::Cloud::Error.from_error gapic_error
439
+ end
431
440
  end
432
441
 
433
442
  ##
@@ -502,8 +511,11 @@ module Google
502
511
  return result
503
512
  end
504
513
  rescue ::Faraday::Error => e
505
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
506
- raise ::Google::Cloud::Error.from_error(gapic_error)
514
+ begin
515
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
516
+ rescue ::Gapic::Rest::Error => gapic_error
517
+ raise ::Google::Cloud::Error.from_error gapic_error
518
+ end
507
519
  end
508
520
 
509
521
  ##
@@ -567,8 +579,11 @@ module Google
567
579
  return result
568
580
  end
569
581
  rescue ::Faraday::Error => e
570
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
571
- raise ::Google::Cloud::Error.from_error(gapic_error)
582
+ begin
583
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
584
+ rescue ::Gapic::Rest::Error => gapic_error
585
+ raise ::Google::Cloud::Error.from_error gapic_error
586
+ end
572
587
  end
573
588
 
574
589
  ##
@@ -634,8 +649,11 @@ module Google
634
649
  return result
635
650
  end
636
651
  rescue ::Faraday::Error => e
637
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
638
- raise ::Google::Cloud::Error.from_error(gapic_error)
652
+ begin
653
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
654
+ rescue ::Gapic::Rest::Error => gapic_error
655
+ raise ::Google::Cloud::Error.from_error gapic_error
656
+ end
639
657
  end
640
658
 
641
659
  ##
@@ -699,8 +717,11 @@ module Google
699
717
  return result
700
718
  end
701
719
  rescue ::Faraday::Error => e
702
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
703
- raise ::Google::Cloud::Error.from_error(gapic_error)
720
+ begin
721
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
722
+ rescue ::Gapic::Rest::Error => gapic_error
723
+ raise ::Google::Cloud::Error.from_error gapic_error
724
+ end
704
725
  end
705
726
 
706
727
  ##
@@ -766,8 +787,11 @@ module Google
766
787
  return result
767
788
  end
768
789
  rescue ::Faraday::Error => e
769
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
770
- raise ::Google::Cloud::Error.from_error(gapic_error)
790
+ begin
791
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
792
+ rescue ::Gapic::Rest::Error => gapic_error
793
+ raise ::Google::Cloud::Error.from_error gapic_error
794
+ end
771
795
  end
772
796
 
773
797
  ##
@@ -833,8 +857,11 @@ module Google
833
857
  return result
834
858
  end
835
859
  rescue ::Faraday::Error => e
836
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
837
- raise ::Google::Cloud::Error.from_error(gapic_error)
860
+ begin
861
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
862
+ rescue ::Gapic::Rest::Error => gapic_error
863
+ raise ::Google::Cloud::Error.from_error gapic_error
864
+ end
838
865
  end
839
866
 
840
867
  ##
@@ -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
  ##
@@ -983,8 +1013,11 @@ module Google
983
1013
  return result
984
1014
  end
985
1015
  rescue ::Faraday::Error => e
986
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
987
- raise ::Google::Cloud::Error.from_error(gapic_error)
1016
+ begin
1017
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1018
+ rescue ::Gapic::Rest::Error => gapic_error
1019
+ raise ::Google::Cloud::Error.from_error gapic_error
1020
+ end
988
1021
  end
989
1022
 
990
1023
  ##
@@ -1061,8 +1094,11 @@ module Google
1061
1094
  return result
1062
1095
  end
1063
1096
  rescue ::Faraday::Error => e
1064
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1065
- raise ::Google::Cloud::Error.from_error(gapic_error)
1097
+ begin
1098
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1099
+ rescue ::Gapic::Rest::Error => gapic_error
1100
+ raise ::Google::Cloud::Error.from_error gapic_error
1101
+ end
1066
1102
  end
1067
1103
 
1068
1104
  ##
@@ -1141,8 +1177,11 @@ module Google
1141
1177
  return result
1142
1178
  end
1143
1179
  rescue ::Faraday::Error => e
1144
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1145
- raise ::Google::Cloud::Error.from_error(gapic_error)
1180
+ begin
1181
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1182
+ rescue ::Gapic::Rest::Error => gapic_error
1183
+ raise ::Google::Cloud::Error.from_error gapic_error
1184
+ end
1146
1185
  end
1147
1186
 
1148
1187
  ##
@@ -1219,8 +1258,11 @@ module Google
1219
1258
  return result
1220
1259
  end
1221
1260
  rescue ::Faraday::Error => e
1222
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1223
- raise ::Google::Cloud::Error.from_error(gapic_error)
1261
+ begin
1262
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1263
+ rescue ::Gapic::Rest::Error => gapic_error
1264
+ raise ::Google::Cloud::Error.from_error gapic_error
1265
+ end
1224
1266
  end
1225
1267
 
1226
1268
  ##
@@ -1297,8 +1339,11 @@ module Google
1297
1339
  return result
1298
1340
  end
1299
1341
  rescue ::Faraday::Error => e
1300
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1301
- raise ::Google::Cloud::Error.from_error(gapic_error)
1342
+ begin
1343
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1344
+ rescue ::Gapic::Rest::Error => gapic_error
1345
+ raise ::Google::Cloud::Error.from_error gapic_error
1346
+ end
1302
1347
  end
1303
1348
 
1304
1349
  ##
@@ -1364,8 +1409,11 @@ module Google
1364
1409
  return result
1365
1410
  end
1366
1411
  rescue ::Faraday::Error => e
1367
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1368
- raise ::Google::Cloud::Error.from_error(gapic_error)
1412
+ begin
1413
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1414
+ rescue ::Gapic::Rest::Error => gapic_error
1415
+ raise ::Google::Cloud::Error.from_error gapic_error
1416
+ end
1369
1417
  end
1370
1418
 
1371
1419
  ##
@@ -1431,8 +1479,11 @@ module Google
1431
1479
  return result
1432
1480
  end
1433
1481
  rescue ::Faraday::Error => e
1434
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1435
- raise ::Google::Cloud::Error.from_error(gapic_error)
1482
+ begin
1483
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
1484
+ rescue ::Gapic::Rest::Error => gapic_error
1485
+ raise ::Google::Cloud::Error.from_error gapic_error
1486
+ end
1436
1487
  end
1437
1488
 
1438
1489
  ##
@@ -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
  ##
@@ -224,8 +224,11 @@ module Google
224
224
  return result
225
225
  end
226
226
  rescue ::Faraday::Error => e
227
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
228
- raise ::Google::Cloud::Error.from_error(gapic_error)
227
+ begin
228
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
229
+ rescue ::Gapic::Rest::Error => gapic_error
230
+ raise ::Google::Cloud::Error.from_error gapic_error
231
+ end
229
232
  end
230
233
 
231
234
  ##
@@ -289,8 +292,11 @@ module Google
289
292
  return result
290
293
  end
291
294
  rescue ::Faraday::Error => e
292
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
293
- raise ::Google::Cloud::Error.from_error(gapic_error)
295
+ begin
296
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
297
+ rescue ::Gapic::Rest::Error => gapic_error
298
+ raise ::Google::Cloud::Error.from_error gapic_error
299
+ end
294
300
  end
295
301
 
296
302
  ##
@@ -365,8 +371,11 @@ module Google
365
371
  return result
366
372
  end
367
373
  rescue ::Faraday::Error => e
368
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
369
- raise ::Google::Cloud::Error.from_error(gapic_error)
374
+ begin
375
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
376
+ rescue ::Gapic::Rest::Error => gapic_error
377
+ raise ::Google::Cloud::Error.from_error gapic_error
378
+ end
370
379
  end
371
380
 
372
381
  ##
@@ -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
  ##
@@ -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
  ##
@@ -200,8 +200,11 @@ module Google
200
200
  return result
201
201
  end
202
202
  rescue ::Faraday::Error => e
203
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
204
- raise ::Google::Cloud::Error.from_error(gapic_error)
203
+ begin
204
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
205
+ rescue ::Gapic::Rest::Error => gapic_error
206
+ raise ::Google::Cloud::Error.from_error gapic_error
207
+ end
205
208
  end
206
209
 
207
210
  ##
@@ -265,8 +268,11 @@ module Google
265
268
  return result
266
269
  end
267
270
  rescue ::Faraday::Error => e
268
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
269
- raise ::Google::Cloud::Error.from_error(gapic_error)
271
+ begin
272
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
273
+ rescue ::Gapic::Rest::Error => gapic_error
274
+ raise ::Google::Cloud::Error.from_error gapic_error
275
+ end
270
276
  end
271
277
 
272
278
  ##
@@ -339,8 +345,11 @@ module Google
339
345
  return result
340
346
  end
341
347
  rescue ::Faraday::Error => e
342
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
343
- raise ::Google::Cloud::Error.from_error(gapic_error)
348
+ begin
349
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
350
+ rescue ::Gapic::Rest::Error => gapic_error
351
+ raise ::Google::Cloud::Error.from_error gapic_error
352
+ end
344
353
  end
345
354
 
346
355
  ##
@@ -404,8 +413,11 @@ module Google
404
413
  return result
405
414
  end
406
415
  rescue ::Faraday::Error => e
407
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
408
- raise ::Google::Cloud::Error.from_error(gapic_error)
416
+ begin
417
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
418
+ rescue ::Gapic::Rest::Error => gapic_error
419
+ raise ::Google::Cloud::Error.from_error gapic_error
420
+ end
409
421
  end
410
422
 
411
423
  ##
@@ -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
  ##
@@ -226,8 +226,11 @@ module Google
226
226
  return result
227
227
  end
228
228
  rescue ::Faraday::Error => e
229
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
230
- raise ::Google::Cloud::Error.from_error(gapic_error)
229
+ begin
230
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
231
+ rescue ::Gapic::Rest::Error => gapic_error
232
+ raise ::Google::Cloud::Error.from_error gapic_error
233
+ end
231
234
  end
232
235
 
233
236
  ##
@@ -291,8 +294,11 @@ module Google
291
294
  return result
292
295
  end
293
296
  rescue ::Faraday::Error => e
294
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
295
- raise ::Google::Cloud::Error.from_error(gapic_error)
297
+ begin
298
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
299
+ rescue ::Gapic::Rest::Error => gapic_error
300
+ raise ::Google::Cloud::Error.from_error gapic_error
301
+ end
296
302
  end
297
303
 
298
304
  ##
@@ -369,8 +375,11 @@ module Google
369
375
  return result
370
376
  end
371
377
  rescue ::Faraday::Error => e
372
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
373
- raise ::Google::Cloud::Error.from_error(gapic_error)
378
+ begin
379
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
380
+ rescue ::Gapic::Rest::Error => gapic_error
381
+ raise ::Google::Cloud::Error.from_error gapic_error
382
+ end
374
383
  end
375
384
 
376
385
  ##
@@ -443,12 +452,15 @@ module Google
443
452
  return result
444
453
  end
445
454
  rescue ::Faraday::Error => e
446
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
447
- raise ::Google::Cloud::Error.from_error(gapic_error)
455
+ begin
456
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
457
+ rescue ::Gapic::Rest::Error => gapic_error
458
+ raise ::Google::Cloud::Error.from_error gapic_error
459
+ end
448
460
  end
449
461
 
450
462
  ##
451
- # Patches the specified policy with the data included in the request.
463
+ # Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
452
464
  #
453
465
  # @overload patch(request, options = nil)
454
466
  # Pass arguments to `patch` via a request object, either of type
@@ -521,8 +533,11 @@ module Google
521
533
  return result
522
534
  end
523
535
  rescue ::Faraday::Error => e
524
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
525
- raise ::Google::Cloud::Error.from_error(gapic_error)
536
+ begin
537
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
538
+ rescue ::Gapic::Rest::Error => gapic_error
539
+ raise ::Google::Cloud::Error.from_error gapic_error
540
+ end
526
541
  end
527
542
 
528
543
  ##
@@ -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
  ##
@@ -224,8 +224,11 @@ module Google
224
224
  return result
225
225
  end
226
226
  rescue ::Faraday::Error => e
227
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
228
- raise ::Google::Cloud::Error.from_error(gapic_error)
227
+ begin
228
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
229
+ rescue ::Gapic::Rest::Error => gapic_error
230
+ raise ::Google::Cloud::Error.from_error gapic_error
231
+ end
229
232
  end
230
233
 
231
234
  ##
@@ -289,8 +292,11 @@ module Google
289
292
  return result
290
293
  end
291
294
  rescue ::Faraday::Error => e
292
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
293
- raise ::Google::Cloud::Error.from_error(gapic_error)
295
+ begin
296
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
297
+ rescue ::Gapic::Rest::Error => gapic_error
298
+ raise ::Google::Cloud::Error.from_error gapic_error
299
+ end
294
300
  end
295
301
 
296
302
  ##
@@ -365,8 +371,11 @@ module Google
365
371
  return result
366
372
  end
367
373
  rescue ::Faraday::Error => e
368
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
369
- raise ::Google::Cloud::Error.from_error(gapic_error)
374
+ begin
375
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
376
+ rescue ::Gapic::Rest::Error => gapic_error
377
+ raise ::Google::Cloud::Error.from_error gapic_error
378
+ end
370
379
  end
371
380
 
372
381
  ##
@@ -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
  ##
@@ -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
  ##