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.
1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'lib/v20190423/models.rb', line 1070 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
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def DownloadURL @DownloadURL end |
#FileName ⇒ Object
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def FileName @FileName end |
#FileSize ⇒ Object
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def FileSize @FileSize end |
#Labels ⇒ Object
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def Labels @Labels end |
#MimeType ⇒ Object
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def MimeType @MimeType end |
#VideoMetaInfo ⇒ Object
1068 1069 1070 |
# File 'lib/v20190423/models.rb', line 1068 def VideoMetaInfo @VideoMetaInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 |
# File 'lib/v20190423/models.rb', line 1079 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 |