google-cloud-compute-v1 0.3.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) 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 +4 -24
  6. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -34
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +8 -44
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +85 -42
  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 +91 -66
  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 +8335 -7443
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -24
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +12 -60
  15. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -22
  16. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +13 -63
  17. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +6 -32
  18. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +9 -49
  19. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +4 -22
  20. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +7 -33
  21. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +8 -44
  22. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -30
  23. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +2 -12
  24. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +5 -27
  25. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +8 -44
  26. data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
  27. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
  28. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
  29. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
  30. data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
  31. data/lib/google/cloud/compute/v1/images/rest/client.rb +7 -35
  32. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +30 -150
  33. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +16 -72
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -22
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +272 -197
  36. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +134 -0
  37. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +7 -39
  38. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +2 -12
  39. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +5 -27
  40. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +2 -2
  41. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +11 -29
  42. data/lib/google/cloud/compute/v1/machine_images/credentials.rb +52 -0
  43. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +777 -0
  44. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
  45. data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
  46. data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
  47. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -24
  48. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +10 -56
  49. data/lib/google/cloud/compute/v1/networks/rest/client.rb +14 -61
  50. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +12 -66
  51. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +6 -34
  52. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -24
  53. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +7 -39
  54. data/lib/google/cloud/compute/v1/projects/rest/client.rb +15 -71
  55. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +5 -27
  56. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +7 -39
  57. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +6 -32
  58. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +9 -35
  59. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +88 -30
  60. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
  61. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +2 -12
  62. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +10 -48
  63. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +5 -27
  64. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +6 -32
  65. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +27 -133
  66. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +5 -29
  67. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -5
  68. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -22
  69. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -22
  70. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +3 -17
  71. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -22
  72. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +5 -27
  73. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +6 -32
  74. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +2 -12
  75. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -14
  76. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +89 -39
  77. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
  78. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -34
  79. data/lib/google/cloud/compute/v1/routers/rest/client.rb +10 -56
  80. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -22
  81. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +7 -39
  82. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
  83. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
  84. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
  85. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
  86. data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
  87. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +79 -20
  88. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
  89. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +6 -34
  90. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -39
  91. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +11 -61
  92. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +5 -27
  93. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +9 -45
  94. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +12 -60
  95. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +6 -34
  96. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +11 -59
  97. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +8 -42
  98. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +6 -32
  99. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +6 -34
  100. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +10 -52
  101. data/lib/google/cloud/compute/v1/version.rb +1 -1
  102. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +7 -39
  103. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +6 -34
  104. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +3 -17
  105. data/lib/google/cloud/compute/v1/zones/rest/client.rb +2 -12
  106. data/lib/google/cloud/compute/v1.rb +3 -0
  107. data/proto_docs/README.md +1 -1
  108. data/proto_docs/google/api/field_behavior.rb +6 -0
  109. data/proto_docs/google/api/resource.rb +10 -71
  110. data/proto_docs/google/cloud/compute/v1/compute.rb +20013 -21099
  111. data/proto_docs/google/cloud/extended_operations.rb +51 -0
  112. metadata +34 -4
@@ -134,6 +134,10 @@ module Google
134
134
 
135
135
  default_config.rpcs.reset.timeout = 600.0
136
136
 
137
+ default_config.rpcs.resume.timeout = 600.0
138
+
139
+ default_config.rpcs.send_diagnostic_interrupt.timeout = 600.0
140
+
137
141
  default_config.rpcs.set_deletion_protection.timeout = 600.0
138
142
 
139
143
  default_config.rpcs.set_disk_auto_delete.timeout = 600.0
@@ -166,6 +170,8 @@ module Google
166
170
 
167
171
  default_config.rpcs.stop.timeout = 600.0
168
172
 
173
+ default_config.rpcs.suspend.timeout = 600.0
174
+
169
175
  default_config.rpcs.test_iam_permissions.timeout = 600.0
170
176
 
171
177
  default_config.rpcs.update.timeout = 600.0
@@ -268,11 +274,7 @@ module Google
268
274
  # @param project [::String]
269
275
  # Project ID for this request.
270
276
  # @param request_id [::String]
271
- # 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.
272
- #
273
- # 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.
274
- #
275
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
277
+ # 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).
276
278
  # @param zone [::String]
277
279
  # The name of the zone for this request.
278
280
  # @yield [result, response] Access the result along with the Faraday response object
@@ -342,11 +344,7 @@ module Google
342
344
  # @param project [::String]
343
345
  # Project ID for this request.
344
346
  # @param request_id [::String]
345
- # 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.
346
- #
347
- # 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.
348
- #
349
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
347
+ # 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).
350
348
  # @param zone [::String]
351
349
  # The name of the zone for this request.
352
350
  # @yield [result, response] Access the result along with the Faraday response object
@@ -390,7 +388,7 @@ module Google
390
388
  end
391
389
 
392
390
  ##
393
- # Retrieves aggregated list of all of the instances in your project across all regions and zones.
391
+ # Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances.
394
392
  #
395
393
  # @overload aggregated_list(request, options = nil)
396
394
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -410,23 +408,13 @@ module Google
410
408
  # the default parameter values, pass an empty Hash as a request object (see above).
411
409
  #
412
410
  # @param filter [::String]
413
- # 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 `<`.
414
- #
415
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
416
- #
417
- # 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.
418
- #
419
- # 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) ```
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) ```
420
412
  # @param include_all_scopes [::Boolean]
421
413
  # 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.
422
414
  # @param max_results [::Integer]
423
415
  # 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`)
424
416
  # @param order_by [::String]
425
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
426
- #
427
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
428
- #
429
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
417
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
430
418
  # @param page_token [::String]
431
419
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
432
420
  # @param project [::String]
@@ -502,11 +490,7 @@ module Google
502
490
  # @param project [::String]
503
491
  # Project ID for this request.
504
492
  # @param request_id [::String]
505
- # 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.
506
- #
507
- # 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.
508
- #
509
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
493
+ # 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).
510
494
  # @param zone [::String]
511
495
  # The name of the zone for this request.
512
496
  # @yield [result, response] Access the result along with the Faraday response object
@@ -574,11 +558,7 @@ module Google
574
558
  # @param project [::String]
575
559
  # Project ID for this request.
576
560
  # @param request_id [::String]
577
- # 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.
578
- #
579
- # 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.
580
- #
581
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
561
+ # 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).
582
562
  # @param zone [::String]
583
563
  # The name of the zone for this request.
584
564
  # @yield [result, response] Access the result along with the Faraday response object
@@ -646,11 +626,7 @@ module Google
646
626
  # @param project [::String]
647
627
  # Project ID for this request.
648
628
  # @param request_id [::String]
649
- # 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.
650
- #
651
- # 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.
652
- #
653
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
629
+ # 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).
654
630
  # @param zone [::String]
655
631
  # The name of the zone for this request.
656
632
  # @yield [result, response] Access the result along with the Faraday response object
@@ -722,11 +698,7 @@ module Google
722
698
  # @param project [::String]
723
699
  # Project ID for this request.
724
700
  # @param request_id [::String]
725
- # 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.
726
- #
727
- # 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.
728
- #
729
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
701
+ # 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).
730
702
  # @param zone [::String]
731
703
  # The name of the zone for this request.
732
704
  # @yield [result, response] Access the result along with the Faraday response object
@@ -796,11 +768,7 @@ module Google
796
768
  # @param project [::String]
797
769
  # Project ID for this request.
798
770
  # @param request_id [::String]
799
- # 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.
800
- #
801
- # 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.
802
- #
803
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
771
+ # 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).
804
772
  # @param zone [::String]
805
773
  # The name of the zone for this request.
806
774
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1203,11 +1171,7 @@ module Google
1203
1171
  # @param project [::String]
1204
1172
  # Project ID for this request.
1205
1173
  # @param start [::Integer]
1206
- # Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`.
1207
- #
1208
- # If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value.
1209
- #
1210
- # You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
1174
+ # Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
1211
1175
  # @param zone [::String]
1212
1176
  # The name of the zone for this request.
1213
1177
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1329,7 +1293,7 @@ module Google
1329
1293
  # Note: currently retry functionality is not implemented. While it is possible
1330
1294
  # to set it using ::Gapic::CallOptions, it will not be applied
1331
1295
  #
1332
- # @overload insert(instance_resource: nil, project: nil, request_id: nil, source_instance_template: nil, zone: nil)
1296
+ # @overload insert(instance_resource: nil, project: nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, zone: nil)
1333
1297
  # Pass arguments to `insert` via keyword arguments. Note that at
1334
1298
  # least one keyword argument is required. To specify no parameters, or to keep all
1335
1299
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1339,18 +1303,11 @@ module Google
1339
1303
  # @param project [::String]
1340
1304
  # Project ID for this request.
1341
1305
  # @param request_id [::String]
1342
- # 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.
1343
- #
1344
- # 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.
1345
- #
1346
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1306
+ # 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).
1347
1307
  # @param source_instance_template [::String]
1348
- # Specifies instance template to create the instance.
1349
- #
1350
- # This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template:
1351
- # - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
1352
- # - projects/project/global/instanceTemplates/instanceTemplate
1353
- # - global/instanceTemplates/instanceTemplate
1308
+ # 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
1309
+ # @param source_machine_image [::String]
1310
+ # 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
1354
1311
  # @param zone [::String]
1355
1312
  # The name of the zone for this request.
1356
1313
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1414,21 +1371,11 @@ module Google
1414
1371
  # the default parameter values, pass an empty Hash as a request object (see above).
1415
1372
  #
1416
1373
  # @param filter [::String]
1417
- # 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 `<`.
1418
- #
1419
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
1420
- #
1421
- # 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.
1422
- #
1423
- # 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) ```
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) ```
1424
1375
  # @param max_results [::Integer]
1425
1376
  # 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`)
1426
1377
  # @param order_by [::String]
1427
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
1428
- #
1429
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
1430
- #
1431
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1378
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1432
1379
  # @param page_token [::String]
1433
1380
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1434
1381
  # @param project [::String]
@@ -1498,23 +1445,13 @@ module Google
1498
1445
  # the default parameter values, pass an empty Hash as a request object (see above).
1499
1446
  #
1500
1447
  # @param filter [::String]
1501
- # 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 `<`.
1502
- #
1503
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
1504
- #
1505
- # 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.
1506
- #
1507
- # 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) ```
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) ```
1508
1449
  # @param instance [::String]
1509
1450
  # Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
1510
1451
  # @param max_results [::Integer]
1511
1452
  # 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`)
1512
1453
  # @param order_by [::String]
1513
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
1514
- #
1515
- # You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
1516
- #
1517
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1454
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1518
1455
  # @param page_token [::String]
1519
1456
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1520
1457
  # @param project [::String]
@@ -1590,11 +1527,7 @@ module Google
1590
1527
  # @param project [::String]
1591
1528
  # Project ID for this request.
1592
1529
  # @param request_id [::String]
1593
- # 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.
1594
- #
1595
- # 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.
1596
- #
1597
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1530
+ # 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).
1598
1531
  # @param zone [::String]
1599
1532
  # The name of the zone for this request.
1600
1533
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1662,11 +1595,7 @@ module Google
1662
1595
  # @param project [::String]
1663
1596
  # Project ID for this request.
1664
1597
  # @param request_id [::String]
1665
- # 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.
1666
- #
1667
- # 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.
1668
- #
1669
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1598
+ # 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).
1670
1599
  # @param zone [::String]
1671
1600
  # The name of the zone for this request.
1672
1601
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1709,6 +1638,139 @@ module Google
1709
1638
  raise ::Google::Cloud::Error.from_error(gapic_error)
1710
1639
  end
1711
1640
 
1641
+ ##
1642
+ # Resumes an instance that was suspended using the instances().suspend method.
1643
+ #
1644
+ # @overload resume(request, options = nil)
1645
+ # Pass arguments to `resume` via a request object, either of type
1646
+ # {::Google::Cloud::Compute::V1::ResumeInstanceRequest} or an equivalent Hash.
1647
+ #
1648
+ # @param request [::Google::Cloud::Compute::V1::ResumeInstanceRequest, ::Hash]
1649
+ # A request object representing the call parameters. Required. To specify no
1650
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1651
+ # @param options [::Gapic::CallOptions, ::Hash]
1652
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1653
+ # Note: currently retry functionality is not implemented. While it is possible
1654
+ # to set it using ::Gapic::CallOptions, it will not be applied
1655
+ #
1656
+ # @overload resume(instance: nil, project: nil, request_id: nil, zone: nil)
1657
+ # Pass arguments to `resume` via keyword arguments. Note that at
1658
+ # least one keyword argument is required. To specify no parameters, or to keep all
1659
+ # the default parameter values, pass an empty Hash as a request object (see above).
1660
+ #
1661
+ # @param instance [::String]
1662
+ # Name of the instance resource to resume.
1663
+ # @param project [::String]
1664
+ # Project ID for this request.
1665
+ # @param request_id [::String]
1666
+ # 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).
1667
+ # @param zone [::String]
1668
+ # The name of the zone for this request.
1669
+ # @yield [result, response] Access the result along with the Faraday response object
1670
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1671
+ # @yieldparam response [::Faraday::Response]
1672
+ #
1673
+ # @return [::Gapic::Rest::BaseOperation]
1674
+ #
1675
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1676
+ def resume request, options = nil
1677
+ raise ::ArgumentError, "request must be provided" if request.nil?
1678
+
1679
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ResumeInstanceRequest
1680
+
1681
+ # Converts hash and nil to an options object
1682
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1683
+
1684
+ # Customize the options with defaults
1685
+ call_metadata = @config.rpcs.resume.metadata.to_h
1686
+
1687
+ # Set x-goog-api-client header
1688
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1689
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1690
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1691
+ transports_version_send: [:rest]
1692
+
1693
+ options.apply_defaults timeout: @config.rpcs.resume.timeout,
1694
+ metadata: call_metadata
1695
+
1696
+ options.apply_defaults timeout: @config.timeout,
1697
+ metadata: @config.metadata
1698
+
1699
+ @instances_stub.resume request, options do |result, response|
1700
+ result = ::Gapic::Rest::BaseOperation.new result
1701
+ yield result, response if block_given?
1702
+ return result
1703
+ end
1704
+ rescue ::Faraday::Error => e
1705
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1706
+ raise ::Google::Cloud::Error.from_error(gapic_error)
1707
+ end
1708
+
1709
+ ##
1710
+ # Sends diagnostic interrupt to the instance.
1711
+ #
1712
+ # @overload send_diagnostic_interrupt(request, options = nil)
1713
+ # Pass arguments to `send_diagnostic_interrupt` via a request object, either of type
1714
+ # {::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest} or an equivalent Hash.
1715
+ #
1716
+ # @param request [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest, ::Hash]
1717
+ # A request object representing the call parameters. Required. To specify no
1718
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1719
+ # @param options [::Gapic::CallOptions, ::Hash]
1720
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1721
+ # Note: currently retry functionality is not implemented. While it is possible
1722
+ # to set it using ::Gapic::CallOptions, it will not be applied
1723
+ #
1724
+ # @overload send_diagnostic_interrupt(instance: nil, project: nil, zone: nil)
1725
+ # Pass arguments to `send_diagnostic_interrupt` via keyword arguments. Note that at
1726
+ # least one keyword argument is required. To specify no parameters, or to keep all
1727
+ # the default parameter values, pass an empty Hash as a request object (see above).
1728
+ #
1729
+ # @param instance [::String]
1730
+ # Name of the instance scoping this request.
1731
+ # @param project [::String]
1732
+ # Project ID for this request.
1733
+ # @param zone [::String]
1734
+ # The name of the zone for this request.
1735
+ # @yield [result, response] Access the result along with the Faraday response object
1736
+ # @yieldparam result [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
1737
+ # @yieldparam response [::Faraday::Response]
1738
+ #
1739
+ # @return [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
1740
+ #
1741
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1742
+ def send_diagnostic_interrupt request, options = nil
1743
+ raise ::ArgumentError, "request must be provided" if request.nil?
1744
+
1745
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest
1746
+
1747
+ # Converts hash and nil to an options object
1748
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1749
+
1750
+ # Customize the options with defaults
1751
+ call_metadata = @config.rpcs.send_diagnostic_interrupt.metadata.to_h
1752
+
1753
+ # Set x-goog-api-client header
1754
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1755
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1756
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1757
+ transports_version_send: [:rest]
1758
+
1759
+ options.apply_defaults timeout: @config.rpcs.send_diagnostic_interrupt.timeout,
1760
+ metadata: call_metadata
1761
+
1762
+ options.apply_defaults timeout: @config.timeout,
1763
+ metadata: @config.metadata
1764
+
1765
+ @instances_stub.send_diagnostic_interrupt request, options do |result, response|
1766
+ yield result, response if block_given?
1767
+ return result
1768
+ end
1769
+ rescue ::Faraday::Error => e
1770
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1771
+ raise ::Google::Cloud::Error.from_error(gapic_error)
1772
+ end
1773
+
1712
1774
  ##
1713
1775
  # Sets deletion protection on the instance.
1714
1776
  #
@@ -1734,11 +1796,7 @@ module Google
1734
1796
  # @param project [::String]
1735
1797
  # Project ID for this request.
1736
1798
  # @param request_id [::String]
1737
- # 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.
1738
- #
1739
- # 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.
1740
- #
1741
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1799
+ # 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).
1742
1800
  # @param resource [::String]
1743
1801
  # Name or id of the resource for this request.
1744
1802
  # @param zone [::String]
@@ -1812,11 +1870,7 @@ module Google
1812
1870
  # @param project [::String]
1813
1871
  # Project ID for this request.
1814
1872
  # @param request_id [::String]
1815
- # 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.
1816
- #
1817
- # 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.
1818
- #
1819
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1873
+ # 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).
1820
1874
  # @param zone [::String]
1821
1875
  # The name of the zone for this request.
1822
1876
  # @yield [result, response] Access the result along with the Faraday response object
@@ -1953,11 +2007,7 @@ module Google
1953
2007
  # @param project [::String]
1954
2008
  # Project ID for this request.
1955
2009
  # @param request_id [::String]
1956
- # 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.
1957
- #
1958
- # 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.
1959
- #
1960
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2010
+ # 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).
1961
2011
  # @param zone [::String]
1962
2012
  # The name of the zone for this request.
1963
2013
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2027,11 +2077,7 @@ module Google
2027
2077
  # @param project [::String]
2028
2078
  # Project ID for this request.
2029
2079
  # @param request_id [::String]
2030
- # 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.
2031
- #
2032
- # 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.
2033
- #
2034
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2080
+ # 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).
2035
2081
  # @param zone [::String]
2036
2082
  # The name of the zone for this request.
2037
2083
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2101,11 +2147,7 @@ module Google
2101
2147
  # @param project [::String]
2102
2148
  # Project ID for this request.
2103
2149
  # @param request_id [::String]
2104
- # 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.
2105
- #
2106
- # 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.
2107
- #
2108
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2150
+ # 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).
2109
2151
  # @param zone [::String]
2110
2152
  # The name of the zone for this request.
2111
2153
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2175,11 +2217,7 @@ module Google
2175
2217
  # @param project [::String]
2176
2218
  # Project ID for this request.
2177
2219
  # @param request_id [::String]
2178
- # 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.
2179
- #
2180
- # 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.
2181
- #
2182
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2220
+ # 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).
2183
2221
  # @param zone [::String]
2184
2222
  # The name of the zone for this request.
2185
2223
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2249,11 +2287,7 @@ module Google
2249
2287
  # @param project [::String]
2250
2288
  # Project ID for this request.
2251
2289
  # @param request_id [::String]
2252
- # 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.
2253
- #
2254
- # 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.
2255
- #
2256
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2290
+ # 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).
2257
2291
  # @param zone [::String]
2258
2292
  # The name of the zone for this request.
2259
2293
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2297,7 +2331,7 @@ module Google
2297
2331
  end
2298
2332
 
2299
2333
  ##
2300
- # 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.
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.
2301
2335
  #
2302
2336
  # @overload set_scheduling(request, options = nil)
2303
2337
  # Pass arguments to `set_scheduling` via a request object, either of type
@@ -2321,11 +2355,7 @@ module Google
2321
2355
  # @param project [::String]
2322
2356
  # Project ID for this request.
2323
2357
  # @param request_id [::String]
2324
- # 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.
2325
- #
2326
- # 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.
2327
- #
2328
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2358
+ # 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).
2329
2359
  # @param scheduling_resource [::Google::Cloud::Compute::V1::Scheduling, ::Hash]
2330
2360
  # The body resource for this request
2331
2361
  # @param zone [::String]
@@ -2397,11 +2427,7 @@ module Google
2397
2427
  # @param project [::String]
2398
2428
  # Project ID for this request.
2399
2429
  # @param request_id [::String]
2400
- # 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.
2401
- #
2402
- # 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.
2403
- #
2404
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2430
+ # 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).
2405
2431
  # @param zone [::String]
2406
2432
  # The name of the zone for this request.
2407
2433
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2469,11 +2495,7 @@ module Google
2469
2495
  # @param project [::String]
2470
2496
  # Project ID for this request.
2471
2497
  # @param request_id [::String]
2472
- # 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.
2473
- #
2474
- # 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.
2475
- #
2476
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2498
+ # 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).
2477
2499
  # @param shielded_instance_integrity_policy_resource [::Google::Cloud::Compute::V1::ShieldedInstanceIntegrityPolicy, ::Hash]
2478
2500
  # The body resource for this request
2479
2501
  # @param zone [::String]
@@ -2543,11 +2565,7 @@ module Google
2543
2565
  # @param project [::String]
2544
2566
  # Project ID for this request.
2545
2567
  # @param request_id [::String]
2546
- # 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.
2547
- #
2548
- # 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.
2549
- #
2550
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2568
+ # 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).
2551
2569
  # @param tags_resource [::Google::Cloud::Compute::V1::Tags, ::Hash]
2552
2570
  # The body resource for this request
2553
2571
  # @param zone [::String]
@@ -2593,7 +2611,7 @@ module Google
2593
2611
  end
2594
2612
 
2595
2613
  ##
2596
- # Simulates a maintenance event on the instance.
2614
+ # Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.
2597
2615
  #
2598
2616
  # @overload simulate_maintenance_event(request, options = nil)
2599
2617
  # Pass arguments to `simulate_maintenance_event` via a request object, either of type
@@ -2683,11 +2701,7 @@ module Google
2683
2701
  # @param project [::String]
2684
2702
  # Project ID for this request.
2685
2703
  # @param request_id [::String]
2686
- # 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.
2687
- #
2688
- # 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.
2689
- #
2690
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2704
+ # 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).
2691
2705
  # @param zone [::String]
2692
2706
  # The name of the zone for this request.
2693
2707
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2757,11 +2771,7 @@ module Google
2757
2771
  # @param project [::String]
2758
2772
  # Project ID for this request.
2759
2773
  # @param request_id [::String]
2760
- # 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.
2761
- #
2762
- # 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.
2763
- #
2764
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2774
+ # 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).
2765
2775
  # @param zone [::String]
2766
2776
  # The name of the zone for this request.
2767
2777
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2829,11 +2839,7 @@ module Google
2829
2839
  # @param project [::String]
2830
2840
  # Project ID for this request.
2831
2841
  # @param request_id [::String]
2832
- # 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.
2833
- #
2834
- # 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.
2835
- #
2836
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2842
+ # 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).
2837
2843
  # @param zone [::String]
2838
2844
  # The name of the zone for this request.
2839
2845
  # @yield [result, response] Access the result along with the Faraday response object
@@ -2876,6 +2882,74 @@ module Google
2876
2882
  raise ::Google::Cloud::Error.from_error(gapic_error)
2877
2883
  end
2878
2884
 
2885
+ ##
2886
+ # 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.
2887
+ #
2888
+ # @overload suspend(request, options = nil)
2889
+ # Pass arguments to `suspend` via a request object, either of type
2890
+ # {::Google::Cloud::Compute::V1::SuspendInstanceRequest} or an equivalent Hash.
2891
+ #
2892
+ # @param request [::Google::Cloud::Compute::V1::SuspendInstanceRequest, ::Hash]
2893
+ # A request object representing the call parameters. Required. To specify no
2894
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2895
+ # @param options [::Gapic::CallOptions, ::Hash]
2896
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2897
+ # Note: currently retry functionality is not implemented. While it is possible
2898
+ # to set it using ::Gapic::CallOptions, it will not be applied
2899
+ #
2900
+ # @overload suspend(instance: nil, project: nil, request_id: nil, zone: nil)
2901
+ # Pass arguments to `suspend` via keyword arguments. Note that at
2902
+ # least one keyword argument is required. To specify no parameters, or to keep all
2903
+ # the default parameter values, pass an empty Hash as a request object (see above).
2904
+ #
2905
+ # @param instance [::String]
2906
+ # Name of the instance resource to suspend.
2907
+ # @param project [::String]
2908
+ # Project ID for this request.
2909
+ # @param request_id [::String]
2910
+ # 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).
2911
+ # @param zone [::String]
2912
+ # The name of the zone for this request.
2913
+ # @yield [result, response] Access the result along with the Faraday response object
2914
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
2915
+ # @yieldparam response [::Faraday::Response]
2916
+ #
2917
+ # @return [::Gapic::Rest::BaseOperation]
2918
+ #
2919
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2920
+ def suspend request, options = nil
2921
+ raise ::ArgumentError, "request must be provided" if request.nil?
2922
+
2923
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SuspendInstanceRequest
2924
+
2925
+ # Converts hash and nil to an options object
2926
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2927
+
2928
+ # Customize the options with defaults
2929
+ call_metadata = @config.rpcs.suspend.metadata.to_h
2930
+
2931
+ # Set x-goog-api-client header
2932
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2933
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2934
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2935
+ transports_version_send: [:rest]
2936
+
2937
+ options.apply_defaults timeout: @config.rpcs.suspend.timeout,
2938
+ metadata: call_metadata
2939
+
2940
+ options.apply_defaults timeout: @config.timeout,
2941
+ metadata: @config.metadata
2942
+
2943
+ @instances_stub.suspend request, options do |result, response|
2944
+ result = ::Gapic::Rest::BaseOperation.new result
2945
+ yield result, response if block_given?
2946
+ return result
2947
+ end
2948
+ rescue ::Faraday::Error => e
2949
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
2950
+ raise ::Google::Cloud::Error.from_error(gapic_error)
2951
+ end
2952
+
2879
2953
  ##
2880
2954
  # Returns permissions that a caller has on the specified resource.
2881
2955
  #
@@ -2944,7 +3018,7 @@ module Google
2944
3018
  end
2945
3019
 
2946
3020
  ##
2947
- # Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
3021
+ # Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
2948
3022
  #
2949
3023
  # @overload update(request, options = nil)
2950
3024
  # Pass arguments to `update` via a request object, either of type
@@ -2974,11 +3048,7 @@ module Google
2974
3048
  # @param project [::String]
2975
3049
  # Project ID for this request.
2976
3050
  # @param request_id [::String]
2977
- # 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.
2978
- #
2979
- # 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.
2980
- #
2981
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3051
+ # 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).
2982
3052
  # @param zone [::String]
2983
3053
  # The name of the zone for this request.
2984
3054
  # @yield [result, response] Access the result along with the Faraday response object
@@ -3050,11 +3120,7 @@ module Google
3050
3120
  # @param project [::String]
3051
3121
  # Project ID for this request.
3052
3122
  # @param request_id [::String]
3053
- # 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.
3054
- #
3055
- # 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.
3056
- #
3057
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3123
+ # 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).
3058
3124
  # @param zone [::String]
3059
3125
  # The name of the zone for this request.
3060
3126
  # @yield [result, response] Access the result along with the Faraday response object
@@ -3124,11 +3190,7 @@ module Google
3124
3190
  # @param project [::String]
3125
3191
  # Project ID for this request.
3126
3192
  # @param request_id [::String]
3127
- # 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.
3128
- #
3129
- # 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.
3130
- #
3131
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3193
+ # 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
3194
  # @param zone [::String]
3133
3195
  # The name of the zone for this request.
3134
3196
  # @yield [result, response] Access the result along with the Faraday response object
@@ -3200,11 +3262,7 @@ module Google
3200
3262
  # @param project [::String]
3201
3263
  # Project ID for this request.
3202
3264
  # @param request_id [::String]
3203
- # 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.
3204
- #
3205
- # 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.
3206
- #
3207
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3265
+ # 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).
3208
3266
  # @param zone [::String]
3209
3267
  # The name of the zone for this request.
3210
3268
  # @yield [result, response] Access the result along with the Faraday response object
@@ -3272,11 +3330,7 @@ module Google
3272
3330
  # @param project [::String]
3273
3331
  # Project ID for this request.
3274
3332
  # @param request_id [::String]
3275
- # 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.
3276
- #
3277
- # 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.
3278
- #
3279
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3333
+ # 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).
3280
3334
  # @param shielded_instance_config_resource [::Google::Cloud::Compute::V1::ShieldedInstanceConfig, ::Hash]
3281
3335
  # The body resource for this request
3282
3336
  # @param zone [::String]
@@ -3521,6 +3575,16 @@ module Google
3521
3575
  #
3522
3576
  attr_reader :reset
3523
3577
  ##
3578
+ # RPC-specific configuration for `resume`
3579
+ # @return [::Gapic::Config::Method]
3580
+ #
3581
+ attr_reader :resume
3582
+ ##
3583
+ # RPC-specific configuration for `send_diagnostic_interrupt`
3584
+ # @return [::Gapic::Config::Method]
3585
+ #
3586
+ attr_reader :send_diagnostic_interrupt
3587
+ ##
3524
3588
  # RPC-specific configuration for `set_deletion_protection`
3525
3589
  # @return [::Gapic::Config::Method]
3526
3590
  #
@@ -3601,6 +3665,11 @@ module Google
3601
3665
  #
3602
3666
  attr_reader :stop
3603
3667
  ##
3668
+ # RPC-specific configuration for `suspend`
3669
+ # @return [::Gapic::Config::Method]
3670
+ #
3671
+ attr_reader :suspend
3672
+ ##
3604
3673
  # RPC-specific configuration for `test_iam_permissions`
3605
3674
  # @return [::Gapic::Config::Method]
3606
3675
  #
@@ -3673,6 +3742,10 @@ module Google
3673
3742
  @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
3674
3743
  reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
3675
3744
  @reset = ::Gapic::Config::Method.new reset_config
3745
+ resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
3746
+ @resume = ::Gapic::Config::Method.new resume_config
3747
+ send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
3748
+ @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
3676
3749
  set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
3677
3750
  @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
3678
3751
  set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
@@ -3705,6 +3778,8 @@ module Google
3705
3778
  @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
3706
3779
  stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
3707
3780
  @stop = ::Gapic::Config::Method.new stop_config
3781
+ suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
3782
+ @suspend = ::Gapic::Config::Method.new suspend_config
3708
3783
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
3709
3784
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
3710
3785
  update_config = parent_rpcs.update if parent_rpcs.respond_to? :update