google-cloud-compute-v1 0.5.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +4 -4
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
  6. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +158 -19
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +169 -23
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
  12. data/lib/google/cloud/compute/v1/compute_pb.rb +534 -2
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
  15. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
  16. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
  17. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
  18. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
  19. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
  20. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
  21. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
  22. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
  23. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
  24. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
  25. data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
  26. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  27. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
  28. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
  29. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +47 -13
  30. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
  31. data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
  32. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +172 -47
  33. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +71 -18
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +521 -96
  36. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +91 -0
  37. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
  38. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  39. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
  40. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
  41. data/lib/google/cloud/compute/v1/machine_images/credentials.rb +52 -0
  42. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +804 -0
  43. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
  44. data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
  45. data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
  46. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
  47. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
  48. data/lib/google/cloud/compute/v1/networks/rest/client.rb +85 -23
  49. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
  50. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
  51. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
  52. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
  53. data/lib/google/cloud/compute/v1/projects/rest/client.rb +107 -31
  54. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +47 -13
  55. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +51 -14
  56. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
  57. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
  58. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +116 -5
  59. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
  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 +92 -23
  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 +171 -46
  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_notification_endpoints/rest/client.rb +38 -9
  69. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  70. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
  71. data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
  72. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +38 -9
  73. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
  74. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +62 -17
  75. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
  76. data/lib/google/cloud/compute/v1/regions/rest/client.rb +3 -3
  77. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +138 -11
  78. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
  79. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
  80. data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
  81. data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
  82. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +75 -20
  83. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +51 -14
  84. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +116 -7
  85. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
  86. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +37 -10
  87. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
  88. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
  89. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +47 -13
  90. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +56 -15
  91. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -24
  92. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
  93. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
  94. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +74 -19
  95. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
  96. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
  97. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
  98. data/lib/google/cloud/compute/v1/version.rb +1 -1
  99. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
  100. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
  101. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  102. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
  103. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
  104. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  105. data/lib/google/cloud/compute/v1.rb +3 -0
  106. data/proto_docs/README.md +1 -1
  107. data/proto_docs/google/api/resource.rb +10 -71
  108. data/proto_docs/google/cloud/compute/v1/compute.rb +1647 -330
  109. metadata +14 -7
@@ -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
@@ -134,6 +135,8 @@ module Google
134
135
 
135
136
  default_config.rpcs.reset.timeout = 600.0
136
137
 
138
+ default_config.rpcs.resume.timeout = 600.0
139
+
137
140
  default_config.rpcs.send_diagnostic_interrupt.timeout = 600.0
138
141
 
139
142
  default_config.rpcs.set_deletion_protection.timeout = 600.0
@@ -168,6 +171,8 @@ module Google
168
171
 
169
172
  default_config.rpcs.stop.timeout = 600.0
170
173
 
174
+ default_config.rpcs.suspend.timeout = 600.0
175
+
171
176
  default_config.rpcs.test_iam_permissions.timeout = 600.0
172
177
 
173
178
  default_config.rpcs.update.timeout = 600.0
@@ -236,9 +241,21 @@ module Google
236
241
  credentials = Credentials.new credentials, scope: @config.scope
237
242
  end
238
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
+
239
249
  @instances_stub = ::Google::Cloud::Compute::V1::Instances::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
240
250
  end
241
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
+
242
259
  # Service calls
243
260
 
244
261
  ##
@@ -274,10 +291,10 @@ module Google
274
291
  # @param zone [::String]
275
292
  # The name of the zone for this request.
276
293
  # @yield [result, response] Access the result along with the Faraday response object
277
- # @yieldparam result [::Gapic::Rest::BaseOperation]
294
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
278
295
  # @yieldparam response [::Faraday::Response]
279
296
  #
280
- # @return [::Gapic::Rest::BaseOperation]
297
+ # @return [::Gapic::GenericLRO::Operation]
281
298
  #
282
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
300
  def add_access_config request, options = nil
@@ -304,7 +321,15 @@ module Google
304
321
  metadata: @config.metadata
305
322
 
306
323
  @instances_stub.add_access_config request, options do |result, response|
307
- 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
+ )
308
333
  yield result, response if block_given?
309
334
  return result
310
335
  end
@@ -344,10 +369,10 @@ module Google
344
369
  # @param zone [::String]
345
370
  # The name of the zone for this request.
346
371
  # @yield [result, response] Access the result along with the Faraday response object
347
- # @yieldparam result [::Gapic::Rest::BaseOperation]
372
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
348
373
  # @yieldparam response [::Faraday::Response]
349
374
  #
350
- # @return [::Gapic::Rest::BaseOperation]
375
+ # @return [::Gapic::GenericLRO::Operation]
351
376
  #
352
377
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
353
378
  def add_resource_policies request, options = nil
@@ -374,7 +399,15 @@ module Google
374
399
  metadata: @config.metadata
375
400
 
376
401
  @instances_stub.add_resource_policies request, options do |result, response|
377
- 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
+ )
378
411
  yield result, response if block_given?
379
412
  return result
380
413
  end
@@ -404,7 +437,7 @@ module Google
404
437
  # the default parameter values, pass an empty Hash as a request object (see above).
405
438
  #
406
439
  # @param filter [::String]
407
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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. 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) ```
408
441
  # @param include_all_scopes [::Boolean]
409
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.
410
443
  # @param max_results [::Integer]
@@ -490,10 +523,10 @@ module Google
490
523
  # @param zone [::String]
491
524
  # The name of the zone for this request.
492
525
  # @yield [result, response] Access the result along with the Faraday response object
493
- # @yieldparam result [::Gapic::Rest::BaseOperation]
526
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
494
527
  # @yieldparam response [::Faraday::Response]
495
528
  #
496
- # @return [::Gapic::Rest::BaseOperation]
529
+ # @return [::Gapic::GenericLRO::Operation]
497
530
  #
498
531
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
499
532
  def attach_disk request, options = nil
@@ -520,7 +553,15 @@ module Google
520
553
  metadata: @config.metadata
521
554
 
522
555
  @instances_stub.attach_disk request, options do |result, response|
523
- 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
+ )
524
565
  yield result, response if block_given?
525
566
  return result
526
567
  end
@@ -558,10 +599,10 @@ module Google
558
599
  # @param zone [::String]
559
600
  # The name of the zone for this request.
560
601
  # @yield [result, response] Access the result along with the Faraday response object
561
- # @yieldparam result [::Gapic::Rest::BaseOperation]
602
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
562
603
  # @yieldparam response [::Faraday::Response]
563
604
  #
564
- # @return [::Gapic::Rest::BaseOperation]
605
+ # @return [::Gapic::GenericLRO::Operation]
565
606
  #
566
607
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
567
608
  def bulk_insert request, options = nil
@@ -588,7 +629,15 @@ module Google
588
629
  metadata: @config.metadata
589
630
 
590
631
  @instances_stub.bulk_insert request, options do |result, response|
591
- 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
+ )
592
641
  yield result, response if block_given?
593
642
  return result
594
643
  end
@@ -626,10 +675,10 @@ module Google
626
675
  # @param zone [::String]
627
676
  # The name of the zone for this request.
628
677
  # @yield [result, response] Access the result along with the Faraday response object
629
- # @yieldparam result [::Gapic::Rest::BaseOperation]
678
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
630
679
  # @yieldparam response [::Faraday::Response]
631
680
  #
632
- # @return [::Gapic::Rest::BaseOperation]
681
+ # @return [::Gapic::GenericLRO::Operation]
633
682
  #
634
683
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
635
684
  def delete request, options = nil
@@ -656,7 +705,15 @@ module Google
656
705
  metadata: @config.metadata
657
706
 
658
707
  @instances_stub.delete request, options do |result, response|
659
- 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
+ )
660
717
  yield result, response if block_given?
661
718
  return result
662
719
  end
@@ -698,10 +755,10 @@ module Google
698
755
  # @param zone [::String]
699
756
  # The name of the zone for this request.
700
757
  # @yield [result, response] Access the result along with the Faraday response object
701
- # @yieldparam result [::Gapic::Rest::BaseOperation]
758
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
702
759
  # @yieldparam response [::Faraday::Response]
703
760
  #
704
- # @return [::Gapic::Rest::BaseOperation]
761
+ # @return [::Gapic::GenericLRO::Operation]
705
762
  #
706
763
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
707
764
  def delete_access_config request, options = nil
@@ -728,7 +785,15 @@ module Google
728
785
  metadata: @config.metadata
729
786
 
730
787
  @instances_stub.delete_access_config request, options do |result, response|
731
- 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
+ )
732
797
  yield result, response if block_given?
733
798
  return result
734
799
  end
@@ -768,10 +833,10 @@ module Google
768
833
  # @param zone [::String]
769
834
  # The name of the zone for this request.
770
835
  # @yield [result, response] Access the result along with the Faraday response object
771
- # @yieldparam result [::Gapic::Rest::BaseOperation]
836
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
772
837
  # @yieldparam response [::Faraday::Response]
773
838
  #
774
- # @return [::Gapic::Rest::BaseOperation]
839
+ # @return [::Gapic::GenericLRO::Operation]
775
840
  #
776
841
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
777
842
  def detach_disk request, options = nil
@@ -798,7 +863,15 @@ module Google
798
863
  metadata: @config.metadata
799
864
 
800
865
  @instances_stub.detach_disk request, options do |result, response|
801
- 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
+ )
802
875
  yield result, response if block_given?
803
876
  return result
804
877
  end
@@ -1289,7 +1362,7 @@ module Google
1289
1362
  # Note: currently retry functionality is not implemented. While it is possible
1290
1363
  # to set it using ::Gapic::CallOptions, it will not be applied
1291
1364
  #
1292
- # @overload insert(instance_resource: nil, project: nil, request_id: nil, source_instance_template: nil, zone: nil)
1365
+ # @overload insert(instance_resource: nil, project: nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, zone: nil)
1293
1366
  # Pass arguments to `insert` via keyword arguments. Note that at
1294
1367
  # least one keyword argument is required. To specify no parameters, or to keep all
1295
1368
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1302,13 +1375,15 @@ module Google
1302
1375
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1303
1376
  # @param source_instance_template [::String]
1304
1377
  # Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
1378
+ # @param source_machine_image [::String]
1379
+ # Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage
1305
1380
  # @param zone [::String]
1306
1381
  # The name of the zone for this request.
1307
1382
  # @yield [result, response] Access the result along with the Faraday response object
1308
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1383
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1309
1384
  # @yieldparam response [::Faraday::Response]
1310
1385
  #
1311
- # @return [::Gapic::Rest::BaseOperation]
1386
+ # @return [::Gapic::GenericLRO::Operation]
1312
1387
  #
1313
1388
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1314
1389
  def insert request, options = nil
@@ -1335,7 +1410,15 @@ module Google
1335
1410
  metadata: @config.metadata
1336
1411
 
1337
1412
  @instances_stub.insert request, options do |result, response|
1338
- 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
+ )
1339
1422
  yield result, response if block_given?
1340
1423
  return result
1341
1424
  end
@@ -1365,7 +1448,7 @@ module Google
1365
1448
  # the default parameter values, pass an empty Hash as a request object (see above).
1366
1449
  #
1367
1450
  # @param filter [::String]
1368
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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. 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) ```
1369
1452
  # @param max_results [::Integer]
1370
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`)
1371
1454
  # @param order_by [::String]
@@ -1439,7 +1522,7 @@ module Google
1439
1522
  # the default parameter values, pass an empty Hash as a request object (see above).
1440
1523
  #
1441
1524
  # @param filter [::String]
1442
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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. 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) ```
1443
1526
  # @param instance [::String]
1444
1527
  # Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
1445
1528
  # @param max_results [::Integer]
@@ -1525,10 +1608,10 @@ module Google
1525
1608
  # @param zone [::String]
1526
1609
  # The name of the zone for this request.
1527
1610
  # @yield [result, response] Access the result along with the Faraday response object
1528
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1611
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1529
1612
  # @yieldparam response [::Faraday::Response]
1530
1613
  #
1531
- # @return [::Gapic::Rest::BaseOperation]
1614
+ # @return [::Gapic::GenericLRO::Operation]
1532
1615
  #
1533
1616
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1534
1617
  def remove_resource_policies request, options = nil
@@ -1555,7 +1638,15 @@ module Google
1555
1638
  metadata: @config.metadata
1556
1639
 
1557
1640
  @instances_stub.remove_resource_policies request, options do |result, response|
1558
- 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
+ )
1559
1650
  yield result, response if block_given?
1560
1651
  return result
1561
1652
  end
@@ -1593,10 +1684,10 @@ module Google
1593
1684
  # @param zone [::String]
1594
1685
  # The name of the zone for this request.
1595
1686
  # @yield [result, response] Access the result along with the Faraday response object
1596
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1687
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1597
1688
  # @yieldparam response [::Faraday::Response]
1598
1689
  #
1599
- # @return [::Gapic::Rest::BaseOperation]
1690
+ # @return [::Gapic::GenericLRO::Operation]
1600
1691
  #
1601
1692
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1602
1693
  def reset request, options = nil
@@ -1623,7 +1714,91 @@ module Google
1623
1714
  metadata: @config.metadata
1624
1715
 
1625
1716
  @instances_stub.reset request, options do |result, response|
1626
- 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
+ )
1726
+ yield result, response if block_given?
1727
+ return result
1728
+ end
1729
+ rescue ::Faraday::Error => e
1730
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1731
+ raise ::Google::Cloud::Error.from_error(gapic_error)
1732
+ end
1733
+
1734
+ ##
1735
+ # Resumes an instance that was suspended using the instances().suspend method.
1736
+ #
1737
+ # @overload resume(request, options = nil)
1738
+ # Pass arguments to `resume` via a request object, either of type
1739
+ # {::Google::Cloud::Compute::V1::ResumeInstanceRequest} or an equivalent Hash.
1740
+ #
1741
+ # @param request [::Google::Cloud::Compute::V1::ResumeInstanceRequest, ::Hash]
1742
+ # A request object representing the call parameters. Required. To specify no
1743
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1744
+ # @param options [::Gapic::CallOptions, ::Hash]
1745
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1746
+ # Note: currently retry functionality is not implemented. While it is possible
1747
+ # to set it using ::Gapic::CallOptions, it will not be applied
1748
+ #
1749
+ # @overload resume(instance: nil, project: nil, request_id: nil, zone: nil)
1750
+ # Pass arguments to `resume` via keyword arguments. Note that at
1751
+ # least one keyword argument is required. To specify no parameters, or to keep all
1752
+ # the default parameter values, pass an empty Hash as a request object (see above).
1753
+ #
1754
+ # @param instance [::String]
1755
+ # Name of the instance resource to resume.
1756
+ # @param project [::String]
1757
+ # Project ID for this request.
1758
+ # @param request_id [::String]
1759
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1760
+ # @param zone [::String]
1761
+ # The name of the zone for this request.
1762
+ # @yield [result, response] Access the result along with the Faraday response object
1763
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1764
+ # @yieldparam response [::Faraday::Response]
1765
+ #
1766
+ # @return [::Gapic::GenericLRO::Operation]
1767
+ #
1768
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1769
+ def resume request, options = nil
1770
+ raise ::ArgumentError, "request must be provided" if request.nil?
1771
+
1772
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ResumeInstanceRequest
1773
+
1774
+ # Converts hash and nil to an options object
1775
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1776
+
1777
+ # Customize the options with defaults
1778
+ call_metadata = @config.rpcs.resume.metadata.to_h
1779
+
1780
+ # Set x-goog-api-client header
1781
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1782
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1783
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1784
+ transports_version_send: [:rest]
1785
+
1786
+ options.apply_defaults timeout: @config.rpcs.resume.timeout,
1787
+ metadata: call_metadata
1788
+
1789
+ options.apply_defaults timeout: @config.timeout,
1790
+ metadata: @config.metadata
1791
+
1792
+ @instances_stub.resume request, options do |result, response|
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
+ )
1627
1802
  yield result, response if block_given?
1628
1803
  return result
1629
1804
  end
@@ -1728,10 +1903,10 @@ module Google
1728
1903
  # @param zone [::String]
1729
1904
  # The name of the zone for this request.
1730
1905
  # @yield [result, response] Access the result along with the Faraday response object
1731
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1906
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1732
1907
  # @yieldparam response [::Faraday::Response]
1733
1908
  #
1734
- # @return [::Gapic::Rest::BaseOperation]
1909
+ # @return [::Gapic::GenericLRO::Operation]
1735
1910
  #
1736
1911
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1737
1912
  def set_deletion_protection request, options = nil
@@ -1758,7 +1933,15 @@ module Google
1758
1933
  metadata: @config.metadata
1759
1934
 
1760
1935
  @instances_stub.set_deletion_protection request, options do |result, response|
1761
- 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
+ )
1762
1945
  yield result, response if block_given?
1763
1946
  return result
1764
1947
  end
@@ -1800,10 +1983,10 @@ module Google
1800
1983
  # @param zone [::String]
1801
1984
  # The name of the zone for this request.
1802
1985
  # @yield [result, response] Access the result along with the Faraday response object
1803
- # @yieldparam result [::Gapic::Rest::BaseOperation]
1986
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1804
1987
  # @yieldparam response [::Faraday::Response]
1805
1988
  #
1806
- # @return [::Gapic::Rest::BaseOperation]
1989
+ # @return [::Gapic::GenericLRO::Operation]
1807
1990
  #
1808
1991
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1809
1992
  def set_disk_auto_delete request, options = nil
@@ -1830,7 +2013,15 @@ module Google
1830
2013
  metadata: @config.metadata
1831
2014
 
1832
2015
  @instances_stub.set_disk_auto_delete request, options do |result, response|
1833
- 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
+ )
1834
2025
  yield result, response if block_given?
1835
2026
  return result
1836
2027
  end
@@ -1937,10 +2128,10 @@ module Google
1937
2128
  # @param zone [::String]
1938
2129
  # The name of the zone for this request.
1939
2130
  # @yield [result, response] Access the result along with the Faraday response object
1940
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2131
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1941
2132
  # @yieldparam response [::Faraday::Response]
1942
2133
  #
1943
- # @return [::Gapic::Rest::BaseOperation]
2134
+ # @return [::Gapic::GenericLRO::Operation]
1944
2135
  #
1945
2136
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1946
2137
  def set_labels request, options = nil
@@ -1967,7 +2158,15 @@ module Google
1967
2158
  metadata: @config.metadata
1968
2159
 
1969
2160
  @instances_stub.set_labels request, options do |result, response|
1970
- 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
+ )
1971
2170
  yield result, response if block_given?
1972
2171
  return result
1973
2172
  end
@@ -2007,10 +2206,10 @@ module Google
2007
2206
  # @param zone [::String]
2008
2207
  # The name of the zone for this request.
2009
2208
  # @yield [result, response] Access the result along with the Faraday response object
2010
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2209
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2011
2210
  # @yieldparam response [::Faraday::Response]
2012
2211
  #
2013
- # @return [::Gapic::Rest::BaseOperation]
2212
+ # @return [::Gapic::GenericLRO::Operation]
2014
2213
  #
2015
2214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2016
2215
  def set_machine_resources request, options = nil
@@ -2037,7 +2236,15 @@ module Google
2037
2236
  metadata: @config.metadata
2038
2237
 
2039
2238
  @instances_stub.set_machine_resources request, options do |result, response|
2040
- 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
+ )
2041
2248
  yield result, response if block_given?
2042
2249
  return result
2043
2250
  end
@@ -2077,10 +2284,10 @@ module Google
2077
2284
  # @param zone [::String]
2078
2285
  # The name of the zone for this request.
2079
2286
  # @yield [result, response] Access the result along with the Faraday response object
2080
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2287
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2081
2288
  # @yieldparam response [::Faraday::Response]
2082
2289
  #
2083
- # @return [::Gapic::Rest::BaseOperation]
2290
+ # @return [::Gapic::GenericLRO::Operation]
2084
2291
  #
2085
2292
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2086
2293
  def set_machine_type request, options = nil
@@ -2107,7 +2314,15 @@ module Google
2107
2314
  metadata: @config.metadata
2108
2315
 
2109
2316
  @instances_stub.set_machine_type request, options do |result, response|
2110
- 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
+ )
2111
2326
  yield result, response if block_given?
2112
2327
  return result
2113
2328
  end
@@ -2147,10 +2362,10 @@ module Google
2147
2362
  # @param zone [::String]
2148
2363
  # The name of the zone for this request.
2149
2364
  # @yield [result, response] Access the result along with the Faraday response object
2150
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2365
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2151
2366
  # @yieldparam response [::Faraday::Response]
2152
2367
  #
2153
- # @return [::Gapic::Rest::BaseOperation]
2368
+ # @return [::Gapic::GenericLRO::Operation]
2154
2369
  #
2155
2370
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2156
2371
  def set_metadata request, options = nil
@@ -2177,7 +2392,15 @@ module Google
2177
2392
  metadata: @config.metadata
2178
2393
 
2179
2394
  @instances_stub.set_metadata request, options do |result, response|
2180
- 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
+ )
2181
2404
  yield result, response if block_given?
2182
2405
  return result
2183
2406
  end
@@ -2217,10 +2440,10 @@ module Google
2217
2440
  # @param zone [::String]
2218
2441
  # The name of the zone for this request.
2219
2442
  # @yield [result, response] Access the result along with the Faraday response object
2220
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2443
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2221
2444
  # @yieldparam response [::Faraday::Response]
2222
2445
  #
2223
- # @return [::Gapic::Rest::BaseOperation]
2446
+ # @return [::Gapic::GenericLRO::Operation]
2224
2447
  #
2225
2448
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2226
2449
  def set_min_cpu_platform request, options = nil
@@ -2247,7 +2470,15 @@ module Google
2247
2470
  metadata: @config.metadata
2248
2471
 
2249
2472
  @instances_stub.set_min_cpu_platform request, options do |result, response|
2250
- 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
+ )
2251
2482
  yield result, response if block_given?
2252
2483
  return result
2253
2484
  end
@@ -2257,7 +2488,7 @@ module Google
2257
2488
  end
2258
2489
 
2259
2490
  ##
2260
- # 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.
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 availability policies.
2261
2492
  #
2262
2493
  # @overload set_scheduling(request, options = nil)
2263
2494
  # Pass arguments to `set_scheduling` via a request object, either of type
@@ -2287,10 +2518,10 @@ module Google
2287
2518
  # @param zone [::String]
2288
2519
  # The name of the zone for this request.
2289
2520
  # @yield [result, response] Access the result along with the Faraday response object
2290
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2521
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2291
2522
  # @yieldparam response [::Faraday::Response]
2292
2523
  #
2293
- # @return [::Gapic::Rest::BaseOperation]
2524
+ # @return [::Gapic::GenericLRO::Operation]
2294
2525
  #
2295
2526
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2296
2527
  def set_scheduling request, options = nil
@@ -2317,7 +2548,15 @@ module Google
2317
2548
  metadata: @config.metadata
2318
2549
 
2319
2550
  @instances_stub.set_scheduling request, options do |result, response|
2320
- 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
+ )
2321
2560
  yield result, response if block_given?
2322
2561
  return result
2323
2562
  end
@@ -2357,10 +2596,10 @@ module Google
2357
2596
  # @param zone [::String]
2358
2597
  # The name of the zone for this request.
2359
2598
  # @yield [result, response] Access the result along with the Faraday response object
2360
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2599
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2361
2600
  # @yieldparam response [::Faraday::Response]
2362
2601
  #
2363
- # @return [::Gapic::Rest::BaseOperation]
2602
+ # @return [::Gapic::GenericLRO::Operation]
2364
2603
  #
2365
2604
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2366
2605
  def set_service_account request, options = nil
@@ -2387,7 +2626,15 @@ module Google
2387
2626
  metadata: @config.metadata
2388
2627
 
2389
2628
  @instances_stub.set_service_account request, options do |result, response|
2390
- 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
+ )
2391
2638
  yield result, response if block_given?
2392
2639
  return result
2393
2640
  end
@@ -2427,10 +2674,10 @@ module Google
2427
2674
  # @param zone [::String]
2428
2675
  # The name of the zone for this request.
2429
2676
  # @yield [result, response] Access the result along with the Faraday response object
2430
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2677
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2431
2678
  # @yieldparam response [::Faraday::Response]
2432
2679
  #
2433
- # @return [::Gapic::Rest::BaseOperation]
2680
+ # @return [::Gapic::GenericLRO::Operation]
2434
2681
  #
2435
2682
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2436
2683
  def set_shielded_instance_integrity_policy request, options = nil
@@ -2457,7 +2704,15 @@ module Google
2457
2704
  metadata: @config.metadata
2458
2705
 
2459
2706
  @instances_stub.set_shielded_instance_integrity_policy request, options do |result, response|
2460
- 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
+ )
2461
2716
  yield result, response if block_given?
2462
2717
  return result
2463
2718
  end
@@ -2497,10 +2752,10 @@ module Google
2497
2752
  # @param zone [::String]
2498
2753
  # The name of the zone for this request.
2499
2754
  # @yield [result, response] Access the result along with the Faraday response object
2500
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2755
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2501
2756
  # @yieldparam response [::Faraday::Response]
2502
2757
  #
2503
- # @return [::Gapic::Rest::BaseOperation]
2758
+ # @return [::Gapic::GenericLRO::Operation]
2504
2759
  #
2505
2760
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2506
2761
  def set_tags request, options = nil
@@ -2527,7 +2782,15 @@ module Google
2527
2782
  metadata: @config.metadata
2528
2783
 
2529
2784
  @instances_stub.set_tags request, options do |result, response|
2530
- 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
+ )
2531
2794
  yield result, response if block_given?
2532
2795
  return result
2533
2796
  end
@@ -2537,7 +2800,7 @@ module Google
2537
2800
  end
2538
2801
 
2539
2802
  ##
2540
- # Simulates a maintenance event on the instance.
2803
+ # Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.
2541
2804
  #
2542
2805
  # @overload simulate_maintenance_event(request, options = nil)
2543
2806
  # Pass arguments to `simulate_maintenance_event` via a request object, either of type
@@ -2563,10 +2826,10 @@ module Google
2563
2826
  # @param zone [::String]
2564
2827
  # The name of the zone for this request.
2565
2828
  # @yield [result, response] Access the result along with the Faraday response object
2566
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2829
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2567
2830
  # @yieldparam response [::Faraday::Response]
2568
2831
  #
2569
- # @return [::Gapic::Rest::BaseOperation]
2832
+ # @return [::Gapic::GenericLRO::Operation]
2570
2833
  #
2571
2834
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2572
2835
  def simulate_maintenance_event request, options = nil
@@ -2593,7 +2856,15 @@ module Google
2593
2856
  metadata: @config.metadata
2594
2857
 
2595
2858
  @instances_stub.simulate_maintenance_event request, options do |result, response|
2596
- 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
+ )
2597
2868
  yield result, response if block_given?
2598
2869
  return result
2599
2870
  end
@@ -2631,10 +2902,10 @@ module Google
2631
2902
  # @param zone [::String]
2632
2903
  # The name of the zone for this request.
2633
2904
  # @yield [result, response] Access the result along with the Faraday response object
2634
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2905
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2635
2906
  # @yieldparam response [::Faraday::Response]
2636
2907
  #
2637
- # @return [::Gapic::Rest::BaseOperation]
2908
+ # @return [::Gapic::GenericLRO::Operation]
2638
2909
  #
2639
2910
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2640
2911
  def start request, options = nil
@@ -2661,7 +2932,15 @@ module Google
2661
2932
  metadata: @config.metadata
2662
2933
 
2663
2934
  @instances_stub.start request, options do |result, response|
2664
- 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
+ )
2665
2944
  yield result, response if block_given?
2666
2945
  return result
2667
2946
  end
@@ -2701,10 +2980,10 @@ module Google
2701
2980
  # @param zone [::String]
2702
2981
  # The name of the zone for this request.
2703
2982
  # @yield [result, response] Access the result along with the Faraday response object
2704
- # @yieldparam result [::Gapic::Rest::BaseOperation]
2983
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2705
2984
  # @yieldparam response [::Faraday::Response]
2706
2985
  #
2707
- # @return [::Gapic::Rest::BaseOperation]
2986
+ # @return [::Gapic::GenericLRO::Operation]
2708
2987
  #
2709
2988
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2710
2989
  def start_with_encryption_key request, options = nil
@@ -2731,7 +3010,15 @@ module Google
2731
3010
  metadata: @config.metadata
2732
3011
 
2733
3012
  @instances_stub.start_with_encryption_key request, options do |result, response|
2734
- 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
+ )
2735
3022
  yield result, response if block_given?
2736
3023
  return result
2737
3024
  end
@@ -2769,10 +3056,10 @@ module Google
2769
3056
  # @param zone [::String]
2770
3057
  # The name of the zone for this request.
2771
3058
  # @yield [result, response] Access the result along with the Faraday response object
2772
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3059
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2773
3060
  # @yieldparam response [::Faraday::Response]
2774
3061
  #
2775
- # @return [::Gapic::Rest::BaseOperation]
3062
+ # @return [::Gapic::GenericLRO::Operation]
2776
3063
  #
2777
3064
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2778
3065
  def stop request, options = nil
@@ -2799,7 +3086,91 @@ module Google
2799
3086
  metadata: @config.metadata
2800
3087
 
2801
3088
  @instances_stub.stop request, options do |result, response|
2802
- 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
+ )
3098
+ yield result, response if block_given?
3099
+ return result
3100
+ end
3101
+ rescue ::Faraday::Error => e
3102
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
3103
+ raise ::Google::Cloud::Error.from_error(gapic_error)
3104
+ end
3105
+
3106
+ ##
3107
+ # This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.
3108
+ #
3109
+ # @overload suspend(request, options = nil)
3110
+ # Pass arguments to `suspend` via a request object, either of type
3111
+ # {::Google::Cloud::Compute::V1::SuspendInstanceRequest} or an equivalent Hash.
3112
+ #
3113
+ # @param request [::Google::Cloud::Compute::V1::SuspendInstanceRequest, ::Hash]
3114
+ # A request object representing the call parameters. Required. To specify no
3115
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3116
+ # @param options [::Gapic::CallOptions, ::Hash]
3117
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3118
+ # Note: currently retry functionality is not implemented. While it is possible
3119
+ # to set it using ::Gapic::CallOptions, it will not be applied
3120
+ #
3121
+ # @overload suspend(instance: nil, project: nil, request_id: nil, zone: nil)
3122
+ # Pass arguments to `suspend` via keyword arguments. Note that at
3123
+ # least one keyword argument is required. To specify no parameters, or to keep all
3124
+ # the default parameter values, pass an empty Hash as a request object (see above).
3125
+ #
3126
+ # @param instance [::String]
3127
+ # Name of the instance resource to suspend.
3128
+ # @param project [::String]
3129
+ # Project ID for this request.
3130
+ # @param request_id [::String]
3131
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3132
+ # @param zone [::String]
3133
+ # The name of the zone for this request.
3134
+ # @yield [result, response] Access the result along with the Faraday response object
3135
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3136
+ # @yieldparam response [::Faraday::Response]
3137
+ #
3138
+ # @return [::Gapic::GenericLRO::Operation]
3139
+ #
3140
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3141
+ def suspend request, options = nil
3142
+ raise ::ArgumentError, "request must be provided" if request.nil?
3143
+
3144
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SuspendInstanceRequest
3145
+
3146
+ # Converts hash and nil to an options object
3147
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3148
+
3149
+ # Customize the options with defaults
3150
+ call_metadata = @config.rpcs.suspend.metadata.to_h
3151
+
3152
+ # Set x-goog-api-client header
3153
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3154
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3155
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3156
+ transports_version_send: [:rest]
3157
+
3158
+ options.apply_defaults timeout: @config.rpcs.suspend.timeout,
3159
+ metadata: call_metadata
3160
+
3161
+ options.apply_defaults timeout: @config.timeout,
3162
+ metadata: @config.metadata
3163
+
3164
+ @instances_stub.suspend request, options do |result, response|
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
+ )
2803
3174
  yield result, response if block_given?
2804
3175
  return result
2805
3176
  end
@@ -2910,10 +3281,10 @@ module Google
2910
3281
  # @param zone [::String]
2911
3282
  # The name of the zone for this request.
2912
3283
  # @yield [result, response] Access the result along with the Faraday response object
2913
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3284
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2914
3285
  # @yieldparam response [::Faraday::Response]
2915
3286
  #
2916
- # @return [::Gapic::Rest::BaseOperation]
3287
+ # @return [::Gapic::GenericLRO::Operation]
2917
3288
  #
2918
3289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2919
3290
  def update request, options = nil
@@ -2940,7 +3311,15 @@ module Google
2940
3311
  metadata: @config.metadata
2941
3312
 
2942
3313
  @instances_stub.update request, options do |result, response|
2943
- 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
+ )
2944
3323
  yield result, response if block_given?
2945
3324
  return result
2946
3325
  end
@@ -2982,10 +3361,10 @@ module Google
2982
3361
  # @param zone [::String]
2983
3362
  # The name of the zone for this request.
2984
3363
  # @yield [result, response] Access the result along with the Faraday response object
2985
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3364
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
2986
3365
  # @yieldparam response [::Faraday::Response]
2987
3366
  #
2988
- # @return [::Gapic::Rest::BaseOperation]
3367
+ # @return [::Gapic::GenericLRO::Operation]
2989
3368
  #
2990
3369
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2991
3370
  def update_access_config request, options = nil
@@ -3012,7 +3391,15 @@ module Google
3012
3391
  metadata: @config.metadata
3013
3392
 
3014
3393
  @instances_stub.update_access_config request, options do |result, response|
3015
- 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
+ )
3016
3403
  yield result, response if block_given?
3017
3404
  return result
3018
3405
  end
@@ -3052,10 +3439,10 @@ module Google
3052
3439
  # @param zone [::String]
3053
3440
  # The name of the zone for this request.
3054
3441
  # @yield [result, response] Access the result along with the Faraday response object
3055
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3442
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3056
3443
  # @yieldparam response [::Faraday::Response]
3057
3444
  #
3058
- # @return [::Gapic::Rest::BaseOperation]
3445
+ # @return [::Gapic::GenericLRO::Operation]
3059
3446
  #
3060
3447
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3061
3448
  def update_display_device request, options = nil
@@ -3082,7 +3469,15 @@ module Google
3082
3469
  metadata: @config.metadata
3083
3470
 
3084
3471
  @instances_stub.update_display_device request, options do |result, response|
3085
- 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
+ )
3086
3481
  yield result, response if block_given?
3087
3482
  return result
3088
3483
  end
@@ -3124,10 +3519,10 @@ module Google
3124
3519
  # @param zone [::String]
3125
3520
  # The name of the zone for this request.
3126
3521
  # @yield [result, response] Access the result along with the Faraday response object
3127
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3522
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3128
3523
  # @yieldparam response [::Faraday::Response]
3129
3524
  #
3130
- # @return [::Gapic::Rest::BaseOperation]
3525
+ # @return [::Gapic::GenericLRO::Operation]
3131
3526
  #
3132
3527
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3133
3528
  def update_network_interface request, options = nil
@@ -3154,7 +3549,15 @@ module Google
3154
3549
  metadata: @config.metadata
3155
3550
 
3156
3551
  @instances_stub.update_network_interface request, options do |result, response|
3157
- 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
+ )
3158
3561
  yield result, response if block_given?
3159
3562
  return result
3160
3563
  end
@@ -3194,10 +3597,10 @@ module Google
3194
3597
  # @param zone [::String]
3195
3598
  # The name of the zone for this request.
3196
3599
  # @yield [result, response] Access the result along with the Faraday response object
3197
- # @yieldparam result [::Gapic::Rest::BaseOperation]
3600
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
3198
3601
  # @yieldparam response [::Faraday::Response]
3199
3602
  #
3200
- # @return [::Gapic::Rest::BaseOperation]
3603
+ # @return [::Gapic::GenericLRO::Operation]
3201
3604
  #
3202
3605
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3203
3606
  def update_shielded_instance_config request, options = nil
@@ -3224,7 +3627,15 @@ module Google
3224
3627
  metadata: @config.metadata
3225
3628
 
3226
3629
  @instances_stub.update_shielded_instance_config request, options do |result, response|
3227
- 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
+ )
3228
3639
  yield result, response if block_given?
3229
3640
  return result
3230
3641
  end
@@ -3433,6 +3844,11 @@ module Google
3433
3844
  #
3434
3845
  attr_reader :reset
3435
3846
  ##
3847
+ # RPC-specific configuration for `resume`
3848
+ # @return [::Gapic::Config::Method]
3849
+ #
3850
+ attr_reader :resume
3851
+ ##
3436
3852
  # RPC-specific configuration for `send_diagnostic_interrupt`
3437
3853
  # @return [::Gapic::Config::Method]
3438
3854
  #
@@ -3518,6 +3934,11 @@ module Google
3518
3934
  #
3519
3935
  attr_reader :stop
3520
3936
  ##
3937
+ # RPC-specific configuration for `suspend`
3938
+ # @return [::Gapic::Config::Method]
3939
+ #
3940
+ attr_reader :suspend
3941
+ ##
3521
3942
  # RPC-specific configuration for `test_iam_permissions`
3522
3943
  # @return [::Gapic::Config::Method]
3523
3944
  #
@@ -3590,6 +4011,8 @@ module Google
3590
4011
  @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
3591
4012
  reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
3592
4013
  @reset = ::Gapic::Config::Method.new reset_config
4014
+ resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
4015
+ @resume = ::Gapic::Config::Method.new resume_config
3593
4016
  send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
3594
4017
  @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
3595
4018
  set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
@@ -3624,6 +4047,8 @@ module Google
3624
4047
  @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
3625
4048
  stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
3626
4049
  @stop = ::Gapic::Config::Method.new stop_config
4050
+ suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
4051
+ @suspend = ::Gapic::Config::Method.new suspend_config
3627
4052
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
3628
4053
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
3629
4054
  update_config = parent_rpcs.update if parent_rpcs.respond_to? :update