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