Files
g.hnyhua.cn/TencentCloud/Cvm/V20170312/Models/DescribeReservedInstancesRequest.cs

79 lines
5.0 KiB
C#
Raw Permalink Normal View History

/*
* 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 DescribeReservedInstancesRequest : AbstractModel
{
/// <summary>
/// 试运行。默认为 false。
/// </summary>
[JsonProperty("DryRun")]
public bool? DryRun{ get; set; }
/// <summary>
/// 偏移量默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
/// </summary>
[JsonProperty("Offset")]
public long? Offset{ get; set; }
/// <summary>
/// 返回数量默认为20最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
/// </summary>
[JsonProperty("Limit")]
public long? Limit{ get; set; }
/// <summary>
/// <li><strong>zone</strong></li>
/// <p style="padding-left: 30px;">按照预留实例计费可购买的【<strong>可用区</strong>】进行过滤。形如ap-guangzhou-1。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
/// <li><strong>duration</strong></li>
/// <p style="padding-left: 30px;">按照预留实例计费【<strong>有效期</strong>】即预留实例计费购买时长进行过滤。形如31536000。</p><p style="padding-left: 30px;">类型Integer</p><p style="padding-left: 30px;">计量单位:秒</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项31536000 (1年) | 946080003年</p>
/// <li><strong>instance-type</strong></li>
/// <p style="padding-left: 30px;">按照【<strong>预留实例计费类型</strong>】进行过滤。形如S3.MEDIUM4。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/11518">预留实例计费类型列表</a></p>
/// <li><strong>offering-type</strong></li>
/// <p style="padding-left: 30px;">按照【<strong>付款类型</strong>】进行过滤。形如All Upfront (预付全部费用)。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项All Upfront (预付全部费用)</p>
/// <li><strong>product-description</strong></li>
/// <p style="padding-left: 30px;">按照预留实例计费的【<strong>平台描述</strong>】即操作系统进行过滤。形如linux。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项linux</p>
/// <li><strong>reserved-instances-id</strong></li>
/// <p style="padding-left: 30px;">按照已购买【<strong>预留实例计费ID</strong>】进行过滤。形如650c138f-ae7e-4750-952a-96841d6e9fc1。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p>
/// <li><strong>state</strong></li>
/// <p style="padding-left: 30px;">按照已购买【<strong>预留实例计费状态</strong>】进行过滤。形如active。</p><p style="padding-left: 30px;">类型String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项active (以创建) | pending (等待被创建) | retired (过期)</p>
/// 每次请求的`Filters`的上限为10`Filter.Values`的上限为5。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ 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 + "DryRun", this.DryRun);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
}
}
}