class TencentCloud::Trp::V20210515::PackSpec
层级码配置
def deserialize(params)
def deserialize(params) @Level = params['Level'] @Rate = params['Rate'] @Amount = params['Amount'] @CustomId = params['CustomId'] unless params['CodeParts'].nil? @CodeParts = [] params['CodeParts'].each do |i| codepart_tmp = CodePart.new codepart_tmp.deserialize(i) @CodeParts << codepart_tmp end end @Unit = params['Unit'] @SceneCode = params['SceneCode'] end
def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil, unit=nil, scenecode=nil)
def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil, unit=nil, scenecode=nil) @Level = level @Rate = rate @Amount = amount @CustomId = customid @CodeParts = codeparts @Unit = unit @SceneCode = scenecode end