Class: TencentCloud::Ams::V20200608::MediaModerationConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ams::V20200608::MediaModerationConfig
- Defined in:
- lib/v20200608/models.rb
Overview
媒体审核配置
Instance Attribute Summary collapse
- #AudioFrequency ⇒ Object
- #CallbackUrl ⇒ Object
- #ImageFrequency ⇒ Object
- #SegmentOutput ⇒ Object
- #UseAudio ⇒ Object
- #UseOCR ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(audiofrequency = nil, imagefrequency = nil, callbackurl = nil, segmentoutput = nil, useocr = nil, useaudio = nil) ⇒ MediaModerationConfig
constructor
A new instance of MediaModerationConfig.
Constructor Details
#initialize(audiofrequency = nil, imagefrequency = nil, callbackurl = nil, segmentoutput = nil, useocr = nil, useaudio = nil) ⇒ MediaModerationConfig
Returns a new instance of MediaModerationConfig.
1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/v20200608/models.rb', line 1269 def initialize(audiofrequency=nil, imagefrequency=nil, callbackurl=nil, segmentoutput=nil, useocr=nil, useaudio=nil) @AudioFrequency = audiofrequency @ImageFrequency = imagefrequency @CallbackUrl = callbackurl @SegmentOutput = segmentoutput @UseOCR = useocr @UseAudio = useaudio end |
Instance Attribute Details
#AudioFrequency ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def AudioFrequency @AudioFrequency end |
#CallbackUrl ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def CallbackUrl @CallbackUrl end |
#ImageFrequency ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def ImageFrequency @ImageFrequency end |
#SegmentOutput ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def SegmentOutput @SegmentOutput end |
#UseAudio ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def UseAudio @UseAudio end |
#UseOCR ⇒ Object
1267 1268 1269 |
# File 'lib/v20200608/models.rb', line 1267 def UseOCR @UseOCR end |
Instance Method Details
#deserialize(params) ⇒ Object
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/v20200608/models.rb', line 1278 def deserialize(params) @AudioFrequency = params['AudioFrequency'] @ImageFrequency = params['ImageFrequency'] @CallbackUrl = params['CallbackUrl'] unless params['SegmentOutput'].nil? @SegmentOutput = FileOutput.new @SegmentOutput.deserialize(params['SegmentOutput']) end @UseOCR = params['UseOCR'] @UseAudio = params['UseAudio'] end |