Class: TencentCloud::Ivld::V20210903::CreateCustomPersonRequest

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

Overview

CreateCustomPerson请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, basicinfo = nil, categoryid = nil, imageurl = nil, image = nil) ⇒ CreateCustomPersonRequest

Returns a new instance of CreateCustomPersonRequest.



408
409
410
411
412
413
414
# File 'lib/v20210903/models.rb', line 408

def initialize(name=nil, basicinfo=nil, categoryid=nil, imageurl=nil, image=nil)
  @Name = name
  @BasicInfo = basicinfo
  @CategoryId = categoryid
  @ImageURL = imageurl
  @Image = image
end

Instance Attribute Details

#BasicInfoObject

Parameters:

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简要信息(仅用于标记,不支持检索)

  • CategoryId:

    自定义分类ID,如不存在接口会报错

  • ImageURL:

    自定义人物图片URL,可支持任意地址,推荐使用COS

  • Image:

    原始图片base64编码后的数据



406
407
408
# File 'lib/v20210903/models.rb', line 406

def BasicInfo
  @BasicInfo
end

#CategoryIdObject

Parameters:

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简要信息(仅用于标记,不支持检索)

  • CategoryId:

    自定义分类ID,如不存在接口会报错

  • ImageURL:

    自定义人物图片URL,可支持任意地址,推荐使用COS

  • Image:

    原始图片base64编码后的数据



406
407
408
# File 'lib/v20210903/models.rb', line 406

def CategoryId
  @CategoryId
end

#ImageObject

Parameters:

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简要信息(仅用于标记,不支持检索)

  • CategoryId:

    自定义分类ID,如不存在接口会报错

  • ImageURL:

    自定义人物图片URL,可支持任意地址,推荐使用COS

  • Image:

    原始图片base64编码后的数据



406
407
408
# File 'lib/v20210903/models.rb', line 406

def Image
  @Image
end

#ImageURLObject

Parameters:

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简要信息(仅用于标记,不支持检索)

  • CategoryId:

    自定义分类ID,如不存在接口会报错

  • ImageURL:

    自定义人物图片URL,可支持任意地址,推荐使用COS

  • Image:

    原始图片base64编码后的数据



406
407
408
# File 'lib/v20210903/models.rb', line 406

def ImageURL
  @ImageURL
end

#NameObject

Parameters:

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简要信息(仅用于标记,不支持检索)

  • CategoryId:

    自定义分类ID,如不存在接口会报错

  • ImageURL:

    自定义人物图片URL,可支持任意地址,推荐使用COS

  • Image:

    原始图片base64编码后的数据



406
407
408
# File 'lib/v20210903/models.rb', line 406

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



416
417
418
419
420
421
422
# File 'lib/v20210903/models.rb', line 416

def deserialize(params)
  @Name = params['Name']
  @BasicInfo = params['BasicInfo']
  @CategoryId = params['CategoryId']
  @ImageURL = params['ImageURL']
  @Image = params['Image']
end