google-apis-baremetalsolution_v2 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +65 -0
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +41 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +102 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ae63cb6ad768d022a52d8bdda682977abcd6ff0437d2bd19682af8808ac6e8
|
4
|
+
data.tar.gz: 0d0d91d6a273fb4506fa9b504a0bd38ad75aa87c774bc9ee3d36cfe58e42a01d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4602c22d57d61f1a6ff79f02033add45b5fb4f1eca3e41f3aef9df4a06628562a6d261132780d466c850f4bea64d98dc4a630e2da6657f4903c6b60a70691b54
|
7
|
+
data.tar.gz: 834585d87b65ae4d4189b820b2919959200b870221ae17a549c9cf5b40aaea8426369f7408d3d1309bb08e5aa345c31c260d9cbd5783e7186b0368d0a4a34f5e
|
data/CHANGELOG.md
CHANGED
@@ -159,6 +159,32 @@ module Google
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
+
# Request for skip lun cooloff and delete it.
|
163
|
+
class EvictLunRequest
|
164
|
+
include Google::Apis::Core::Hashable
|
165
|
+
|
166
|
+
def initialize(**args)
|
167
|
+
update!(**args)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Update properties of this object
|
171
|
+
def update!(**args)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Request for skip volume cooloff and delete it.
|
176
|
+
class EvictVolumeRequest
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
def initialize(**args)
|
180
|
+
update!(**args)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Update properties of this object
|
184
|
+
def update!(**args)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
162
188
|
# Response with all provisioning settings.
|
163
189
|
class FetchInstanceProvisioningSettingsResponse
|
164
190
|
include Google::Apis::Core::Hashable
|
@@ -934,6 +960,12 @@ module Google
|
|
934
960
|
attr_accessor :boot_lun
|
935
961
|
alias_method :boot_lun?, :boot_lun
|
936
962
|
|
963
|
+
# Output only. Time after which LUN will be fully deleted. It is filled only for
|
964
|
+
# LUNs in COOL_OFF state.
|
965
|
+
# Corresponds to the JSON property `expireTime`
|
966
|
+
# @return [String]
|
967
|
+
attr_accessor :expire_time
|
968
|
+
|
937
969
|
# An identifier for the LUN, generated by the backend.
|
938
970
|
# Corresponds to the JSON property `id`
|
939
971
|
# @return [String]
|
@@ -988,6 +1020,7 @@ module Google
|
|
988
1020
|
# Update properties of this object
|
989
1021
|
def update!(**args)
|
990
1022
|
@boot_lun = args[:boot_lun] if args.key?(:boot_lun)
|
1023
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
991
1024
|
@id = args[:id] if args.key?(:id)
|
992
1025
|
@multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
|
993
1026
|
@name = args[:name] if args.key?(:name)
|
@@ -1778,6 +1811,31 @@ module Google
|
|
1778
1811
|
end
|
1779
1812
|
end
|
1780
1813
|
|
1814
|
+
# Message requesting rename of a server.
|
1815
|
+
class RenameInstanceRequest
|
1816
|
+
include Google::Apis::Core::Hashable
|
1817
|
+
|
1818
|
+
# A server.
|
1819
|
+
# Corresponds to the JSON property `instance`
|
1820
|
+
# @return [Google::Apis::BaremetalsolutionV2::Instance]
|
1821
|
+
attr_accessor :instance
|
1822
|
+
|
1823
|
+
# Required. The new `name` of the instance. Format: `instancename`
|
1824
|
+
# Corresponds to the JSON property `name`
|
1825
|
+
# @return [String]
|
1826
|
+
attr_accessor :name
|
1827
|
+
|
1828
|
+
def initialize(**args)
|
1829
|
+
update!(**args)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# Update properties of this object
|
1833
|
+
def update!(**args)
|
1834
|
+
@instance = args[:instance] if args.key?(:instance)
|
1835
|
+
@name = args[:name] if args.key?(:name)
|
1836
|
+
end
|
1837
|
+
end
|
1838
|
+
|
1781
1839
|
# Message requesting to reset a server.
|
1782
1840
|
class ResetInstanceRequest
|
1783
1841
|
include Google::Apis::Core::Hashable
|
@@ -2151,6 +2209,12 @@ module Google
|
|
2151
2209
|
# @return [Fixnum]
|
2152
2210
|
attr_accessor :emergency_size_gib
|
2153
2211
|
|
2212
|
+
# Output only. Time after which volume will be fully deleted. It is filled only
|
2213
|
+
# for volumes in COOLOFF state.
|
2214
|
+
# Corresponds to the JSON property `expireTime`
|
2215
|
+
# @return [String]
|
2216
|
+
attr_accessor :expire_time
|
2217
|
+
|
2154
2218
|
# An identifier for the `Volume`, generated by the backend.
|
2155
2219
|
# Corresponds to the JSON property `id`
|
2156
2220
|
# @return [String]
|
@@ -2263,6 +2327,7 @@ module Google
|
|
2263
2327
|
@boot_volume = args[:boot_volume] if args.key?(:boot_volume)
|
2264
2328
|
@current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
|
2265
2329
|
@emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
|
2330
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
2266
2331
|
@id = args[:id] if args.key?(:id)
|
2267
2332
|
@labels = args[:labels] if args.key?(:labels)
|
2268
2333
|
@max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BaremetalsolutionV2
|
18
18
|
# Version of the google-apis-baremetalsolution_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.29.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,18 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class EvictLunRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class EvictVolumeRequest
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class FetchInstanceProvisioningSettingsResponse
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -256,6 +268,12 @@ module Google
|
|
256
268
|
include Google::Apis::Core::JsonObjectSupport
|
257
269
|
end
|
258
270
|
|
271
|
+
class RenameInstanceRequest
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
259
277
|
class ResetInstanceRequest
|
260
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
279
|
|
@@ -392,6 +410,18 @@ module Google
|
|
392
410
|
end
|
393
411
|
end
|
394
412
|
|
413
|
+
class EvictLunRequest
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
class EvictVolumeRequest
|
420
|
+
# @private
|
421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
395
425
|
class FetchInstanceProvisioningSettingsResponse
|
396
426
|
# @private
|
397
427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -608,6 +638,7 @@ module Google
|
|
608
638
|
# @private
|
609
639
|
class Representation < Google::Apis::Core::JsonRepresentation
|
610
640
|
property :boot_lun, as: 'bootLun'
|
641
|
+
property :expire_time, as: 'expireTime'
|
611
642
|
property :id, as: 'id'
|
612
643
|
property :multiprotocol_type, as: 'multiprotocolType'
|
613
644
|
property :name, as: 'name'
|
@@ -807,6 +838,15 @@ module Google
|
|
807
838
|
end
|
808
839
|
end
|
809
840
|
|
841
|
+
class RenameInstanceRequest
|
842
|
+
# @private
|
843
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
844
|
+
property :instance, as: 'instance', class: Google::Apis::BaremetalsolutionV2::Instance, decorator: Google::Apis::BaremetalsolutionV2::Instance::Representation
|
845
|
+
|
846
|
+
property :name, as: 'name'
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
810
850
|
class ResetInstanceRequest
|
811
851
|
# @private
|
812
852
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -924,6 +964,7 @@ module Google
|
|
924
964
|
property :boot_volume, as: 'bootVolume'
|
925
965
|
property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
|
926
966
|
property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
|
967
|
+
property :expire_time, as: 'expireTime'
|
927
968
|
property :id, as: 'id'
|
928
969
|
hash :labels, as: 'labels'
|
929
970
|
property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
|
@@ -396,6 +396,42 @@ module Google
|
|
396
396
|
execute_or_queue_command(command, &block)
|
397
397
|
end
|
398
398
|
|
399
|
+
# RenameInstance sets a new name for an instance.
|
400
|
+
# @param [String] name
|
401
|
+
# Immutable. The resource name of this `Instance`. Resource names are schemeless
|
402
|
+
# URIs that follow the conventions in https://cloud.google.com/apis/design/
|
403
|
+
# resource_names. Format: `projects/`project`/locations/`location`/instances/`
|
404
|
+
# instance``
|
405
|
+
# @param [Google::Apis::BaremetalsolutionV2::RenameInstanceRequest] rename_instance_request_object
|
406
|
+
# @param [String] fields
|
407
|
+
# Selector specifying which fields to include in a partial response.
|
408
|
+
# @param [String] quota_user
|
409
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
410
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
411
|
+
# @param [Google::Apis::RequestOptions] options
|
412
|
+
# Request-specific options
|
413
|
+
#
|
414
|
+
# @yield [result, err] Result & error if block supplied
|
415
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
416
|
+
# @yieldparam err [StandardError] error object if request failed
|
417
|
+
#
|
418
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
419
|
+
#
|
420
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
421
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
422
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
423
|
+
def rename_instance(name, rename_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
424
|
+
command = make_simple_command(:post, 'v2/{+name}:rename', options)
|
425
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::RenameInstanceRequest::Representation
|
426
|
+
command.request_object = rename_instance_request_object
|
427
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
428
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
429
|
+
command.params['name'] = name unless name.nil?
|
430
|
+
command.query['fields'] = fields unless fields.nil?
|
431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
432
|
+
execute_or_queue_command(command, &block)
|
433
|
+
end
|
434
|
+
|
399
435
|
# Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
400
436
|
# power off and then turning it back on.
|
401
437
|
# @param [String] name
|
@@ -1124,6 +1160,39 @@ module Google
|
|
1124
1160
|
execute_or_queue_command(command, &block)
|
1125
1161
|
end
|
1126
1162
|
|
1163
|
+
# Skips volume's cooloff and deletes it now. Volume must be in cooloff state.
|
1164
|
+
# @param [String] name
|
1165
|
+
# Required. The name of the Volume.
|
1166
|
+
# @param [Google::Apis::BaremetalsolutionV2::EvictVolumeRequest] evict_volume_request_object
|
1167
|
+
# @param [String] fields
|
1168
|
+
# Selector specifying which fields to include in a partial response.
|
1169
|
+
# @param [String] quota_user
|
1170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1172
|
+
# @param [Google::Apis::RequestOptions] options
|
1173
|
+
# Request-specific options
|
1174
|
+
#
|
1175
|
+
# @yield [result, err] Result & error if block supplied
|
1176
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1177
|
+
# @yieldparam err [StandardError] error object if request failed
|
1178
|
+
#
|
1179
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1180
|
+
#
|
1181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1184
|
+
def evict_volume(name, evict_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1185
|
+
command = make_simple_command(:post, 'v2/{+name}:evict', options)
|
1186
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::EvictVolumeRequest::Representation
|
1187
|
+
command.request_object = evict_volume_request_object
|
1188
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1189
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1190
|
+
command.params['name'] = name unless name.nil?
|
1191
|
+
command.query['fields'] = fields unless fields.nil?
|
1192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1193
|
+
execute_or_queue_command(command, &block)
|
1194
|
+
end
|
1195
|
+
|
1127
1196
|
# Get details of a single storage volume.
|
1128
1197
|
# @param [String] name
|
1129
1198
|
# Required. Name of the resource.
|
@@ -1266,6 +1335,39 @@ module Google
|
|
1266
1335
|
execute_or_queue_command(command, &block)
|
1267
1336
|
end
|
1268
1337
|
|
1338
|
+
# Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
|
1339
|
+
# @param [String] name
|
1340
|
+
# Required. The name of the lun.
|
1341
|
+
# @param [Google::Apis::BaremetalsolutionV2::EvictLunRequest] evict_lun_request_object
|
1342
|
+
# @param [String] fields
|
1343
|
+
# Selector specifying which fields to include in a partial response.
|
1344
|
+
# @param [String] quota_user
|
1345
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1346
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1347
|
+
# @param [Google::Apis::RequestOptions] options
|
1348
|
+
# Request-specific options
|
1349
|
+
#
|
1350
|
+
# @yield [result, err] Result & error if block supplied
|
1351
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1352
|
+
# @yieldparam err [StandardError] error object if request failed
|
1353
|
+
#
|
1354
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1355
|
+
#
|
1356
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1357
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1358
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1359
|
+
def evict_lun(name, evict_lun_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1360
|
+
command = make_simple_command(:post, 'v2/{+name}:evict', options)
|
1361
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::EvictLunRequest::Representation
|
1362
|
+
command.request_object = evict_lun_request_object
|
1363
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1364
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1365
|
+
command.params['name'] = name unless name.nil?
|
1366
|
+
command.query['fields'] = fields unless fields.nil?
|
1367
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1368
|
+
execute_or_queue_command(command, &block)
|
1369
|
+
end
|
1370
|
+
|
1269
1371
|
# Get details of a single storage logical unit number(LUN).
|
1270
1372
|
# @param [String] name
|
1271
1373
|
# Required. Name of the resource.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-baremetalsolution_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.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: 2023-
|
11
|
+
date: 2023-02-12 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-baremetalsolution_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.29.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|