google-apis-baremetalsolution_v2 0.24.0 → 0.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 144a29a9ed5065775b4e043e951d2eda849d0305e029c0bd73496ac668ad691c
4
- data.tar.gz: e113cbeaf787f5a732e4b4566093e5e6f6ab056457a2c9fcf5d4fcc7c73e0790
3
+ metadata.gz: ab1a9dc1efa41dae262d91f7a77b4a9c95ba2dad8b835294266105b071861d3a
4
+ data.tar.gz: 5c8a34ea45d68f207fbc4bbad515f54eadc690cd483516bdaf96dda122c2169d
5
5
  SHA512:
6
- metadata.gz: d73761ffd13600e1a4ab7c42492e3354a9602bdc652eb8108c2bdb8ea4eef3c08245c6aad6ffe69d8bb6f97afa9638ba8ceeda7b01d5007d97a9ee4f96626c16
7
- data.tar.gz: 6cca078c9d03e447e21384c1cdc5cb83cd6fdf53e76577effbd0824a82607e2b1343dece685283e8526a2e0a13a541186968d110363e72abc27bb7ffa7f59708
6
+ metadata.gz: 16d3bc130162dbb7b619881ec89fcaa522aab60b7c080fec487cadd32a9d581840350bddb830221ba18608b3f8026738e1a036f6caa942f3f4ae520ff88504de
7
+ data.tar.gz: 44a7e4edc9b4251b0edd72a6d25abdb8c1fa147127a20a11e6641e5d21b31fa3c49375174b37a1b963903f644a9c90613c446ece5416e9643b6738f028109adf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.25.0 (2022-10-28)
4
+
5
+ * Regenerated from discovery document revision 20221017
6
+ * Regenerated using generator version 0.11.0
7
+
3
8
  ### v0.24.0 (2022-09-24)
4
9
 
5
10
  * Regenerated from discovery document revision 20220921
@@ -764,6 +764,37 @@ module Google
764
764
  end
765
765
  end
766
766
 
767
+ # Response message containing the list of volume snapshots.
768
+ class ListVolumeSnapshotsResponse
769
+ include Google::Apis::Core::Hashable
770
+
771
+ # A token identifying a page of results from the server.
772
+ # Corresponds to the JSON property `nextPageToken`
773
+ # @return [String]
774
+ attr_accessor :next_page_token
775
+
776
+ # Locations that could not be reached.
777
+ # Corresponds to the JSON property `unreachable`
778
+ # @return [Array<String>]
779
+ attr_accessor :unreachable
780
+
781
+ # The list of snapshots.
782
+ # Corresponds to the JSON property `volumeSnapshots`
783
+ # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
784
+ attr_accessor :volume_snapshots
785
+
786
+ def initialize(**args)
787
+ update!(**args)
788
+ end
789
+
790
+ # Update properties of this object
791
+ def update!(**args)
792
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
793
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
794
+ @volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
795
+ end
796
+ end
797
+
767
798
  # Response message containing the list of storage volumes.
768
799
  class ListVolumesResponse
769
800
  include Google::Apis::Core::Hashable
@@ -1832,6 +1863,19 @@ module Google
1832
1863
  end
1833
1864
  end
1834
1865
 
1866
+ # Message for restoring a volume snapshot.
1867
+ class RestoreVolumeSnapshotRequest
1868
+ include Google::Apis::Core::Hashable
1869
+
1870
+ def initialize(**args)
1871
+ update!(**args)
1872
+ end
1873
+
1874
+ # Update properties of this object
1875
+ def update!(**args)
1876
+ end
1877
+ end
1878
+
1835
1879
  # An SSH key, used for authorizing with the interactive serial console feature.
1836
1880
  class SshKey
1837
1881
  include Google::Apis::Core::Hashable
@@ -2369,6 +2413,56 @@ module Google
2369
2413
  @user_note = args[:user_note] if args.key?(:user_note)
2370
2414
  end
2371
2415
  end
2416
+
2417
+ # A snapshot of a volume. Only boot volumes can have snapshots.
2418
+ class VolumeSnapshot
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # Output only. The creation time of the snapshot.
2422
+ # Corresponds to the JSON property `createTime`
2423
+ # @return [String]
2424
+ attr_accessor :create_time
2425
+
2426
+ # The description of the snapshot.
2427
+ # Corresponds to the JSON property `description`
2428
+ # @return [String]
2429
+ attr_accessor :description
2430
+
2431
+ # Output only. An identifier for the snapshot, generated by the backend.
2432
+ # Corresponds to the JSON property `id`
2433
+ # @return [String]
2434
+ attr_accessor :id
2435
+
2436
+ # The name of the snapshot.
2437
+ # Corresponds to the JSON property `name`
2438
+ # @return [String]
2439
+ attr_accessor :name
2440
+
2441
+ # Output only. The name of the volume which this snapshot belongs to.
2442
+ # Corresponds to the JSON property `storageVolume`
2443
+ # @return [String]
2444
+ attr_accessor :storage_volume
2445
+
2446
+ # Output only. The type of the snapshot which indicates whether it was scheduled
2447
+ # or manual/ad-hoc.
2448
+ # Corresponds to the JSON property `type`
2449
+ # @return [String]
2450
+ attr_accessor :type
2451
+
2452
+ def initialize(**args)
2453
+ update!(**args)
2454
+ end
2455
+
2456
+ # Update properties of this object
2457
+ def update!(**args)
2458
+ @create_time = args[:create_time] if args.key?(:create_time)
2459
+ @description = args[:description] if args.key?(:description)
2460
+ @id = args[:id] if args.key?(:id)
2461
+ @name = args[:name] if args.key?(:name)
2462
+ @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
2463
+ @type = args[:type] if args.key?(:type)
2464
+ end
2465
+ end
2372
2466
  end
2373
2467
  end
2374
2468
  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.24.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220921"
25
+ REVISION = "20221017"
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
@@ -549,6 +567,16 @@ module Google
549
567
  end
550
568
  end
551
569
 
570
+ class ListVolumeSnapshotsResponse
571
+ # @private
572
+ class Representation < Google::Apis::Core::JsonRepresentation
573
+ property :next_page_token, as: 'nextPageToken'
574
+ collection :unreachable, as: 'unreachable'
575
+ collection :volume_snapshots, as: 'volumeSnapshots', class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot, decorator: Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
576
+
577
+ end
578
+ end
579
+
552
580
  class ListVolumesResponse
553
581
  # @private
554
582
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -810,6 +838,12 @@ module Google
810
838
  end
811
839
  end
812
840
 
841
+ class RestoreVolumeSnapshotRequest
842
+ # @private
843
+ class Representation < Google::Apis::Core::JsonRepresentation
844
+ end
845
+ end
846
+
813
847
  class SshKey
814
848
  # @private
815
849
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -948,6 +982,18 @@ module Google
948
982
  property :user_note, as: 'userNote'
949
983
  end
950
984
  end
985
+
986
+ class VolumeSnapshot
987
+ # @private
988
+ class Representation < Google::Apis::Core::JsonRepresentation
989
+ property :create_time, as: 'createTime'
990
+ property :description, as: 'description'
991
+ property :id, as: 'id'
992
+ property :name, as: 'name'
993
+ property :storage_volume, as: 'storageVolume'
994
+ property :type, as: 'type'
995
+ end
996
+ end
951
997
  end
952
998
  end
953
999
  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.24.0
4
+ version: 0.25.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-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-31 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.0
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.0
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.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.25.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: []