136 lines
4.7 KiB
C#
136 lines
4.7 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.Sqlserver.V20180328.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class SpecInfo : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例规格ID,利用DescribeZones返回的SpecId,结合DescribeProductConfig返回的可售卖规格信息,可获悉某个可用区下可购买什么规格的实例
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SpecId")]
|
|||
|
|
public long? SpecId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 机型ID
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MachineType")]
|
|||
|
|
public string MachineType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 机型中文名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MachineTypeName")]
|
|||
|
|
public string MachineTypeName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 数据库版本信息。取值为2008R2(表示SQL Server 2008 R2),2012SP3(表示SQL Server 2012),2016SP1(表示SQL Server 2016 SP1)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Version")]
|
|||
|
|
public string Version{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Version字段对应的版本名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("VersionName")]
|
|||
|
|
public string VersionName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 内存大小,单位GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Memory")]
|
|||
|
|
public long? Memory{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// CPU核数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CPU")]
|
|||
|
|
public long? CPU{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格下最小的磁盘大小,单位GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MinStorage")]
|
|||
|
|
public long? MinStorage{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格下最大的磁盘大小,单位GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxStorage")]
|
|||
|
|
public long? MaxStorage{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格对应的QPS大小
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("QPS")]
|
|||
|
|
public long? QPS{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格的中文描述信息
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SuitInfo")]
|
|||
|
|
public string SuitInfo{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格对应的包年包月Pid
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Pid")]
|
|||
|
|
public long? Pid{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格对应的按量计费Pid列表
|
|||
|
|
/// 注意:此字段可能返回 null,表示取不到有效值。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PostPid")]
|
|||
|
|
public long?[] PostPid{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 此规格下支持的付费模式,POST-仅支持按量计费 PRE-仅支持包年包月 ALL-支持所有
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PayModeStatus")]
|
|||
|
|
public string PayModeStatus{ 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 + "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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|