/*
* 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.Mariadb.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DBInstance : AbstractModel
{
///
/// 实例 ID,唯一标识一个 TDSQL 实例
///
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
///
/// 实例名称,用户可修改
///
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
///
/// 实例所属应用 ID
///
[JsonProperty("AppId")]
public long? AppId{ get; set; }
///
/// 实例所属项目 ID
///
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
///
/// 实例所在地域名称,如 ap-shanghai
///
[JsonProperty("Region")]
public string Region{ get; set; }
///
/// 实例所在可用区名称,如 ap-shanghai-1
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// 私有网络 ID,基础网络时为 0
///
[JsonProperty("VpcId")]
public long? VpcId{ get; set; }
///
/// 子网 ID,基础网络时为 0
///
[JsonProperty("SubnetId")]
public long? SubnetId{ get; set; }
///
/// 实例状态:0 创建中,1 流程处理中, 2 运行中,3 实例未初始化,-1 实例已隔离,-2 实例已删除
///
[JsonProperty("Status")]
public long? Status{ get; set; }
///
/// 内网 IP 地址
///
[JsonProperty("Vip")]
public string Vip{ get; set; }
///
/// 内网端口
///
[JsonProperty("Vport")]
public long? Vport{ get; set; }
///
/// 外网访问的域名,公网可解析
///
[JsonProperty("WanDomain")]
public string WanDomain{ get; set; }
///
/// 外网 IP 地址,公网可访问
///
[JsonProperty("WanVip")]
public string WanVip{ get; set; }
///
/// 外网端口
///
[JsonProperty("WanPort")]
public long? WanPort{ get; set; }
///
/// 实例创建时间,格式为 2006-01-02 15:04:05
///
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
///
/// 实例最后更新时间,格式为 2006-01-02 15:04:05
///
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
///
/// 自动续费标志:0 否,1 是
///
[JsonProperty("AutoRenewFlag")]
public long? AutoRenewFlag{ get; set; }
///
/// 实例到期时间,格式为 2006-01-02 15:04:05
///
[JsonProperty("PeriodEndTime")]
public string PeriodEndTime{ get; set; }
///
/// 实例所属账号
///
[JsonProperty("Uin")]
public string Uin{ get; set; }
///
/// TDSQL 版本信息
///
[JsonProperty("TdsqlVersion")]
public string TdsqlVersion{ get; set; }
///
/// 实例内存大小,单位 GB
///
[JsonProperty("Memory")]
public long? Memory{ get; set; }
///
/// 实例存储大小,单位 GB
///
[JsonProperty("Storage")]
public long? Storage{ get; set; }
///
/// 字符串型的私有网络ID
///
[JsonProperty("UniqueVpcId")]
public string UniqueVpcId{ get; set; }
///
/// 字符串型的私有网络子网ID
///
[JsonProperty("UniqueSubnetId")]
public string UniqueSubnetId{ get; set; }
///
/// 原始实例ID(过时字段,请勿依赖该值)
///
[JsonProperty("OriginSerialId")]
public string OriginSerialId{ get; set; }
///
/// 节点数,2为一主一从,3为一主二从
///
[JsonProperty("NodeCount")]
public ulong? NodeCount{ get; set; }
///
/// 是否临时实例,0为否,非0为是
///
[JsonProperty("IsTmp")]
public ulong? IsTmp{ get; set; }
///
/// 独享集群ID,为空表示为普通实例
///
[JsonProperty("ExclusterId")]
public string ExclusterId{ get; set; }
///
/// 数字实例ID(过时字段,请勿依赖该值)
///
[JsonProperty("Id")]
public ulong? Id{ get; set; }
///
/// 产品类型 ID
///
[JsonProperty("Pid")]
public long? Pid{ get; set; }
///
/// 最大 Qps 值
///
[JsonProperty("Qps")]
public long? Qps{ get; set; }
///
/// 付费模式
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Paymode")]
public string Paymode{ get; set; }
///
/// 实例处于异步任务时的异步任务流程ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Locker")]
public long? Locker{ get; set; }
///
/// 实例目前运行状态描述
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("StatusDesc")]
public string StatusDesc{ get; set; }
///
/// 外网状态,0-未开通;1-已开通;2-关闭;3-开通中
///
[JsonProperty("WanStatus")]
public long? WanStatus{ get; set; }
///
/// 该实例是否支持审计。1-支持;0-不支持
///
[JsonProperty("IsAuditSupported")]
public ulong? IsAuditSupported{ get; set; }
///
/// 机器型号
///
[JsonProperty("Machine")]
public string Machine{ get; set; }
///
/// 是否支持数据加密。1-支持;0-不支持
///
[JsonProperty("IsEncryptSupported")]
public long? IsEncryptSupported{ get; set; }
///
/// 实例CPU核数
///
[JsonProperty("Cpu")]
public long? 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 + "Status", this.Status);
this.SetParamSimple(map, prefix + "Vip", this.Vip);
this.SetParamSimple(map, prefix + "Vport", this.Vport);
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 + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.SetParamSimple(map, prefix + "PeriodEndTime", this.PeriodEndTime);
this.SetParamSimple(map, prefix + "Uin", this.Uin);
this.SetParamSimple(map, prefix + "TdsqlVersion", this.TdsqlVersion);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Storage", this.Storage);
this.SetParamSimple(map, prefix + "UniqueVpcId", this.UniqueVpcId);
this.SetParamSimple(map, prefix + "UniqueSubnetId", this.UniqueSubnetId);
this.SetParamSimple(map, prefix + "OriginSerialId", this.OriginSerialId);
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 + "Id", this.Id);
this.SetParamSimple(map, prefix + "Pid", this.Pid);
this.SetParamSimple(map, prefix + "Qps", this.Qps);
this.SetParamSimple(map, prefix + "Paymode", this.Paymode);
this.SetParamSimple(map, prefix + "Locker", this.Locker);
this.SetParamSimple(map, prefix + "StatusDesc", this.StatusDesc);
this.SetParamSimple(map, prefix + "WanStatus", this.WanStatus);
this.SetParamSimple(map, prefix + "IsAuditSupported", this.IsAuditSupported);
this.SetParamSimple(map, prefix + "Machine", this.Machine);
this.SetParamSimple(map, prefix + "IsEncryptSupported", this.IsEncryptSupported);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
}
}
}