/* * 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.Es.V20180416.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeInstancesRequest : AbstractModel { /// /// 集群实例所属可用区,不传则默认所有可用区 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 集群实例ID列表 /// [JsonProperty("InstanceIds")] public string[] InstanceIds{ get; set; } /// /// 集群实例名称列表 /// [JsonProperty("InstanceNames")] public string[] InstanceNames{ get; set; } /// /// 分页起始值, 默认值0 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 分页大小,默认值20 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// 排序字段
  • 1:实例ID
  • 2:实例名称
  • 3:可用区
  • 4:创建时间
  • 若orderKey未传递则按创建时间降序排序 ///
    [JsonProperty("OrderByKey")] public ulong? OrderByKey{ get; set; } /// /// 排序方式
  • 0:升序
  • 1:降序
  • 若传递了orderByKey未传递orderByType, 则默认升序 ///
    [JsonProperty("OrderByType")] public ulong? OrderByType{ get; set; } /// /// 节点标签信息列表 /// [JsonProperty("TagList")] public TagInfo[] TagList{ get; set; } /// /// 私有网络vip列表 /// [JsonProperty("IpList")] public string[] IpList{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds); this.SetParamArraySimple(map, prefix + "InstanceNames.", this.InstanceNames); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "OrderByKey", this.OrderByKey); this.SetParamSimple(map, prefix + "OrderByType", this.OrderByType); this.SetParamArrayObj(map, prefix + "TagList.", this.TagList); this.SetParamArraySimple(map, prefix + "IpList.", this.IpList); } } }