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