Class: TencentCloud::Tke::V20180525::InstanceDataDiskMountSetting

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

CVM实例数据盘挂载配置

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DataDisksObject

Parameters:

  • InstanceType:

    CVM实例类型

  • DataDisks:

    数据盘挂载信息

  • Zone:

    CVM实例所属可用区



12926
12927
12928
# File 'lib/v20180525/models.rb', line 12926

def DataDisks
  @DataDisks
end

#InstanceTypeObject

Parameters:

  • InstanceType:

    CVM实例类型

  • DataDisks:

    数据盘挂载信息

  • Zone:

    CVM实例所属可用区



12926
12927
12928
# File 'lib/v20180525/models.rb', line 12926

def InstanceType
  @InstanceType
end

#ZoneObject

Parameters:

  • InstanceType:

    CVM实例类型

  • DataDisks:

    数据盘挂载信息

  • Zone:

    CVM实例所属可用区



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