Files
g.hnyhua.cn/TencentCloud/Emr/V20190103/Models/ScaleOutInstanceRequest.cs
2026-02-07 15:48:27 +08:00

143 lines
5.3 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.Emr.V20190103.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ScaleOutInstanceRequest : AbstractModel
{
/// <summary>
/// 扩容的时间单位。取值范围:
/// <li>s表示秒。PayMode取值为0时TimeUnit只能取值为s。</li>
/// <li>m表示月份。PayMode取值为1时TimeUnit只能取值为m。</li>
/// </summary>
[JsonProperty("TimeUnit")]
public string TimeUnit{ get; set; }
/// <summary>
/// 扩容的时长。结合TimeUnit一起使用。
/// <li>TimeUnit为s时该参数只能填写3600表示按量计费实例。</li>
/// <li>TimeUnit为m时该参数填写的数字表示包年包月实例的购买时长如1表示购买一个月</li>
/// </summary>
[JsonProperty("TimeSpan")]
public ulong? TimeSpan{ get; set; }
/// <summary>
/// 实例ID。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例计费模式。取值范围:
/// <li>0表示按量计费。</li>
/// <li>1表示包年包月。</li>
/// </summary>
[JsonProperty("PayMode")]
public ulong? PayMode{ get; set; }
/// <summary>
/// 客户端Token。
/// </summary>
[JsonProperty("ClientToken")]
public string ClientToken{ get; set; }
/// <summary>
/// 引导操作脚本设置。
/// </summary>
[JsonProperty("PreExecutedFileSettings")]
public PreExecuteFileSettings[] PreExecutedFileSettings{ get; set; }
/// <summary>
/// 扩容的Task节点数量。
/// </summary>
[JsonProperty("TaskCount")]
public ulong? TaskCount{ get; set; }
/// <summary>
/// 扩容的Core节点数量。
/// </summary>
[JsonProperty("CoreCount")]
public ulong? CoreCount{ get; set; }
/// <summary>
/// 扩容时不需要安装的进程。
/// </summary>
[JsonProperty("UnNecessaryNodeList")]
public ulong?[] UnNecessaryNodeList{ get; set; }
/// <summary>
/// 扩容的Router节点数量。
/// </summary>
[JsonProperty("RouterCount")]
public ulong? RouterCount{ get; set; }
/// <summary>
/// 部署的服务。
/// <li>SoftDeployInfo和ServiceNodeInfo是同组参数和UnNecessaryNodeList参数互斥。</li>
/// <li>建议使用SoftDeployInfo和ServiceNodeInfo组合。</li>
/// </summary>
[JsonProperty("SoftDeployInfo")]
public ulong?[] SoftDeployInfo{ get; set; }
/// <summary>
/// 启动的进程。
/// </summary>
[JsonProperty("ServiceNodeInfo")]
public ulong?[] ServiceNodeInfo{ get; set; }
/// <summary>
/// 分散置放群组ID列表当前仅支持指定一个。
/// </summary>
[JsonProperty("DisasterRecoverGroupIds")]
public string[] DisasterRecoverGroupIds{ get; set; }
/// <summary>
/// 扩容节点绑定标签列表。
/// </summary>
[JsonProperty("Tags")]
public Tag[] Tags{ 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 + "TimeUnit", this.TimeUnit);
this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "PayMode", this.PayMode);
this.SetParamSimple(map, prefix + "ClientToken", this.ClientToken);
this.SetParamArrayObj(map, prefix + "PreExecutedFileSettings.", this.PreExecutedFileSettings);
this.SetParamSimple(map, prefix + "TaskCount", this.TaskCount);
this.SetParamSimple(map, prefix + "CoreCount", this.CoreCount);
this.SetParamArraySimple(map, prefix + "UnNecessaryNodeList.", this.UnNecessaryNodeList);
this.SetParamSimple(map, prefix + "RouterCount", this.RouterCount);
this.SetParamArraySimple(map, prefix + "SoftDeployInfo.", this.SoftDeployInfo);
this.SetParamArraySimple(map, prefix + "ServiceNodeInfo.", this.ServiceNodeInfo);
this.SetParamArraySimple(map, prefix + "DisasterRecoverGroupIds.", this.DisasterRecoverGroupIds);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
}