google-apis-baremetalsolution_v2 0.24.0 → 0.26.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 +9 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +106 -0
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +48 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +168 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08fb260c79fd0e283b115c85c0c50f709f65d1890e24d4a3cfd9dd229a434b10'
|
4
|
+
data.tar.gz: b0450906d4bc84fcf7307855f41bf693f98b9e38d31074dbaada55957bf09db0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a01a4f68c7269fce29ff108ba89b9b968aabe1908d23c44a6402e982633efb332f8682a63fcfe7e98232493b1a0a0e293f4e12bf17a8caf5dd5687f2be45da6
|
7
|
+
data.tar.gz: b1a21e4abef8a6f7726f02594fdb2108abf87a2d811d13bbc0615fcda745f016c972cf9aa7c82bc511d67dd36a2a3126834da8d1188625eea3a6386e263d075d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-baremetalsolution_v2
|
2
2
|
|
3
|
+
### v0.26.0 (2022-12-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221201
|
6
|
+
|
7
|
+
### v0.25.0 (2022-10-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221017
|
10
|
+
* Regenerated using generator version 0.11.0
|
11
|
+
|
3
12
|
### v0.24.0 (2022-09-24)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20220921
|
@@ -355,6 +355,11 @@ module Google
|
|
355
355
|
# @return [Array<Google::Apis::BaremetalsolutionV2::Volume>]
|
356
356
|
attr_accessor :volumes
|
357
357
|
|
358
|
+
# The workload profile for the instance.
|
359
|
+
# Corresponds to the JSON property `workloadProfile`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :workload_profile
|
362
|
+
|
358
363
|
def initialize(**args)
|
359
364
|
update!(**args)
|
360
365
|
end
|
@@ -378,6 +383,7 @@ module Google
|
|
378
383
|
@state = args[:state] if args.key?(:state)
|
379
384
|
@update_time = args[:update_time] if args.key?(:update_time)
|
380
385
|
@volumes = args[:volumes] if args.key?(:volumes)
|
386
|
+
@workload_profile = args[:workload_profile] if args.key?(:workload_profile)
|
381
387
|
end
|
382
388
|
end
|
383
389
|
|
@@ -764,6 +770,37 @@ module Google
|
|
764
770
|
end
|
765
771
|
end
|
766
772
|
|
773
|
+
# Response message containing the list of volume snapshots.
|
774
|
+
class ListVolumeSnapshotsResponse
|
775
|
+
include Google::Apis::Core::Hashable
|
776
|
+
|
777
|
+
# A token identifying a page of results from the server.
|
778
|
+
# Corresponds to the JSON property `nextPageToken`
|
779
|
+
# @return [String]
|
780
|
+
attr_accessor :next_page_token
|
781
|
+
|
782
|
+
# Locations that could not be reached.
|
783
|
+
# Corresponds to the JSON property `unreachable`
|
784
|
+
# @return [Array<String>]
|
785
|
+
attr_accessor :unreachable
|
786
|
+
|
787
|
+
# The list of snapshots.
|
788
|
+
# Corresponds to the JSON property `volumeSnapshots`
|
789
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
|
790
|
+
attr_accessor :volume_snapshots
|
791
|
+
|
792
|
+
def initialize(**args)
|
793
|
+
update!(**args)
|
794
|
+
end
|
795
|
+
|
796
|
+
# Update properties of this object
|
797
|
+
def update!(**args)
|
798
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
799
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
800
|
+
@volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
767
804
|
# Response message containing the list of storage volumes.
|
768
805
|
class ListVolumesResponse
|
769
806
|
include Google::Apis::Core::Hashable
|
@@ -1832,6 +1869,19 @@ module Google
|
|
1832
1869
|
end
|
1833
1870
|
end
|
1834
1871
|
|
1872
|
+
# Message for restoring a volume snapshot.
|
1873
|
+
class RestoreVolumeSnapshotRequest
|
1874
|
+
include Google::Apis::Core::Hashable
|
1875
|
+
|
1876
|
+
def initialize(**args)
|
1877
|
+
update!(**args)
|
1878
|
+
end
|
1879
|
+
|
1880
|
+
# Update properties of this object
|
1881
|
+
def update!(**args)
|
1882
|
+
end
|
1883
|
+
end
|
1884
|
+
|
1835
1885
|
# An SSH key, used for authorizing with the interactive serial console feature.
|
1836
1886
|
class SshKey
|
1837
1887
|
include Google::Apis::Core::Hashable
|
@@ -2251,6 +2301,11 @@ module Google
|
|
2251
2301
|
# @return [String]
|
2252
2302
|
attr_accessor :storage_type
|
2253
2303
|
|
2304
|
+
# The workload profile for the volume.
|
2305
|
+
# Corresponds to the JSON property `workloadProfile`
|
2306
|
+
# @return [String]
|
2307
|
+
attr_accessor :workload_profile
|
2308
|
+
|
2254
2309
|
def initialize(**args)
|
2255
2310
|
update!(**args)
|
2256
2311
|
end
|
@@ -2278,6 +2333,7 @@ module Google
|
|
2278
2333
|
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
2279
2334
|
@state = args[:state] if args.key?(:state)
|
2280
2335
|
@storage_type = args[:storage_type] if args.key?(:storage_type)
|
2336
|
+
@workload_profile = args[:workload_profile] if args.key?(:workload_profile)
|
2281
2337
|
end
|
2282
2338
|
end
|
2283
2339
|
|
@@ -2369,6 +2425,56 @@ module Google
|
|
2369
2425
|
@user_note = args[:user_note] if args.key?(:user_note)
|
2370
2426
|
end
|
2371
2427
|
end
|
2428
|
+
|
2429
|
+
# A snapshot of a volume. Only boot volumes can have snapshots.
|
2430
|
+
class VolumeSnapshot
|
2431
|
+
include Google::Apis::Core::Hashable
|
2432
|
+
|
2433
|
+
# Output only. The creation time of the snapshot.
|
2434
|
+
# Corresponds to the JSON property `createTime`
|
2435
|
+
# @return [String]
|
2436
|
+
attr_accessor :create_time
|
2437
|
+
|
2438
|
+
# The description of the snapshot.
|
2439
|
+
# Corresponds to the JSON property `description`
|
2440
|
+
# @return [String]
|
2441
|
+
attr_accessor :description
|
2442
|
+
|
2443
|
+
# Output only. An identifier for the snapshot, generated by the backend.
|
2444
|
+
# Corresponds to the JSON property `id`
|
2445
|
+
# @return [String]
|
2446
|
+
attr_accessor :id
|
2447
|
+
|
2448
|
+
# The name of the snapshot.
|
2449
|
+
# Corresponds to the JSON property `name`
|
2450
|
+
# @return [String]
|
2451
|
+
attr_accessor :name
|
2452
|
+
|
2453
|
+
# Output only. The name of the volume which this snapshot belongs to.
|
2454
|
+
# Corresponds to the JSON property `storageVolume`
|
2455
|
+
# @return [String]
|
2456
|
+
attr_accessor :storage_volume
|
2457
|
+
|
2458
|
+
# Output only. The type of the snapshot which indicates whether it was scheduled
|
2459
|
+
# or manual/ad-hoc.
|
2460
|
+
# Corresponds to the JSON property `type`
|
2461
|
+
# @return [String]
|
2462
|
+
attr_accessor :type
|
2463
|
+
|
2464
|
+
def initialize(**args)
|
2465
|
+
update!(**args)
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# Update properties of this object
|
2469
|
+
def update!(**args)
|
2470
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2471
|
+
@description = args[:description] if args.key?(:description)
|
2472
|
+
@id = args[:id] if args.key?(:id)
|
2473
|
+
@name = args[:name] if args.key?(:name)
|
2474
|
+
@storage_volume = args[:storage_volume] if args.key?(:storage_volume)
|
2475
|
+
@type = args[:type] if args.key?(:type)
|
2476
|
+
end
|
2477
|
+
end
|
2372
2478
|
end
|
2373
2479
|
end
|
2374
2480
|
end
|
@@ -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.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221201"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class ListVolumeSnapshotsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class ListVolumesResponse
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -268,6 +274,12 @@ module Google
|
|
268
274
|
include Google::Apis::Core::JsonObjectSupport
|
269
275
|
end
|
270
276
|
|
277
|
+
class RestoreVolumeSnapshotRequest
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
271
283
|
class SshKey
|
272
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
285
|
|
@@ -340,6 +352,12 @@ module Google
|
|
340
352
|
include Google::Apis::Core::JsonObjectSupport
|
341
353
|
end
|
342
354
|
|
355
|
+
class VolumeSnapshot
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
343
361
|
class AllowedClient
|
344
362
|
# @private
|
345
363
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -431,6 +449,7 @@ module Google
|
|
431
449
|
property :update_time, as: 'updateTime'
|
432
450
|
collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::Volume, decorator: Google::Apis::BaremetalsolutionV2::Volume::Representation
|
433
451
|
|
452
|
+
property :workload_profile, as: 'workloadProfile'
|
434
453
|
end
|
435
454
|
end
|
436
455
|
|
@@ -549,6 +568,16 @@ module Google
|
|
549
568
|
end
|
550
569
|
end
|
551
570
|
|
571
|
+
class ListVolumeSnapshotsResponse
|
572
|
+
# @private
|
573
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
574
|
+
property :next_page_token, as: 'nextPageToken'
|
575
|
+
collection :unreachable, as: 'unreachable'
|
576
|
+
collection :volume_snapshots, as: 'volumeSnapshots', class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot, decorator: Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
577
|
+
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
552
581
|
class ListVolumesResponse
|
553
582
|
# @private
|
554
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -810,6 +839,12 @@ module Google
|
|
810
839
|
end
|
811
840
|
end
|
812
841
|
|
842
|
+
class RestoreVolumeSnapshotRequest
|
843
|
+
# @private
|
844
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
845
|
+
end
|
846
|
+
end
|
847
|
+
|
813
848
|
class SshKey
|
814
849
|
# @private
|
815
850
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -926,6 +961,7 @@ module Google
|
|
926
961
|
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy'
|
927
962
|
property :state, as: 'state'
|
928
963
|
property :storage_type, as: 'storageType'
|
964
|
+
property :workload_profile, as: 'workloadProfile'
|
929
965
|
end
|
930
966
|
end
|
931
967
|
|
@@ -948,6 +984,18 @@ module Google
|
|
948
984
|
property :user_note, as: 'userNote'
|
949
985
|
end
|
950
986
|
end
|
987
|
+
|
988
|
+
class VolumeSnapshot
|
989
|
+
# @private
|
990
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
991
|
+
property :create_time, as: 'createTime'
|
992
|
+
property :description, as: 'description'
|
993
|
+
property :id, as: 'id'
|
994
|
+
property :name, as: 'name'
|
995
|
+
property :storage_volume, as: 'storageVolume'
|
996
|
+
property :type, as: 'type'
|
997
|
+
end
|
998
|
+
end
|
951
999
|
end
|
952
1000
|
end
|
953
1001
|
end
|
@@ -1332,6 +1332,174 @@ module Google
|
|
1332
1332
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1333
1333
|
execute_or_queue_command(command, &block)
|
1334
1334
|
end
|
1335
|
+
|
1336
|
+
# Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a
|
1337
|
+
# non-boot volume.
|
1338
|
+
# @param [String] parent
|
1339
|
+
# Required. The volume to snapshot.
|
1340
|
+
# @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
|
1341
|
+
# @param [String] fields
|
1342
|
+
# Selector specifying which fields to include in a partial response.
|
1343
|
+
# @param [String] quota_user
|
1344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1346
|
+
# @param [Google::Apis::RequestOptions] options
|
1347
|
+
# Request-specific options
|
1348
|
+
#
|
1349
|
+
# @yield [result, err] Result & error if block supplied
|
1350
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1351
|
+
# @yieldparam err [StandardError] error object if request failed
|
1352
|
+
#
|
1353
|
+
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1354
|
+
#
|
1355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1358
|
+
def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1359
|
+
command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
|
1360
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1361
|
+
command.request_object = volume_snapshot_object
|
1362
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1363
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1364
|
+
command.params['parent'] = parent unless parent.nil?
|
1365
|
+
command.query['fields'] = fields unless fields.nil?
|
1366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1367
|
+
execute_or_queue_command(command, &block)
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
# Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot
|
1371
|
+
# volume.
|
1372
|
+
# @param [String] name
|
1373
|
+
# Required. The name of the snapshot to delete.
|
1374
|
+
# @param [String] fields
|
1375
|
+
# Selector specifying which fields to include in a partial response.
|
1376
|
+
# @param [String] quota_user
|
1377
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1378
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1379
|
+
# @param [Google::Apis::RequestOptions] options
|
1380
|
+
# Request-specific options
|
1381
|
+
#
|
1382
|
+
# @yield [result, err] Result & error if block supplied
|
1383
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
1384
|
+
# @yieldparam err [StandardError] error object if request failed
|
1385
|
+
#
|
1386
|
+
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
1387
|
+
#
|
1388
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1389
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1390
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1391
|
+
def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1392
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1393
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
1394
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
1395
|
+
command.params['name'] = name unless name.nil?
|
1396
|
+
command.query['fields'] = fields unless fields.nil?
|
1397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1398
|
+
execute_or_queue_command(command, &block)
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
# Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called
|
1402
|
+
# for a non-boot volume.
|
1403
|
+
# @param [String] name
|
1404
|
+
# Required. The name of the snapshot.
|
1405
|
+
# @param [String] fields
|
1406
|
+
# Selector specifying which fields to include in a partial response.
|
1407
|
+
# @param [String] quota_user
|
1408
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1409
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1410
|
+
# @param [Google::Apis::RequestOptions] options
|
1411
|
+
# Request-specific options
|
1412
|
+
#
|
1413
|
+
# @yield [result, err] Result & error if block supplied
|
1414
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1415
|
+
# @yieldparam err [StandardError] error object if request failed
|
1416
|
+
#
|
1417
|
+
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1418
|
+
#
|
1419
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1420
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1421
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1422
|
+
def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1423
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1424
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1425
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1426
|
+
command.params['name'] = name unless name.nil?
|
1427
|
+
command.query['fields'] = fields unless fields.nil?
|
1428
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1429
|
+
execute_or_queue_command(command, &block)
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# Retrieves the list of snapshots for the specified volume. Returns a response
|
1433
|
+
# with an empty list of snapshots if called for a non-boot volume.
|
1434
|
+
# @param [String] parent
|
1435
|
+
# Required. Parent value for ListVolumesRequest.
|
1436
|
+
# @param [Fixnum] page_size
|
1437
|
+
# Requested page size. The server might return fewer items than requested. If
|
1438
|
+
# unspecified, server will pick an appropriate default.
|
1439
|
+
# @param [String] page_token
|
1440
|
+
# A token identifying a page of results from the server.
|
1441
|
+
# @param [String] fields
|
1442
|
+
# Selector specifying which fields to include in a partial response.
|
1443
|
+
# @param [String] quota_user
|
1444
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1445
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1446
|
+
# @param [Google::Apis::RequestOptions] options
|
1447
|
+
# Request-specific options
|
1448
|
+
#
|
1449
|
+
# @yield [result, err] Result & error if block supplied
|
1450
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse] parsed result object
|
1451
|
+
# @yieldparam err [StandardError] error object if request failed
|
1452
|
+
#
|
1453
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
|
1454
|
+
#
|
1455
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1456
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1457
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1458
|
+
def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1459
|
+
command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
|
1460
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
|
1461
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
|
1462
|
+
command.params['parent'] = parent unless parent.nil?
|
1463
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1464
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1465
|
+
command.query['fields'] = fields unless fields.nil?
|
1466
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1467
|
+
execute_or_queue_command(command, &block)
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
# Uses the specified snapshot to restore its parent volume. Returns
|
1471
|
+
# INVALID_ARGUMENT if called for a non-boot volume.
|
1472
|
+
# @param [String] volume_snapshot
|
1473
|
+
# Required. Name of the snapshot which will be used to restore its parent volume.
|
1474
|
+
# @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
|
1475
|
+
# @param [String] fields
|
1476
|
+
# Selector specifying which fields to include in a partial response.
|
1477
|
+
# @param [String] quota_user
|
1478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1480
|
+
# @param [Google::Apis::RequestOptions] options
|
1481
|
+
# Request-specific options
|
1482
|
+
#
|
1483
|
+
# @yield [result, err] Result & error if block supplied
|
1484
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1485
|
+
# @yieldparam err [StandardError] error object if request failed
|
1486
|
+
#
|
1487
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1488
|
+
#
|
1489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1492
|
+
def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1493
|
+
command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
|
1494
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
|
1495
|
+
command.request_object = restore_volume_snapshot_request_object
|
1496
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1497
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1498
|
+
command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
|
1499
|
+
command.query['fields'] = fields unless fields.nil?
|
1500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1501
|
+
execute_or_queue_command(command, &block)
|
1502
|
+
end
|
1335
1503
|
|
1336
1504
|
protected
|
1337
1505
|
|
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.26.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-
|
11
|
+
date: 2022-12-12 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.
|
19
|
+
version: 0.9.1
|
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.
|
29
|
+
version: 0.9.1
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.26.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: []
|