Class: TencentCloud::Cms::V20190321::TextModerationRequest
- Inherits:
- 
      TencentCloud::Common::AbstractModel
      
        - Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cms::V20190321::TextModerationRequest
 
- Defined in:
- lib/v20190321/models.rb
Overview
TextModeration请求参数结构体
Instance Attribute Summary collapse
- #BizType ⇒ Object
- #Content ⇒ Object
- #DataId ⇒ Object
- #Device ⇒ Object
- #SdkAppId ⇒ Object
- #User ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
- 
  
    
      #initialize(content = nil, dataid = nil, biztype = nil, user = nil, sdkappid = nil, device = nil)  ⇒ TextModerationRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TextModerationRequest. 
Constructor Details
#initialize(content = nil, dataid = nil, biztype = nil, user = nil, sdkappid = nil, device = nil) ⇒ TextModerationRequest
Returns a new instance of TextModerationRequest.
| 1391 1392 1393 1394 1395 1396 1397 1398 | # File 'lib/v20190321/models.rb', line 1391 def initialize(content=nil, dataid=nil, biztype=nil, user=nil, sdkappid=nil, device=nil) @Content = content @DataId = dataid @BizType = biztype @User = user @SdkAppId = sdkappid @Device = device end | 
Instance Attribute Details
#BizType ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def BizType @BizType end | 
#Content ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def Content @Content end | 
#DataId ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def DataId @DataId end | 
#Device ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def Device @Device end | 
#SdkAppId ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def SdkAppId @SdkAppId end | 
#User ⇒ Object
| 1389 1390 1391 | # File 'lib/v20190321/models.rb', line 1389 def User @User end | 
Instance Method Details
#deserialize(params) ⇒ Object
| 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 | # File 'lib/v20190321/models.rb', line 1400 def deserialize(params) @Content = params['Content'] @DataId = params['DataId'] @BizType = params['BizType'] unless params['User'].nil? @User = User.new @User.deserialize(params['User']) end @SdkAppId = params['SdkAppId'] unless params['Device'].nil? @Device = Device.new @Device.deserialize(params['Device']) end end |