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
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil) ⇒ TextModerationRequest
constructor
A new instance of TextModerationRequest.
Constructor Details
#initialize(content = nil, biztype = nil, dataid = nil, user = nil, device = nil) ⇒ TextModerationRequest
Returns a new instance of TextModerationRequest.
321 322 323 324 325 326 327 |
# File 'lib/v20201229/models.rb', line 321 def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil) @Content = content @BizType = biztype @DataId = dataid @User = user @Device = device end |
Instance Attribute Details
#BizType ⇒ Object
319 320 321 |
# File 'lib/v20201229/models.rb', line 319 def BizType @BizType end |
#Content ⇒ Object
319 320 321 |
# File 'lib/v20201229/models.rb', line 319 def Content @Content end |
#DataId ⇒ Object
319 320 321 |
# File 'lib/v20201229/models.rb', line 319 def DataId @DataId end |
#Device ⇒ Object
319 320 321 |
# File 'lib/v20201229/models.rb', line 319 def Device @Device end |
#User ⇒ Object
319 320 321 |
# File 'lib/v20201229/models.rb', line 319 def User @User end |
Instance Method Details
#deserialize(params) ⇒ Object
329 330 331 332 333 334 335 336 337 338 339 340 341 |
# File 'lib/v20201229/models.rb', line 329 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 end |