/* * 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.Dayu.V20180709.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeResourceListRequest : AbstractModel { /// /// 大禹子产品代号(bgp表示独享包;bgp-multip表示共享包;bgpip表示高防IP;net表示高防IP专业版) /// [JsonProperty("Business")] public string Business{ get; set; } /// /// 地域码搜索,可选,当不指定地域时空数组,当指定地域时,填地域码。例如:["gz", "sh"] /// [JsonProperty("RegionList")] public string[] RegionList{ get; set; } /// /// 线路搜索,可选,只有当获取高防IP资源列表是可以选填,取值为[1(BGP线路),2(南京电信),3(南京联通),99(第三方合作线路)],当获取其他产品时请填空数组; /// [JsonProperty("Line")] public ulong?[] Line{ get; set; } /// /// 资源ID搜索,可选,当不为空数组时表示获取指定资源的资源列表; /// [JsonProperty("IdList")] public string[] IdList{ get; set; } /// /// 资源名称搜索,可选,当不为空字符串时表示按名称搜索资源; /// [JsonProperty("Name")] public string Name{ get; set; } /// /// IP搜索列表,可选,当不为空时表示安装IP搜索资源; /// [JsonProperty("IpList")] public string[] IpList{ get; set; } /// /// 资源状态搜索列表,可选,取值为[0(运行中), 1(清洗中), 2(封堵中)],当填空数组时不进行状态搜索; /// [JsonProperty("Status")] public ulong?[] Status{ get; set; } /// /// 即将到期搜索;可选,取值为[0(不搜索),1(搜索即将到期的资源)] /// [JsonProperty("Expire")] public ulong? Expire{ get; set; } /// /// 排序字段,可选 /// [JsonProperty("OderBy")] public OrderBy[] OderBy{ get; set; } /// /// 一页条数,填0表示不分页 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// 页起始偏移,取值为(页码-1)*一页条数 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 高防IP专业版资源的CNAME,可选,只对高防IP专业版资源列表有效; /// [JsonProperty("CName")] public string CName{ get; set; } /// /// 高防IP专业版资源的域名,可选,只对高防IP专业版资源列表有效; /// [JsonProperty("Domain")] public string Domain{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Business", this.Business); this.SetParamArraySimple(map, prefix + "RegionList.", this.RegionList); this.SetParamArraySimple(map, prefix + "Line.", this.Line); this.SetParamArraySimple(map, prefix + "IdList.", this.IdList); this.SetParamSimple(map, prefix + "Name", this.Name); this.SetParamArraySimple(map, prefix + "IpList.", this.IpList); this.SetParamArraySimple(map, prefix + "Status.", this.Status); this.SetParamSimple(map, prefix + "Expire", this.Expire); this.SetParamArrayObj(map, prefix + "OderBy.", this.OderBy); this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "CName", this.CName); this.SetParamSimple(map, prefix + "Domain", this.Domain); } } }