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

109 lines
4.4 KiB
C#
Raw Permalink 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.Cvm.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReservedInstancesOffering : AbstractModel
{
/// <summary>
/// 预留实例计费可购买的可用区。形如ap-guangzhou-1。
/// 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 可购买的预留实例计费类型的结算货币使用ISO 4217标准货币代码。
/// 返回项USD美元
/// </summary>
[JsonProperty("CurrencyCode")]
public string CurrencyCode{ get; set; }
/// <summary>
/// 预留实例计费【有效期】即预留实例计费购买时长。形如31536000。
/// 计量单位:秒
/// </summary>
[JsonProperty("Duration")]
public long? Duration{ get; set; }
/// <summary>
/// 预留实例计费的购买价格。形如4000.0。
/// 计量单位:与 currencyCode 一致,目前支持 USD美元
/// </summary>
[JsonProperty("FixedPrice")]
public float? FixedPrice{ get; set; }
/// <summary>
/// 预留实例计费的实例类型。形如S3.MEDIUM4。
/// 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 预留实例计费的付款类型。形如All Upfront。
/// 返回项: All Upfront (预付全部费用)。
/// </summary>
[JsonProperty("OfferingType")]
public string OfferingType{ get; set; }
/// <summary>
/// 可购买的预留实例计费配置ID。形如650c138f-ae7e-4750-952a-96841d6e9fc1。
/// </summary>
[JsonProperty("ReservedInstancesOfferingId")]
public string ReservedInstancesOfferingId{ get; set; }
/// <summary>
/// 预留实例计费的平台描述即操作系统。形如linux。
/// 返回项: linux 。
/// </summary>
[JsonProperty("ProductDescription")]
public string ProductDescription{ get; set; }
/// <summary>
/// 扣除预付费之后的使用价格 (按小时计费)。形如0.0。
/// 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
/// 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD美元
/// </summary>
[JsonProperty("UsagePrice")]
public float? UsagePrice{ 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 + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "CurrencyCode", this.CurrencyCode);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "FixedPrice", this.FixedPrice);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "OfferingType", this.OfferingType);
this.SetParamSimple(map, prefix + "ReservedInstancesOfferingId", this.ReservedInstancesOfferingId);
this.SetParamSimple(map, prefix + "ProductDescription", this.ProductDescription);
this.SetParamSimple(map, prefix + "UsagePrice", this.UsagePrice);
}
}
}