95 lines
5.3 KiB
C#
95 lines
5.3 KiB
C#
|
|
/*
|
|||
|
|
* 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 DescribeReservedInstancesOfferingsRequest : 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>
|
|||
|
|
/// 以最大有效期作为过滤参数。
|
|||
|
|
/// 计量单位: 秒
|
|||
|
|
/// 默认为 94608000。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxDuration")]
|
|||
|
|
public long? MaxDuration{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 以最小有效期作为过滤参数。
|
|||
|
|
/// 计量单位: 秒
|
|||
|
|
/// 默认为 2592000。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MinDuration")]
|
|||
|
|
public long? MinDuration{ 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年) | 94608000(3年)</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-offering-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>
|
|||
|
|
/// 每次请求的`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.SetParamSimple(map, prefix + "MaxDuration", this.MaxDuration);
|
|||
|
|
this.SetParamSimple(map, prefix + "MinDuration", this.MinDuration);
|
|||
|
|
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|