Class: TencentCloud::Tke::V20180525::InstanceDataDiskMountSetting
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::InstanceDataDiskMountSetting
- Defined in:
- lib/v20180525/models.rb
Overview
CVM实例数据盘挂载配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instancetype = nil, datadisks = nil, zone = nil) ⇒ InstanceDataDiskMountSetting
constructor
A new instance of InstanceDataDiskMountSetting.
Constructor Details
#initialize(instancetype = nil, datadisks = nil, zone = nil) ⇒ InstanceDataDiskMountSetting
Returns a new instance of InstanceDataDiskMountSetting.
12928 12929 12930 12931 12932 |
# File 'lib/v20180525/models.rb', line 12928 def initialize(instancetype=nil, datadisks=nil, zone=nil) @InstanceType = instancetype @DataDisks = datadisks @Zone = zone end |
Instance Attribute Details
#DataDisks ⇒ Object
12926 12927 12928 |
# File 'lib/v20180525/models.rb', line 12926 def DataDisks @DataDisks end |
#InstanceType ⇒ Object
12926 12927 12928 |
# File 'lib/v20180525/models.rb', line 12926 def InstanceType @InstanceType end |
#Zone ⇒ Object
12926 12927 12928 |
# File 'lib/v20180525/models.rb', line 12926 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 |
# File 'lib/v20180525/models.rb', line 12934 def deserialize(params) @InstanceType = params['InstanceType'] unless params['DataDisks'].nil? @DataDisks = [] params['DataDisks'].each do |i| datadisk_tmp = DataDisk.new datadisk_tmp.deserialize(i) @DataDisks << datadisk_tmp end end @Zone = params['Zone'] end |