/* * 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.Postgres.V20170312.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DBInstance : AbstractModel { /// /// 实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 项目ID /// [JsonProperty("ProjectId")] public ulong? ProjectId{ get; set; } /// /// 私有网络ID /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// SubnetId /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 实例ID /// [JsonProperty("DBInstanceId")] public string DBInstanceId{ get; set; } /// /// 实例名称 /// [JsonProperty("DBInstanceName")] public string DBInstanceName{ get; set; } /// /// 实例状态 /// [JsonProperty("DBInstanceStatus")] public string DBInstanceStatus{ get; set; } /// /// 实例分配的内存大小,单位:GB /// [JsonProperty("DBInstanceMemory")] public ulong? DBInstanceMemory{ get; set; } /// /// 实例分配的存储空间大小,单位:GB /// [JsonProperty("DBInstanceStorage")] public ulong? DBInstanceStorage{ get; set; } /// /// 实例分配的CPU数量,单位:个 /// [JsonProperty("DBInstanceCpu")] public ulong? DBInstanceCpu{ get; set; } /// /// 售卖规格ID /// [JsonProperty("DBInstanceClass")] public string DBInstanceClass{ get; set; } /// /// 实例类型,类型有:1、primary(主实例);2、readonly(只读实例);3、guard(灾备实例);4、temp(临时实例) /// [JsonProperty("DBInstanceType")] public string DBInstanceType{ get; set; } /// /// 实例版本,目前只支持standard(双机高可用版, 一主一从) /// [JsonProperty("DBInstanceVersion")] public string DBInstanceVersion{ get; set; } /// /// 实例DB字符集 /// [JsonProperty("DBCharset")] public string DBCharset{ get; set; } /// /// PostgreSQL内核版本 /// [JsonProperty("DBVersion")] public string DBVersion{ get; set; } /// /// 实例创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 实例执行最后一次更新的时间 /// [JsonProperty("UpdateTime")] public string UpdateTime{ get; set; } /// /// 实例到期时间 /// [JsonProperty("ExpireTime")] public string ExpireTime{ get; set; } /// /// 实例隔离时间 /// [JsonProperty("IsolatedTime")] public string IsolatedTime{ get; set; } /// /// 计费模式,1、prepaid(包年包月,预付费);2、postpaid(按量计费,后付费) /// [JsonProperty("PayType")] public string PayType{ get; set; } /// /// 是否自动续费,1:自动续费,0:不自动续费 /// [JsonProperty("AutoRenew")] public ulong? AutoRenew{ get; set; } /// /// 实例网络连接信息 /// [JsonProperty("DBInstanceNetInfo")] public DBInstanceNetInfo[] DBInstanceNetInfo{ get; set; } /// /// 机器类型 /// [JsonProperty("Type")] public string Type{ get; set; } /// /// 用户的AppId /// [JsonProperty("AppId")] public ulong? AppId{ get; set; } /// /// 实例的Uid /// [JsonProperty("Uid")] public ulong? Uid{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "DBInstanceId", this.DBInstanceId); this.SetParamSimple(map, prefix + "DBInstanceName", this.DBInstanceName); this.SetParamSimple(map, prefix + "DBInstanceStatus", this.DBInstanceStatus); this.SetParamSimple(map, prefix + "DBInstanceMemory", this.DBInstanceMemory); this.SetParamSimple(map, prefix + "DBInstanceStorage", this.DBInstanceStorage); this.SetParamSimple(map, prefix + "DBInstanceCpu", this.DBInstanceCpu); this.SetParamSimple(map, prefix + "DBInstanceClass", this.DBInstanceClass); this.SetParamSimple(map, prefix + "DBInstanceType", this.DBInstanceType); this.SetParamSimple(map, prefix + "DBInstanceVersion", this.DBInstanceVersion); this.SetParamSimple(map, prefix + "DBCharset", this.DBCharset); this.SetParamSimple(map, prefix + "DBVersion", this.DBVersion); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime); this.SetParamSimple(map, prefix + "IsolatedTime", this.IsolatedTime); this.SetParamSimple(map, prefix + "PayType", this.PayType); this.SetParamSimple(map, prefix + "AutoRenew", this.AutoRenew); this.SetParamArrayObj(map, prefix + "DBInstanceNetInfo.", this.DBInstanceNetInfo); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamSimple(map, prefix + "AppId", this.AppId); this.SetParamSimple(map, prefix + "Uid", this.Uid); } } }