/* * 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.Redis.V20180412.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeInstancesRequest : AbstractModel { /// /// 实例列表的大小,参数默认值20 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// 偏移量,取Limit整数倍 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 实例Id,如:crs-6ubhgouj /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 枚举范围: projectId,createtime,instancename,type,curDeadline /// [JsonProperty("OrderBy")] public string OrderBy{ get; set; } /// /// 1倒序,0顺序,默认倒序 /// [JsonProperty("OrderType")] public long? OrderType{ get; set; } /// /// 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络,如:47525 /// [JsonProperty("VpcIds")] public string[] VpcIds{ get; set; } /// /// 子网ID数组,数组下标从0开始,如:56854 /// [JsonProperty("SubnetIds")] public string[] SubnetIds{ get; set; } /// /// 项目ID 组成的数组,数组下标从0开始 /// [JsonProperty("ProjectIds")] public long?[] ProjectIds{ get; set; } /// /// 查找实例的ID。 /// [JsonProperty("SearchKey")] public string SearchKey{ get; set; } /// /// 实例名称 /// [JsonProperty("InstanceName")] public string InstanceName{ get; set; } /// /// 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络,如:vpc-sad23jfdfk /// [JsonProperty("UniqVpcIds")] public string[] UniqVpcIds{ get; set; } /// /// 子网ID数组,数组下标从0开始,如:subnet-fdj24n34j2 /// [JsonProperty("UniqSubnetIds")] public string[] UniqSubnetIds{ get; set; } /// /// 地域ID,已经弃用,可通过公共参数Region查询对应地域 /// [JsonProperty("RegionIds")] public long?[] RegionIds{ get; set; } /// /// 实例状态:0-待初始化,1-流程中,2-运行中,-2-已隔离,-3-待删除 /// [JsonProperty("Status")] public long?[] Status{ get; set; } /// /// 类型版本:1-单机版,2-主从版,3-集群版 /// [JsonProperty("TypeVersion")] public long? TypeVersion{ get; set; } /// /// 引擎信息:Redis-2.8,Redis-4.0,CKV /// [JsonProperty("EngineName")] public string EngineName{ get; set; } /// /// 续费模式:0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费 /// [JsonProperty("AutoRenew")] public long?[] AutoRenew{ get; set; } /// /// 计费模式:postpaid-按量计费;prepaid-包年包月 /// [JsonProperty("BillingMode")] public string BillingMode{ get; set; } /// /// 实例类型:1-Redis老集群版;2-Redis 2.8主从版;3-CKV主从版;4-CKV集群版;5-Redis 2.8单机版;6-Redis 4.0主从版;7-Redis 4.0集群版;8 – Redis5.0主从版,9 – Redis5.0集群版, /// [JsonProperty("Type")] public long? Type{ get; set; } /// /// 搜索关键词:支持实例Id、实例名称、完整IP /// [JsonProperty("SearchKeys")] public string[] SearchKeys{ get; set; } /// /// 内部参数,用户可忽略 /// [JsonProperty("TypeList")] public long?[] TypeList{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "OrderBy", this.OrderBy); this.SetParamSimple(map, prefix + "OrderType", this.OrderType); this.SetParamArraySimple(map, prefix + "VpcIds.", this.VpcIds); this.SetParamArraySimple(map, prefix + "SubnetIds.", this.SubnetIds); this.SetParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds); this.SetParamSimple(map, prefix + "SearchKey", this.SearchKey); this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName); this.SetParamArraySimple(map, prefix + "UniqVpcIds.", this.UniqVpcIds); this.SetParamArraySimple(map, prefix + "UniqSubnetIds.", this.UniqSubnetIds); this.SetParamArraySimple(map, prefix + "RegionIds.", this.RegionIds); this.SetParamArraySimple(map, prefix + "Status.", this.Status); this.SetParamSimple(map, prefix + "TypeVersion", this.TypeVersion); this.SetParamSimple(map, prefix + "EngineName", this.EngineName); this.SetParamArraySimple(map, prefix + "AutoRenew.", this.AutoRenew); this.SetParamSimple(map, prefix + "BillingMode", this.BillingMode); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamArraySimple(map, prefix + "SearchKeys.", this.SearchKeys); this.SetParamArraySimple(map, prefix + "TypeList.", this.TypeList); } } }