131 lines
5.3 KiB
C#
131 lines
5.3 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 SearchMediaRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 搜索文本,模糊匹配媒体文件名称或描述信息,匹配项越多,匹配度越高,排序越优先。长度限制:64个字符。
|
||
/// </summary>
|
||
[JsonProperty("Text")]
|
||
public string Text{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 标签集合,匹配集合中任意元素。
|
||
/// <li>单个标签长度限制:8个字符。</li>
|
||
/// <li>数组长度限制:10。</li>
|
||
/// </summary>
|
||
[JsonProperty("Tags")]
|
||
public string[] Tags{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 分类 ID 集合,匹配集合指定 ID 的分类及其所有子类。数组长度限制:10。
|
||
/// </summary>
|
||
[JsonProperty("ClassIds")]
|
||
public long?[] ClassIds{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间的开始时间。
|
||
/// <li>大于等于开始时间。</li>
|
||
/// <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li>
|
||
/// </summary>
|
||
[JsonProperty("StartTime")]
|
||
public string StartTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间的结束时间。
|
||
/// <li>小于结束时间。</li>
|
||
/// <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li>
|
||
/// </summary>
|
||
[JsonProperty("EndTime")]
|
||
public string EndTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 媒体文件来源,来源取值参见 [SourceType](https://cloud.tencent.com/document/product/266/31773#MediaSourceData)。
|
||
/// </summary>
|
||
[JsonProperty("SourceType")]
|
||
public string SourceType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 推流 [直播码](https://cloud.tencent.com/document/product/267/5959)。
|
||
/// </summary>
|
||
[JsonProperty("StreamId")]
|
||
public string StreamId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 直播录制文件的唯一标识。
|
||
/// </summary>
|
||
[JsonProperty("Vid")]
|
||
public string Vid{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 排序方式。
|
||
/// <li>Sort.Field 可选值:CreateTime</li>
|
||
/// <li>指定 Text 搜索时,将根据匹配度排序,该字段无效</li>
|
||
/// </summary>
|
||
[JsonProperty("Sort")]
|
||
public SortBy Sort{ get; set; }
|
||
|
||
/// <summary>
|
||
/// <div id="p_offset">分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。
|
||
/// <li>取值范围:Offset + Limit 不超过5000。(参见:<a href="#maxResultsDesc">接口返回结果数限制</a>)</li></div>
|
||
/// </summary>
|
||
[JsonProperty("Offset")]
|
||
public ulong? Offset{ get; set; }
|
||
|
||
/// <summary>
|
||
/// <div id="p_limit">分页返回的记录条数,默认值:10。将返回第 Offset 到第 Offset+Limit-1 条。
|
||
/// <li>取值范围:Offset + Limit 不超过5000。(参见:<a href="#maxResultsDesc">接口返回结果数限制</a>)</li></div>
|
||
/// </summary>
|
||
[JsonProperty("Limit")]
|
||
public ulong? Limit{ 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 + "Text", this.Text);
|
||
this.SetParamArraySimple(map, prefix + "Tags.", this.Tags);
|
||
this.SetParamArraySimple(map, prefix + "ClassIds.", this.ClassIds);
|
||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||
this.SetParamSimple(map, prefix + "SourceType", this.SourceType);
|
||
this.SetParamSimple(map, prefix + "StreamId", this.StreamId);
|
||
this.SetParamSimple(map, prefix + "Vid", this.Vid);
|
||
this.SetParamObj(map, prefix + "Sort.", this.Sort);
|
||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||
this.SetParamSimple(map, prefix + "SubAppId", this.SubAppId);
|
||
}
|
||
}
|
||
}
|
||
|