class TencentCloud::Emr::V20190103::NodeResourceSpec

资源详情

def deserialize(params)

def deserialize(params)
  @InstanceType = params['InstanceType']
  unless params['SystemDisk'].nil?
    @SystemDisk = []
    params['SystemDisk'].each do |i|
      diskspecinfo_tmp = DiskSpecInfo.new
      diskspecinfo_tmp.deserialize(i)
      @SystemDisk << diskspecinfo_tmp
    end
  end
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  unless params['DataDisk'].nil?
    @DataDisk = []
    params['DataDisk'].each do |i|
      diskspecinfo_tmp = DiskSpecInfo.new
      diskspecinfo_tmp.deserialize(i)
      @DataDisk << diskspecinfo_tmp
    end
  end
  unless params['LocalDataDisk'].nil?
    @LocalDataDisk = []
    params['LocalDataDisk'].each do |i|
      diskspecinfo_tmp = DiskSpecInfo.new
      diskspecinfo_tmp.deserialize(i)
      @LocalDataDisk << diskspecinfo_tmp
    end
  end
end

def initialize(instancetype=nil, systemdisk=nil, tags=nil, datadisk=nil, localdatadisk=nil)

def initialize(instancetype=nil, systemdisk=nil, tags=nil, datadisk=nil, localdatadisk=nil)
  @InstanceType = instancetype
  @SystemDisk = systemdisk
  @Tags = tags
  @DataDisk = datadisk
  @LocalDataDisk = localdatadisk
end