108 lines
4.6 KiB
C#
108 lines
4.6 KiB
C#
/*
|
||
* 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 ApplyUploadRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 媒体类型,可选值请参考 [上传能力综述](/document/product/266/9760#.E6.96.87.E4.BB.B6.E7.B1.BB.E5.9E.8B)。
|
||
/// </summary>
|
||
[JsonProperty("MediaType")]
|
||
public string MediaType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 媒体名称。
|
||
/// </summary>
|
||
[JsonProperty("MediaName")]
|
||
public string MediaName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 封面类型,可选值请参考 [上传能力综述](/document/product/266/9760#.E6.96.87.E4.BB.B6.E7.B1.BB.E5.9E.8B)。
|
||
/// </summary>
|
||
[JsonProperty("CoverType")]
|
||
public string CoverType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 [创建任务流模板](/document/product/266/33819) 并为模板命名。
|
||
/// </summary>
|
||
[JsonProperty("Procedure")]
|
||
public string Procedure{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 媒体文件过期时间,格式按照 ISO 8601 标准表示,详见 [ISO 日期格式说明](/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。
|
||
/// </summary>
|
||
[JsonProperty("ExpireTime")]
|
||
public string ExpireTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 指定上传园区,仅适用于对上传地域有特殊需求的用户。
|
||
/// </summary>
|
||
[JsonProperty("StorageRegion")]
|
||
public string StorageRegion{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。
|
||
/// <li>默认值:0,表示其他分类。</li>
|
||
/// </summary>
|
||
[JsonProperty("ClassId")]
|
||
public long? ClassId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 来源上下文,用于透传用户请求信息,[上传完成回调](/document/product/266/7830) 将返回该字段值,最长 250 个字符。
|
||
/// </summary>
|
||
[JsonProperty("SourceContext")]
|
||
public string SourceContext{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 会话上下文,用于透传用户请求信息,当指定 Procedure 参数后,[任务流状态变更回调](/document/product/266/9636) 将返回该字段值,最长 1000 个字符。
|
||
/// </summary>
|
||
[JsonProperty("SessionContext")]
|
||
public string SessionContext{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
||
/// </summary>
|
||
[JsonProperty("SubAppId")]
|
||
public ulong? SubAppId{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||
{
|
||
this.SetParamSimple(map, prefix + "MediaType", this.MediaType);
|
||
this.SetParamSimple(map, prefix + "MediaName", this.MediaName);
|
||
this.SetParamSimple(map, prefix + "CoverType", this.CoverType);
|
||
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 + "SourceContext", this.SourceContext);
|
||
this.SetParamSimple(map, prefix + "SessionContext", this.SessionContext);
|
||
this.SetParamSimple(map, prefix + "SubAppId", this.SubAppId);
|
||
}
|
||
}
|
||
}
|
||
|