/* * 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.Cdb.V20170320.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class InstanceInfo : AbstractModel { /// /// 外网状态,可能的返回值为:0-未开通外网;1-已开通外网;2-已关闭外网 /// [JsonProperty("WanStatus")] public long? WanStatus{ get; set; } /// /// 可用区信息 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 初始化标志,可能的返回值为:0-未初始化;1-已初始化 /// [JsonProperty("InitFlag")] public long? InitFlag{ get; set; } /// /// 只读vip信息。单独开通只读实例访问的只读实例才有该字段 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RoVipInfo")] public RoVipInfo RoVipInfo{ get; set; } /// /// 内存容量,单位为 MB /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// 实例状态,可能的返回值:0-创建中;1-运行中;4-隔离中;5-已隔离 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 私有网络 ID,例如:51102 /// [JsonProperty("VpcId")] public long? VpcId{ get; set; } /// /// 备机信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SlaveInfo")] public SlaveInfo SlaveInfo{ get; set; } /// /// 实例 ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 硬盘容量,单位为 GB /// [JsonProperty("Volume")] public long? Volume{ get; set; } /// /// 自动续费标志,可能的返回值:0-未开通自动续费;1-已开通自动续费;2-已关闭自动续费 /// [JsonProperty("AutoRenew")] public long? AutoRenew{ get; set; } /// /// 数据复制方式。0 - 异步复制;1 - 半同步复制;2 - 强同步复制 /// [JsonProperty("ProtectMode")] public long? ProtectMode{ get; set; } /// /// 只读组详细信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RoGroups")] public RoGroup[] RoGroups{ get; set; } /// /// 子网 ID,例如:2333 /// [JsonProperty("SubnetId")] public long? SubnetId{ get; set; } /// /// 实例类型,可能的返回值:1-主实例;2-灾备实例;3-只读实例 /// [JsonProperty("InstanceType")] public long? InstanceType{ get; set; } /// /// 项目 ID /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 地域信息 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 实例到期时间 /// [JsonProperty("DeadlineTime")] public string DeadlineTime{ get; set; } /// /// 可用区部署方式。可能的值为:0 - 单可用区;1 - 多可用区 /// [JsonProperty("DeployMode")] public long? DeployMode{ get; set; } /// /// 实例任务状态。0 - 没有任务 ,1 - 升级中,2 - 数据导入中,3 - 开放Slave中,4 - 外网访问开通中,5 - 批量操作执行中,6 - 回档中,7 - 外网访问关闭中,8 - 密码修改中,9 - 实例名修改中,10 - 重启中,12 - 自建迁移中,13 - 删除库表中,14 - 灾备实例创建同步中,15 - 升级待切换,16 - 升级切换中,17 - 升级切换完成 /// [JsonProperty("TaskStatus")] public long? TaskStatus{ get; set; } /// /// 主实例详细信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("MasterInfo")] public MasterInfo MasterInfo{ get; set; } /// /// 实例类型,可能的返回值:“HA”-高可用版;“FE”-金融版;“BASIC”-基础版 /// [JsonProperty("DeviceType")] public string DeviceType{ get; set; } /// /// 内核版本 /// [JsonProperty("EngineVersion")] public string EngineVersion{ get; set; } /// /// 实例名称 /// [JsonProperty("InstanceName")] public string InstanceName{ get; set; } /// /// 灾备实例详细信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DrInfo")] public DrInfo[] DrInfo{ get; set; } /// /// 外网域名 /// [JsonProperty("WanDomain")] public string WanDomain{ get; set; } /// /// 外网端口号 /// [JsonProperty("WanPort")] public long? WanPort{ get; set; } /// /// 付费类型,可能的返回值:0-包年包月;1-按量计费 /// [JsonProperty("PayType")] public long? PayType{ get; set; } /// /// 实例创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 实例 IP /// [JsonProperty("Vip")] public string Vip{ get; set; } /// /// 端口号 /// [JsonProperty("Vport")] public long? Vport{ get; set; } /// /// 是否锁定标记 /// [JsonProperty("CdbError")] public long? CdbError{ get; set; } /// /// 私有网络描述符,例如:“vpc-5v8wn9mg” /// [JsonProperty("UniqVpcId")] public string UniqVpcId{ get; set; } /// /// 子网描述符,例如:“subnet-1typ0s7d” /// [JsonProperty("UniqSubnetId")] public string UniqSubnetId{ get; set; } /// /// 物理 ID /// [JsonProperty("PhysicalId")] public string PhysicalId{ get; set; } /// /// 核心数 /// [JsonProperty("Cpu")] public long? Cpu{ get; set; } /// /// 每秒查询数量 /// [JsonProperty("Qps")] public long? Qps{ get; set; } /// /// 可用区中文名称 /// [JsonProperty("ZoneName")] public string ZoneName{ get; set; } /// /// 物理机型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DeviceClass")] public string DeviceClass{ get; set; } /// /// 置放群组 ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DeployGroupId")] public string DeployGroupId{ get; set; } /// /// 可用区 ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ZoneId")] public long? ZoneId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "WanStatus", this.WanStatus); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "InitFlag", this.InitFlag); this.SetParamObj(map, prefix + "RoVipInfo.", this.RoVipInfo); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamObj(map, prefix + "SlaveInfo.", this.SlaveInfo); this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "Volume", this.Volume); this.SetParamSimple(map, prefix + "AutoRenew", this.AutoRenew); this.SetParamSimple(map, prefix + "ProtectMode", this.ProtectMode); this.SetParamArrayObj(map, prefix + "RoGroups.", this.RoGroups); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime); this.SetParamSimple(map, prefix + "DeployMode", this.DeployMode); this.SetParamSimple(map, prefix + "TaskStatus", this.TaskStatus); this.SetParamObj(map, prefix + "MasterInfo.", this.MasterInfo); this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType); this.SetParamSimple(map, prefix + "EngineVersion", this.EngineVersion); this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName); this.SetParamArrayObj(map, prefix + "DrInfo.", this.DrInfo); this.SetParamSimple(map, prefix + "WanDomain", this.WanDomain); this.SetParamSimple(map, prefix + "WanPort", this.WanPort); this.SetParamSimple(map, prefix + "PayType", this.PayType); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "Vip", this.Vip); this.SetParamSimple(map, prefix + "Vport", this.Vport); this.SetParamSimple(map, prefix + "CdbError", this.CdbError); this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId); this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId); this.SetParamSimple(map, prefix + "PhysicalId", this.PhysicalId); this.SetParamSimple(map, prefix + "Cpu", this.Cpu); this.SetParamSimple(map, prefix + "Qps", this.Qps); this.SetParamSimple(map, prefix + "ZoneName", this.ZoneName); this.SetParamSimple(map, prefix + "DeviceClass", this.DeviceClass); this.SetParamSimple(map, prefix + "DeployGroupId", this.DeployGroupId); this.SetParamSimple(map, prefix + "ZoneId", this.ZoneId); } } }