Files
g.hnyhua.cn/TencentCloud/Cbs/V20170312/Models/InquiryPriceCreateDisksRequest.cs
2026-02-07 15:48:27 +08:00

79 lines
3.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 云硬盘类型。取值范围:<br><li>普通云硬盘CLOUD_BASIC<br><li>高性能云硬盘CLOUD_PREMIUM<br><li>SSD云硬盘CLOUD_SSD。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 云硬盘大小单位为GB。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 云硬盘计费类型。<br><li>PREPAID预付费即包年包月<br><li>POSTPAID_BY_HOUR按小时后付费
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。<br>创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
/// </summary>
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
/// <summary>
/// 购买云盘的数量。不填则默认为1。
/// </summary>
[JsonProperty("DiskCount")]
public ulong? DiskCount{ get; set; }
/// <summary>
/// 云盘所属项目ID。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ 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 + "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);
}
}
}