198 lines
7.2 KiB
C#
198 lines
7.2 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.Cdb.V20170320.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class RoInstanceInfo : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO组对应的主实例的ID
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MasterInstanceId")]
|
|||
|
|
public string MasterInstanceId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例在RO组内的状态,可能的值:online-在线,offline-下线
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RoStatus")]
|
|||
|
|
public string RoStatus{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例在RO组内上一次下线的时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("OfflineTime")]
|
|||
|
|
public string OfflineTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例在RO组内的权重
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Weight")]
|
|||
|
|
public long? Weight{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例所在区域名称,如ap-shanghai
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Region")]
|
|||
|
|
public string Region{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO可用区的正式名称,如ap-shanghai-1
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Zone")]
|
|||
|
|
public string Zone{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例ID,格式如:cdbro-c1nl9rpv
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceId")]
|
|||
|
|
public string InstanceId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例状态,可能返回值:0-创建中,1-运行中,4-删除中
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Status")]
|
|||
|
|
public long? Status{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例类型,可能返回值:1-主实例,2-灾备实例,3-只读实例
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceType")]
|
|||
|
|
public long? InstanceType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("InstanceName")]
|
|||
|
|
public string InstanceName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 按量计费状态,可能的取值:1-正常,2-欠费
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("HourFeeStatus")]
|
|||
|
|
public long? HourFeeStatus{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例任务状态,可能返回值:<br>0-没有任务<br>1-升级中<br>2-数据导入中<br>3-开放Slave中<br>4-外网访问开通中<br>5-批量操作执行中<br>6-回档中<br>7-外网访问关闭中<br>8-密码修改中<br>9-实例名修改中<br>10-重启中<br>12-自建迁移中<br>13-删除库表中<br>14-灾备实例创建同步中
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("TaskStatus")]
|
|||
|
|
public long? TaskStatus{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例内存大小,单位:MB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Memory")]
|
|||
|
|
public long? Memory{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例硬盘大小,单位:GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Volume")]
|
|||
|
|
public long? Volume{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 每次查询数量
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Qps")]
|
|||
|
|
public long? Qps{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例的内网IP地址
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Vip")]
|
|||
|
|
public string Vip{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例访问端口
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Vport")]
|
|||
|
|
public long? Vport{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例所在私有网络ID
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("VpcId")]
|
|||
|
|
public long? VpcId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例所在私有网络子网ID
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SubnetId")]
|
|||
|
|
public long? SubnetId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例规格描述,目前可取值 CUSTOM
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DeviceType")]
|
|||
|
|
public string DeviceType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6和5.7
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("EngineVersion")]
|
|||
|
|
public string EngineVersion{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DeadlineTime")]
|
|||
|
|
public string DeadlineTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PayType")]
|
|||
|
|
public long? PayType{ 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 + "MasterInstanceId", this.MasterInstanceId);
|
|||
|
|
this.SetParamSimple(map, prefix + "RoStatus", this.RoStatus);
|
|||
|
|
this.SetParamSimple(map, prefix + "OfflineTime", this.OfflineTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "Weight", this.Weight);
|
|||
|
|
this.SetParamSimple(map, prefix + "Region", this.Region);
|
|||
|
|
this.SetParamSimple(map, prefix + "Zone", this.Zone);
|
|||
|
|
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
|
|||
|
|
this.SetParamSimple(map, prefix + "Status", this.Status);
|
|||
|
|
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
|
|||
|
|
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
|
|||
|
|
this.SetParamSimple(map, prefix + "HourFeeStatus", this.HourFeeStatus);
|
|||
|
|
this.SetParamSimple(map, prefix + "TaskStatus", this.TaskStatus);
|
|||
|
|
this.SetParamSimple(map, prefix + "Memory", this.Memory);
|
|||
|
|
this.SetParamSimple(map, prefix + "Volume", this.Volume);
|
|||
|
|
this.SetParamSimple(map, prefix + "Qps", this.Qps);
|
|||
|
|
this.SetParamSimple(map, prefix + "Vip", this.Vip);
|
|||
|
|
this.SetParamSimple(map, prefix + "Vport", this.Vport);
|
|||
|
|
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
|
|||
|
|
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
|
|||
|
|
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
|
|||
|
|
this.SetParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
|
|||
|
|
this.SetParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "PayType", this.PayType);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|