Class: TencentCloud::Tms::V20200713::TextModerationRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20200713::TextModerationRequest
- Defined in:
- lib/v20200713/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.
430 431 432 433 434 435 436 |
# File 'lib/v20200713/models.rb', line 430 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
428 429 430 |
# File 'lib/v20200713/models.rb', line 428 def BizType @BizType end |
#Content ⇒ Object
428 429 430 |
# File 'lib/v20200713/models.rb', line 428 def Content @Content end |
#DataId ⇒ Object
428 429 430 |
# File 'lib/v20200713/models.rb', line 428 def DataId @DataId end |
#Device ⇒ Object
428 429 430 |
# File 'lib/v20200713/models.rb', line 428 def Device @Device end |
#User ⇒ Object
428 429 430 |
# File 'lib/v20200713/models.rb', line 428 def User @User end |
Instance Method Details
#deserialize(params) ⇒ Object
438 439 440 441 442 443 444 445 446 447 448 449 450 |
# File 'lib/v20200713/models.rb', line 438 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 |