Class: TencentCloud::Vod::V20180717::TranscodeTask2017
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vod::V20180717::TranscodeTask2017
- Defined in:
- lib/v20180717/models.rb
Overview
视频转码任务信息,该结构仅用于对 2017 版(cloud.tencent.com/document/product/266/7822)接口发起的任务。
Instance Attribute Summary collapse
-
#CoverUrl ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#Duration ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#ErrCode ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#FileId ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#FileName ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#Message ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#PlayInfoSet ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
-
#TaskId ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(taskid = nil, errcode = nil, message = nil, fileid = nil, filename = nil, duration = nil, coverurl = nil, playinfoset = nil) ⇒ TranscodeTask2017
constructor
A new instance of TranscodeTask2017.
Constructor Details
#initialize(taskid = nil, errcode = nil, message = nil, fileid = nil, filename = nil, duration = nil, coverurl = nil, playinfoset = nil) ⇒ TranscodeTask2017
Returns a new instance of TranscodeTask2017.
28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 |
# File 'lib/v20180717/models.rb', line 28349 def initialize(taskid=nil, errcode=nil, =nil, fileid=nil, filename=nil, duration=nil, coverurl=nil, =nil) @TaskId = taskid @ErrCode = errcode @Message = @FileId = fileid @FileName = filename @Duration = duration @CoverUrl = coverurl @PlayInfoSet = end |
Instance Attribute Details
#CoverUrl ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def CoverUrl @CoverUrl end |
#Duration ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def Duration @Duration end |
#ErrCode ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def ErrCode @ErrCode end |
#FileId ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def FileId @FileId end |
#FileName ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def FileName @FileName end |
#Message ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def Message @Message end |
#PlayInfoSet ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def PlayInfoSet @PlayInfoSet end |
#TaskId ⇒ Object
<li>0:成功;</li> <li>其他值:失败。</li>
28347 28348 28349 |
# File 'lib/v20180717/models.rb', line 28347 def TaskId @TaskId end |
Instance Method Details
#deserialize(params) ⇒ Object
28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 |
# File 'lib/v20180717/models.rb', line 28360 def deserialize(params) @TaskId = params['TaskId'] @ErrCode = params['ErrCode'] @Message = params['Message'] @FileId = params['FileId'] @FileName = params['FileName'] @Duration = params['Duration'] @CoverUrl = params['CoverUrl'] unless params['PlayInfoSet'].nil? @PlayInfoSet = [] params['PlayInfoSet'].each do |i| = TranscodePlayInfo2017.new .deserialize(i) @PlayInfoSet << end end end |