Files

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