Class: TencentCloud::Ams::V20200608::CreateBizConfigRequest

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

Overview

CreateBizConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(biztype = nil, mediamoderation = nil, bizname = nil, moderationcategories = nil) ⇒ CreateBizConfigRequest

Returns a new instance of CreateBizConfigRequest.



459
460
461
462
463
464
# File 'lib/v20200608/models.rb', line 459

def initialize(biztype=nil, mediamoderation=nil, bizname=nil, moderationcategories=nil)
  @BizType = biztype
  @MediaModeration = mediamoderation
  @BizName = bizname
  @ModerationCategories = moderationcategories
end

Instance Attribute Details

#BizNameObject

Parameters:

  • BizType:

    业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位

  • MediaModeration:

    配置信息,

  • BizName:

    业务名称,用于标识业务场景,长度不超过32位

  • ModerationCategories:

    审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告);



457
458
459
# File 'lib/v20200608/models.rb', line 457

def BizName
  @BizName
end

#BizTypeObject

Parameters:

  • BizType:

    业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位

  • MediaModeration:

    配置信息,

  • BizName:

    业务名称,用于标识业务场景,长度不超过32位

  • ModerationCategories:

    审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告);



457
458
459
# File 'lib/v20200608/models.rb', line 457

def BizType
  @BizType
end

#MediaModerationObject

Parameters:

  • BizType:

    业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位

  • MediaModeration:

    配置信息,

  • BizName:

    业务名称,用于标识业务场景,长度不超过32位

  • ModerationCategories:

    审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告);



457
458
459
# File 'lib/v20200608/models.rb', line 457

def MediaModeration
  @MediaModeration
end

#ModerationCategoriesObject

Parameters:

  • BizType:

    业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位

  • MediaModeration:

    配置信息,

  • BizName:

    业务名称,用于标识业务场景,长度不超过32位

  • ModerationCategories:

    审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告);



457
458
459
# File 'lib/v20200608/models.rb', line 457

def ModerationCategories
  @ModerationCategories
end

Instance Method Details

#deserialize(params) ⇒ Object



466
467
468
469
470
471
472
473
474
# File 'lib/v20200608/models.rb', line 466

def deserialize(params)
  @BizType = params['BizType']
  unless params['MediaModeration'].nil?
    @MediaModeration = MediaModerationConfig.new
    @MediaModeration.deserialize(params['MediaModeration'])
  end
  @BizName = params['BizName']
  @ModerationCategories = params['ModerationCategories']
end