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