
ksyun.client.kce.createnodepool.v20190806.CreateNodePoolRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ksyun-java-sdk Show documentation
Show all versions of ksyun-java-sdk Show documentation
The KSYUN Web Services SDK for Java provides Java APIs
for building software on KSYUN' cost-effective, scalable, and reliable
infrastructure products. The KSYUN Java SDK allows developers to code
against APIs for all of KSYUN's infrastructure web services (KSC
S3, KSC KEC, KSC RDS etc).
The newest version!
package ksyun.client.kce.createnodepool.v20190806;
import common.annotation.KsYunField;
import lombok.Data;
import lombok.ToString;
import java.util.List;
/**
* @Classname CreateNodePoolRequest
* @Description 请求参数
*/
@Data
public class CreateNodePoolRequest {
/**
* 节点池名称
校验规则:2-64个字符,支持中文,英文,数字,以及特殊字符-,.!$^*()%#&+/:;<=>[]_`{
*/
@KsYunField(name = "NodePoolName")
private String NodePoolName;
/**
* 集群id
*/
@KsYunField(name = "ClusterId")
private String ClusterId;
/**
* 是否开启弹性伸缩,有效值:
True:开启弹性伸缩
False:关闭弹性伸缩
默认值:False
注:默认未开启自动缩容,若您想开启弹性缩容,后续可在参数ScaleDownEnabled中进行配置开启
*/
@KsYunField(name = "EnableAutoScale")
private Boolean EnableAutoScale;
/**
* 节点模板信息
*/
@KsYunField(name = "NodeTemplate")
private NodeTemplateDto NodeTemplateList;
/**
* 节点标签
*/
@KsYunField(name = "Label")
private List LabelList;
/**
* 节点污点
*/
@KsYunField(name = "Taint")
private List TaintList;
/**
* 最小节点数量,即为最小能缩容的实例数量,范围[0-50],不大于maxSize
*/
@KsYunField(name = "MinSize")
private Integer MinSize;
/**
* 最大节点数量,即为最大能扩容的实例数量,范围[0-50],不小于minSize
*/
@KsYunField(name = "MaxSize")
private Integer MaxSize;
/**
* 期望节点数量,即节点池刚创建时的实例数量,必须在最小节点数量与最大节点数量之间
*/
@KsYunField(name = "DesiredCapacity")
private Integer DesiredCapacity;
/**
* 开启删除保护
* 默认值:True
*/
@KsYunField(name = "EnableDelProtection")
private Boolean EnableDelProtection;
@Data
@ToString
public static class NodeTemplateDto {
/**
* 计费方式,有效值:
* - Daily:按量付费(按日月结)
* - HourlyInstantSettlement:按量付费
* 注:当参数EnableAutoScale设置为False时,计费方式可选Daily、HourlyInstantSettlement;当参数EnableAutoScale设置为True时,计费方式可选HourlyInstantSettlement
*/
@KsYunField(name = "ChargeType")
private String ChargeType;
/**
* 实例类型,详情请见创建实例中InstanceType具体参数
*/
@KsYunField(name = "InstanceType")
private String InstanceType;
/**
* 系统盘信息
* 注:若不指定该参数,则按照系统默认值进行分配
*/
@KsYunField(name = "SystemDisk")
private SystemDiskDto SystemDiskList;
/**
* 本地数据盘大小
*/
@KsYunField(name = "DataDiskGb")
private Integer DataDiskGb;
/**
* 第n个数据盘(云盘)
*/
@KsYunField(name = "DataDisk")
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy