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