class TencentCloud::Trp::V20210515::CodeBatch
批次
def deserialize(params)
def deserialize(params) @BatchId = params['BatchId'] @CorpId = params['CorpId'] @BatchCode = params['BatchCode'] @CodeCnt = params['CodeCnt'] @MerchantId = params['MerchantId'] @ProductId = params['ProductId'] @BatchType = params['BatchType'] @Remark = params['Remark'] @MpTpl = params['MpTpl'] @Status = params['Status'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @MerchantName = params['MerchantName'] @ProductName = params['ProductName'] unless params['Ext'].nil? @Ext = Ext.new @Ext.deserialize(params['Ext']) end @TplName = params['TplName'] unless params['Job'].nil? @Job = Job.new @Job.deserialize(params['Job']) end @ProductionDate = params['ProductionDate'] @ValidDate = params['ValidDate'] unless params['Attrs'].nil? @Attrs = [] params['Attrs'].each do |i| attritem_tmp = AttrItem.new attritem_tmp.deserialize(i) @Attrs << attritem_tmp end end end
def initialize(batchid=nil, corpid=nil, batchcode=nil, codecnt=nil, merchantid=nil, productid=nil, batchtype=nil, remark=nil, mptpl=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, ext=nil, tplname=nil, job=nil, productiondate=nil, validdate=nil, attrs=nil)
def initialize(batchid=nil, corpid=nil, batchcode=nil, codecnt=nil, merchantid=nil, productid=nil, batchtype=nil, remark=nil, mptpl=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, ext=nil, tplname=nil, job=nil, productiondate=nil, validdate=nil, attrs=nil) @BatchId = batchid @CorpId = corpid @BatchCode = batchcode @CodeCnt = codecnt @MerchantId = merchantid @ProductId = productid @BatchType = batchtype @Remark = remark @MpTpl = mptpl @Status = status @CreateTime = createtime @UpdateTime = updatetime @MerchantName = merchantname @ProductName = productname @Ext = ext @TplName = tplname @Job = job @ProductionDate = productiondate @ValidDate = validdate @Attrs = attrs end