Class CreateClusterRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.thpc.v20230321.models.CreateClusterRequest
-
public class CreateClusterRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateClusterRequest()CreateClusterRequest(CreateClusterRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccountType()Get 域名字服务类型。默认取值:NIS。 NIS:NIS域名字服务。StringgetAutoScalingType()Get 弹性伸缩类型。默认值:THPC_AS
THPC_AS:集群自动扩缩容由THPC产品内部实现。
AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。StringgetClientToken()Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。StringgetClusterName()Get 集群显示名称。ComputeNodegetComputeNode()Get 指定计算节点。LonggetComputeNodeCount()Get 指定计算节点的数量。默认取值:0。BooleangetDryRun()Get 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId.StringgetHpcClusterId()Get 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。StringgetImageId()Get 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。NodeScript[]getInitNodeScripts()Get 节点初始化脚本信息列表。LoginNodegetLoginNode()Get 指定登录节点。LonggetLoginNodeCount()Get 指定登录节点的数量。默认取值:0。取值范围:0~10。LoginSettingsgetLoginSettings()Get 集群登录设置。ManagerNodegetManagerNode()Get 指定管理节点。LonggetManagerNodeCount()Get 指定管理节点的数量。默认取值:1。取值范围:1~2。PlacementgetPlacement()Get 集群中实例所在的位置。StringgetSchedulerType()Get 调度器类型。默认取值:SLURM。
SGE:SGE调度器。
SLURM:SLURM调度器。String[]getSecurityGroupIds()Get 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。StorageOptiongetStorageOption()Get 集群存储选项Tag[]getTags()Get 创建集群时同时绑定的标签对说明。VirtualPrivateCloudgetVirtualPrivateCloud()Get 私有网络相关信息配置。voidsetAccountType(String AccountType)Set 域名字服务类型。默认取值:NIS。 NIS:NIS域名字服务。voidsetAutoScalingType(String AutoScalingType)Set 弹性伸缩类型。默认值:THPC_AS
THPC_AS:集群自动扩缩容由THPC产品内部实现。
AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。voidsetClientToken(String ClientToken)Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。voidsetClusterName(String ClusterName)Set 集群显示名称。voidsetComputeNode(ComputeNode ComputeNode)Set 指定计算节点。voidsetComputeNodeCount(Long ComputeNodeCount)Set 指定计算节点的数量。默认取值:0。voidsetDryRun(Boolean DryRun)Set 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId.voidsetHpcClusterId(String HpcClusterId)Set 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。voidsetImageId(String ImageId)Set 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。voidsetInitNodeScripts(NodeScript[] InitNodeScripts)Set 节点初始化脚本信息列表。voidsetLoginNode(LoginNode LoginNode)Set 指定登录节点。voidsetLoginNodeCount(Long LoginNodeCount)Set 指定登录节点的数量。默认取值:0。取值范围:0~10。voidsetLoginSettings(LoginSettings LoginSettings)Set 集群登录设置。voidsetManagerNode(ManagerNode ManagerNode)Set 指定管理节点。voidsetManagerNodeCount(Long ManagerNodeCount)Set 指定管理节点的数量。默认取值:1。取值范围:1~2。voidsetPlacement(Placement Placement)Set 集群中实例所在的位置。voidsetSchedulerType(String SchedulerType)Set 调度器类型。默认取值:SLURM。
SGE:SGE调度器。
SLURM:SLURM调度器。voidsetSecurityGroupIds(String[] SecurityGroupIds)Set 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。voidsetStorageOption(StorageOption StorageOption)Set 集群存储选项voidsetTags(Tag[] Tags)Set 创建集群时同时绑定的标签对说明。voidsetVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)Set 私有网络相关信息配置。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateClusterRequest
public CreateClusterRequest()
-
CreateClusterRequest
public CreateClusterRequest(CreateClusterRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getPlacement
public Placement getPlacement()
Get 集群中实例所在的位置。- Returns:
- Placement 集群中实例所在的位置。
-
setPlacement
public void setPlacement(Placement Placement)
Set 集群中实例所在的位置。- Parameters:
Placement- 集群中实例所在的位置。
-
getManagerNode
public ManagerNode getManagerNode()
Get 指定管理节点。- Returns:
- ManagerNode 指定管理节点。
-
setManagerNode
public void setManagerNode(ManagerNode ManagerNode)
Set 指定管理节点。- Parameters:
ManagerNode- 指定管理节点。
-
getManagerNodeCount
public Long getManagerNodeCount()
Get 指定管理节点的数量。默认取值:1。取值范围:1~2。- Returns:
- ManagerNodeCount 指定管理节点的数量。默认取值:1。取值范围:1~2。
-
setManagerNodeCount
public void setManagerNodeCount(Long ManagerNodeCount)
Set 指定管理节点的数量。默认取值:1。取值范围:1~2。- Parameters:
ManagerNodeCount- 指定管理节点的数量。默认取值:1。取值范围:1~2。
-
getComputeNode
public ComputeNode getComputeNode()
Get 指定计算节点。- Returns:
- ComputeNode 指定计算节点。
-
setComputeNode
public void setComputeNode(ComputeNode ComputeNode)
Set 指定计算节点。- Parameters:
ComputeNode- 指定计算节点。
-
getComputeNodeCount
public Long getComputeNodeCount()
Get 指定计算节点的数量。默认取值:0。- Returns:
- ComputeNodeCount 指定计算节点的数量。默认取值:0。
-
setComputeNodeCount
public void setComputeNodeCount(Long ComputeNodeCount)
Set 指定计算节点的数量。默认取值:0。- Parameters:
ComputeNodeCount- 指定计算节点的数量。默认取值:0。
-
getSchedulerType
public String getSchedulerType()
Get 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- Returns:
- SchedulerType 调度器类型。默认取值:SLURM。
- SGE:SGE调度器。
- SLURM:SLURM调度器。
- SGE:SGE调度器。
- SGE:SGE调度器。
-
setSchedulerType
public void setSchedulerType(String SchedulerType)
Set 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- Parameters:
SchedulerType- 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- SGE:SGE调度器。
- SGE:SGE调度器。
-
getImageId
public String getImageId()
Get 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。- Returns:
- ImageId 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
-
setImageId
public void setImageId(String ImageId)
Set 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。- Parameters:
ImageId- 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
-
getVirtualPrivateCloud
public VirtualPrivateCloud getVirtualPrivateCloud()
Get 私有网络相关信息配置。- Returns:
- VirtualPrivateCloud 私有网络相关信息配置。
-
setVirtualPrivateCloud
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set 私有网络相关信息配置。- Parameters:
VirtualPrivateCloud- 私有网络相关信息配置。
-
getLoginSettings
public LoginSettings getLoginSettings()
Get 集群登录设置。- Returns:
- LoginSettings 集群登录设置。
-
setLoginSettings
public void setLoginSettings(LoginSettings LoginSettings)
Set 集群登录设置。- Parameters:
LoginSettings- 集群登录设置。
-
getSecurityGroupIds
public String[] getSecurityGroupIds()
Get 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。- Returns:
- SecurityGroupIds 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
-
setSecurityGroupIds
public void setSecurityGroupIds(String[] SecurityGroupIds)
Set 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。- Parameters:
SecurityGroupIds- 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
-
getClientToken
public String getClientToken()
Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。- Returns:
- ClientToken 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
-
setClientToken
public void setClientToken(String ClientToken)
Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。- Parameters:
ClientToken- 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
-
getDryRun
public Boolean getDryRun()
Get 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例- Returns:
- DryRun 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例
-
setDryRun
public void setDryRun(Boolean DryRun)
Set 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例- Parameters:
DryRun- 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例
-
getAccountType
public String getAccountType()
Get 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
- Returns:
- AccountType 域名字服务类型。默认取值:NIS。
- NIS:NIS域名字服务。
-
setAccountType
public void setAccountType(String AccountType)
Set 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
- Parameters:
AccountType- 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
-
getClusterName
public String getClusterName()
Get 集群显示名称。- Returns:
- ClusterName 集群显示名称。
-
setClusterName
public void setClusterName(String ClusterName)
Set 集群显示名称。- Parameters:
ClusterName- 集群显示名称。
-
getStorageOption
public StorageOption getStorageOption()
Get 集群存储选项- Returns:
- StorageOption 集群存储选项
-
setStorageOption
public void setStorageOption(StorageOption StorageOption)
Set 集群存储选项- Parameters:
StorageOption- 集群存储选项
-
getLoginNode
public LoginNode getLoginNode()
Get 指定登录节点。- Returns:
- LoginNode 指定登录节点。
-
setLoginNode
public void setLoginNode(LoginNode LoginNode)
Set 指定登录节点。- Parameters:
LoginNode- 指定登录节点。
-
getLoginNodeCount
public Long getLoginNodeCount()
Get 指定登录节点的数量。默认取值:0。取值范围:0~10。- Returns:
- LoginNodeCount 指定登录节点的数量。默认取值:0。取值范围:0~10。
-
setLoginNodeCount
public void setLoginNodeCount(Long LoginNodeCount)
Set 指定登录节点的数量。默认取值:0。取值范围:0~10。- Parameters:
LoginNodeCount- 指定登录节点的数量。默认取值:0。取值范围:0~10。
-
getTags
public Tag[] getTags()
Get 创建集群时同时绑定的标签对说明。- Returns:
- Tags 创建集群时同时绑定的标签对说明。
-
setTags
public void setTags(Tag[] Tags)
Set 创建集群时同时绑定的标签对说明。- Parameters:
Tags- 创建集群时同时绑定的标签对说明。
-
getAutoScalingType
public String getAutoScalingType()
Get 弹性伸缩类型。默认值:THPC_AS- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- Returns:
- AutoScalingType 弹性伸缩类型。默认值:THPC_AS
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
-
setAutoScalingType
public void setAutoScalingType(String AutoScalingType)
Set 弹性伸缩类型。默认值:THPC_AS- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- Parameters:
AutoScalingType- 弹性伸缩类型。默认值:THPC_AS- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
-
getInitNodeScripts
public NodeScript[] getInitNodeScripts()
Get 节点初始化脚本信息列表。- Returns:
- InitNodeScripts 节点初始化脚本信息列表。
-
setInitNodeScripts
public void setInitNodeScripts(NodeScript[] InitNodeScripts)
Set 节点初始化脚本信息列表。- Parameters:
InitNodeScripts- 节点初始化脚本信息列表。
-
getHpcClusterId
public String getHpcClusterId()
Get 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。- Returns:
- HpcClusterId 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。
-
setHpcClusterId
public void setHpcClusterId(String HpcClusterId)
Set 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。- Parameters:
HpcClusterId- 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。
-
-