public class UpgradeClusterInstancesRequest extends AbstractModel
Constructor and Description |
---|
UpgradeClusterInstancesRequest() |
UpgradeClusterInstancesRequest(UpgradeClusterInstancesRequest 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 |
---|---|
String |
getClusterId()
Get Cluster ID
|
String[] |
getInstanceIds()
Get List of nodes that need to upgrade
|
Float |
getMaxNotReadyPercent()
Get The maximum tolerable proportion of unavailable pods
|
String |
getOperation()
Get create: starting an upgrade task
pause: pausing the task
resume: continuing the task
abort: stopping the task
|
UpgradeNodeResetParam |
getResetParam()
Get This parameter is used when the node joins the cluster again.
|
Boolean |
getSkipPreCheck()
Get Whether to skip the pre-upgrade check of the node
|
Boolean |
getUpgradeRunTime()
Get Whether to upgrade node runtime.
|
String |
getUpgradeType()
Get Upgrade type.
|
void |
setClusterId(String ClusterId)
Set Cluster ID
|
void |
setInstanceIds(String[] InstanceIds)
Set List of nodes that need to upgrade
|
void |
setMaxNotReadyPercent(Float MaxNotReadyPercent)
Set The maximum tolerable proportion of unavailable pods
|
void |
setOperation(String Operation)
Set create: starting an upgrade task
pause: pausing the task
resume: continuing the task
abort: stopping the task
|
void |
setResetParam(UpgradeNodeResetParam ResetParam)
Set This parameter is used when the node joins the cluster again.
|
void |
setSkipPreCheck(Boolean SkipPreCheck)
Set Whether to skip the pre-upgrade check of the node
|
void |
setUpgradeRunTime(Boolean UpgradeRunTime)
Set Whether to upgrade node runtime.
|
void |
setUpgradeType(String UpgradeType)
Set Upgrade type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public UpgradeClusterInstancesRequest()
public UpgradeClusterInstancesRequest(UpgradeClusterInstancesRequest source)
public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- Cluster IDpublic String getOperation()
public void setOperation(String Operation)
Operation
- create: starting an upgrade task
pause: pausing the task
resume: continuing the task
abort: stopping the taskpublic String getUpgradeType()
public void setUpgradeType(String UpgradeType)
UpgradeType
- Upgrade type. It’s only required when `Operation` is set as `create`.
reset: the reinstallation and upgrade of major version
hot: the hot upgrade of minor version
major: in-place upgrade of major versionpublic String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- List of nodes that need to upgradepublic UpgradeNodeResetParam getResetParam()
public void setResetParam(UpgradeNodeResetParam ResetParam)
ResetParam
- This parameter is used when the node joins the cluster again. Refer to the API of creating one or more cluster nodes.public Boolean getSkipPreCheck()
public void setSkipPreCheck(Boolean SkipPreCheck)
SkipPreCheck
- Whether to skip the pre-upgrade check of the nodepublic Float getMaxNotReadyPercent()
public void setMaxNotReadyPercent(Float MaxNotReadyPercent)
MaxNotReadyPercent
- The maximum tolerable proportion of unavailable podspublic Boolean getUpgradeRunTime()
public void setUpgradeRunTime(Boolean UpgradeRunTime)
UpgradeRunTime
- Whether to upgrade node runtime. Values: `true`, `false` (default).Copyright © 2023. All rights reserved.