/*
* 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 ReservedInstances : AbstractModel
{
///
/// 已购买的预留实例计费ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
///
[JsonProperty("ReservedInstancesId")]
public string ReservedInstancesId{ get; set; }
///
/// 预留实例计费的类型。形如:S3.MEDIUM4。
/// 返回项:预留实例计费类型列表
///
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
///
/// 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
/// 返回项:可用区列表
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// 预留实例计费开始时间。形如:1949-10-01 00:00:00
///
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
///
/// 预留实例计费到期时间。形如:1949-10-01 00:00:00
///
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
///
/// 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
/// 计量单位:秒。
///
[JsonProperty("Duration")]
public long? Duration{ get; set; }
///
/// 已购买的预留实例计费个数。形如:10。
///
[JsonProperty("InstanceCount")]
public long? InstanceCount{ get; set; }
///
/// 描述预留实例计费的平台描述(即操作系统)。形如:linux。
/// 返回项: linux 。
///
[JsonProperty("ProductDescription")]
public string ProductDescription{ get; set; }
///
/// 预留实例计费购买的状态。形如:active
/// 返回项: active (以创建) | pending (等待被创建) | retired (过期)。
///
[JsonProperty("State")]
public string State{ get; set; }
///
/// 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。形如:USD。
/// 返回项:USD(美元)。
///
[JsonProperty("CurrencyCode")]
public string CurrencyCode{ get; set; }
///
/// 预留实例计费的付款类型。形如:All Upfront。
/// 返回项: All Upfront (预付全部费用)。
///
[JsonProperty("OfferingType")]
public string OfferingType{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "ReservedInstancesId", this.ReservedInstancesId);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Duration", this.Duration);
this.SetParamSimple(map, prefix + "InstanceCount", this.InstanceCount);
this.SetParamSimple(map, prefix + "ProductDescription", this.ProductDescription);
this.SetParamSimple(map, prefix + "State", this.State);
this.SetParamSimple(map, prefix + "CurrencyCode", this.CurrencyCode);
this.SetParamSimple(map, prefix + "OfferingType", this.OfferingType);
}
}
}