google-apis-baremetalsolution_v2 0.29.0 → 0.31.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +88 -9
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +43 -2
- data/lib/google/apis/baremetalsolution_v2/service.rb +114 -11
- 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: e67404bda9e33777eebf1b7b8f12f505acf5e71aba47b6a7b66617ef0cba27c0
|
4
|
+
data.tar.gz: b7925c7f01dfad39efdce40dbc74eec59495fd1a56f6fa892e17fccb16d212b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b250dab65114a792f02da4e0c909638dee307492de1a9c6e8d8782f8e1fd25bb774f79cc97d90dcf41e5c67c0e3b47c78ca5ceb25646dab1abb2bf8742ca7d17
|
7
|
+
data.tar.gz: e3af14df953aa1c888c820c394fd306e121e1111b1f440ba99d170597595292d76125f74bd1afbdb46047f46cdfdf4efcb490d5a4dede6afd395b48080f2905f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-baremetalsolution_v2
|
2
2
|
|
3
|
+
### v0.31.0 (2023-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230315
|
6
|
+
|
7
|
+
### v0.30.0 (2023-02-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230215
|
10
|
+
* Regenerated using generator version 0.12.0
|
11
|
+
|
3
12
|
### v0.29.0 (2023-02-12)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20230206
|
@@ -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)
|
@@ -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,15 +1827,29 @@ module Google
|
|
1815
1827
|
class RenameInstanceRequest
|
1816
1828
|
include Google::Apis::Core::Hashable
|
1817
1829
|
|
1818
|
-
#
|
1819
|
-
# Corresponds to the JSON property `
|
1820
|
-
# @return [
|
1821
|
-
attr_accessor :
|
1830
|
+
# Required. The new `id` of the instance.
|
1831
|
+
# Corresponds to the JSON property `newInstanceId`
|
1832
|
+
# @return [String]
|
1833
|
+
attr_accessor :new_instance_id
|
1822
1834
|
|
1823
|
-
|
1824
|
-
|
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`
|
1825
1851
|
# @return [String]
|
1826
|
-
attr_accessor :
|
1852
|
+
attr_accessor :new_network_id
|
1827
1853
|
|
1828
1854
|
def initialize(**args)
|
1829
1855
|
update!(**args)
|
@@ -1831,8 +1857,45 @@ module Google
|
|
1831
1857
|
|
1832
1858
|
# Update properties of this object
|
1833
1859
|
def update!(**args)
|
1834
|
-
@
|
1835
|
-
|
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`
|
1889
|
+
# @return [String]
|
1890
|
+
attr_accessor :new_volume_id
|
1891
|
+
|
1892
|
+
def initialize(**args)
|
1893
|
+
update!(**args)
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
# Update properties of this object
|
1897
|
+
def update!(**args)
|
1898
|
+
@new_volume_id = args[:new_volume_id] if args.key?(:new_volume_id)
|
1836
1899
|
end
|
1837
1900
|
end
|
1838
1901
|
|
@@ -2183,6 +2246,14 @@ module Google
|
|
2183
2246
|
class Volume
|
2184
2247
|
include Google::Apis::Core::Hashable
|
2185
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
|
+
|
2186
2257
|
# The size, in GiB, that this storage volume has expanded as a result of an auto
|
2187
2258
|
# grow policy. In the absence of auto-grow, the value is 0.
|
2188
2259
|
# Corresponds to the JSON property `autoGrownSizeGib`
|
@@ -2220,6 +2291,12 @@ module Google
|
|
2220
2291
|
# @return [String]
|
2221
2292
|
attr_accessor :id
|
2222
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
|
+
|
2223
2300
|
# Labels as key value pairs.
|
2224
2301
|
# Corresponds to the JSON property `labels`
|
2225
2302
|
# @return [Hash<String,String>]
|
@@ -2323,12 +2400,14 @@ module Google
|
|
2323
2400
|
|
2324
2401
|
# Update properties of this object
|
2325
2402
|
def update!(**args)
|
2403
|
+
@attached = args[:attached] if args.key?(:attached)
|
2326
2404
|
@auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
|
2327
2405
|
@boot_volume = args[:boot_volume] if args.key?(:boot_volume)
|
2328
2406
|
@current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
|
2329
2407
|
@emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
|
2330
2408
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
2331
2409
|
@id = args[:id] if args.key?(:id)
|
2410
|
+
@instances = args[:instances] if args.key?(:instances)
|
2332
2411
|
@labels = args[:labels] if args.key?(:labels)
|
2333
2412
|
@max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
|
2334
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.
|
19
|
+
GEM_VERSION = "0.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230315"
|
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,9 +861,28 @@ module Google
|
|
841
861
|
class RenameInstanceRequest
|
842
862
|
# @private
|
843
863
|
class Representation < Google::Apis::Core::JsonRepresentation
|
844
|
-
property :
|
864
|
+
property :new_instance_id, as: 'newInstanceId'
|
865
|
+
end
|
866
|
+
end
|
845
867
|
|
846
|
-
|
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'
|
847
886
|
end
|
848
887
|
end
|
849
888
|
|
@@ -960,12 +999,14 @@ module Google
|
|
960
999
|
class Volume
|
961
1000
|
# @private
|
962
1001
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1002
|
+
property :attached, as: 'attached'
|
963
1003
|
property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
|
964
1004
|
property :boot_volume, as: 'bootVolume'
|
965
1005
|
property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
|
966
1006
|
property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
|
967
1007
|
property :expire_time, as: 'expireTime'
|
968
1008
|
property :id, as: 'id'
|
1009
|
+
collection :instances, as: 'instances'
|
969
1010
|
hash :labels, as: 'labels'
|
970
1011
|
property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
|
971
1012
|
property :name, as: 'name'
|
@@ -396,12 +396,11 @@ 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
|
-
#
|
403
|
-
# resource_names. Format: `projects/`project`/locations/`location`/instances/`
|
404
|
-
# instance``
|
402
|
+
# Required. The `name` field is used to identify the instance. Format: projects/`
|
403
|
+
# project`/locations/`location`/instances/`instance`
|
405
404
|
# @param [Google::Apis::BaremetalsolutionV2::RenameInstanceRequest] rename_instance_request_object
|
406
405
|
# @param [String] fields
|
407
406
|
# Selector specifying which fields to include in a partial response.
|
@@ -412,10 +411,10 @@ module Google
|
|
412
411
|
# Request-specific options
|
413
412
|
#
|
414
413
|
# @yield [result, err] Result & error if block supplied
|
415
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::
|
414
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Instance] parsed result object
|
416
415
|
# @yieldparam err [StandardError] error object if request failed
|
417
416
|
#
|
418
|
-
# @return [Google::Apis::BaremetalsolutionV2::
|
417
|
+
# @return [Google::Apis::BaremetalsolutionV2::Instance]
|
419
418
|
#
|
420
419
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
421
420
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -424,8 +423,8 @@ module Google
|
|
424
423
|
command = make_simple_command(:post, 'v2/{+name}:rename', options)
|
425
424
|
command.request_representation = Google::Apis::BaremetalsolutionV2::RenameInstanceRequest::Representation
|
426
425
|
command.request_object = rename_instance_request_object
|
427
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::
|
428
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::
|
426
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation
|
427
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Instance
|
429
428
|
command.params['name'] = name unless name.nil?
|
430
429
|
command.query['fields'] = fields unless fields.nil?
|
431
430
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -673,6 +672,41 @@ module Google
|
|
673
672
|
execute_or_queue_command(command, &block)
|
674
673
|
end
|
675
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
|
+
|
676
710
|
# Create an NFS share.
|
677
711
|
# @param [String] parent
|
678
712
|
# Required. The parent project and location.
|
@@ -843,8 +877,42 @@ module Google
|
|
843
877
|
execute_or_queue_command(command, &block)
|
844
878
|
end
|
845
879
|
|
846
|
-
#
|
847
|
-
#
|
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.
|
848
916
|
# @param [String] name
|
849
917
|
# The name of the operation resource.
|
850
918
|
# @param [String] fields
|
@@ -1302,6 +1370,41 @@ module Google
|
|
1302
1370
|
execute_or_queue_command(command, &block)
|
1303
1371
|
end
|
1304
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
|
+
|
1305
1408
|
# Emergency Volume resize.
|
1306
1409
|
# @param [String] volume
|
1307
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.
|
4
|
+
version: 0.31.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-03-26 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.
|
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.
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.31.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: []
|