Class: TencentCloud::Tms::V20201229::TextModerationRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20201229::TextModerationRequest
- Defined in:
- lib/v20201229/models.rb
Overview
TextModeration请求参数结构体
Instance Attribute Summary collapse
- #BizType ⇒ Object
- #Content ⇒ Object
- #DataId ⇒ Object
- #Device ⇒ Object
- #SessionId ⇒ Object
- #SourceLanguage ⇒ Object
- #Type ⇒ Object
- #User ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil, sourcelanguage = nil, type = nil, sessionid = nil) ⇒ TextModerationRequest
constructor
A new instance of TextModerationRequest.
Constructor Details
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil, sourcelanguage = nil, type = nil, sessionid = nil) ⇒ TextModerationRequest
Returns a new instance of TextModerationRequest.
481 482 483 484 485 486 487 488 489 490 |
# File 'lib/v20201229/models.rb', line 481 def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil, type=nil, sessionid=nil) @Content = content @BizType = biztype @DataId = dataid @User = user @Device = device @SourceLanguage = sourcelanguage @Type = type @SessionId = sessionid end |
Instance Attribute Details
#BizType ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def BizType @BizType end |
#Content ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def Content @Content end |
#DataId ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def DataId @DataId end |
#Device ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def Device @Device end |
#SessionId ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def SessionId @SessionId end |
#SourceLanguage ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def SourceLanguage @SourceLanguage end |
#Type ⇒ Object
479 480 481 |
# File 'lib/v20201229/models.rb', line 479 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 |
# File 'lib/v20201229/models.rb', line 492 def deserialize(params) @Content = params['Content'] @BizType = params['BizType'] @DataId = params['DataId'] unless params['User'].nil? @User = User.new @User.deserialize(params['User']) end unless params['Device'].nil? @Device = Device.new @Device.deserialize(params['Device']) end @SourceLanguage = params['SourceLanguage'] @Type = params['Type'] @SessionId = params['SessionId'] end |