/* * 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.Sqlserver.V20180328.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DBInstance : AbstractModel { /// /// 实例ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 实例名称 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 实例所在项目ID /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 实例所在地域ID /// [JsonProperty("RegionId")] public long? RegionId{ get; set; } /// /// 实例所在可用区ID /// [JsonProperty("ZoneId")] public long? ZoneId{ get; set; } /// /// 实例所在私有网络ID,基础网络时为 0 /// [JsonProperty("VpcId")] public long? VpcId{ get; set; } /// /// 实例所在私有网络子网ID,基础网络时为 0 /// [JsonProperty("SubnetId")] public long? SubnetId{ get; set; } /// /// 实例状态。取值范围:
  • 1:申请中
  • 2:运行中
  • 3:受限运行中 (主备切换中)
  • 4:已隔离
  • 5:回收中
  • 6:已回收
  • 7:任务执行中 (实例做备份、回档等操作)
  • 8:已下线
  • 9:实例扩容中
  • 10:实例迁移中
  • 11:只读
  • 12:重启中
  • ///
    [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("UpdateTime")] public string UpdateTime{ get; set; } /// /// 实例计费开始时间 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 实例计费结束时间 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 实例隔离时间 /// [JsonProperty("IsolateTime")] public string IsolateTime{ get; set; } /// /// 实例内存大小,单位G /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// 实例已经使用存储空间大小,单位G /// [JsonProperty("UsedStorage")] public long? UsedStorage{ get; set; } /// /// 实例存储空间大小,单位G /// [JsonProperty("Storage")] public long? Storage{ get; set; } /// /// 实例版本 /// [JsonProperty("VersionName")] public string VersionName{ get; set; } /// /// 实例续费标记,0-正常续费,1-自动续费,2-到期不续费 /// [JsonProperty("RenewFlag")] public long? RenewFlag{ get; set; } /// /// 实例高可用, 1-双机高可用,2-单机 /// [JsonProperty("Model")] public long? Model{ get; set; } /// /// 实例所在地域名称,如 ap-guangzhou /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 实例所在可用区名称,如 ap-guangzhou-1 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 备份时间点 /// [JsonProperty("BackupTime")] public string BackupTime{ get; set; } /// /// 实例付费模式, 0-按量计费,1-包年包月 /// [JsonProperty("PayMode")] public long? PayMode{ get; set; } /// /// 实例唯一UID /// [JsonProperty("Uid")] public string Uid{ get; set; } /// /// 实例cpu核心数 /// [JsonProperty("Cpu")] public long? Cpu{ get; set; } /// /// 实例版本代号 /// [JsonProperty("Version")] public string Version{ get; set; } /// /// 物理机代号 /// [JsonProperty("Type")] public string Type{ get; set; } /// /// 计费ID /// [JsonProperty("Pid")] public long? Pid{ get; set; } /// /// 实例所属VPC的唯一字符串ID,格式如:vpc-xxx,基础网络时为空字符串 /// [JsonProperty("UniqVpcId")] public string UniqVpcId{ get; set; } /// /// 实例所属子网的唯一字符串ID,格式如: subnet-xxx,基础网络时为空字符串 /// [JsonProperty("UniqSubnetId")] public string UniqSubnetId{ 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 + "Name", this.Name); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "RegionId", this.RegionId); this.SetParamSimple(map, prefix + "ZoneId", this.ZoneId); 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 + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.SetParamSimple(map, prefix + "StartTime", this.StartTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); this.SetParamSimple(map, prefix + "IsolateTime", this.IsolateTime); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "UsedStorage", this.UsedStorage); this.SetParamSimple(map, prefix + "Storage", this.Storage); this.SetParamSimple(map, prefix + "VersionName", this.VersionName); this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag); this.SetParamSimple(map, prefix + "Model", this.Model); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "BackupTime", this.BackupTime); this.SetParamSimple(map, prefix + "PayMode", this.PayMode); this.SetParamSimple(map, prefix + "Uid", this.Uid); this.SetParamSimple(map, prefix + "Cpu", this.Cpu); this.SetParamSimple(map, prefix + "Version", this.Version); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamSimple(map, prefix + "Pid", this.Pid); this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId); this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId); } } }