Class: TencentCloud::Trp::V20210515::CreateTraceCodesRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210515/models.rb

Overview

CreateTraceCodes请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(batchid = nil, corpid = nil, codes = nil, codetype = nil, checktype = nil) ⇒ CreateTraceCodesRequest

Returns a new instance of CreateTraceCodesRequest.



1185
1186
1187
1188
1189
1190
1191
# File 'lib/v20210515/models.rb', line 1185

def initialize(batchid=nil, corpid=nil, codes=nil, codetype=nil, checktype=nil)
  @BatchId = batchid
  @CorpId = corpid
  @Codes = codes
  @CodeType = codetype
  @CheckType = checktype
end

Instance Attribute Details

#BatchIdObject

0: 传什么码就激活什么码1: 层级码 + 层级子码0: 没有新导入码时正常返回1: 没有新导入码时报错,并返回没有导入成功的原因

Parameters:

  • BatchId:

    批次ID

  • CorpId:

    企业ID

  • Codes:

  • CodeType:

    码绑定激活策略,默认 0

  • CheckType:

    错误检查类型,默认 0



1183
1184
1185
# File 'lib/v20210515/models.rb', line 1183

def BatchId
  @BatchId
end

#CheckTypeObject

0: 传什么码就激活什么码1: 层级码 + 层级子码0: 没有新导入码时正常返回1: 没有新导入码时报错,并返回没有导入成功的原因

Parameters:

  • BatchId:

    批次ID

  • CorpId:

    企业ID

  • Codes:

  • CodeType:

    码绑定激活策略,默认 0

  • CheckType:

    错误检查类型,默认 0



1183
1184
1185
# File 'lib/v20210515/models.rb', line 1183

def CheckType
  @CheckType
end

#CodesObject

0: 传什么码就激活什么码1: 层级码 + 层级子码0: 没有新导入码时正常返回1: 没有新导入码时报错,并返回没有导入成功的原因

Parameters:

  • BatchId:

    批次ID

  • CorpId:

    企业ID

  • Codes:

  • CodeType:

    码绑定激活策略,默认 0

  • CheckType:

    错误检查类型,默认 0



1183
1184
1185
# File 'lib/v20210515/models.rb', line 1183

def Codes
  @Codes
end

#CodeTypeObject

0: 传什么码就激活什么码1: 层级码 + 层级子码0: 没有新导入码时正常返回1: 没有新导入码时报错,并返回没有导入成功的原因

Parameters:

  • BatchId:

    批次ID

  • CorpId:

    企业ID

  • Codes:

  • CodeType:

    码绑定激活策略,默认 0

  • CheckType:

    错误检查类型,默认 0



1183
1184
1185
# File 'lib/v20210515/models.rb', line 1183

def CodeType
  @CodeType
end

#CorpIdObject

0: 传什么码就激活什么码1: 层级码 + 层级子码0: 没有新导入码时正常返回1: 没有新导入码时报错,并返回没有导入成功的原因

Parameters:

  • BatchId:

    批次ID

  • CorpId:

    企业ID

  • Codes:

  • CodeType:

    码绑定激活策略,默认 0

  • CheckType:

    错误检查类型,默认 0



1183
1184
1185
# File 'lib/v20210515/models.rb', line 1183

def CorpId
  @CorpId
end

Instance Method Details

#deserialize(params) ⇒ Object



1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'lib/v20210515/models.rb', line 1193

def deserialize(params)
  @BatchId = params['BatchId']
  @CorpId = params['CorpId']
  unless params['Codes'].nil?
    @Codes = []
    params['Codes'].each do |i|
      codeitem_tmp = CodeItem.new
      codeitem_tmp.deserialize(i)
      @Codes << codeitem_tmp
    end
  end
  @CodeType = params['CodeType']
  @CheckType = params['CheckType']
end