/* * 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.Dcdb.V20180411.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeDCDBInstancesRequest : AbstractModel { /// /// 按照一个或者多个实例 ID 查询。实例 ID 形如:dcdbt-2t4cf98d /// [JsonProperty("InstanceIds")] public string[] InstanceIds{ get; set; } /// /// 搜索的字段名,当前支持的值有:instancename、vip、all。传 instancename 表示按实例名进行搜索;传 vip 表示按内网IP进行搜索;传 all 将会按实例ID、实例名和内网IP进行搜索。 /// [JsonProperty("SearchName")] public string SearchName{ get; set; } /// /// 搜索的关键字,支持模糊搜索。多个关键字使用换行符('\n')分割。 /// [JsonProperty("SearchKey")] public string SearchKey{ get; set; } /// /// 按项目 ID 查询 /// [JsonProperty("ProjectIds")] public long?[] ProjectIds{ get; set; } /// /// 是否根据 VPC 网络来搜索 /// [JsonProperty("IsFilterVpc")] public bool? IsFilterVpc{ get; set; } /// /// 私有网络 ID, IsFilterVpc 为 1 时有效 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 私有网络的子网 ID, IsFilterVpc 为 1 时有效 /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 排序字段, projectId, createtime, instancename 三者之一 /// [JsonProperty("OrderBy")] public string OrderBy{ get; set; } /// /// 排序类型, desc 或者 asc /// [JsonProperty("OrderByType")] public string OrderByType{ get; set; } /// /// 偏移量,默认为 0 /// [JsonProperty("Offset")] public long? Offset{ get; set; } /// /// 返回数量,默认为 10,最大值为 100。 /// [JsonProperty("Limit")] public long? Limit{ get; set; } /// /// 1非独享集群,2独享集群, 0全部 /// [JsonProperty("ExclusterType")] public long? ExclusterType{ get; set; } /// /// 标识是否使用ExclusterType字段, false不使用,true使用 /// [JsonProperty("IsFilterExcluster")] public bool? IsFilterExcluster{ get; set; } /// /// 独享集群ID /// [JsonProperty("ExclusterIds")] public string[] ExclusterIds{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds); this.SetParamSimple(map, prefix + "SearchName", this.SearchName); this.SetParamSimple(map, prefix + "SearchKey", this.SearchKey); this.SetParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds); this.SetParamSimple(map, prefix + "IsFilterVpc", this.IsFilterVpc); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "OrderBy", this.OrderBy); this.SetParamSimple(map, prefix + "OrderByType", this.OrderByType); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "ExclusterType", this.ExclusterType); this.SetParamSimple(map, prefix + "IsFilterExcluster", this.IsFilterExcluster); this.SetParamArraySimple(map, prefix + "ExclusterIds.", this.ExclusterIds); } } }