/*
* 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 InquiryPriceCreateDisksRequest : AbstractModel
{
///
/// 云硬盘类型。取值范围:
普通云硬盘:CLOUD_BASIC
高性能云硬盘:CLOUD_PREMIUM
SSD云硬盘:CLOUD_SSD。
///
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
///
/// 云硬盘大小,单位为GB。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
///
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
///
/// 云硬盘计费类型。
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:按小时后付费
///
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
///
/// 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。
创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
///
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
///
/// 购买云盘的数量。不填则默认为1。
///
[JsonProperty("DiskCount")]
public ulong? DiskCount{ get; set; }
///
/// 云盘所属项目ID。
///
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid);
this.SetParamSimple(map, prefix + "DiskCount", this.DiskCount);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
}
}
}