Class: TencentCloud::Iotexplorer::V20190423::CloudStorageAIServiceTaskFileInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotexplorer::V20190423::CloudStorageAIServiceTaskFileInfo
- Defined in:
- lib/v20190423/models.rb
Overview
云存 AI 任务输出文件信息
Instance Attribute Summary collapse
- #DownloadURL ⇒ Object
- #FileName ⇒ Object
- #FileSize ⇒ Object
- #Labels ⇒ Object
- #MimeType ⇒ Object
- #VideoMetaInfo ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(filename = nil, filesize = nil, downloadurl = nil, mimetype = nil, videometainfo = nil, labels = nil) ⇒ CloudStorageAIServiceTaskFileInfo
constructor
A new instance of CloudStorageAIServiceTaskFileInfo.
Constructor Details
#initialize(filename = nil, filesize = nil, downloadurl = nil, mimetype = nil, videometainfo = nil, labels = nil) ⇒ CloudStorageAIServiceTaskFileInfo
Returns a new instance of CloudStorageAIServiceTaskFileInfo.
1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/v20190423/models.rb', line 1038 def initialize(filename=nil, filesize=nil, downloadurl=nil, mimetype=nil, =nil, labels=nil) @FileName = filename @FileSize = filesize @DownloadURL = downloadurl @MimeType = mimetype @VideoMetaInfo = @Labels = labels end |
Instance Attribute Details
#DownloadURL ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def DownloadURL @DownloadURL end |
#FileName ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def FileName @FileName end |
#FileSize ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def FileSize @FileSize end |
#Labels ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def Labels @Labels end |
#MimeType ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def MimeType @MimeType end |
#VideoMetaInfo ⇒ Object
1036 1037 1038 |
# File 'lib/v20190423/models.rb', line 1036 def VideoMetaInfo @VideoMetaInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/v20190423/models.rb', line 1047 def deserialize(params) @FileName = params['FileName'] @FileSize = params['FileSize'] @DownloadURL = params['DownloadURL'] @MimeType = params['MimeType'] unless params['VideoMetaInfo'].nil? @VideoMetaInfo = CloudStorageAIServiceTaskVideoMetaInfo.new @VideoMetaInfo.deserialize(params['VideoMetaInfo']) end unless params['Labels'].nil? @Labels = [] params['Labels'].each do |i| cloudstorageaiservicetaskfilelabel_tmp = CloudStorageAIServiceTaskFileLabel.new cloudstorageaiservicetaskfilelabel_tmp.deserialize(i) @Labels << cloudstorageaiservicetaskfilelabel_tmp end end end |