Files
g.hnyhua.cn/TencentCloud/Redis/V20180412/Models/DescribeInstancesRequest.cs

184 lines
6.8 KiB
C#
Raw Permalink Normal View History

/*
* 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>
/// 实例Idcrs-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.8Redis-4.0CKV
/// </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);
}
}
}