/*
* 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 MediaBasicInfo : AbstractModel
{
///
/// 媒体文件名称。
///
[JsonProperty("Name")]
public string Name{ get; set; }
///
/// 媒体文件描述。
///
[JsonProperty("Description")]
public string Description{ 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("UpdateTime")]
public string UpdateTime{ get; set; }
///
/// 媒体文件的过期时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。过期后该媒体文件及其相关资源(转码结果、雪碧图等)将被永久删除。“9999-12-31T23:59:59Z”表示永不过期。
///
[JsonProperty("ExpireTime")]
public string ExpireTime{ get; set; }
///
/// 媒体文件的分类 ID。
///
[JsonProperty("ClassId")]
public long? ClassId{ get; set; }
///
/// 媒体文件的分类名称。
///
[JsonProperty("ClassName")]
public string ClassName{ get; set; }
///
/// 媒体文件的分类路径,分类间以“-”分隔,如“新的一级分类 - 新的二级分类”。
///
[JsonProperty("ClassPath")]
public string ClassPath{ get; set; }
///
/// 媒体文件的封面图片地址。
///
[JsonProperty("CoverUrl")]
public string CoverUrl{ get; set; }
///
/// 媒体文件的封装格式,例如 mp4、flv 等。
///
[JsonProperty("Type")]
public string Type{ get; set; }
///
/// 原始媒体文件的 URL 地址。
///
[JsonProperty("MediaUrl")]
public string MediaUrl{ get; set; }
///
/// 该媒体文件的来源信息。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("SourceInfo")]
public MediaSourceData SourceInfo{ get; set; }
///
/// 媒体文件存储地区,如 ap-guangzhou,参见[地域列表](https://cloud.tencent.com/document/api/213/15692#.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8)。
///
[JsonProperty("StorageRegion")]
public string StorageRegion{ get; set; }
///
/// 媒体文件的标签信息。
///
[JsonProperty("TagSet")]
public string[] TagSet{ get; set; }
///
/// 直播录制文件的唯一标识
///
[JsonProperty("Vid")]
public string Vid{ get; set; }
///
/// 文件类型:
/// Video: 视频文件
/// Audio: 音频文件
/// Image: 图片文件
///
[JsonProperty("Category")]
public string Category{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
this.SetParamSimple(map, prefix + "ClassId", this.ClassId);
this.SetParamSimple(map, prefix + "ClassName", this.ClassName);
this.SetParamSimple(map, prefix + "ClassPath", this.ClassPath);
this.SetParamSimple(map, prefix + "CoverUrl", this.CoverUrl);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "MediaUrl", this.MediaUrl);
this.SetParamObj(map, prefix + "SourceInfo.", this.SourceInfo);
this.SetParamSimple(map, prefix + "StorageRegion", this.StorageRegion);
this.SetParamArraySimple(map, prefix + "TagSet.", this.TagSet);
this.SetParamSimple(map, prefix + "Vid", this.Vid);
this.SetParamSimple(map, prefix + "Category", this.Category);
}
}
}