Class: TencentCloud::Mrs::V20200910::TextToClassRequest

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

Overview

TextToClass请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, usertype = nil) ⇒ TextToClassRequest

Returns a new instance of TextToClassRequest.



10419
10420
10421
10422
# File 'lib/v20200910/models.rb', line 10419

def initialize(text=nil, usertype=nil)
  @Text = text
  @UserType = usertype
end

Instance Attribute Details

#TextObject

Parameters:

  • Text:

    报告文本

  • UserType:

    后付费的用户类型,新客户传1,老客户可不传或传 0。2022 年 12 月 15 新增了计费项,在此时间之前已经通过商务指定优惠价格的大客户,请不传这个字段或传 0,如果传 1 会导致以前获得的折扣价格失效。在 2022 年 12 月 15 日之后,通过商务指定优惠价格的大客户请传 1。



10417
10418
10419
# File 'lib/v20200910/models.rb', line 10417

def Text
  @Text
end

#UserTypeObject

Parameters:

  • Text:

    报告文本

  • UserType:

    后付费的用户类型,新客户传1,老客户可不传或传 0。2022 年 12 月 15 新增了计费项,在此时间之前已经通过商务指定优惠价格的大客户,请不传这个字段或传 0,如果传 1 会导致以前获得的折扣价格失效。在 2022 年 12 月 15 日之后,通过商务指定优惠价格的大客户请传 1。



10417
10418
10419
# File 'lib/v20200910/models.rb', line 10417

def UserType
  @UserType
end

Instance Method Details

#deserialize(params) ⇒ Object



10424
10425
10426
10427
# File 'lib/v20200910/models.rb', line 10424

def deserialize(params)
  @Text = params['Text']
  @UserType = params['UserType']
end