Files
g.hnyhua.cn/TencentCloud/Sqlserver/V20180328/Models/DBInstance.cs
2026-02-07 15:48:27 +08:00

261 lines
8.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 实例所在项目ID
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 实例所在地域ID
/// </summary>
[JsonProperty("RegionId")]
public long? RegionId{ get; set; }
/// <summary>
/// 实例所在可用区ID
/// </summary>
[JsonProperty("ZoneId")]
public long? ZoneId{ 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>
/// 实例状态。取值范围: <li>1申请中</li> <li>2运行中</li> <li>3受限运行中 (主备切换中)</li> <li>4已隔离</li> <li>5回收中</li> <li>6已回收</li> <li>7任务执行中 (实例做备份、回档等操作)</li> <li>8已下线</li> <li>9实例扩容中</li> <li>10实例迁移中</li> <li>11只读</li> <li>12重启中</li>
/// </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("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 实例更新时间
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 实例计费开始时间
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 实例计费结束时间
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 实例隔离时间
/// </summary>
[JsonProperty("IsolateTime")]
public string IsolateTime{ get; set; }
/// <summary>
/// 实例内存大小单位G
/// </summary>
[JsonProperty("Memory")]
public long? Memory{ get; set; }
/// <summary>
/// 实例已经使用存储空间大小单位G
/// </summary>
[JsonProperty("UsedStorage")]
public long? UsedStorage{ get; set; }
/// <summary>
/// 实例存储空间大小单位G
/// </summary>
[JsonProperty("Storage")]
public long? Storage{ get; set; }
/// <summary>
/// 实例版本
/// </summary>
[JsonProperty("VersionName")]
public string VersionName{ get; set; }
/// <summary>
/// 实例续费标记0-正常续费1-自动续费2-到期不续费
/// </summary>
[JsonProperty("RenewFlag")]
public long? RenewFlag{ get; set; }
/// <summary>
/// 实例高可用, 1-双机高可用2-单机
/// </summary>
[JsonProperty("Model")]
public long? Model{ get; set; }
/// <summary>
/// 实例所在地域名称,如 ap-guangzhou
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 实例所在可用区名称,如 ap-guangzhou-1
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 备份时间点
/// </summary>
[JsonProperty("BackupTime")]
public string BackupTime{ get; set; }
/// <summary>
/// 实例付费模式, 0-按量计费1-包年包月
/// </summary>
[JsonProperty("PayMode")]
public long? PayMode{ get; set; }
/// <summary>
/// 实例唯一UID
/// </summary>
[JsonProperty("Uid")]
public string Uid{ get; set; }
/// <summary>
/// 实例cpu核心数
/// </summary>
[JsonProperty("Cpu")]
public long? Cpu{ get; set; }
/// <summary>
/// 实例版本代号
/// </summary>
[JsonProperty("Version")]
public string Version{ get; set; }
/// <summary>
/// 物理机代号
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 计费ID
/// </summary>
[JsonProperty("Pid")]
public long? Pid{ get; set; }
/// <summary>
/// 实例所属VPC的唯一字符串ID格式如vpc-xxx基础网络时为空字符串
/// </summary>
[JsonProperty("UniqVpcId")]
public string UniqVpcId{ get; set; }
/// <summary>
/// 实例所属子网的唯一字符串ID格式如 subnet-xxx基础网络时为空字符串
/// </summary>
[JsonProperty("UniqSubnetId")]
public string UniqSubnetId{ 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 + "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);
}
}
}