google-apis-baremetalsolution_v2 0.28.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1494cec88c274d328a48e2c2feac9b9926c2b2b9342dfec8fcc000a16f4254f
4
- data.tar.gz: 467e87bb807e27d14050e0e8b457e6e5d2905293b125d9d01bbc344b716a97c2
3
+ metadata.gz: a04b52a21131e1565818fa8d1feb2fcc948cd8b3ea14d478c3c7a72a83759900
4
+ data.tar.gz: f9821ca6a5984cb16499fdc6cad1103cc2f371912e6ee899330c3a891f8ccdfd
5
5
  SHA512:
6
- metadata.gz: b6835549142b1a08da6a6bf8ac6539d214df011aee865386ee243861f25b6b8fb7e38e051796e73e40d363689eb565350d5ccc6657e7b11f76a57c40a7b914ab
7
- data.tar.gz: 9051c678b384b14f52e8e71e9ca217312355af323f781ecdd819139659aaa80856e40753c3af4c50d43562f1740cea3b30e9f7d9354730bcb199fe7bea7567fd
6
+ metadata.gz: 6174f63711a58264294213f49da4c6e064079e2f698d7d1ae4b2d19dd9ffc5880543b22e690c7adffcd1f8cfa8fd2fc851f8c9d1312aeb279ab572216d9a7b44
7
+ data.tar.gz: 4fb9af2556862309e8d97708d1241feb835b961558cb4d18d7a705b9f52682071907998036541d41199a2b5567a5bfc88fa9706155a2da33e5de11b2cdda8c8d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.30.0 (2023-02-19)
4
+
5
+ * Regenerated from discovery document revision 20230215
6
+ * Regenerated using generator version 0.12.0
7
+
8
+ ### v0.29.0 (2023-02-12)
9
+
10
+ * Regenerated from discovery document revision 20230206
11
+
3
12
  ### v0.28.0 (2023-01-22)
4
13
 
5
14
  * Regenerated from discovery document revision 20230113
@@ -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,25 @@ 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
+ # Required. The new `name` of the instance. Format: `instancename`
1819
+ # Corresponds to the JSON property `newName`
1820
+ # @return [String]
1821
+ attr_accessor :new_name
1822
+
1823
+ def initialize(**args)
1824
+ update!(**args)
1825
+ end
1826
+
1827
+ # Update properties of this object
1828
+ def update!(**args)
1829
+ @new_name = args[:new_name] if args.key?(:new_name)
1830
+ end
1831
+ end
1832
+
1781
1833
  # Message requesting to reset a server.
1782
1834
  class ResetInstanceRequest
1783
1835
  include Google::Apis::Core::Hashable
@@ -2151,6 +2203,12 @@ module Google
2151
2203
  # @return [Fixnum]
2152
2204
  attr_accessor :emergency_size_gib
2153
2205
 
2206
+ # Output only. Time after which volume will be fully deleted. It is filled only
2207
+ # for volumes in COOLOFF state.
2208
+ # Corresponds to the JSON property `expireTime`
2209
+ # @return [String]
2210
+ attr_accessor :expire_time
2211
+
2154
2212
  # An identifier for the `Volume`, generated by the backend.
2155
2213
  # Corresponds to the JSON property `id`
2156
2214
  # @return [String]
@@ -2263,6 +2321,7 @@ module Google
2263
2321
  @boot_volume = args[:boot_volume] if args.key?(:boot_volume)
2264
2322
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
2265
2323
  @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
2324
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
2266
2325
  @id = args[:id] if args.key?(:id)
2267
2326
  @labels = args[:labels] if args.key?(:labels)
2268
2327
  @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.28.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230113"
25
+ REVISION = "20230215"
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,13 @@ module Google
807
838
  end
808
839
  end
809
840
 
841
+ class RenameInstanceRequest
842
+ # @private
843
+ class Representation < Google::Apis::Core::JsonRepresentation
844
+ property :new_name, as: 'newName'
845
+ end
846
+ end
847
+
810
848
  class ResetInstanceRequest
811
849
  # @private
812
850
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -924,6 +962,7 @@ module Google
924
962
  property :boot_volume, as: 'bootVolume'
925
963
  property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
926
964
  property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
965
+ property :expire_time, as: 'expireTime'
927
966
  property :id, as: 'id'
928
967
  hash :labels, as: 'labels'
929
968
  property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
@@ -396,6 +396,40 @@ 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
+ # Required. The `name` field is used to identify the instance. Format: projects/`
402
+ # project`/locations/`location`/instances/`instance`
403
+ # @param [Google::Apis::BaremetalsolutionV2::RenameInstanceRequest] rename_instance_request_object
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # @param [Google::Apis::RequestOptions] options
410
+ # Request-specific options
411
+ #
412
+ # @yield [result, err] Result & error if block supplied
413
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Instance] parsed result object
414
+ # @yieldparam err [StandardError] error object if request failed
415
+ #
416
+ # @return [Google::Apis::BaremetalsolutionV2::Instance]
417
+ #
418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
421
+ def rename_instance(name, rename_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
422
+ command = make_simple_command(:post, 'v2/{+name}:rename', options)
423
+ command.request_representation = Google::Apis::BaremetalsolutionV2::RenameInstanceRequest::Representation
424
+ command.request_object = rename_instance_request_object
425
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation
426
+ command.response_class = Google::Apis::BaremetalsolutionV2::Instance
427
+ command.params['name'] = name unless name.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
399
433
  # Perform an ungraceful, hard reset on a server. Equivalent to shutting the
400
434
  # power off and then turning it back on.
401
435
  # @param [String] name
@@ -1124,6 +1158,39 @@ module Google
1124
1158
  execute_or_queue_command(command, &block)
1125
1159
  end
1126
1160
 
1161
+ # Skips volume's cooloff and deletes it now. Volume must be in cooloff state.
1162
+ # @param [String] name
1163
+ # Required. The name of the Volume.
1164
+ # @param [Google::Apis::BaremetalsolutionV2::EvictVolumeRequest] evict_volume_request_object
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1170
+ # @param [Google::Apis::RequestOptions] options
1171
+ # Request-specific options
1172
+ #
1173
+ # @yield [result, err] Result & error if block supplied
1174
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
1175
+ # @yieldparam err [StandardError] error object if request failed
1176
+ #
1177
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
1178
+ #
1179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1182
+ def evict_volume(name, evict_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1183
+ command = make_simple_command(:post, 'v2/{+name}:evict', options)
1184
+ command.request_representation = Google::Apis::BaremetalsolutionV2::EvictVolumeRequest::Representation
1185
+ command.request_object = evict_volume_request_object
1186
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
1187
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
1188
+ command.params['name'] = name unless name.nil?
1189
+ command.query['fields'] = fields unless fields.nil?
1190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1191
+ execute_or_queue_command(command, &block)
1192
+ end
1193
+
1127
1194
  # Get details of a single storage volume.
1128
1195
  # @param [String] name
1129
1196
  # Required. Name of the resource.
@@ -1266,6 +1333,39 @@ module Google
1266
1333
  execute_or_queue_command(command, &block)
1267
1334
  end
1268
1335
 
1336
+ # Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
1337
+ # @param [String] name
1338
+ # Required. The name of the lun.
1339
+ # @param [Google::Apis::BaremetalsolutionV2::EvictLunRequest] evict_lun_request_object
1340
+ # @param [String] fields
1341
+ # Selector specifying which fields to include in a partial response.
1342
+ # @param [String] quota_user
1343
+ # Available to use for quota purposes for server-side applications. Can be any
1344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1345
+ # @param [Google::Apis::RequestOptions] options
1346
+ # Request-specific options
1347
+ #
1348
+ # @yield [result, err] Result & error if block supplied
1349
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
1350
+ # @yieldparam err [StandardError] error object if request failed
1351
+ #
1352
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
1353
+ #
1354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1357
+ def evict_lun(name, evict_lun_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1358
+ command = make_simple_command(:post, 'v2/{+name}:evict', options)
1359
+ command.request_representation = Google::Apis::BaremetalsolutionV2::EvictLunRequest::Representation
1360
+ command.request_object = evict_lun_request_object
1361
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
1362
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
1363
+ command.params['name'] = name unless name.nil?
1364
+ command.query['fields'] = fields unless fields.nil?
1365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1366
+ execute_or_queue_command(command, &block)
1367
+ end
1368
+
1269
1369
  # Get details of a single storage logical unit number(LUN).
1270
1370
  # @param [String] name
1271
1371
  # 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.28.0
4
+ version: 0.30.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-01-22 00:00:00.000000000 Z
11
+ date: 2023-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.30.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: []