/*
* 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 PullUploadRequest : AbstractModel
{
///
/// 要拉取的媒体 URL,暂不支持拉取 HLS 和 Dash 格式。
/// 支持的扩展名详见[媒体类型](https://cloud.tencent.com/document/product/266/9760#.E5.AA.92.E4.BD.93.E7.B1.BB.E5.9E.8B)。
///
[JsonProperty("MediaUrl")]
public string MediaUrl{ get; set; }
///
/// 媒体名称。
///
[JsonProperty("MediaName")]
public string MediaName{ get; set; }
///
/// 要拉取的视频封面 URL。仅支持 gif、jpeg、png 三种图片格式。
///
[JsonProperty("CoverUrl")]
public string CoverUrl{ get; set; }
///
/// 媒体后续任务操作,详见[上传指定任务流](https://cloud.tencent.com/document/product/266/9759)。
///
[JsonProperty("Procedure")]
public string Procedure{ get; set; }
///
/// 媒体文件过期时间,格式按照 ISO 8601 标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。
///
[JsonProperty("ExpireTime")]
public string ExpireTime{ get; set; }
///
/// 指定上传园区,仅适用于对上传地域有特殊需求的用户(目前仅支持北京、上海和重庆园区)。
///
[JsonProperty("StorageRegion")]
public string StorageRegion{ get; set; }
///
/// 分类ID,用于对媒体进行分类管理,可通过[创建分类](https://cloud.tencent.com/document/product/266/7812)接口,创建分类,获得分类 ID。
///
[JsonProperty("ClassId")]
public long? ClassId{ get; set; }
///
/// 来源上下文,用于透传用户请求信息,当指定 Procedure 任务后,任务流状态变更回调将返回该字段值,最长 1000 个字符。
///
[JsonProperty("SessionContext")]
public string SessionContext{ get; set; }
///
/// 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
///
[JsonProperty("SessionId")]
public string SessionId{ get; set; }
///
/// 保留字段,特殊用途时使用。
///
[JsonProperty("ExtInfo")]
public string ExtInfo{ get; set; }
///
/// 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
///
[JsonProperty("SubAppId")]
public ulong? SubAppId{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "MediaUrl", this.MediaUrl);
this.SetParamSimple(map, prefix + "MediaName", this.MediaName);
this.SetParamSimple(map, prefix + "CoverUrl", this.CoverUrl);
this.SetParamSimple(map, prefix + "Procedure", this.Procedure);
this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
this.SetParamSimple(map, prefix + "StorageRegion", this.StorageRegion);
this.SetParamSimple(map, prefix + "ClassId", this.ClassId);
this.SetParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
this.SetParamSimple(map, prefix + "ExtInfo", this.ExtInfo);
this.SetParamSimple(map, prefix + "SubAppId", this.SubAppId);
}
}
}