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