google-cloud-compute-v1 1.1.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
  5. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
  6. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +84 -22
  7. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +95 -26
  8. data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
  9. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
  10. data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
  11. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
  12. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
  13. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
  14. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
  15. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
  16. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
  17. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
  18. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
  19. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
  20. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
  21. data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
  22. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  23. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
  24. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
  25. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +44 -10
  26. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
  27. data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +177 -52
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +72 -19
  30. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
  31. data/lib/google/cloud/compute/v1/instances/rest/client.rb +372 -101
  32. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
  33. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  34. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +34 -7
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
  38. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
  39. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
  41. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
  42. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
  43. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
  44. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
  45. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
  46. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
  47. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
  48. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
  49. data/lib/google/cloud/compute/v1/networks/rest/client.rb +85 -23
  50. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
  51. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
  52. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
  53. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
  54. data/lib/google/cloud/compute/v1/projects/rest/client.rb +105 -29
  55. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +44 -10
  56. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +48 -11
  57. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
  58. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
  59. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +37 -8
  60. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +91 -22
  62. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +47 -10
  63. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +58 -13
  64. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +176 -51
  65. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +26 -5
  66. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
  67. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +36 -7
  68. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
  69. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
  70. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
  71. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +36 -7
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  75. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
  76. data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
  77. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
  78. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
  79. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
  80. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
  81. data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
  82. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +36 -7
  83. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
  84. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +145 -13
  85. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
  86. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
  87. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +59 -14
  89. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
  90. data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
  91. data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
  92. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +170 -23
  93. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +55 -1
  94. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +48 -11
  95. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +44 -10
  96. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +35 -8
  97. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
  98. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
  99. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +44 -10
  100. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +55 -14
  101. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +169 -23
  102. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +46 -0
  103. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
  104. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
  105. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +158 -19
  106. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +46 -0
  107. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
  108. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
  109. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
  110. data/lib/google/cloud/compute/v1/version.rb +1 -1
  111. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
  112. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
  113. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  114. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
  115. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
  116. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  117. data/lib/google/cloud/compute/v1.rb +6 -0
  118. data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
  119. metadata +27 -3
@@ -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
@@ -408,7 +437,7 @@ module Google
408
437
  # the default parameter values, pass an empty Hash as a request object (see above).
409
438
  #
410
439
  # @param filter [::String]
411
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
440
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
412
441
  # @param include_all_scopes [::Boolean]
413
442
  # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
414
443
  # @param max_results [::Integer]
@@ -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
@@ -1371,7 +1448,7 @@ module Google
1371
1448
  # the default parameter values, pass an empty Hash as a request object (see above).
1372
1449
  #
1373
1450
  # @param filter [::String]
1374
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
1451
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
1375
1452
  # @param max_results [::Integer]
1376
1453
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
1377
1454
  # @param order_by [::String]
@@ -1445,7 +1522,7 @@ module Google
1445
1522
  # the default parameter values, pass an empty Hash as a request object (see above).
1446
1523
  #
1447
1524
  # @param filter [::String]
1448
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
1525
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
1449
1526
  # @param instance [::String]
1450
1527
  # Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
1451
1528
  # @param max_results [::Integer]
@@ -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
@@ -1571,7 +1656,7 @@ module Google
1571
1656
  end
1572
1657
 
1573
1658
  ##
1574
- # Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.
1659
+ # Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.
1575
1660
  #
1576
1661
  # @overload reset(request, options = nil)
1577
1662
  # Pass arguments to `reset` via a request object, either of type
@@ -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
@@ -2331,7 +2488,7 @@ module Google
2331
2488
  end
2332
2489
 
2333
2490
  ##
2334
- # Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies.
2491
+ # Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.
2335
2492
  #
2336
2493
  # @overload set_scheduling(request, options = nil)
2337
2494
  # Pass arguments to `set_scheduling` via a request object, either of type
@@ -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
@@ -3043,8 +3272,10 @@ module Google
3043
3272
  # The body resource for this request
3044
3273
  # @param minimal_action [::String]
3045
3274
  # Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
3275
+ # Check the MinimalAction enum for the list of possible values.
3046
3276
  # @param most_disruptive_allowed_action [::String]
3047
3277
  # Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
3278
+ # Check the MostDisruptiveAllowedAction enum for the list of possible values.
3048
3279
  # @param project [::String]
3049
3280
  # Project ID for this request.
3050
3281
  # @param request_id [::String]
@@ -3052,10 +3283,10 @@ module Google
3052
3283
  # @param zone [::String]
3053
3284
  # The name of the zone for this request.
3054
3285
  # @yield [result, response] Access the result along with the Faraday response object
3055
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3286
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3056
3287
  # @yieldparam response [::Faraday::Response]
3057
3288
  #
3058
- # @return [::Gapic::Rest::BaseOperation]
3289
+ # @return [::Gapic::GenericLRO::Operation]
3059
3290
  #
3060
3291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3061
3292
  def update request, options = nil
@@ -3082,7 +3313,15 @@ module Google
3082
3313
  metadata: @config.metadata
3083
3314
 
3084
3315
  @instances_stub.update request, options do |result, response|
3085
- result = ::Gapic::Rest::BaseOperation.new result
3316
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3317
+ operation: result,
3318
+ client: zone_operations,
3319
+ request_values: {
3320
+ "project" => request.project,
3321
+ "zone" => request.zone
3322
+ },
3323
+ options: options
3324
+ )
3086
3325
  yield result, response if block_given?
3087
3326
  return result
3088
3327
  end
@@ -3124,10 +3363,10 @@ module Google
3124
3363
  # @param zone [::String]
3125
3364
  # The name of the zone for this request.
3126
3365
  # @yield [result, response] Access the result along with the Faraday response object
3127
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3366
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3128
3367
  # @yieldparam response [::Faraday::Response]
3129
3368
  #
3130
- # @return [::Gapic::Rest::BaseOperation]
3369
+ # @return [::Gapic::GenericLRO::Operation]
3131
3370
  #
3132
3371
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3133
3372
  def update_access_config request, options = nil
@@ -3154,7 +3393,15 @@ module Google
3154
3393
  metadata: @config.metadata
3155
3394
 
3156
3395
  @instances_stub.update_access_config request, options do |result, response|
3157
- result = ::Gapic::Rest::BaseOperation.new result
3396
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3397
+ operation: result,
3398
+ client: zone_operations,
3399
+ request_values: {
3400
+ "project" => request.project,
3401
+ "zone" => request.zone
3402
+ },
3403
+ options: options
3404
+ )
3158
3405
  yield result, response if block_given?
3159
3406
  return result
3160
3407
  end
@@ -3194,10 +3441,10 @@ module Google
3194
3441
  # @param zone [::String]
3195
3442
  # The name of the zone for this request.
3196
3443
  # @yield [result, response] Access the result along with the Faraday response object
3197
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3444
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3198
3445
  # @yieldparam response [::Faraday::Response]
3199
3446
  #
3200
- # @return [::Gapic::Rest::BaseOperation]
3447
+ # @return [::Gapic::GenericLRO::Operation]
3201
3448
  #
3202
3449
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3203
3450
  def update_display_device request, options = nil
@@ -3224,7 +3471,15 @@ module Google
3224
3471
  metadata: @config.metadata
3225
3472
 
3226
3473
  @instances_stub.update_display_device request, options do |result, response|
3227
- result = ::Gapic::Rest::BaseOperation.new result
3474
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3475
+ operation: result,
3476
+ client: zone_operations,
3477
+ request_values: {
3478
+ "project" => request.project,
3479
+ "zone" => request.zone
3480
+ },
3481
+ options: options
3482
+ )
3228
3483
  yield result, response if block_given?
3229
3484
  return result
3230
3485
  end
@@ -3266,10 +3521,10 @@ module Google
3266
3521
  # @param zone [::String]
3267
3522
  # The name of the zone for this request.
3268
3523
  # @yield [result, response] Access the result along with the Faraday response object
3269
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3524
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3270
3525
  # @yieldparam response [::Faraday::Response]
3271
3526
  #
3272
- # @return [::Gapic::Rest::BaseOperation]
3527
+ # @return [::Gapic::GenericLRO::Operation]
3273
3528
  #
3274
3529
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3275
3530
  def update_network_interface request, options = nil
@@ -3296,7 +3551,15 @@ module Google
3296
3551
  metadata: @config.metadata
3297
3552
 
3298
3553
  @instances_stub.update_network_interface request, options do |result, response|
3299
- result = ::Gapic::Rest::BaseOperation.new result
3554
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3555
+ operation: result,
3556
+ client: zone_operations,
3557
+ request_values: {
3558
+ "project" => request.project,
3559
+ "zone" => request.zone
3560
+ },
3561
+ options: options
3562
+ )
3300
3563
  yield result, response if block_given?
3301
3564
  return result
3302
3565
  end
@@ -3336,10 +3599,10 @@ module Google
3336
3599
  # @param zone [::String]
3337
3600
  # The name of the zone for this request.
3338
3601
  # @yield [result, response] Access the result along with the Faraday response object
3339
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3602
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3340
3603
  # @yieldparam response [::Faraday::Response]
3341
3604
  #
3342
- # @return [::Gapic::Rest::BaseOperation]
3605
+ # @return [::Gapic::GenericLRO::Operation]
3343
3606
  #
3344
3607
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3345
3608
  def update_shielded_instance_config request, options = nil
@@ -3366,7 +3629,15 @@ module Google
3366
3629
  metadata: @config.metadata
3367
3630
 
3368
3631
  @instances_stub.update_shielded_instance_config request, options do |result, response|
3369
- result = ::Gapic::Rest::BaseOperation.new result
3632
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
3633
+ operation: result,
3634
+ client: zone_operations,
3635
+ request_values: {
3636
+ "project" => request.project,
3637
+ "zone" => request.zone
3638
+ },
3639
+ options: options
3640
+ )
3370
3641
  yield result, response if block_given?
3371
3642
  return result
3372
3643
  end