class TencentCloud::Cynosdb::V20190107::InstanceSpec
def deserialize(params)
def deserialize(params) @Cpu = params['Cpu'] @Memory = params['Memory'] @MaxStorageSize = params['MaxStorageSize'] @MinStorageSize = params['MinStorageSize'] @HasStock = params['HasStock'] @MachineType = params['MachineType'] @MaxIops = params['MaxIops'] @MaxIoBandWidth = params['MaxIoBandWidth'] unless params['ZoneStockInfos'].nil? @ZoneStockInfos = [] params['ZoneStockInfos'].each do |i| zonestockinfo_tmp = ZoneStockInfo.new zonestockinfo_tmp.deserialize(i) @ZoneStockInfos << zonestockinfo_tmp end end @StockCount = params['StockCount'] end
def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil, hasstock=nil, machinetype=nil, maxiops=nil, maxiobandwidth=nil, zonestockinfos=nil, stockcount=nil)
def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil, hasstock=nil, machinetype=nil, maxiops=nil, maxiobandwidth=nil, zonestockinfos=nil, stockcount=nil) @Cpu = cpu @Memory = memory @MaxStorageSize = maxstoragesize @MinStorageSize = minstoragesize @HasStock = hasstock @MachineType = machinetype @MaxIops = maxiops @MaxIoBandWidth = maxiobandwidth @ZoneStockInfos = zonestockinfos @StockCount = stockcount end