/*
* 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
{
///
/// 扩容的时间单位。取值范围:
/// s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
/// m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
///
[JsonProperty("TimeUnit")]
public string TimeUnit{ get; set; }
///
/// 扩容的时长。结合TimeUnit一起使用。
/// TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
/// TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
///
[JsonProperty("TimeSpan")]
public ulong? TimeSpan{ get; set; }
///
/// 实例ID。
///
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
///
/// 实例计费模式。取值范围:
/// 0:表示按量计费。
/// 1:表示包年包月。
///
[JsonProperty("PayMode")]
public ulong? PayMode{ get; set; }
///
/// 客户端Token。
///
[JsonProperty("ClientToken")]
public string ClientToken{ get; set; }
///
/// 引导操作脚本设置。
///
[JsonProperty("PreExecutedFileSettings")]
public PreExecuteFileSettings[] PreExecutedFileSettings{ get; set; }
///
/// 扩容的Task节点数量。
///
[JsonProperty("TaskCount")]
public ulong? TaskCount{ get; set; }
///
/// 扩容的Core节点数量。
///
[JsonProperty("CoreCount")]
public ulong? CoreCount{ get; set; }
///
/// 扩容时不需要安装的进程。
///
[JsonProperty("UnNecessaryNodeList")]
public ulong?[] UnNecessaryNodeList{ get; set; }
///
/// 扩容的Router节点数量。
///
[JsonProperty("RouterCount")]
public ulong? RouterCount{ get; set; }
///
/// 部署的服务。
/// SoftDeployInfo和ServiceNodeInfo是同组参数,和UnNecessaryNodeList参数互斥。
/// 建议使用SoftDeployInfo和ServiceNodeInfo组合。
///
[JsonProperty("SoftDeployInfo")]
public ulong?[] SoftDeployInfo{ get; set; }
///
/// 启动的进程。
///
[JsonProperty("ServiceNodeInfo")]
public ulong?[] ServiceNodeInfo{ get; set; }
///
/// 分散置放群组ID列表,当前仅支持指定一个。
///
[JsonProperty("DisasterRecoverGroupIds")]
public string[] DisasterRecoverGroupIds{ get; set; }
///
/// 扩容节点绑定标签列表。
///
[JsonProperty("Tags")]
public Tag[] Tags{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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);
}
}
}