/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Vod.V20180717.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeTaskDetailResponse : AbstractModel { /// /// 任务类型,取值: ///
  • Procedure:视频处理任务;
  • ///
  • EditMedia:视频编辑任务;
  • ///
  • WechatPublish:微信发布任务;
  • ///
  • WechatMiniProgramPublish:微信小程序视频发布任务;
  • ///
  • ComposeMedia:制作媒体文件任务;
  • ///
  • PullUpload:拉取上传媒体文件任务。
  • /// /// 兼容 2017 版的任务类型: ///
  • Transcode:视频转码任务;
  • ///
  • SnapshotByTimeOffset:视频截图任务;
  • ///
  • Concat:视频拼接任务;
  • ///
  • Clip:视频剪辑任务;
  • ///
  • ImageSprites:截取雪碧图任务。
  • ///
    [JsonProperty("TaskType")] public string TaskType{ get; set; } /// /// 任务状态,取值: ///
  • WAITING:等待中;
  • ///
  • PROCESSING:处理中;
  • ///
  • FINISH:已完成。
  • ///
    [JsonProperty("Status")] public string Status{ get; set; } /// /// 任务的创建时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 /// [JsonProperty("BeginProcessTime")] public string BeginProcessTime{ get; set; } /// /// 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 /// [JsonProperty("FinishTime")] public string FinishTime{ get; set; } /// /// 视频处理任务信息,仅当 TaskType 为 Procedure,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ProcedureTask")] public ProcedureTask ProcedureTask{ get; set; } /// /// 视频编辑任务信息,仅当 TaskType 为 EditMedia,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EditMediaTask")] public EditMediaTask EditMediaTask{ get; set; } /// /// 微信发布任务信息,仅当 TaskType 为 WechatPublish,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("WechatPublishTask")] public WechatPublishTask WechatPublishTask{ get; set; } /// /// 制作媒体文件任务信息,仅当 TaskType 为 ComposeMedia,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ComposeMediaTask")] public ComposeMediaTask ComposeMediaTask{ get; set; } /// /// 拉取上传媒体文件任务信息,仅当 TaskType 为 PullUpload,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PullUploadTask")] public PullUploadTask PullUploadTask{ get; set; } /// /// 视频转码任务信息,仅当 TaskType 为 Transcode,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("TranscodeTask")] public TranscodeTask2017 TranscodeTask{ get; set; } /// /// 视频指定时间点截图任务信息,仅当 TaskType 为 SnapshotByTimeOffset,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SnapshotByTimeOffsetTask")] public SnapshotByTimeOffsetTask2017 SnapshotByTimeOffsetTask{ get; set; } /// /// 视频拼接任务信息,仅当 TaskType 为 Concat,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ConcatTask")] public ConcatTask2017 ConcatTask{ get; set; } /// /// 视频剪辑任务信息,仅当 TaskType 为 Clip,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ClipTask")] public ClipTask2017 ClipTask{ get; set; } /// /// 截取雪碧图任务信息,仅当 TaskType 为 ImageSprite,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CreateImageSpriteTask")] public CreateImageSpriteTask2017 CreateImageSpriteTask{ get; set; } /// /// 微信小程序发布任务信息,仅当 TaskType 为 WechatMiniProgramPublish,该字段有值。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("WechatMiniProgramPublishTask")] public WechatMiniProgramPublishTask WechatMiniProgramPublishTask{ get; set; } /// /// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 /// [JsonProperty("RequestId")] public string RequestId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TaskType", this.TaskType); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "BeginProcessTime", this.BeginProcessTime); this.SetParamSimple(map, prefix + "FinishTime", this.FinishTime); this.SetParamObj(map, prefix + "ProcedureTask.", this.ProcedureTask); this.SetParamObj(map, prefix + "EditMediaTask.", this.EditMediaTask); this.SetParamObj(map, prefix + "WechatPublishTask.", this.WechatPublishTask); this.SetParamObj(map, prefix + "ComposeMediaTask.", this.ComposeMediaTask); this.SetParamObj(map, prefix + "PullUploadTask.", this.PullUploadTask); this.SetParamObj(map, prefix + "TranscodeTask.", this.TranscodeTask); this.SetParamObj(map, prefix + "SnapshotByTimeOffsetTask.", this.SnapshotByTimeOffsetTask); this.SetParamObj(map, prefix + "ConcatTask.", this.ConcatTask); this.SetParamObj(map, prefix + "ClipTask.", this.ClipTask); this.SetParamObj(map, prefix + "CreateImageSpriteTask.", this.CreateImageSpriteTask); this.SetParamObj(map, prefix + "WechatMiniProgramPublishTask.", this.WechatMiniProgramPublishTask); this.SetParamSimple(map, prefix + "RequestId", this.RequestId); } } }