102 lines
3.8 KiB
C#
102 lines
3.8 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.Cbs.V20170312.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class DiskConfig : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 配置是否可用。
|
||
/// </summary>
|
||
[JsonProperty("Available")]
|
||
public bool? Available{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 云盘介质类型。取值范围:<br><li>CLOUD_BASIC:表示普通云硬盘<br><li>CLOUD_PREMIUM:表示高性能云硬盘<br><li>CLOUD_SSD:SSD表示SSD云硬盘。
|
||
/// </summary>
|
||
[JsonProperty("DiskType")]
|
||
public string DiskType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 云盘类型。取值范围:<br><li>SYSTEM_DISK:表示系统盘<br><li>DATA_DISK:表示数据盘。
|
||
/// </summary>
|
||
[JsonProperty("DiskUsage")]
|
||
public string DiskUsage{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 付费模式。取值范围:<br><li>PREPAID:表示预付费,即包年包月<br><li>POSTPAID_BY_HOUR:表示后付费,即按量计费。
|
||
/// </summary>
|
||
[JsonProperty("DiskChargeType")]
|
||
public string DiskChargeType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 最大可配置云盘大小,单位GB。
|
||
/// </summary>
|
||
[JsonProperty("MaxDiskSize")]
|
||
public ulong? MaxDiskSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 最小可配置云盘大小,单位GB。
|
||
/// </summary>
|
||
[JsonProperty("MinDiskSize")]
|
||
public ulong? MinDiskSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 云硬盘所属的[可用区](/document/product/213/15753#ZoneInfo)。
|
||
/// </summary>
|
||
[JsonProperty("Zone")]
|
||
public string Zone{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例机型。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("DeviceClass")]
|
||
public string DeviceClass{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例机型系列。详见[实例类型](https://cloud.tencent.com/document/product/213/11518)
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("InstanceFamily")]
|
||
public string InstanceFamily{ 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 + "Available", this.Available);
|
||
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
|
||
this.SetParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
|
||
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
|
||
this.SetParamSimple(map, prefix + "MaxDiskSize", this.MaxDiskSize);
|
||
this.SetParamSimple(map, prefix + "MinDiskSize", this.MinDiskSize);
|
||
this.SetParamSimple(map, prefix + "Zone", this.Zone);
|
||
this.SetParamSimple(map, prefix + "DeviceClass", this.DeviceClass);
|
||
this.SetParamSimple(map, prefix + "InstanceFamily", this.InstanceFamily);
|
||
}
|
||
}
|
||
}
|
||
|