/*
* 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.Dcdb.V20180411.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DCDBInstanceInfo : AbstractModel
{
///
/// 实例ID
///
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
///
/// 实例名称
///
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
///
/// AppID
///
[JsonProperty("AppId")]
public long? AppId{ get; set; }
///
/// 项目ID
///
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
///
/// 地域
///
[JsonProperty("Region")]
public string Region{ get; set; }
///
/// 可用区
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// VPC数字ID
///
[JsonProperty("VpcId")]
public long? VpcId{ get; set; }
///
/// Subnet数字ID
///
[JsonProperty("SubnetId")]
public long? SubnetId{ get; set; }
///
/// 状态中文描述
///
[JsonProperty("StatusDesc")]
public string StatusDesc{ get; set; }
///
/// 状态
///
[JsonProperty("Status")]
public long? Status{ get; set; }
///
/// 内网IP
///
[JsonProperty("Vip")]
public string Vip{ get; set; }
///
/// 内网端口
///
[JsonProperty("Vport")]
public long? Vport{ get; set; }
///
/// 创建时间
///
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
///
/// 自动续费标志
///
[JsonProperty("AutoRenewFlag")]
public long? AutoRenewFlag{ get; set; }
///
/// 内存大小,单位 GB
///
[JsonProperty("Memory")]
public long? Memory{ get; set; }
///
/// 存储大小,单位 GB
///
[JsonProperty("Storage")]
public long? Storage{ get; set; }
///
/// 分片个数
///
[JsonProperty("ShardCount")]
public long? ShardCount{ get; set; }
///
/// 到期时间
///
[JsonProperty("PeriodEndTime")]
public string PeriodEndTime{ get; set; }
///
/// 隔离时间
///
[JsonProperty("IsolatedTimestamp")]
public string IsolatedTimestamp{ get; set; }
///
/// UIN
///
[JsonProperty("Uin")]
public string Uin{ get; set; }
///
/// 分片详情
///
[JsonProperty("ShardDetail")]
public ShardInfo[] ShardDetail{ get; set; }
///
/// 节点数,2 为一主一从, 3 为一主二从
///
[JsonProperty("NodeCount")]
public long? NodeCount{ get; set; }
///
/// 临时实例标记,0 为非临时实例
///
[JsonProperty("IsTmp")]
public long? IsTmp{ get; set; }
///
/// 独享集群ID,为空表示非独享集群实例
///
[JsonProperty("ExclusterId")]
public string ExclusterId{ get; set; }
///
/// 字符串型的私有网络ID
///
[JsonProperty("UniqueVpcId")]
public string UniqueVpcId{ get; set; }
///
/// 字符串型的私有网络子网ID
///
[JsonProperty("UniqueSubnetId")]
public string UniqueSubnetId{ get; set; }
///
/// 数字实例ID(过时字段,请勿依赖该值)
///
[JsonProperty("Id")]
public ulong? Id{ get; set; }
///
/// 外网访问的域名,公网可解析
///
[JsonProperty("WanDomain")]
public string WanDomain{ get; set; }
///
/// 外网 IP 地址,公网可访问
///
[JsonProperty("WanVip")]
public string WanVip{ get; set; }
///
/// 外网端口
///
[JsonProperty("WanPort")]
public long? WanPort{ get; set; }
///
/// 产品类型 ID(过时字段,请勿依赖该值)
///
[JsonProperty("Pid")]
public long? Pid{ get; set; }
///
/// 实例最后更新时间,格式为 2006-01-02 15:04:05
///
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
///
/// 数据库引擎
///
[JsonProperty("DbEngine")]
public string DbEngine{ get; set; }
///
/// 数据库引擎版本
///
[JsonProperty("DbVersion")]
public string DbVersion{ get; set; }
///
/// 付费模式
///
[JsonProperty("Paymode")]
public string Paymode{ get; set; }
///
/// 实例处于异步任务状态时,表示异步任务流程ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Locker")]
public long? Locker{ get; set; }
///
/// 外网状态,0-未开通;1-已开通;2-关闭;3-开通中
///
[JsonProperty("WanStatus")]
public long? WanStatus{ get; set; }
///
/// 该实例是否支持审计。1-支持;0-不支持
///
[JsonProperty("IsAuditSupported")]
public ulong? IsAuditSupported{ get; set; }
///
/// Cpu核数
///
[JsonProperty("Cpu")]
public ulong? Cpu{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "AppId", this.AppId);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "StatusDesc", this.StatusDesc);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Vip", this.Vip);
this.SetParamSimple(map, prefix + "Vport", this.Vport);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Storage", this.Storage);
this.SetParamSimple(map, prefix + "ShardCount", this.ShardCount);
this.SetParamSimple(map, prefix + "PeriodEndTime", this.PeriodEndTime);
this.SetParamSimple(map, prefix + "IsolatedTimestamp", this.IsolatedTimestamp);
this.SetParamSimple(map, prefix + "Uin", this.Uin);
this.SetParamArrayObj(map, prefix + "ShardDetail.", this.ShardDetail);
this.SetParamSimple(map, prefix + "NodeCount", this.NodeCount);
this.SetParamSimple(map, prefix + "IsTmp", this.IsTmp);
this.SetParamSimple(map, prefix + "ExclusterId", this.ExclusterId);
this.SetParamSimple(map, prefix + "UniqueVpcId", this.UniqueVpcId);
this.SetParamSimple(map, prefix + "UniqueSubnetId", this.UniqueSubnetId);
this.SetParamSimple(map, prefix + "Id", this.Id);
this.SetParamSimple(map, prefix + "WanDomain", this.WanDomain);
this.SetParamSimple(map, prefix + "WanVip", this.WanVip);
this.SetParamSimple(map, prefix + "WanPort", this.WanPort);
this.SetParamSimple(map, prefix + "Pid", this.Pid);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "DbEngine", this.DbEngine);
this.SetParamSimple(map, prefix + "DbVersion", this.DbVersion);
this.SetParamSimple(map, prefix + "Paymode", this.Paymode);
this.SetParamSimple(map, prefix + "Locker", this.Locker);
this.SetParamSimple(map, prefix + "WanStatus", this.WanStatus);
this.SetParamSimple(map, prefix + "IsAuditSupported", this.IsAuditSupported);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
}
}
}