/* * 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 SpecInfo : AbstractModel { /// /// 实例规格ID,利用DescribeZones返回的SpecId,结合DescribeProductConfig返回的可售卖规格信息,可获悉某个可用区下可购买什么规格的实例 /// [JsonProperty("SpecId")] public long? SpecId{ get; set; } /// /// 机型ID /// [JsonProperty("MachineType")] public string MachineType{ get; set; } /// /// 机型中文名称 /// [JsonProperty("MachineTypeName")] public string MachineTypeName{ get; set; } /// /// 数据库版本信息。取值为2008R2(表示SQL Server 2008 R2),2012SP3(表示SQL Server 2012),2016SP1(表示SQL Server 2016 SP1) /// [JsonProperty("Version")] public string Version{ get; set; } /// /// Version字段对应的版本名称 /// [JsonProperty("VersionName")] public string VersionName{ get; set; } /// /// 内存大小,单位GB /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// CPU核数 /// [JsonProperty("CPU")] public long? CPU{ get; set; } /// /// 此规格下最小的磁盘大小,单位GB /// [JsonProperty("MinStorage")] public long? MinStorage{ get; set; } /// /// 此规格下最大的磁盘大小,单位GB /// [JsonProperty("MaxStorage")] public long? MaxStorage{ get; set; } /// /// 此规格对应的QPS大小 /// [JsonProperty("QPS")] public long? QPS{ get; set; } /// /// 此规格的中文描述信息 /// [JsonProperty("SuitInfo")] public string SuitInfo{ get; set; } /// /// 此规格对应的包年包月Pid /// [JsonProperty("Pid")] public long? Pid{ get; set; } /// /// 此规格对应的按量计费Pid列表 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PostPid")] public long?[] PostPid{ get; set; } /// /// 此规格下支持的付费模式,POST-仅支持按量计费 PRE-仅支持包年包月 ALL-支持所有 /// [JsonProperty("PayModeStatus")] public string PayModeStatus{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "SpecId", this.SpecId); this.SetParamSimple(map, prefix + "MachineType", this.MachineType); this.SetParamSimple(map, prefix + "MachineTypeName", this.MachineTypeName); this.SetParamSimple(map, prefix + "Version", this.Version); this.SetParamSimple(map, prefix + "VersionName", this.VersionName); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "CPU", this.CPU); this.SetParamSimple(map, prefix + "MinStorage", this.MinStorage); this.SetParamSimple(map, prefix + "MaxStorage", this.MaxStorage); this.SetParamSimple(map, prefix + "QPS", this.QPS); this.SetParamSimple(map, prefix + "SuitInfo", this.SuitInfo); this.SetParamSimple(map, prefix + "Pid", this.Pid); this.SetParamArraySimple(map, prefix + "PostPid.", this.PostPid); this.SetParamSimple(map, prefix + "PayModeStatus", this.PayModeStatus); } } }