81 lines
2.9 KiB
C#
81 lines
2.9 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.Emr.V20190103.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class InquiryPriceRenewInstanceRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 实例续费的时长。需要结合TimeUnit一起使用。1表示续费1一个月
|
||
/// </summary>
|
||
[JsonProperty("TimeSpan")]
|
||
public ulong? TimeSpan{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 待续费节点的资源ID列表。资源ID形如:emr-vm-xxxxxxxx。有效的资源ID可通过登录[控制台](https://console.cloud.tencent.com/emr/static/hardware)查询。
|
||
/// </summary>
|
||
[JsonProperty("ResourceIds")]
|
||
public string[] ResourceIds{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
|
||
/// </summary>
|
||
[JsonProperty("Placement")]
|
||
public Placement Placement{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例计费模式。此处只支持取值为1,表示包年包月。
|
||
/// </summary>
|
||
[JsonProperty("PayMode")]
|
||
public long? PayMode{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例续费的时间单位。取值范围:
|
||
/// <li>m:表示月份。</li>
|
||
/// </summary>
|
||
[JsonProperty("TimeUnit")]
|
||
public string TimeUnit{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 货币种类。取值范围:
|
||
/// <li>CNY:表示人民币。</li>
|
||
/// </summary>
|
||
[JsonProperty("Currency")]
|
||
public string Currency{ 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 + "TimeSpan", this.TimeSpan);
|
||
this.SetParamArraySimple(map, prefix + "ResourceIds.", this.ResourceIds);
|
||
this.SetParamObj(map, prefix + "Placement.", this.Placement);
|
||
this.SetParamSimple(map, prefix + "PayMode", this.PayMode);
|
||
this.SetParamSimple(map, prefix + "TimeUnit", this.TimeUnit);
|
||
this.SetParamSimple(map, prefix + "Currency", this.Currency);
|
||
}
|
||
}
|
||
}
|
||
|