google-apis-compute_v1 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/compute_v1/classes.rb +2 -2
- data/lib/google/apis/compute_v1/gem_version.rb +3 -3
- data/lib/google/apis/compute_v1/service.rb +111 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b05174577b527e9d385808dd654a8160d3a8521d827f32556cc8692d2c8c6ec9
|
4
|
+
data.tar.gz: 0f1e6f1de040e6b529dff5b71debf985dd60601fc947942e6b81fbeec33bcb92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0062fe67cd12effc64c41548468407d58a2ad6b23c804efce23a540e8ad58d937026f7cfae67a4362daee4171d319f4aed05abc5e43fcfe9a3c53f80f99c632c
|
7
|
+
data.tar.gz: c70b83e5b31fd2d5790f7a2846aa8b5b82ab52f714a373ea44bb8810105051150ebb3fc288ca5c3ad1ff8ff355d29671ed8de80d56c7e930c9ef5e1f0f1fa74f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-compute_v1
|
2
2
|
|
3
|
+
### v0.24.0 (2022-01-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220112
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
3
8
|
### v0.23.0 (2022-01-08)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20211228
|
@@ -30327,8 +30327,8 @@ module Google
|
|
30327
30327
|
|
30328
30328
|
# Defines the maintenance behavior for this instance. For standard instances,
|
30329
30329
|
# the default behavior is MIGRATE. For preemptible instances, the default and
|
30330
|
-
# only possible behavior is TERMINATE. For more information, see
|
30331
|
-
#
|
30330
|
+
# only possible behavior is TERMINATE. For more information, see Set VM
|
30331
|
+
# availability policies.
|
30332
30332
|
# Corresponds to the JSON property `onHostMaintenance`
|
30333
30333
|
# @return [String]
|
30334
30334
|
attr_accessor :on_host_maintenance
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComputeV1
|
18
18
|
# Version of the google-apis-compute_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.24.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220112"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -11377,6 +11377,56 @@ module Google
|
|
11377
11377
|
execute_or_queue_command(command, &block)
|
11378
11378
|
end
|
11379
11379
|
|
11380
|
+
# Resumes an instance that was suspended using the instances().suspend method.
|
11381
|
+
# @param [String] project
|
11382
|
+
# Project ID for this request.
|
11383
|
+
# @param [String] zone
|
11384
|
+
# The name of the zone for this request.
|
11385
|
+
# @param [String] instance
|
11386
|
+
# Name of the instance resource to resume.
|
11387
|
+
# @param [String] request_id
|
11388
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11389
|
+
# that if you must retry your request, the server will know to ignore the
|
11390
|
+
# request if it has already been completed. For example, consider a situation
|
11391
|
+
# where you make an initial request and the request times out. If you make the
|
11392
|
+
# request again with the same request ID, the server can check if original
|
11393
|
+
# operation with the same request ID was received, and if so, will ignore the
|
11394
|
+
# second request. This prevents clients from accidentally creating duplicate
|
11395
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
11396
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
11397
|
+
# @param [String] fields
|
11398
|
+
# Selector specifying which fields to include in a partial response.
|
11399
|
+
# @param [String] quota_user
|
11400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
11401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
11402
|
+
# @param [String] user_ip
|
11403
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
11404
|
+
# @param [Google::Apis::RequestOptions] options
|
11405
|
+
# Request-specific options
|
11406
|
+
#
|
11407
|
+
# @yield [result, err] Result & error if block supplied
|
11408
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11409
|
+
# @yieldparam err [StandardError] error object if request failed
|
11410
|
+
#
|
11411
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11412
|
+
#
|
11413
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11414
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11415
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11416
|
+
def resume_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11417
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
|
11418
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11419
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11420
|
+
command.params['project'] = project unless project.nil?
|
11421
|
+
command.params['zone'] = zone unless zone.nil?
|
11422
|
+
command.params['instance'] = instance unless instance.nil?
|
11423
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11424
|
+
command.query['fields'] = fields unless fields.nil?
|
11425
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11426
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11427
|
+
execute_or_queue_command(command, &block)
|
11428
|
+
end
|
11429
|
+
|
11380
11430
|
# Sends diagnostic interrupt to the instance.
|
11381
11431
|
# @param [String] project
|
11382
11432
|
# Project ID for this request.
|
@@ -11839,7 +11889,9 @@ module Google
|
|
11839
11889
|
|
11840
11890
|
# Sets an instance's scheduling options. You can only call this method on a
|
11841
11891
|
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
|
11842
|
-
# Instance Life Cycle for more information on the possible instance states.
|
11892
|
+
# Instance Life Cycle for more information on the possible instance states. For
|
11893
|
+
# more information about setting scheduling options for a VM, see Set VM
|
11894
|
+
# availability policies.
|
11843
11895
|
# @param [String] project
|
11844
11896
|
# Project ID for this request.
|
11845
11897
|
# @param [String] zone
|
@@ -12055,7 +12107,8 @@ module Google
|
|
12055
12107
|
execute_or_queue_command(command, &block)
|
12056
12108
|
end
|
12057
12109
|
|
12058
|
-
# Simulates a maintenance event on
|
12110
|
+
# Simulates a host maintenance event on a VM. For more information, see Simulate
|
12111
|
+
# a host maintenance event.
|
12059
12112
|
# @param [String] project
|
12060
12113
|
# Project ID for this request.
|
12061
12114
|
# @param [String] zone
|
@@ -12253,6 +12306,62 @@ module Google
|
|
12253
12306
|
execute_or_queue_command(command, &block)
|
12254
12307
|
end
|
12255
12308
|
|
12309
|
+
# This method suspends a running instance, saving its state to persistent
|
12310
|
+
# storage, and allows you to resume the instance at a later time. Suspended
|
12311
|
+
# instances have no compute costs (cores or RAM), and incur only storage charges
|
12312
|
+
# for the saved VM memory and localSSD data. Any charged resources the virtual
|
12313
|
+
# machine was using, such as persistent disks and static IP addresses, will
|
12314
|
+
# continue to be charged while the instance is suspended. For more information,
|
12315
|
+
# see Suspending and resuming an instance.
|
12316
|
+
# @param [String] project
|
12317
|
+
# Project ID for this request.
|
12318
|
+
# @param [String] zone
|
12319
|
+
# The name of the zone for this request.
|
12320
|
+
# @param [String] instance
|
12321
|
+
# Name of the instance resource to suspend.
|
12322
|
+
# @param [String] request_id
|
12323
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
12324
|
+
# that if you must retry your request, the server will know to ignore the
|
12325
|
+
# request if it has already been completed. For example, consider a situation
|
12326
|
+
# where you make an initial request and the request times out. If you make the
|
12327
|
+
# request again with the same request ID, the server can check if original
|
12328
|
+
# operation with the same request ID was received, and if so, will ignore the
|
12329
|
+
# second request. This prevents clients from accidentally creating duplicate
|
12330
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
12331
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
12332
|
+
# @param [String] fields
|
12333
|
+
# Selector specifying which fields to include in a partial response.
|
12334
|
+
# @param [String] quota_user
|
12335
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12336
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12337
|
+
# @param [String] user_ip
|
12338
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
12339
|
+
# @param [Google::Apis::RequestOptions] options
|
12340
|
+
# Request-specific options
|
12341
|
+
#
|
12342
|
+
# @yield [result, err] Result & error if block supplied
|
12343
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
12344
|
+
# @yieldparam err [StandardError] error object if request failed
|
12345
|
+
#
|
12346
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
12347
|
+
#
|
12348
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12349
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12350
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12351
|
+
def suspend_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12352
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options)
|
12353
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
12354
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
12355
|
+
command.params['project'] = project unless project.nil?
|
12356
|
+
command.params['zone'] = zone unless zone.nil?
|
12357
|
+
command.params['instance'] = instance unless instance.nil?
|
12358
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
12359
|
+
command.query['fields'] = fields unless fields.nil?
|
12360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12361
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12362
|
+
execute_or_queue_command(command, &block)
|
12363
|
+
end
|
12364
|
+
|
12256
12365
|
# Returns permissions that a caller has on the specified resource.
|
12257
12366
|
# @param [String] project
|
12258
12367
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.24.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Compute Engine API V1
|