/*
* 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
{
///
/// 配置是否可用。
///
[JsonProperty("Available")]
public bool? Available{ get; set; }
///
/// 云盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:SSD表示SSD云硬盘。
///
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
///
/// 云盘类型。取值范围:
SYSTEM_DISK:表示系统盘
DATA_DISK:表示数据盘。
///
[JsonProperty("DiskUsage")]
public string DiskUsage{ get; set; }
///
/// 付费模式。取值范围:
PREPAID:表示预付费,即包年包月
POSTPAID_BY_HOUR:表示后付费,即按量计费。
///
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
///
/// 最大可配置云盘大小,单位GB。
///
[JsonProperty("MaxDiskSize")]
public ulong? MaxDiskSize{ get; set; }
///
/// 最小可配置云盘大小,单位GB。
///
[JsonProperty("MinDiskSize")]
public ulong? MinDiskSize{ get; set; }
///
/// 云硬盘所属的[可用区](/document/product/213/15753#ZoneInfo)。
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// 实例机型。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("DeviceClass")]
public string DeviceClass{ get; set; }
///
/// 实例机型系列。详见[实例类型](https://cloud.tencent.com/document/product/213/11518)
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceFamily")]
public string InstanceFamily{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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);
}
}
}