348 lines
13 KiB
C#
348 lines
13 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 InstanceSet : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceName")]
|
|||
|
|
public string InstanceName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例Id
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceId")]
|
|||
|
|
public string InstanceId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 用户的Appid
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Appid")]
|
|||
|
|
public long? Appid{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 项目Id
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProjectId")]
|
|||
|
|
public long? ProjectId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 地域id 1--广州 4--上海 5-- 中国香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 21--印度 22--美东(弗吉尼亚)23--泰国 24--俄罗斯 25--日本
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RegionId")]
|
|||
|
|
public long? RegionId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 区域id
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ZoneId")]
|
|||
|
|
public long? ZoneId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// vpc网络id 如:75101
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("VpcId")]
|
|||
|
|
public long? VpcId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// vpc网络下子网id 如:46315
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SubnetId")]
|
|||
|
|
public long? SubnetId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例当前状态,0:待初始化;1:实例在流程中;2:实例运行中;-2:实例已隔离;-3:实例待删除
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Status")]
|
|||
|
|
public long? Status{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例vip
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("WanIp")]
|
|||
|
|
public string WanIp{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例端口号
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Port")]
|
|||
|
|
public long? Port{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例创建时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Createtime")]
|
|||
|
|
public string Createtime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例容量大小,单位:MB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Size")]
|
|||
|
|
public float? Size{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 该字段已废弃
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SizeUsed")]
|
|||
|
|
public float? SizeUsed{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例类型,1:Redis2.8集群版;2:Redis2.8主从版;3:CKV主从版(Redis3.2);4:CKV集群版(Redis3.2);5:Redis2.8单机版;6:Redis4.0主从版;7:Redis4.0集群版;
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Type")]
|
|||
|
|
public long? Type{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例是否设置自动续费标识,1:设置自动续费;0:未设置自动续费
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("AutoRenewFlag")]
|
|||
|
|
public long? AutoRenewFlag{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例到期时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DeadlineTime")]
|
|||
|
|
public string DeadlineTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 引擎:社区版Redis、腾讯云CKV
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Engine")]
|
|||
|
|
public string Engine{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 产品类型:Redis2.8集群版、Redis2.8主从版、Redis3.2主从版(CKV主从版)、Redis3.2集群版(CKV集群版)、Redis2.8单机版、Redis4.0集群版
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProductType")]
|
|||
|
|
public string ProductType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// vpc网络id 如:vpc-fk33jsf43kgv
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("UniqVpcId")]
|
|||
|
|
public string UniqVpcId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// vpc网络下子网id 如:subnet-fd3j6l35mm0
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("UniqSubnetId")]
|
|||
|
|
public string UniqSubnetId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 计费模式:0-按量计费,1-包年包月
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("BillingMode")]
|
|||
|
|
public long? BillingMode{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例运行状态描述:如”实例运行中“
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceTitle")]
|
|||
|
|
public string InstanceTitle{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 计划下线时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("OfflineTime")]
|
|||
|
|
public string OfflineTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 流程中的实例,返回子状态
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SubStatus")]
|
|||
|
|
public long? SubStatus{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 反亲和性标签
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Tags")]
|
|||
|
|
public string[] Tags{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例节点信息
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceNode")]
|
|||
|
|
public InstanceNode[] InstanceNode{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 分片大小
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RedisShardSize")]
|
|||
|
|
public long? RedisShardSize{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 分片数量
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RedisShardNum")]
|
|||
|
|
public long? RedisShardNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 副本数量
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RedisReplicasNum")]
|
|||
|
|
public long? RedisReplicasNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 计费Id
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PriceId")]
|
|||
|
|
public long? PriceId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 隔离时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CloseTime")]
|
|||
|
|
public string CloseTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 从节点读取权重
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SlaveReadWeight")]
|
|||
|
|
public long? SlaveReadWeight{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例关联的标签信息
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceTags")]
|
|||
|
|
public InstanceTagInfo[] InstanceTags{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 项目名称
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProjectName")]
|
|||
|
|
public string ProjectName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 是否为免密实例,true-免密实例;false-非免密实例
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("NoAuth")]
|
|||
|
|
public bool? NoAuth{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 客户端连接数
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ClientLimit")]
|
|||
|
|
public long? ClientLimit{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// DTS状态(内部参数,用户可忽略)
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DtsStatus")]
|
|||
|
|
public long? DtsStatus{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 分片带宽上限,单位MB
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("NetLimit")]
|
|||
|
|
public long? NetLimit{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 免密实例标识(内部参数,用户可忽略)
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PasswordFree")]
|
|||
|
|
public long? PasswordFree{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例只读标识(内部参数,用户可忽略)
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ReadOnly")]
|
|||
|
|
public long? ReadOnly{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 内部参数,用户可忽略
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Vip6")]
|
|||
|
|
public string Vip6{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 内部参数,用户可忽略
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RemainBandwidthDuration")]
|
|||
|
|
public string RemainBandwidthDuration{ 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 + "InstanceName", this.InstanceName);
|
|||
|
|
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
|
|||
|
|
this.SetParamSimple(map, prefix + "Appid", this.Appid);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
|||
|
|
this.SetParamSimple(map, prefix + "RegionId", this.RegionId);
|
|||
|
|
this.SetParamSimple(map, prefix + "ZoneId", this.ZoneId);
|
|||
|
|
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
|
|||
|
|
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
|
|||
|
|
this.SetParamSimple(map, prefix + "Status", this.Status);
|
|||
|
|
this.SetParamSimple(map, prefix + "WanIp", this.WanIp);
|
|||
|
|
this.SetParamSimple(map, prefix + "Port", this.Port);
|
|||
|
|
this.SetParamSimple(map, prefix + "Createtime", this.Createtime);
|
|||
|
|
this.SetParamSimple(map, prefix + "Size", this.Size);
|
|||
|
|
this.SetParamSimple(map, prefix + "SizeUsed", this.SizeUsed);
|
|||
|
|
this.SetParamSimple(map, prefix + "Type", this.Type);
|
|||
|
|
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
|
|||
|
|
this.SetParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "Engine", this.Engine);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProductType", this.ProductType);
|
|||
|
|
this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
|
|||
|
|
this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
|
|||
|
|
this.SetParamSimple(map, prefix + "BillingMode", this.BillingMode);
|
|||
|
|
this.SetParamSimple(map, prefix + "InstanceTitle", this.InstanceTitle);
|
|||
|
|
this.SetParamSimple(map, prefix + "OfflineTime", this.OfflineTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "SubStatus", this.SubStatus);
|
|||
|
|
this.SetParamArraySimple(map, prefix + "Tags.", this.Tags);
|
|||
|
|
this.SetParamArrayObj(map, prefix + "InstanceNode.", this.InstanceNode);
|
|||
|
|
this.SetParamSimple(map, prefix + "RedisShardSize", this.RedisShardSize);
|
|||
|
|
this.SetParamSimple(map, prefix + "RedisShardNum", this.RedisShardNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "RedisReplicasNum", this.RedisReplicasNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "PriceId", this.PriceId);
|
|||
|
|
this.SetParamSimple(map, prefix + "CloseTime", this.CloseTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "SlaveReadWeight", this.SlaveReadWeight);
|
|||
|
|
this.SetParamArrayObj(map, prefix + "InstanceTags.", this.InstanceTags);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProjectName", this.ProjectName);
|
|||
|
|
this.SetParamSimple(map, prefix + "NoAuth", this.NoAuth);
|
|||
|
|
this.SetParamSimple(map, prefix + "ClientLimit", this.ClientLimit);
|
|||
|
|
this.SetParamSimple(map, prefix + "DtsStatus", this.DtsStatus);
|
|||
|
|
this.SetParamSimple(map, prefix + "NetLimit", this.NetLimit);
|
|||
|
|
this.SetParamSimple(map, prefix + "PasswordFree", this.PasswordFree);
|
|||
|
|
this.SetParamSimple(map, prefix + "ReadOnly", this.ReadOnly);
|
|||
|
|
this.SetParamSimple(map, prefix + "Vip6", this.Vip6);
|
|||
|
|
this.SetParamSimple(map, prefix + "RemainBandwidthDuration", this.RemainBandwidthDuration);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|