google-cloud-compute-v1 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +35 -6
  3. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +57 -12
  4. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +83 -21
  5. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +93 -24
  6. data/lib/google/cloud/compute/v1/disks/rest/client.rb +90 -21
  7. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +43 -9
  8. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +97 -30
  9. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +53 -12
  10. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +68 -15
  11. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +33 -6
  12. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +63 -15
  13. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +53 -12
  14. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
  15. data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
  16. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
  17. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
  18. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +43 -9
  19. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +53 -12
  20. data/lib/google/cloud/compute/v1/images/rest/client.rb +63 -15
  21. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +167 -42
  22. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +68 -15
  23. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +33 -6
  24. data/lib/google/cloud/compute/v1/instances/rest/client.rb +365 -96
  25. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +46 -9
  26. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +43 -9
  27. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +33 -6
  28. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +33 -6
  29. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +57 -12
  30. data/lib/google/cloud/compute/v1/networks/rest/client.rb +83 -21
  31. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +79 -18
  32. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +35 -6
  33. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +46 -9
  34. data/lib/google/cloud/compute/v1/projects/rest/client.rb +103 -27
  35. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +43 -9
  36. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +46 -9
  37. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +57 -12
  38. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +57 -12
  39. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +35 -6
  40. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +90 -21
  41. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +46 -9
  42. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +57 -12
  43. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +167 -42
  44. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +24 -3
  45. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
  46. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +35 -6
  47. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +35 -6
  48. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
  49. data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
  50. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +35 -6
  51. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +46 -9
  52. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +57 -12
  53. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +57 -12
  54. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +57 -12
  55. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +35 -6
  56. data/lib/google/cloud/compute/v1/routers/rest/client.rb +57 -12
  57. data/lib/google/cloud/compute/v1/routes/rest/client.rb +33 -6
  58. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +73 -18
  59. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +46 -9
  60. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +43 -9
  61. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +33 -6
  62. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +43 -9
  63. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +68 -15
  64. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +43 -9
  65. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +53 -12
  66. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +83 -21
  67. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +35 -6
  68. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +90 -21
  69. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +73 -18
  70. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +53 -12
  71. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +35 -6
  72. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +63 -15
  73. data/lib/google/cloud/compute/v1/version.rb +1 -1
  74. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +46 -9
  75. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +35 -6
  76. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
  77. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
  78. data/lib/google/cloud/compute/v1.rb +2 -0
  79. metadata +6 -2
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
21
  require "google/cloud/compute/v1/instances/rest/service_stub"
22
+ require "google/cloud/compute/v1/zone_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -240,9 +241,21 @@ module Google
240
241
  credentials = Credentials.new credentials, scope: @config.scope
241
242
  end
242
243
 
244
+ @zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
245
+ config.credentials = credentials
246
+ config.endpoint = @config.endpoint
247
+ end
248
+
243
249
  @instances_stub = ::Google::Cloud::Compute::V1::Instances::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
244
250
  end
245
251
 
252
+ ##
253
+ # Get the associated client for long-running operations via ZoneOperations.
254
+ #
255
+ # @return [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client]
256
+ #
257
+ attr_reader :zone_operations
258
+
246
259
  # Service calls
247
260
 
248
261
  ##
@@ -278,10 +291,10 @@ module Google
278
291
  # @param zone [::String]
279
292
  # The name of the zone for this request.
280
293
  # @yield [result, response] Access the result along with the Faraday response object
281
- # @yieldparam result [::Gapic::Rest::BaseOperation]
294
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
282
295
  # @yieldparam response [::Faraday::Response]
283
296
  #
284
- # @return [::Gapic::Rest::BaseOperation]
297
+ # @return [::Gapic::GenericLRO::Operation]
285
298
  #
286
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
300
  def add_access_config request, options = nil
@@ -308,7 +321,15 @@ module Google
308
321
  metadata: @config.metadata
309
322
 
310
323
  @instances_stub.add_access_config request, options do |result, response|
311
- result = ::Gapic::Rest::BaseOperation.new result
324
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
325
+ operation: result,
326
+ client: zone_operations,
327
+ request_values: {
328
+ "project" => request.project,
329
+ "zone" => request.zone
330
+ },
331
+ options: options
332
+ )
312
333
  yield result, response if block_given?
313
334
  return result
314
335
  end
@@ -348,10 +369,10 @@ module Google
348
369
  # @param zone [::String]
349
370
  # The name of the zone for this request.
350
371
  # @yield [result, response] Access the result along with the Faraday response object
351
- # @yieldparam result [::Gapic::Rest::BaseOperation]
372
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
352
373
  # @yieldparam response [::Faraday::Response]
353
374
  #
354
- # @return [::Gapic::Rest::BaseOperation]
375
+ # @return [::Gapic::GenericLRO::Operation]
355
376
  #
356
377
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
357
378
  def add_resource_policies request, options = nil
@@ -378,7 +399,15 @@ module Google
378
399
  metadata: @config.metadata
379
400
 
380
401
  @instances_stub.add_resource_policies request, options do |result, response|
381
- result = ::Gapic::Rest::BaseOperation.new result
402
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
403
+ operation: result,
404
+ client: zone_operations,
405
+ request_values: {
406
+ "project" => request.project,
407
+ "zone" => request.zone
408
+ },
409
+ options: options
410
+ )
382
411
  yield result, response if block_given?
383
412
  return result
384
413
  end
@@ -494,10 +523,10 @@ module Google
494
523
  # @param zone [::String]
495
524
  # The name of the zone for this request.
496
525
  # @yield [result, response] Access the result along with the Faraday response object
497
- # @yieldparam result [::Gapic::Rest::BaseOperation]
526
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
498
527
  # @yieldparam response [::Faraday::Response]
499
528
  #
500
- # @return [::Gapic::Rest::BaseOperation]
529
+ # @return [::Gapic::GenericLRO::Operation]
501
530
  #
502
531
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
503
532
  def attach_disk request, options = nil
@@ -524,7 +553,15 @@ module Google
524
553
  metadata: @config.metadata
525
554
 
526
555
  @instances_stub.attach_disk request, options do |result, response|
527
- result = ::Gapic::Rest::BaseOperation.new result
556
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
557
+ operation: result,
558
+ client: zone_operations,
559
+ request_values: {
560
+ "project" => request.project,
561
+ "zone" => request.zone
562
+ },
563
+ options: options
564
+ )
528
565
  yield result, response if block_given?
529
566
  return result
530
567
  end
@@ -562,10 +599,10 @@ module Google
562
599
  # @param zone [::String]
563
600
  # The name of the zone for this request.
564
601
  # @yield [result, response] Access the result along with the Faraday response object
565
- # @yieldparam result [::Gapic::Rest::BaseOperation]
602
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
566
603
  # @yieldparam response [::Faraday::Response]
567
604
  #
568
- # @return [::Gapic::Rest::BaseOperation]
605
+ # @return [::Gapic::GenericLRO::Operation]
569
606
  #
570
607
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
571
608
  def bulk_insert request, options = nil
@@ -592,7 +629,15 @@ module Google
592
629
  metadata: @config.metadata
593
630
 
594
631
  @instances_stub.bulk_insert request, options do |result, response|
595
- result = ::Gapic::Rest::BaseOperation.new result
632
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
633
+ operation: result,
634
+ client: zone_operations,
635
+ request_values: {
636
+ "project" => request.project,
637
+ "zone" => request.zone
638
+ },
639
+ options: options
640
+ )
596
641
  yield result, response if block_given?
597
642
  return result
598
643
  end
@@ -630,10 +675,10 @@ module Google
630
675
  # @param zone [::String]
631
676
  # The name of the zone for this request.
632
677
  # @yield [result, response] Access the result along with the Faraday response object
633
- # @yieldparam result [::Gapic::Rest::BaseOperation]
678
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
634
679
  # @yieldparam response [::Faraday::Response]
635
680
  #
636
- # @return [::Gapic::Rest::BaseOperation]
681
+ # @return [::Gapic::GenericLRO::Operation]
637
682
  #
638
683
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
639
684
  def delete request, options = nil
@@ -660,7 +705,15 @@ module Google
660
705
  metadata: @config.metadata
661
706
 
662
707
  @instances_stub.delete request, options do |result, response|
663
- result = ::Gapic::Rest::BaseOperation.new result
708
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
709
+ operation: result,
710
+ client: zone_operations,
711
+ request_values: {
712
+ "project" => request.project,
713
+ "zone" => request.zone
714
+ },
715
+ options: options
716
+ )
664
717
  yield result, response if block_given?
665
718
  return result
666
719
  end
@@ -702,10 +755,10 @@ module Google
702
755
  # @param zone [::String]
703
756
  # The name of the zone for this request.
704
757
  # @yield [result, response] Access the result along with the Faraday response object
705
- # @yieldparam result [::Gapic::Rest::BaseOperation]
758
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
706
759
  # @yieldparam response [::Faraday::Response]
707
760
  #
708
- # @return [::Gapic::Rest::BaseOperation]
761
+ # @return [::Gapic::GenericLRO::Operation]
709
762
  #
710
763
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
711
764
  def delete_access_config request, options = nil
@@ -732,7 +785,15 @@ module Google
732
785
  metadata: @config.metadata
733
786
 
734
787
  @instances_stub.delete_access_config request, options do |result, response|
735
- result = ::Gapic::Rest::BaseOperation.new result
788
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
789
+ operation: result,
790
+ client: zone_operations,
791
+ request_values: {
792
+ "project" => request.project,
793
+ "zone" => request.zone
794
+ },
795
+ options: options
796
+ )
736
797
  yield result, response if block_given?
737
798
  return result
738
799
  end
@@ -772,10 +833,10 @@ module Google
772
833
  # @param zone [::String]
773
834
  # The name of the zone for this request.
774
835
  # @yield [result, response] Access the result along with the Faraday response object
775
- # @yieldparam result [::Gapic::Rest::BaseOperation]
836
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
776
837
  # @yieldparam response [::Faraday::Response]
777
838
  #
778
- # @return [::Gapic::Rest::BaseOperation]
839
+ # @return [::Gapic::GenericLRO::Operation]
779
840
  #
780
841
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
781
842
  def detach_disk request, options = nil
@@ -802,7 +863,15 @@ module Google
802
863
  metadata: @config.metadata
803
864
 
804
865
  @instances_stub.detach_disk request, options do |result, response|
805
- result = ::Gapic::Rest::BaseOperation.new result
866
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
867
+ operation: result,
868
+ client: zone_operations,
869
+ request_values: {
870
+ "project" => request.project,
871
+ "zone" => request.zone
872
+ },
873
+ options: options
874
+ )
806
875
  yield result, response if block_given?
807
876
  return result
808
877
  end
@@ -1311,10 +1380,10 @@ module Google
1311
1380
  # @param zone [::String]
1312
1381
  # The name of the zone for this request.
1313
1382
  # @yield [result, response] Access the result along with the Faraday response object
1314
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1383
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1315
1384
  # @yieldparam response [::Faraday::Response]
1316
1385
  #
1317
- # @return [::Gapic::Rest::BaseOperation]
1386
+ # @return [::Gapic::GenericLRO::Operation]
1318
1387
  #
1319
1388
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1320
1389
  def insert request, options = nil
@@ -1341,7 +1410,15 @@ module Google
1341
1410
  metadata: @config.metadata
1342
1411
 
1343
1412
  @instances_stub.insert request, options do |result, response|
1344
- result = ::Gapic::Rest::BaseOperation.new result
1413
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1414
+ operation: result,
1415
+ client: zone_operations,
1416
+ request_values: {
1417
+ "project" => request.project,
1418
+ "zone" => request.zone
1419
+ },
1420
+ options: options
1421
+ )
1345
1422
  yield result, response if block_given?
1346
1423
  return result
1347
1424
  end
@@ -1531,10 +1608,10 @@ module Google
1531
1608
  # @param zone [::String]
1532
1609
  # The name of the zone for this request.
1533
1610
  # @yield [result, response] Access the result along with the Faraday response object
1534
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1611
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1535
1612
  # @yieldparam response [::Faraday::Response]
1536
1613
  #
1537
- # @return [::Gapic::Rest::BaseOperation]
1614
+ # @return [::Gapic::GenericLRO::Operation]
1538
1615
  #
1539
1616
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1540
1617
  def remove_resource_policies request, options = nil
@@ -1561,7 +1638,15 @@ module Google
1561
1638
  metadata: @config.metadata
1562
1639
 
1563
1640
  @instances_stub.remove_resource_policies request, options do |result, response|
1564
- result = ::Gapic::Rest::BaseOperation.new result
1641
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1642
+ operation: result,
1643
+ client: zone_operations,
1644
+ request_values: {
1645
+ "project" => request.project,
1646
+ "zone" => request.zone
1647
+ },
1648
+ options: options
1649
+ )
1565
1650
  yield result, response if block_given?
1566
1651
  return result
1567
1652
  end
@@ -1599,10 +1684,10 @@ module Google
1599
1684
  # @param zone [::String]
1600
1685
  # The name of the zone for this request.
1601
1686
  # @yield [result, response] Access the result along with the Faraday response object
1602
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1687
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1603
1688
  # @yieldparam response [::Faraday::Response]
1604
1689
  #
1605
- # @return [::Gapic::Rest::BaseOperation]
1690
+ # @return [::Gapic::GenericLRO::Operation]
1606
1691
  #
1607
1692
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1608
1693
  def reset request, options = nil
@@ -1629,7 +1714,15 @@ module Google
1629
1714
  metadata: @config.metadata
1630
1715
 
1631
1716
  @instances_stub.reset request, options do |result, response|
1632
- result = ::Gapic::Rest::BaseOperation.new result
1717
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1718
+ operation: result,
1719
+ client: zone_operations,
1720
+ request_values: {
1721
+ "project" => request.project,
1722
+ "zone" => request.zone
1723
+ },
1724
+ options: options
1725
+ )
1633
1726
  yield result, response if block_given?
1634
1727
  return result
1635
1728
  end
@@ -1667,10 +1760,10 @@ module Google
1667
1760
  # @param zone [::String]
1668
1761
  # The name of the zone for this request.
1669
1762
  # @yield [result, response] Access the result along with the Faraday response object
1670
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1763
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1671
1764
  # @yieldparam response [::Faraday::Response]
1672
1765
  #
1673
- # @return [::Gapic::Rest::BaseOperation]
1766
+ # @return [::Gapic::GenericLRO::Operation]
1674
1767
  #
1675
1768
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1676
1769
  def resume request, options = nil
@@ -1697,7 +1790,15 @@ module Google
1697
1790
  metadata: @config.metadata
1698
1791
 
1699
1792
  @instances_stub.resume request, options do |result, response|
1700
- result = ::Gapic::Rest::BaseOperation.new result
1793
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1794
+ operation: result,
1795
+ client: zone_operations,
1796
+ request_values: {
1797
+ "project" => request.project,
1798
+ "zone" => request.zone
1799
+ },
1800
+ options: options
1801
+ )
1701
1802
  yield result, response if block_given?
1702
1803
  return result
1703
1804
  end
@@ -1802,10 +1903,10 @@ module Google
1802
1903
  # @param zone [::String]
1803
1904
  # The name of the zone for this request.
1804
1905
  # @yield [result, response] Access the result along with the Faraday response object
1805
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1906
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1806
1907
  # @yieldparam response [::Faraday::Response]
1807
1908
  #
1808
- # @return [::Gapic::Rest::BaseOperation]
1909
+ # @return [::Gapic::GenericLRO::Operation]
1809
1910
  #
1810
1911
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1811
1912
  def set_deletion_protection request, options = nil
@@ -1832,7 +1933,15 @@ module Google
1832
1933
  metadata: @config.metadata
1833
1934
 
1834
1935
  @instances_stub.set_deletion_protection request, options do |result, response|
1835
- result = ::Gapic::Rest::BaseOperation.new result
1936
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1937
+ operation: result,
1938
+ client: zone_operations,
1939
+ request_values: {
1940
+ "project" => request.project,
1941
+ "zone" => request.zone
1942
+ },
1943
+ options: options
1944
+ )
1836
1945
  yield result, response if block_given?
1837
1946
  return result
1838
1947
  end
@@ -1874,10 +1983,10 @@ module Google
1874
1983
  # @param zone [::String]
1875
1984
  # The name of the zone for this request.
1876
1985
  # @yield [result, response] Access the result along with the Faraday response object
1877
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1986
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1878
1987
  # @yieldparam response [::Faraday::Response]
1879
1988
  #
1880
- # @return [::Gapic::Rest::BaseOperation]
1989
+ # @return [::Gapic::GenericLRO::Operation]
1881
1990
  #
1882
1991
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1883
1992
  def set_disk_auto_delete request, options = nil
@@ -1904,7 +2013,15 @@ module Google
1904
2013
  metadata: @config.metadata
1905
2014
 
1906
2015
  @instances_stub.set_disk_auto_delete request, options do |result, response|
1907
- result = ::Gapic::Rest::BaseOperation.new result
2016
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2017
+ operation: result,
2018
+ client: zone_operations,
2019
+ request_values: {
2020
+ "project" => request.project,
2021
+ "zone" => request.zone
2022
+ },
2023
+ options: options
2024
+ )
1908
2025
  yield result, response if block_given?
1909
2026
  return result
1910
2027
  end
@@ -2011,10 +2128,10 @@ module Google
2011
2128
  # @param zone [::String]
2012
2129
  # The name of the zone for this request.
2013
2130
  # @yield [result, response] Access the result along with the Faraday response object
2014
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2131
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2015
2132
  # @yieldparam response [::Faraday::Response]
2016
2133
  #
2017
- # @return [::Gapic::Rest::BaseOperation]
2134
+ # @return [::Gapic::GenericLRO::Operation]
2018
2135
  #
2019
2136
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2020
2137
  def set_labels request, options = nil
@@ -2041,7 +2158,15 @@ module Google
2041
2158
  metadata: @config.metadata
2042
2159
 
2043
2160
  @instances_stub.set_labels request, options do |result, response|
2044
- result = ::Gapic::Rest::BaseOperation.new result
2161
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2162
+ operation: result,
2163
+ client: zone_operations,
2164
+ request_values: {
2165
+ "project" => request.project,
2166
+ "zone" => request.zone
2167
+ },
2168
+ options: options
2169
+ )
2045
2170
  yield result, response if block_given?
2046
2171
  return result
2047
2172
  end
@@ -2081,10 +2206,10 @@ module Google
2081
2206
  # @param zone [::String]
2082
2207
  # The name of the zone for this request.
2083
2208
  # @yield [result, response] Access the result along with the Faraday response object
2084
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2209
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2085
2210
  # @yieldparam response [::Faraday::Response]
2086
2211
  #
2087
- # @return [::Gapic::Rest::BaseOperation]
2212
+ # @return [::Gapic::GenericLRO::Operation]
2088
2213
  #
2089
2214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2090
2215
  def set_machine_resources request, options = nil
@@ -2111,7 +2236,15 @@ module Google
2111
2236
  metadata: @config.metadata
2112
2237
 
2113
2238
  @instances_stub.set_machine_resources request, options do |result, response|
2114
- result = ::Gapic::Rest::BaseOperation.new result
2239
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2240
+ operation: result,
2241
+ client: zone_operations,
2242
+ request_values: {
2243
+ "project" => request.project,
2244
+ "zone" => request.zone
2245
+ },
2246
+ options: options
2247
+ )
2115
2248
  yield result, response if block_given?
2116
2249
  return result
2117
2250
  end
@@ -2151,10 +2284,10 @@ module Google
2151
2284
  # @param zone [::String]
2152
2285
  # The name of the zone for this request.
2153
2286
  # @yield [result, response] Access the result along with the Faraday response object
2154
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2287
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2155
2288
  # @yieldparam response [::Faraday::Response]
2156
2289
  #
2157
- # @return [::Gapic::Rest::BaseOperation]
2290
+ # @return [::Gapic::GenericLRO::Operation]
2158
2291
  #
2159
2292
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2160
2293
  def set_machine_type request, options = nil
@@ -2181,7 +2314,15 @@ module Google
2181
2314
  metadata: @config.metadata
2182
2315
 
2183
2316
  @instances_stub.set_machine_type request, options do |result, response|
2184
- result = ::Gapic::Rest::BaseOperation.new result
2317
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2318
+ operation: result,
2319
+ client: zone_operations,
2320
+ request_values: {
2321
+ "project" => request.project,
2322
+ "zone" => request.zone
2323
+ },
2324
+ options: options
2325
+ )
2185
2326
  yield result, response if block_given?
2186
2327
  return result
2187
2328
  end
@@ -2221,10 +2362,10 @@ module Google
2221
2362
  # @param zone [::String]
2222
2363
  # The name of the zone for this request.
2223
2364
  # @yield [result, response] Access the result along with the Faraday response object
2224
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2365
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2225
2366
  # @yieldparam response [::Faraday::Response]
2226
2367
  #
2227
- # @return [::Gapic::Rest::BaseOperation]
2368
+ # @return [::Gapic::GenericLRO::Operation]
2228
2369
  #
2229
2370
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2230
2371
  def set_metadata request, options = nil
@@ -2251,7 +2392,15 @@ module Google
2251
2392
  metadata: @config.metadata
2252
2393
 
2253
2394
  @instances_stub.set_metadata request, options do |result, response|
2254
- result = ::Gapic::Rest::BaseOperation.new result
2395
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2396
+ operation: result,
2397
+ client: zone_operations,
2398
+ request_values: {
2399
+ "project" => request.project,
2400
+ "zone" => request.zone
2401
+ },
2402
+ options: options
2403
+ )
2255
2404
  yield result, response if block_given?
2256
2405
  return result
2257
2406
  end
@@ -2291,10 +2440,10 @@ module Google
2291
2440
  # @param zone [::String]
2292
2441
  # The name of the zone for this request.
2293
2442
  # @yield [result, response] Access the result along with the Faraday response object
2294
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2443
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2295
2444
  # @yieldparam response [::Faraday::Response]
2296
2445
  #
2297
- # @return [::Gapic::Rest::BaseOperation]
2446
+ # @return [::Gapic::GenericLRO::Operation]
2298
2447
  #
2299
2448
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2300
2449
  def set_min_cpu_platform request, options = nil
@@ -2321,7 +2470,15 @@ module Google
2321
2470
  metadata: @config.metadata
2322
2471
 
2323
2472
  @instances_stub.set_min_cpu_platform request, options do |result, response|
2324
- result = ::Gapic::Rest::BaseOperation.new result
2473
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2474
+ operation: result,
2475
+ client: zone_operations,
2476
+ request_values: {
2477
+ "project" => request.project,
2478
+ "zone" => request.zone
2479
+ },
2480
+ options: options
2481
+ )
2325
2482
  yield result, response if block_given?
2326
2483
  return result
2327
2484
  end
@@ -2361,10 +2518,10 @@ module Google
2361
2518
  # @param zone [::String]
2362
2519
  # The name of the zone for this request.
2363
2520
  # @yield [result, response] Access the result along with the Faraday response object
2364
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2521
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2365
2522
  # @yieldparam response [::Faraday::Response]
2366
2523
  #
2367
- # @return [::Gapic::Rest::BaseOperation]
2524
+ # @return [::Gapic::GenericLRO::Operation]
2368
2525
  #
2369
2526
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2370
2527
  def set_scheduling request, options = nil
@@ -2391,7 +2548,15 @@ module Google
2391
2548
  metadata: @config.metadata
2392
2549
 
2393
2550
  @instances_stub.set_scheduling request, options do |result, response|
2394
- result = ::Gapic::Rest::BaseOperation.new result
2551
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2552
+ operation: result,
2553
+ client: zone_operations,
2554
+ request_values: {
2555
+ "project" => request.project,
2556
+ "zone" => request.zone
2557
+ },
2558
+ options: options
2559
+ )
2395
2560
  yield result, response if block_given?
2396
2561
  return result
2397
2562
  end
@@ -2431,10 +2596,10 @@ module Google
2431
2596
  # @param zone [::String]
2432
2597
  # The name of the zone for this request.
2433
2598
  # @yield [result, response] Access the result along with the Faraday response object
2434
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2599
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2435
2600
  # @yieldparam response [::Faraday::Response]
2436
2601
  #
2437
- # @return [::Gapic::Rest::BaseOperation]
2602
+ # @return [::Gapic::GenericLRO::Operation]
2438
2603
  #
2439
2604
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2440
2605
  def set_service_account request, options = nil
@@ -2461,7 +2626,15 @@ module Google
2461
2626
  metadata: @config.metadata
2462
2627
 
2463
2628
  @instances_stub.set_service_account request, options do |result, response|
2464
- result = ::Gapic::Rest::BaseOperation.new result
2629
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2630
+ operation: result,
2631
+ client: zone_operations,
2632
+ request_values: {
2633
+ "project" => request.project,
2634
+ "zone" => request.zone
2635
+ },
2636
+ options: options
2637
+ )
2465
2638
  yield result, response if block_given?
2466
2639
  return result
2467
2640
  end
@@ -2501,10 +2674,10 @@ module Google
2501
2674
  # @param zone [::String]
2502
2675
  # The name of the zone for this request.
2503
2676
  # @yield [result, response] Access the result along with the Faraday response object
2504
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2677
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2505
2678
  # @yieldparam response [::Faraday::Response]
2506
2679
  #
2507
- # @return [::Gapic::Rest::BaseOperation]
2680
+ # @return [::Gapic::GenericLRO::Operation]
2508
2681
  #
2509
2682
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2510
2683
  def set_shielded_instance_integrity_policy request, options = nil
@@ -2531,7 +2704,15 @@ module Google
2531
2704
  metadata: @config.metadata
2532
2705
 
2533
2706
  @instances_stub.set_shielded_instance_integrity_policy request, options do |result, response|
2534
- result = ::Gapic::Rest::BaseOperation.new result
2707
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2708
+ operation: result,
2709
+ client: zone_operations,
2710
+ request_values: {
2711
+ "project" => request.project,
2712
+ "zone" => request.zone
2713
+ },
2714
+ options: options
2715
+ )
2535
2716
  yield result, response if block_given?
2536
2717
  return result
2537
2718
  end
@@ -2571,10 +2752,10 @@ module Google
2571
2752
  # @param zone [::String]
2572
2753
  # The name of the zone for this request.
2573
2754
  # @yield [result, response] Access the result along with the Faraday response object
2574
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2755
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2575
2756
  # @yieldparam response [::Faraday::Response]
2576
2757
  #
2577
- # @return [::Gapic::Rest::BaseOperation]
2758
+ # @return [::Gapic::GenericLRO::Operation]
2578
2759
  #
2579
2760
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2580
2761
  def set_tags request, options = nil
@@ -2601,7 +2782,15 @@ module Google
2601
2782
  metadata: @config.metadata
2602
2783
 
2603
2784
  @instances_stub.set_tags request, options do |result, response|
2604
- result = ::Gapic::Rest::BaseOperation.new result
2785
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2786
+ operation: result,
2787
+ client: zone_operations,
2788
+ request_values: {
2789
+ "project" => request.project,
2790
+ "zone" => request.zone
2791
+ },
2792
+ options: options
2793
+ )
2605
2794
  yield result, response if block_given?
2606
2795
  return result
2607
2796
  end
@@ -2637,10 +2826,10 @@ module Google
2637
2826
  # @param zone [::String]
2638
2827
  # The name of the zone for this request.
2639
2828
  # @yield [result, response] Access the result along with the Faraday response object
2640
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2829
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2641
2830
  # @yieldparam response [::Faraday::Response]
2642
2831
  #
2643
- # @return [::Gapic::Rest::BaseOperation]
2832
+ # @return [::Gapic::GenericLRO::Operation]
2644
2833
  #
2645
2834
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2646
2835
  def simulate_maintenance_event request, options = nil
@@ -2667,7 +2856,15 @@ module Google
2667
2856
  metadata: @config.metadata
2668
2857
 
2669
2858
  @instances_stub.simulate_maintenance_event request, options do |result, response|
2670
- result = ::Gapic::Rest::BaseOperation.new result
2859
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2860
+ operation: result,
2861
+ client: zone_operations,
2862
+ request_values: {
2863
+ "project" => request.project,
2864
+ "zone" => request.zone
2865
+ },
2866
+ options: options
2867
+ )
2671
2868
  yield result, response if block_given?
2672
2869
  return result
2673
2870
  end
@@ -2705,10 +2902,10 @@ module Google
2705
2902
  # @param zone [::String]
2706
2903
  # The name of the zone for this request.
2707
2904
  # @yield [result, response] Access the result along with the Faraday response object
2708
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2905
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2709
2906
  # @yieldparam response [::Faraday::Response]
2710
2907
  #
2711
- # @return [::Gapic::Rest::BaseOperation]
2908
+ # @return [::Gapic::GenericLRO::Operation]
2712
2909
  #
2713
2910
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2714
2911
  def start request, options = nil
@@ -2735,7 +2932,15 @@ module Google
2735
2932
  metadata: @config.metadata
2736
2933
 
2737
2934
  @instances_stub.start request, options do |result, response|
2738
- result = ::Gapic::Rest::BaseOperation.new result
2935
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
2936
+ operation: result,
2937
+ client: zone_operations,
2938
+ request_values: {
2939
+ "project" => request.project,
2940
+ "zone" => request.zone
2941
+ },
2942
+ options: options
2943
+ )
2739
2944
  yield result, response if block_given?
2740
2945
  return result
2741
2946
  end
@@ -2775,10 +2980,10 @@ module Google
2775
2980
  # @param zone [::String]
2776
2981
  # The name of the zone for this request.
2777
2982
  # @yield [result, response] Access the result along with the Faraday response object
2778
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2983
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2779
2984
  # @yieldparam response [::Faraday::Response]
2780
2985
  #
2781
- # @return [::Gapic::Rest::BaseOperation]
2986
+ # @return [::Gapic::GenericLRO::Operation]
2782
2987
  #
2783
2988
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2784
2989
  def start_with_encryption_key request, options = nil
@@ -2805,7 +3010,15 @@ module Google
2805
3010
  metadata: @config.metadata
2806
3011
 
2807
3012
  @instances_stub.start_with_encryption_key request, options do |result, response|
2808
- result = ::Gapic::Rest::BaseOperation.new result
3013
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3014
+ operation: result,
3015
+ client: zone_operations,
3016
+ request_values: {
3017
+ "project" => request.project,
3018
+ "zone" => request.zone
3019
+ },
3020
+ options: options
3021
+ )
2809
3022
  yield result, response if block_given?
2810
3023
  return result
2811
3024
  end
@@ -2843,10 +3056,10 @@ module Google
2843
3056
  # @param zone [::String]
2844
3057
  # The name of the zone for this request.
2845
3058
  # @yield [result, response] Access the result along with the Faraday response object
2846
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3059
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2847
3060
  # @yieldparam response [::Faraday::Response]
2848
3061
  #
2849
- # @return [::Gapic::Rest::BaseOperation]
3062
+ # @return [::Gapic::GenericLRO::Operation]
2850
3063
  #
2851
3064
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2852
3065
  def stop request, options = nil
@@ -2873,7 +3086,15 @@ module Google
2873
3086
  metadata: @config.metadata
2874
3087
 
2875
3088
  @instances_stub.stop request, options do |result, response|
2876
- result = ::Gapic::Rest::BaseOperation.new result
3089
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3090
+ operation: result,
3091
+ client: zone_operations,
3092
+ request_values: {
3093
+ "project" => request.project,
3094
+ "zone" => request.zone
3095
+ },
3096
+ options: options
3097
+ )
2877
3098
  yield result, response if block_given?
2878
3099
  return result
2879
3100
  end
@@ -2911,10 +3132,10 @@ module Google
2911
3132
  # @param zone [::String]
2912
3133
  # The name of the zone for this request.
2913
3134
  # @yield [result, response] Access the result along with the Faraday response object
2914
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3135
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2915
3136
  # @yieldparam response [::Faraday::Response]
2916
3137
  #
2917
- # @return [::Gapic::Rest::BaseOperation]
3138
+ # @return [::Gapic::GenericLRO::Operation]
2918
3139
  #
2919
3140
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2920
3141
  def suspend request, options = nil
@@ -2941,7 +3162,15 @@ module Google
2941
3162
  metadata: @config.metadata
2942
3163
 
2943
3164
  @instances_stub.suspend request, options do |result, response|
2944
- result = ::Gapic::Rest::BaseOperation.new result
3165
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3166
+ operation: result,
3167
+ client: zone_operations,
3168
+ request_values: {
3169
+ "project" => request.project,
3170
+ "zone" => request.zone
3171
+ },
3172
+ options: options
3173
+ )
2945
3174
  yield result, response if block_given?
2946
3175
  return result
2947
3176
  end
@@ -3052,10 +3281,10 @@ module Google
3052
3281
  # @param zone [::String]
3053
3282
  # The name of the zone for this request.
3054
3283
  # @yield [result, response] Access the result along with the Faraday response object
3055
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3284
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3056
3285
  # @yieldparam response [::Faraday::Response]
3057
3286
  #
3058
- # @return [::Gapic::Rest::BaseOperation]
3287
+ # @return [::Gapic::GenericLRO::Operation]
3059
3288
  #
3060
3289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3061
3290
  def update request, options = nil
@@ -3082,7 +3311,15 @@ module Google
3082
3311
  metadata: @config.metadata
3083
3312
 
3084
3313
  @instances_stub.update request, options do |result, response|
3085
- result = ::Gapic::Rest::BaseOperation.new result
3314
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3315
+ operation: result,
3316
+ client: zone_operations,
3317
+ request_values: {
3318
+ "project" => request.project,
3319
+ "zone" => request.zone
3320
+ },
3321
+ options: options
3322
+ )
3086
3323
  yield result, response if block_given?
3087
3324
  return result
3088
3325
  end
@@ -3124,10 +3361,10 @@ module Google
3124
3361
  # @param zone [::String]
3125
3362
  # The name of the zone for this request.
3126
3363
  # @yield [result, response] Access the result along with the Faraday response object
3127
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3364
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3128
3365
  # @yieldparam response [::Faraday::Response]
3129
3366
  #
3130
- # @return [::Gapic::Rest::BaseOperation]
3367
+ # @return [::Gapic::GenericLRO::Operation]
3131
3368
  #
3132
3369
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3133
3370
  def update_access_config request, options = nil
@@ -3154,7 +3391,15 @@ module Google
3154
3391
  metadata: @config.metadata
3155
3392
 
3156
3393
  @instances_stub.update_access_config request, options do |result, response|
3157
- result = ::Gapic::Rest::BaseOperation.new result
3394
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3395
+ operation: result,
3396
+ client: zone_operations,
3397
+ request_values: {
3398
+ "project" => request.project,
3399
+ "zone" => request.zone
3400
+ },
3401
+ options: options
3402
+ )
3158
3403
  yield result, response if block_given?
3159
3404
  return result
3160
3405
  end
@@ -3194,10 +3439,10 @@ module Google
3194
3439
  # @param zone [::String]
3195
3440
  # The name of the zone for this request.
3196
3441
  # @yield [result, response] Access the result along with the Faraday response object
3197
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3442
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3198
3443
  # @yieldparam response [::Faraday::Response]
3199
3444
  #
3200
- # @return [::Gapic::Rest::BaseOperation]
3445
+ # @return [::Gapic::GenericLRO::Operation]
3201
3446
  #
3202
3447
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3203
3448
  def update_display_device request, options = nil
@@ -3224,7 +3469,15 @@ module Google
3224
3469
  metadata: @config.metadata
3225
3470
 
3226
3471
  @instances_stub.update_display_device request, options do |result, response|
3227
- result = ::Gapic::Rest::BaseOperation.new result
3472
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3473
+ operation: result,
3474
+ client: zone_operations,
3475
+ request_values: {
3476
+ "project" => request.project,
3477
+ "zone" => request.zone
3478
+ },
3479
+ options: options
3480
+ )
3228
3481
  yield result, response if block_given?
3229
3482
  return result
3230
3483
  end
@@ -3266,10 +3519,10 @@ module Google
3266
3519
  # @param zone [::String]
3267
3520
  # The name of the zone for this request.
3268
3521
  # @yield [result, response] Access the result along with the Faraday response object
3269
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3522
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3270
3523
  # @yieldparam response [::Faraday::Response]
3271
3524
  #
3272
- # @return [::Gapic::Rest::BaseOperation]
3525
+ # @return [::Gapic::GenericLRO::Operation]
3273
3526
  #
3274
3527
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3275
3528
  def update_network_interface request, options = nil
@@ -3296,7 +3549,15 @@ module Google
3296
3549
  metadata: @config.metadata
3297
3550
 
3298
3551
  @instances_stub.update_network_interface request, options do |result, response|
3299
- result = ::Gapic::Rest::BaseOperation.new result
3552
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3553
+ operation: result,
3554
+ client: zone_operations,
3555
+ request_values: {
3556
+ "project" => request.project,
3557
+ "zone" => request.zone
3558
+ },
3559
+ options: options
3560
+ )
3300
3561
  yield result, response if block_given?
3301
3562
  return result
3302
3563
  end
@@ -3336,10 +3597,10 @@ module Google
3336
3597
  # @param zone [::String]
3337
3598
  # The name of the zone for this request.
3338
3599
  # @yield [result, response] Access the result along with the Faraday response object
3339
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3600
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3340
3601
  # @yieldparam response [::Faraday::Response]
3341
3602
  #
3342
- # @return [::Gapic::Rest::BaseOperation]
3603
+ # @return [::Gapic::GenericLRO::Operation]
3343
3604
  #
3344
3605
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3345
3606
  def update_shielded_instance_config request, options = nil
@@ -3366,7 +3627,15 @@ module Google
3366
3627
  metadata: @config.metadata
3367
3628
 
3368
3629
  @instances_stub.update_shielded_instance_config request, options do |result, response|
3369
- result = ::Gapic::Rest::BaseOperation.new result
3630
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3631
+ operation: result,
3632
+ client: zone_operations,
3633
+ request_values: {
3634
+ "project" => request.project,
3635
+ "zone" => request.zone
3636
+ },
3637
+ options: options
3638
+ )
3370
3639
  yield result, response if block_given?
3371
3640
  return result
3372
3641
  end