google-cloud-compute-v1 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) 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/disk_types/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +65 -26
  15. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
  16. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +30 -12
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
  18. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +90 -36
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  20. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +30 -12
  21. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
  22. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +40 -16
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
  24. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +25 -10
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
  26. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -14
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
  28. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +35 -14
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
  30. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +25 -10
  31. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
  32. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +15 -6
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
  34. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +25 -10
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
  36. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +35 -14
  37. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
  38. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -2
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  40. data/lib/google/cloud/compute/v1/images/rest/client.rb +55 -22
  41. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
  42. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +100 -40
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
  44. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +45 -18
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
  46. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +35 -14
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
  48. data/lib/google/cloud/compute/v1/instances/rest/client.rb +225 -90
  49. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
  50. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +35 -14
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
  52. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -4
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
  54. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +35 -14
  55. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -1
  56. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -4
  57. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
  58. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -14
  59. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
  60. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -14
  61. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
  62. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -6
  63. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
  64. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +25 -10
  65. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
  66. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +45 -18
  67. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
  68. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +80 -32
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
  70. data/lib/google/cloud/compute/v1/networks/rest/client.rb +55 -22
  71. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
  72. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +65 -26
  73. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
  74. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +40 -16
  75. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
  76. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -6
  77. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
  78. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +35 -14
  79. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
  80. data/lib/google/cloud/compute/v1/projects/rest/client.rb +65 -26
  81. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
  82. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +25 -10
  83. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
  84. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +30 -12
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
  86. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +30 -12
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
  88. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +45 -18
  89. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
  90. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +25 -10
  91. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
  92. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +10 -4
  93. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
  94. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +60 -24
  95. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
  96. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +25 -10
  97. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
  98. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +30 -12
  99. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
  100. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +95 -38
  101. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
  102. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +20 -8
  103. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
  104. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -2
  105. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  106. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +20 -8
  107. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
  108. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +85 -34
  109. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
  110. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +20 -8
  111. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
  112. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +20 -8
  113. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
  114. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +25 -10
  115. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
  116. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +20 -8
  117. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
  118. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +30 -12
  119. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
  120. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +25 -10
  121. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
  122. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -14
  123. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
  124. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +20 -8
  125. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
  126. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -14
  127. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
  128. data/lib/google/cloud/compute/v1/regions/rest/client.rb +10 -4
  129. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
  130. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +50 -20
  131. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
  132. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +40 -16
  133. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
  134. data/lib/google/cloud/compute/v1/routers/rest/client.rb +50 -20
  135. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
  136. data/lib/google/cloud/compute/v1/routes/rest/client.rb +20 -8
  137. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
  138. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +60 -24
  139. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
  140. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +45 -18
  141. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
  142. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +40 -16
  143. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
  144. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +25 -10
  145. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
  146. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +35 -14
  147. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
  148. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +60 -24
  149. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
  150. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +25 -10
  151. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
  152. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +35 -14
  153. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
  154. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +55 -22
  155. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
  156. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +25 -10
  157. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
  158. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +55 -22
  159. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
  160. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +45 -18
  161. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
  162. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +30 -12
  163. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
  164. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +30 -12
  165. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
  166. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +45 -18
  167. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
  168. data/lib/google/cloud/compute/v1/version.rb +1 -1
  169. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +40 -16
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
  171. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +30 -12
  172. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
  173. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +20 -8
  174. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
  175. data/lib/google/cloud/compute/v1/zones/rest/client.rb +10 -4
  176. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
  177. metadata +4 -4
@@ -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
  ##
@@ -235,8 +235,11 @@ module Google
235
235
  return result
236
236
  end
237
237
  rescue ::Faraday::Error => e
238
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
239
- raise ::Google::Cloud::Error.from_error(gapic_error)
238
+ begin
239
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
240
+ rescue ::Gapic::Rest::Error => gapic_error
241
+ raise ::Google::Cloud::Error.from_error gapic_error
242
+ end
240
243
  end
241
244
 
242
245
  ##
@@ -308,8 +311,11 @@ module Google
308
311
  return result
309
312
  end
310
313
  rescue ::Faraday::Error => e
311
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
312
- raise ::Google::Cloud::Error.from_error(gapic_error)
314
+ begin
315
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
316
+ rescue ::Gapic::Rest::Error => gapic_error
317
+ raise ::Google::Cloud::Error.from_error gapic_error
318
+ end
313
319
  end
314
320
 
315
321
  ##
@@ -371,8 +377,11 @@ module Google
371
377
  return result
372
378
  end
373
379
  rescue ::Faraday::Error => e
374
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
375
- raise ::Google::Cloud::Error.from_error(gapic_error)
380
+ begin
381
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
382
+ rescue ::Gapic::Rest::Error => gapic_error
383
+ raise ::Google::Cloud::Error.from_error gapic_error
384
+ end
376
385
  end
377
386
 
378
387
  ##
@@ -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
  ##
@@ -519,8 +531,11 @@ module Google
519
531
  return result
520
532
  end
521
533
  rescue ::Faraday::Error => e
522
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
523
- raise ::Google::Cloud::Error.from_error(gapic_error)
534
+ begin
535
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
536
+ rescue ::Gapic::Rest::Error => gapic_error
537
+ raise ::Google::Cloud::Error.from_error gapic_error
538
+ end
524
539
  end
525
540
 
526
541
  ##
@@ -591,8 +606,11 @@ module Google
591
606
  return result
592
607
  end
593
608
  rescue ::Faraday::Error => e
594
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
595
- raise ::Google::Cloud::Error.from_error(gapic_error)
609
+ begin
610
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
611
+ rescue ::Gapic::Rest::Error => gapic_error
612
+ raise ::Google::Cloud::Error.from_error gapic_error
613
+ end
596
614
  end
597
615
 
598
616
  ##
@@ -666,8 +684,11 @@ module Google
666
684
  return result
667
685
  end
668
686
  rescue ::Faraday::Error => e
669
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
670
- raise ::Google::Cloud::Error.from_error(gapic_error)
687
+ begin
688
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
689
+ rescue ::Gapic::Rest::Error => gapic_error
690
+ raise ::Google::Cloud::Error.from_error gapic_error
691
+ end
671
692
  end
672
693
 
673
694
  ##
@@ -741,8 +762,11 @@ module Google
741
762
  return result
742
763
  end
743
764
  rescue ::Faraday::Error => e
744
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
745
- raise ::Google::Cloud::Error.from_error(gapic_error)
765
+ begin
766
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
767
+ rescue ::Gapic::Rest::Error => gapic_error
768
+ raise ::Google::Cloud::Error.from_error gapic_error
769
+ end
746
770
  end
747
771
 
748
772
  ##
@@ -806,8 +830,11 @@ module Google
806
830
  return result
807
831
  end
808
832
  rescue ::Faraday::Error => e
809
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
810
- raise ::Google::Cloud::Error.from_error(gapic_error)
833
+ begin
834
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
835
+ rescue ::Gapic::Rest::Error => gapic_error
836
+ raise ::Google::Cloud::Error.from_error gapic_error
837
+ end
811
838
  end
812
839
 
813
840
  ##
@@ -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
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "1.7.0"
24
+ VERSION = "1.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -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
  ##
@@ -442,8 +451,11 @@ module Google
442
451
  return result
443
452
  end
444
453
  rescue ::Faraday::Error => e
445
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
446
- raise ::Google::Cloud::Error.from_error(gapic_error)
454
+ begin
455
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
456
+ rescue ::Gapic::Rest::Error => gapic_error
457
+ raise ::Google::Cloud::Error.from_error gapic_error
458
+ end
447
459
  end
448
460
 
449
461
  ##
@@ -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
  ##
@@ -592,8 +607,11 @@ module Google
592
607
  return result
593
608
  end
594
609
  rescue ::Faraday::Error => e
595
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
596
- raise ::Google::Cloud::Error.from_error(gapic_error)
610
+ begin
611
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
612
+ rescue ::Gapic::Rest::Error => gapic_error
613
+ raise ::Google::Cloud::Error.from_error gapic_error
614
+ end
597
615
  end
598
616
 
599
617
  ##
@@ -670,8 +688,11 @@ module Google
670
688
  return result
671
689
  end
672
690
  rescue ::Faraday::Error => e
673
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
674
- raise ::Google::Cloud::Error.from_error(gapic_error)
691
+ begin
692
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
693
+ rescue ::Gapic::Rest::Error => gapic_error
694
+ raise ::Google::Cloud::Error.from_error gapic_error
695
+ end
675
696
  end
676
697
 
677
698
  ##
@@ -737,8 +758,11 @@ module Google
737
758
  return result
738
759
  end
739
760
  rescue ::Faraday::Error => e
740
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
741
- raise ::Google::Cloud::Error.from_error(gapic_error)
761
+ begin
762
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
763
+ rescue ::Gapic::Rest::Error => gapic_error
764
+ raise ::Google::Cloud::Error.from_error gapic_error
765
+ end
742
766
  end
743
767
 
744
768
  ##
@@ -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
  ##
@@ -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
  ##
@@ -194,8 +194,11 @@ module Google
194
194
  return result
195
195
  end
196
196
  rescue ::Faraday::Error => e
197
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
198
- raise ::Google::Cloud::Error.from_error(gapic_error)
197
+ begin
198
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
199
+ rescue ::Gapic::Rest::Error => gapic_error
200
+ raise ::Google::Cloud::Error.from_error gapic_error
201
+ end
199
202
  end
200
203
 
201
204
  ##
@@ -266,8 +269,11 @@ module Google
266
269
  return result
267
270
  end
268
271
  rescue ::Faraday::Error => e
269
- gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
270
- raise ::Google::Cloud::Error.from_error(gapic_error)
272
+ begin
273
+ raise ::Gapic::Rest::Error.wrap_faraday_error e
274
+ rescue ::Gapic::Rest::Error => gapic_error
275
+ raise ::Google::Cloud::Error.from_error gapic_error
276
+ end
271
277
  end
272
278
 
273
279
  ##
@@ -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
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-compute-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a