public class NodePool extends AbstractModel
header, skipSign
Constructor and Description |
---|
NodePool() |
NodePool(NodePool 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.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue[] |
getAnnotations()
Get Node Annotation List
|
String |
getAutoscalingGroupId()
Get Auto-scaling group ID
|
String |
getAutoscalingGroupStatus()
Get
|
String |
getClusterInstanceId()
Get Cluster instance ID
|
DataDisk[] |
getDataDisks()
Get Multiple Disk Data Disk Mount Information: When creating a new node, make sure that the CVM purchase parameters include the information of purchasing multiple data disks.
|
Boolean |
getDeletionProtection()
Get Whether Deletion Protection is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getDesiredNodesNum()
Get Desired number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
Long |
getDesiredPodNum()
Get This parameter is required when the custom PodCIDR mode is enabled for the cluster.
|
String |
getDockerGraphPath()
Get Specified value of dockerd --graph.
|
InstanceExtraArgs |
getExtraArgs()
Get Node Configuration
Note: This field may return "null", indicating that no valid value can be obtained.
|
GPUArgs |
getGPUArgs()
Get GPU Driver-related Parameters
Note: This field may return "null", indicating that no valid value can be obtained.
|
String |
getImageId()
Get Image ID
Note: this field may return `null`, indicating that no valid value is obtained.
|
Label[] |
getLabels()
Get Labels
|
String |
getLaunchConfigurationId()
Get Launch configuration ID
|
String |
getLifeState()
Get The lifecycle state of the current node pool.
|
Long |
getMaxNodesNum()
Get Maximum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
Long |
getMinNodesNum()
Get Minimum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
String |
getName()
Get Node pool name
|
NodeCountSummary |
getNodeCountSummary()
Get Node list
|
String |
getNodePoolId()
Get Node pool ID
|
String |
getNodePoolOs()
Get The operating system of the node pool
Note: this field may return `null`, indicating that no valid value is obtained.
|
String |
getOsCustomizeType()
Get Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value)
Note: this field may return `null`, indicating that no valid value is obtained.
|
String |
getPreStartUserScript()
Get Custom script, executed before UserScript
Note: This field may return "null", indicating that no valid value can be obtained.
|
RuntimeConfig |
getRuntimeConfig()
Get Runtime Description
Note: This field may return "null", indicating that no valid value can be obtained.
|
Tag[] |
getTags()
Get Resource tag
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Taint[] |
getTaints()
Get Array of taint
|
Long |
getUnschedulable()
Get Unschedulable or not
Note: This field may return "null", indicating that no valid value can be obtained.
|
String |
getUserScript()
Get Custom script
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setAnnotations(AnnotationValue[] Annotations)
Set Node Annotation List
|
void |
setAutoscalingGroupId(String AutoscalingGroupId)
Set Auto-scaling group ID
|
void |
setAutoscalingGroupStatus(String AutoscalingGroupStatus)
Set
|
void |
setClusterInstanceId(String ClusterInstanceId)
Set Cluster instance ID
|
void |
setDataDisks(DataDisk[] DataDisks)
Set Multiple Disk Data Disk Mount Information: When creating a new node, make sure that the CVM purchase parameters include the information of purchasing multiple data disks.
|
void |
setDeletionProtection(Boolean DeletionProtection)
Set Whether Deletion Protection is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setDesiredNodesNum(Long DesiredNodesNum)
Set Desired number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setDesiredPodNum(Long DesiredPodNum)
Set This parameter is required when the custom PodCIDR mode is enabled for the cluster.
|
void |
setDockerGraphPath(String DockerGraphPath)
Set Specified value of dockerd --graph.
|
void |
setExtraArgs(InstanceExtraArgs ExtraArgs)
Set Node Configuration
Note: This field may return "null", indicating that no valid value can be obtained.
|
void |
setGPUArgs(GPUArgs GPUArgs)
Set GPU Driver-related Parameters
Note: This field may return "null", indicating that no valid value can be obtained.
|
void |
setImageId(String ImageId)
Set Image ID
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setLabels(Label[] Labels)
Set Labels
|
void |
setLaunchConfigurationId(String LaunchConfigurationId)
Set Launch configuration ID
|
void |
setLifeState(String LifeState)
Set The lifecycle state of the current node pool.
|
void |
setMaxNodesNum(Long MaxNodesNum)
Set Maximum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setMinNodesNum(Long MinNodesNum)
Set Minimum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setName(String Name)
Set Node pool name
|
void |
setNodeCountSummary(NodeCountSummary NodeCountSummary)
Set Node list
|
void |
setNodePoolId(String NodePoolId)
Set Node pool ID
|
void |
setNodePoolOs(String NodePoolOs)
Set The operating system of the node pool
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setOsCustomizeType(String OsCustomizeType)
Set Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value)
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
setPreStartUserScript(String PreStartUserScript)
Set Custom script, executed before UserScript
Note: This field may return "null", indicating that no valid value can be obtained.
|
void |
setRuntimeConfig(RuntimeConfig RuntimeConfig)
Set Runtime Description
Note: This field may return "null", indicating that no valid value can be obtained.
|
void |
setTags(Tag[] Tags)
Set Resource tag
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setTaints(Taint[] Taints)
Set Array of taint
|
void |
setUnschedulable(Long Unschedulable)
Set Unschedulable or not
Note: This field may return "null", indicating that no valid value can be obtained.
|
void |
setUserScript(String UserScript)
Set Custom script
Note: this field may return `null`, indicating that no valid value is obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public NodePool()
public NodePool(NodePool source)
public String getNodePoolId()
public void setNodePoolId(String NodePoolId)
NodePoolId
- Node pool IDpublic String getName()
public void setName(String Name)
Name
- Node pool namepublic String getClusterInstanceId()
public void setClusterInstanceId(String ClusterInstanceId)
ClusterInstanceId
- Cluster instance IDpublic String getLifeState()
public void setLifeState(String LifeState)
LifeState
- The lifecycle state of the current node pool. Valid values: `creating`, `normal`, `updating`, `deleting`, and `deleted`.public String getLaunchConfigurationId()
public void setLaunchConfigurationId(String LaunchConfigurationId)
LaunchConfigurationId
- Launch configuration IDpublic String getAutoscalingGroupId()
public void setAutoscalingGroupId(String AutoscalingGroupId)
AutoscalingGroupId
- Auto-scaling group IDpublic Label[] getLabels()
public void setLabels(Label[] Labels)
Labels
- Labelspublic Taint[] getTaints()
public void setTaints(Taint[] Taints)
Taints
- Array of taintpublic AnnotationValue[] getAnnotations()
public void setAnnotations(AnnotationValue[] Annotations)
Annotations
- Node Annotation Listpublic NodeCountSummary getNodeCountSummary()
public void setNodeCountSummary(NodeCountSummary NodeCountSummary)
NodeCountSummary
- Node listpublic String getAutoscalingGroupStatus()
public void setAutoscalingGroupStatus(String AutoscalingGroupStatus)
AutoscalingGroupStatus
- public Long getMaxNodesNum()
public void setMaxNodesNum(Long MaxNodesNum)
MaxNodesNum
- Maximum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.public Long getMinNodesNum()
public void setMinNodesNum(Long MinNodesNum)
MinNodesNum
- Minimum number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.public Long getDesiredNodesNum()
public void setDesiredNodesNum(Long DesiredNodesNum)
DesiredNodesNum
- Desired number of nodes
Note: this field may return `null`, indicating that no valid value is obtained.public RuntimeConfig getRuntimeConfig()
public void setRuntimeConfig(RuntimeConfig RuntimeConfig)
RuntimeConfig
- Runtime Description
Note: This field may return "null", indicating that no valid value can be obtained.public String getNodePoolOs()
public void setNodePoolOs(String NodePoolOs)
NodePoolOs
- The operating system of the node pool
Note: this field may return `null`, indicating that no valid value is obtained.public String getOsCustomizeType()
public void setOsCustomizeType(String OsCustomizeType)
OsCustomizeType
- Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value)
Note: this field may return `null`, indicating that no valid value is obtained.public String getImageId()
public void setImageId(String ImageId)
ImageId
- Image ID
Note: this field may return `null`, indicating that no valid value is obtained.public Long getDesiredPodNum()
public void setDesiredPodNum(Long DesiredPodNum)
DesiredPodNum
- This parameter is required when the custom PodCIDR mode is enabled for the cluster.
Note: this field may return `null`, indicating that no valid value is obtained.public String getUserScript()
public void setUserScript(String UserScript)
UserScript
- Custom script
Note: this field may return `null`, indicating that no valid value is obtained.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Resource tag
Note: this field may return `null`, indicating that no valid values can be obtained.public Boolean getDeletionProtection()
public void setDeletionProtection(Boolean DeletionProtection)
DeletionProtection
- Whether Deletion Protection is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.public InstanceExtraArgs getExtraArgs()
public void setExtraArgs(InstanceExtraArgs ExtraArgs)
ExtraArgs
- Node Configuration
Note: This field may return "null", indicating that no valid value can be obtained.public GPUArgs getGPUArgs()
public void setGPUArgs(GPUArgs GPUArgs)
GPUArgs
- GPU Driver-related Parameters
Note: This field may return "null", indicating that no valid value can be obtained.public String getDockerGraphPath()
public void setDockerGraphPath(String DockerGraphPath)
DockerGraphPath
- Specified value of dockerd --graph. Default value: /var/lib/docker
Note: This field may return "null", indicating that no valid value can be obtained.public DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- Multiple Disk Data Disk Mount Information: When creating a new node, make sure that the CVM purchase parameters include the information of purchasing multiple data disks. For example, in the DataDisks under RunInstancesPara of CreateClusterInstances API, it must also be set to purchase multiple data disks. Refer to the example of adding cluster nodes (multiple data disks) of CreateClusterInstances API; when adding existing nodes, ensure that the specified partition information actually exists on the node.
Note: This field may return "null", indicating that no valid value can be obtained.public Long getUnschedulable()
public void setUnschedulable(Long Unschedulable)
Unschedulable
- Unschedulable or not
Note: This field may return "null", indicating that no valid value can be obtained.public String getPreStartUserScript()
public void setPreStartUserScript(String PreStartUserScript)
PreStartUserScript
- Custom script, executed before UserScript
Note: This field may return "null", indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.