google-apis-baremetalsolution_v2 0.30.0 → 0.32.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: a04b52a21131e1565818fa8d1feb2fcc948cd8b3ea14d478c3c7a72a83759900
4
- data.tar.gz: f9821ca6a5984cb16499fdc6cad1103cc2f371912e6ee899330c3a891f8ccdfd
3
+ metadata.gz: 1687cfbbaad84979ae62dec63ca4cea3ef01095bfbe6e62ddae184cf0e7dbaa8
4
+ data.tar.gz: f16968c178ebd3b9f1b6a9638606ab14fd6789a692bea5d00730b4262ae525ea
5
5
  SHA512:
6
- metadata.gz: 6174f63711a58264294213f49da4c6e064079e2f698d7d1ae4b2d19dd9ffc5880543b22e690c7adffcd1f8cfa8fd2fc851f8c9d1312aeb279ab572216d9a7b44
7
- data.tar.gz: 4fb9af2556862309e8d97708d1241feb835b961558cb4d18d7a705b9f52682071907998036541d41199a2b5567a5bfc88fa9706155a2da33e5de11b2cdda8c8d
6
+ metadata.gz: 2d6846712e0bb799fd3bf7be0e077132fe71bb5e4a070331d432fd4eb1ac54e4370b3789b3f8a3c68d963f2d13822f1dfae7b0ad7da0acffd600560b1b1a68be
7
+ data.tar.gz: 83b23840c8e3c6ffc1b82cdb3b3107195188d602d52c03d5e0a9a420cd2d8cd8096932fe3230be766be856c70b04b98647c2edf0f086d4e93bb0b4f73987ffec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.32.0 (2023-04-30)
4
+
5
+ * Regenerated from discovery document revision 20230426
6
+
7
+ ### v0.31.0 (2023-03-26)
8
+
9
+ * Regenerated from discovery document revision 20230315
10
+
3
11
  ### v0.30.0 (2023-02-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20230215
@@ -283,6 +283,11 @@ module Google
283
283
  # @return [String]
284
284
  attr_accessor :create_time
285
285
 
286
+ # Output only. The firmware version for the instance.
287
+ # Corresponds to the JSON property `firmwareVersion`
288
+ # @return [String]
289
+ attr_accessor :firmware_version
290
+
286
291
  # True if you enable hyperthreading for the server, otherwise false. The default
287
292
  # value is false.
288
293
  # Corresponds to the JSON property `hyperthreadingEnabled`
@@ -393,6 +398,7 @@ module Google
393
398
  # Update properties of this object
394
399
  def update!(**args)
395
400
  @create_time = args[:create_time] if args.key?(:create_time)
401
+ @firmware_version = args[:firmware_version] if args.key?(:firmware_version)
396
402
  @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
397
403
  @id = args[:id] if args.key?(:id)
398
404
  @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
@@ -858,7 +864,7 @@ module Google
858
864
  end
859
865
  end
860
866
 
861
- # A resource that represents Google Cloud Platform location.
867
+ # A resource that represents a Google Cloud location.
862
868
  class Location
863
869
  include Google::Apis::Core::Hashable
864
870
 
@@ -971,6 +977,11 @@ module Google
971
977
  # @return [String]
972
978
  attr_accessor :id
973
979
 
980
+ # Output only. Instances this Lun is attached to.
981
+ # Corresponds to the JSON property `instances`
982
+ # @return [Array<String>]
983
+ attr_accessor :instances
984
+
974
985
  # The LUN multiprotocol type ensures the characteristics of the LUN are
975
986
  # optimized for each operating system.
976
987
  # Corresponds to the JSON property `multiprotocolType`
@@ -1022,6 +1033,7 @@ module Google
1022
1033
  @boot_lun = args[:boot_lun] if args.key?(:boot_lun)
1023
1034
  @expire_time = args[:expire_time] if args.key?(:expire_time)
1024
1035
  @id = args[:id] if args.key?(:id)
1036
+ @instances = args[:instances] if args.key?(:instances)
1025
1037
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
1026
1038
  @name = args[:name] if args.key?(:name)
1027
1039
  @shareable = args[:shareable] if args.key?(:shareable)
@@ -1815,10 +1827,67 @@ module Google
1815
1827
  class RenameInstanceRequest
1816
1828
  include Google::Apis::Core::Hashable
1817
1829
 
1818
- # Required. The new `name` of the instance. Format: `instancename`
1819
- # Corresponds to the JSON property `newName`
1830
+ # Required. The new `id` of the instance.
1831
+ # Corresponds to the JSON property `newInstanceId`
1832
+ # @return [String]
1833
+ attr_accessor :new_instance_id
1834
+
1835
+ def initialize(**args)
1836
+ update!(**args)
1837
+ end
1838
+
1839
+ # Update properties of this object
1840
+ def update!(**args)
1841
+ @new_instance_id = args[:new_instance_id] if args.key?(:new_instance_id)
1842
+ end
1843
+ end
1844
+
1845
+ # Message requesting rename of a server.
1846
+ class RenameNetworkRequest
1847
+ include Google::Apis::Core::Hashable
1848
+
1849
+ # Required. The new `id` of the network.
1850
+ # Corresponds to the JSON property `newNetworkId`
1851
+ # @return [String]
1852
+ attr_accessor :new_network_id
1853
+
1854
+ def initialize(**args)
1855
+ update!(**args)
1856
+ end
1857
+
1858
+ # Update properties of this object
1859
+ def update!(**args)
1860
+ @new_network_id = args[:new_network_id] if args.key?(:new_network_id)
1861
+ end
1862
+ end
1863
+
1864
+ # Message requesting rename of a server.
1865
+ class RenameNfsShareRequest
1866
+ include Google::Apis::Core::Hashable
1867
+
1868
+ # Required. The new `id` of the nfsshare.
1869
+ # Corresponds to the JSON property `newNfsshareId`
1870
+ # @return [String]
1871
+ attr_accessor :new_nfsshare_id
1872
+
1873
+ def initialize(**args)
1874
+ update!(**args)
1875
+ end
1876
+
1877
+ # Update properties of this object
1878
+ def update!(**args)
1879
+ @new_nfsshare_id = args[:new_nfsshare_id] if args.key?(:new_nfsshare_id)
1880
+ end
1881
+ end
1882
+
1883
+ # Message requesting rename of a server.
1884
+ class RenameVolumeRequest
1885
+ include Google::Apis::Core::Hashable
1886
+
1887
+ # Required. The new `id` of the volume.
1888
+ # Corresponds to the JSON property `newVolumeId`
1820
1889
  # @return [String]
1821
- attr_accessor :new_name
1890
+ attr_accessor :new_volume_id
1822
1891
 
1823
1892
  def initialize(**args)
1824
1893
  update!(**args)
@@ -1826,7 +1895,7 @@ module Google
1826
1895
 
1827
1896
  # Update properties of this object
1828
1897
  def update!(**args)
1829
- @new_name = args[:new_name] if args.key?(:new_name)
1898
+ @new_volume_id = args[:new_volume_id] if args.key?(:new_volume_id)
1830
1899
  end
1831
1900
  end
1832
1901
 
@@ -2177,6 +2246,14 @@ module Google
2177
2246
  class Volume
2178
2247
  include Google::Apis::Core::Hashable
2179
2248
 
2249
+ # Output only. Is the Volume attached at at least one instance. This field is a
2250
+ # lightweight counterpart of `instances` field. It is filled in List responses
2251
+ # as well.
2252
+ # Corresponds to the JSON property `attached`
2253
+ # @return [Boolean]
2254
+ attr_accessor :attached
2255
+ alias_method :attached?, :attached
2256
+
2180
2257
  # The size, in GiB, that this storage volume has expanded as a result of an auto
2181
2258
  # grow policy. In the absence of auto-grow, the value is 0.
2182
2259
  # Corresponds to the JSON property `autoGrownSizeGib`
@@ -2214,6 +2291,12 @@ module Google
2214
2291
  # @return [String]
2215
2292
  attr_accessor :id
2216
2293
 
2294
+ # Output only. Instances this Volume is attached to. This field is set only in
2295
+ # Get requests.
2296
+ # Corresponds to the JSON property `instances`
2297
+ # @return [Array<String>]
2298
+ attr_accessor :instances
2299
+
2217
2300
  # Labels as key value pairs.
2218
2301
  # Corresponds to the JSON property `labels`
2219
2302
  # @return [Hash<String,String>]
@@ -2317,12 +2400,14 @@ module Google
2317
2400
 
2318
2401
  # Update properties of this object
2319
2402
  def update!(**args)
2403
+ @attached = args[:attached] if args.key?(:attached)
2320
2404
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
2321
2405
  @boot_volume = args[:boot_volume] if args.key?(:boot_volume)
2322
2406
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
2323
2407
  @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
2324
2408
  @expire_time = args[:expire_time] if args.key?(:expire_time)
2325
2409
  @id = args[:id] if args.key?(:id)
2410
+ @instances = args[:instances] if args.key?(:instances)
2326
2411
  @labels = args[:labels] if args.key?(:labels)
2327
2412
  @max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
2328
2413
  @name = args[:name] if args.key?(:name)
@@ -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.30.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230215"
25
+ REVISION = "20230426"
26
26
  end
27
27
  end
28
28
  end
@@ -274,6 +274,24 @@ module Google
274
274
  include Google::Apis::Core::JsonObjectSupport
275
275
  end
276
276
 
277
+ class RenameNetworkRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class RenameNfsShareRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class RenameVolumeRequest
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
277
295
  class ResetInstanceRequest
278
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
297
 
@@ -453,6 +471,7 @@ module Google
453
471
  # @private
454
472
  class Representation < Google::Apis::Core::JsonRepresentation
455
473
  property :create_time, as: 'createTime'
474
+ property :firmware_version, as: 'firmwareVersion'
456
475
  property :hyperthreading_enabled, as: 'hyperthreadingEnabled'
457
476
  property :id, as: 'id'
458
477
  property :interactive_serial_console_enabled, as: 'interactiveSerialConsoleEnabled'
@@ -640,6 +659,7 @@ module Google
640
659
  property :boot_lun, as: 'bootLun'
641
660
  property :expire_time, as: 'expireTime'
642
661
  property :id, as: 'id'
662
+ collection :instances, as: 'instances'
643
663
  property :multiprotocol_type, as: 'multiprotocolType'
644
664
  property :name, as: 'name'
645
665
  property :shareable, as: 'shareable'
@@ -841,7 +861,28 @@ module Google
841
861
  class RenameInstanceRequest
842
862
  # @private
843
863
  class Representation < Google::Apis::Core::JsonRepresentation
844
- property :new_name, as: 'newName'
864
+ property :new_instance_id, as: 'newInstanceId'
865
+ end
866
+ end
867
+
868
+ class RenameNetworkRequest
869
+ # @private
870
+ class Representation < Google::Apis::Core::JsonRepresentation
871
+ property :new_network_id, as: 'newNetworkId'
872
+ end
873
+ end
874
+
875
+ class RenameNfsShareRequest
876
+ # @private
877
+ class Representation < Google::Apis::Core::JsonRepresentation
878
+ property :new_nfsshare_id, as: 'newNfsshareId'
879
+ end
880
+ end
881
+
882
+ class RenameVolumeRequest
883
+ # @private
884
+ class Representation < Google::Apis::Core::JsonRepresentation
885
+ property :new_volume_id, as: 'newVolumeId'
845
886
  end
846
887
  end
847
888
 
@@ -958,12 +999,14 @@ module Google
958
999
  class Volume
959
1000
  # @private
960
1001
  class Representation < Google::Apis::Core::JsonRepresentation
1002
+ property :attached, as: 'attached'
961
1003
  property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
962
1004
  property :boot_volume, as: 'bootVolume'
963
1005
  property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
964
1006
  property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
965
1007
  property :expire_time, as: 'expireTime'
966
1008
  property :id, as: 'id'
1009
+ collection :instances, as: 'instances'
967
1010
  hash :labels, as: 'labels'
968
1011
  property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
969
1012
  property :name, as: 'name'
@@ -396,7 +396,8 @@ module Google
396
396
  execute_or_queue_command(command, &block)
397
397
  end
398
398
 
399
- # RenameInstance sets a new name for an instance.
399
+ # RenameInstance sets a new name for an instance. Use with caution, previous
400
+ # names become immediately invalidated.
400
401
  # @param [String] name
401
402
  # Required. The `name` field is used to identify the instance. Format: projects/`
402
403
  # project`/locations/`location`/instances/`instance`
@@ -671,6 +672,41 @@ module Google
671
672
  execute_or_queue_command(command, &block)
672
673
  end
673
674
 
675
+ # RenameNetwork sets a new name for a network. Use with caution, previous names
676
+ # become immediately invalidated.
677
+ # @param [String] name
678
+ # Required. The `name` field is used to identify the network. Format: projects/`
679
+ # project`/locations/`location`/networks/`network`
680
+ # @param [Google::Apis::BaremetalsolutionV2::RenameNetworkRequest] rename_network_request_object
681
+ # @param [String] fields
682
+ # Selector specifying which fields to include in a partial response.
683
+ # @param [String] quota_user
684
+ # Available to use for quota purposes for server-side applications. Can be any
685
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
686
+ # @param [Google::Apis::RequestOptions] options
687
+ # Request-specific options
688
+ #
689
+ # @yield [result, err] Result & error if block supplied
690
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Network] parsed result object
691
+ # @yieldparam err [StandardError] error object if request failed
692
+ #
693
+ # @return [Google::Apis::BaremetalsolutionV2::Network]
694
+ #
695
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
698
+ def rename_network(name, rename_network_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
699
+ command = make_simple_command(:post, 'v2/{+name}:rename', options)
700
+ command.request_representation = Google::Apis::BaremetalsolutionV2::RenameNetworkRequest::Representation
701
+ command.request_object = rename_network_request_object
702
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Network::Representation
703
+ command.response_class = Google::Apis::BaremetalsolutionV2::Network
704
+ command.params['name'] = name unless name.nil?
705
+ command.query['fields'] = fields unless fields.nil?
706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
707
+ execute_or_queue_command(command, &block)
708
+ end
709
+
674
710
  # Create an NFS share.
675
711
  # @param [String] parent
676
712
  # Required. The parent project and location.
@@ -841,8 +877,42 @@ module Google
841
877
  execute_or_queue_command(command, &block)
842
878
  end
843
879
 
844
- # Get details about an operation. This method used only to work around CCFE lack
845
- # of passthrough LRO support (b/221498758).
880
+ # RenameNfsShare sets a new name for an nfsshare. Use with caution, previous
881
+ # names become immediately invalidated.
882
+ # @param [String] name
883
+ # Required. The `name` field is used to identify the nfsshare. Format: projects/`
884
+ # project`/locations/`location`/nfsshares/`nfsshare`
885
+ # @param [Google::Apis::BaremetalsolutionV2::RenameNfsShareRequest] rename_nfs_share_request_object
886
+ # @param [String] fields
887
+ # Selector specifying which fields to include in a partial response.
888
+ # @param [String] quota_user
889
+ # Available to use for quota purposes for server-side applications. Can be any
890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
891
+ # @param [Google::Apis::RequestOptions] options
892
+ # Request-specific options
893
+ #
894
+ # @yield [result, err] Result & error if block supplied
895
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::NfsShare] parsed result object
896
+ # @yieldparam err [StandardError] error object if request failed
897
+ #
898
+ # @return [Google::Apis::BaremetalsolutionV2::NfsShare]
899
+ #
900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
903
+ def rename_nfs_share(name, rename_nfs_share_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
904
+ command = make_simple_command(:post, 'v2/{+name}:rename', options)
905
+ command.request_representation = Google::Apis::BaremetalsolutionV2::RenameNfsShareRequest::Representation
906
+ command.request_object = rename_nfs_share_request_object
907
+ command.response_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
908
+ command.response_class = Google::Apis::BaremetalsolutionV2::NfsShare
909
+ command.params['name'] = name unless name.nil?
910
+ command.query['fields'] = fields unless fields.nil?
911
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
912
+ execute_or_queue_command(command, &block)
913
+ end
914
+
915
+ # Get details about an operation.
846
916
  # @param [String] name
847
917
  # The name of the operation resource.
848
918
  # @param [String] fields
@@ -1300,6 +1370,41 @@ module Google
1300
1370
  execute_or_queue_command(command, &block)
1301
1371
  end
1302
1372
 
1373
+ # RenameVolume sets a new name for a volume. Use with caution, previous names
1374
+ # become immediately invalidated.
1375
+ # @param [String] name
1376
+ # Required. The `name` field is used to identify the volume. Format: projects/`
1377
+ # project`/locations/`location`/volumes/`volume`
1378
+ # @param [Google::Apis::BaremetalsolutionV2::RenameVolumeRequest] rename_volume_request_object
1379
+ # @param [String] fields
1380
+ # Selector specifying which fields to include in a partial response.
1381
+ # @param [String] quota_user
1382
+ # Available to use for quota purposes for server-side applications. Can be any
1383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1384
+ # @param [Google::Apis::RequestOptions] options
1385
+ # Request-specific options
1386
+ #
1387
+ # @yield [result, err] Result & error if block supplied
1388
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Volume] parsed result object
1389
+ # @yieldparam err [StandardError] error object if request failed
1390
+ #
1391
+ # @return [Google::Apis::BaremetalsolutionV2::Volume]
1392
+ #
1393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1396
+ def rename_volume(name, rename_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1397
+ command = make_simple_command(:post, 'v2/{+name}:rename', options)
1398
+ command.request_representation = Google::Apis::BaremetalsolutionV2::RenameVolumeRequest::Representation
1399
+ command.request_object = rename_volume_request_object
1400
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation
1401
+ command.response_class = Google::Apis::BaremetalsolutionV2::Volume
1402
+ command.params['name'] = name unless name.nil?
1403
+ command.query['fields'] = fields unless fields.nil?
1404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
+ execute_or_queue_command(command, &block)
1406
+ end
1407
+
1303
1408
  # Emergency Volume resize.
1304
1409
  # @param [String] volume
1305
1410
  # Required. Volume to resize.
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.30.0
4
+ version: 0.32.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-02-19 00:00:00.000000000 Z
11
+ date: 2023-04-30 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.32.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: []