class TencentCloud::Emr::V20190103::PriceResource
询价资源
def deserialize(params)
def deserialize(params) @Spec = params['Spec'] @StorageType = params['StorageType'] @DiskType = params['DiskType'] @RootSize = params['RootSize'] @MemSize = params['MemSize'] @Cpu = params['Cpu'] @DiskSize = params['DiskSize'] unless params['MultiDisks'].nil? @MultiDisks = [] params['MultiDisks'].each do |i| multidisk_tmp = MultiDisk.new multidisk_tmp.deserialize(i) @MultiDisks << multidisk_tmp end end @DiskCnt = params['DiskCnt'] @InstanceType = params['InstanceType'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @DiskNum = params['DiskNum'] @LocalDiskNum = params['LocalDiskNum'] end
def initialize(spec=nil, storagetype=nil, disktype=nil, rootsize=nil, memsize=nil, cpu=nil, disksize=nil, multidisks=nil, diskcnt=nil, instancetype=nil, tags=nil, disknum=nil, localdisknum=nil)
def initialize(spec=nil, storagetype=nil, disktype=nil, rootsize=nil, memsize=nil, cpu=nil, disksize=nil, multidisks=nil, diskcnt=nil, instancetype=nil, tags=nil, disknum=nil, localdisknum=nil) @Spec = spec @StorageType = storagetype @DiskType = disktype @RootSize = rootsize @MemSize = memsize @Cpu = cpu @DiskSize = disksize @MultiDisks = multidisks @DiskCnt = diskcnt @InstanceType = instancetype @Tags = tags @DiskNum = disknum @LocalDiskNum = localdisknum end