public static final class RollbackApplicationRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RollbackApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
RollbackApplicationRequest.Builder |
autoEnableApplicationScalingRule(String autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application.
|
RollbackApplicationRequest.Builder |
batchWaitTime(Integer batchWaitTime)
The wait time between batches.
|
RollbackApplicationRequest |
build() |
RollbackApplicationRequest.Builder |
minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances.
|
RollbackApplicationRequest.Builder |
minReadyInstances(Integer minReadyInstances)
The minimum number of available instances.
|
RollbackApplicationRequest.Builder |
updateStrategy(String updateStrategy)
The deployment policy.
|
RollbackApplicationRequest.Builder |
versionId(String versionId)
The ID of the application version.
|
public RollbackApplicationRequest.Builder appId(String appId)
public RollbackApplicationRequest.Builder autoEnableApplicationScalingRule(String autoEnableApplicationScalingRule)
* **true**: turns on Logon-free Sharing * **false**: turns off Logon-free Sharing
public RollbackApplicationRequest.Builder batchWaitTime(Integer batchWaitTime)
public RollbackApplicationRequest.Builder minReadyInstanceRatio(Integer minReadyInstanceRatio)
* If you set the value to **-1**, the minimum number of available instances is not determined based on this parameter. Default value: -1. * If you set the value to a number **from 0 to 100**, the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). The value is the nearest integer rounded up from the calculated result. For example, if the percentage is set to **50**% and five instances are available, the minimum number of available instances is 3. > When both **MinReadyInstance** and **MinReadyInstanceRatio** are specified and **MinReadyInstanceRatio** is set to a number from 0 to 100, the value of **MinReadyInstanceRatio** takes precedence.** For example, if **MinReadyInstances** is set to **5, and **MinReadyInstanceRatio** is set to **50**, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Current number of instances × **50%**.
public RollbackApplicationRequest.Builder minReadyInstances(Integer minReadyInstances)
* If you set the value to **0**, business interruptions occur when the application is updated. * If you set the value to \*\*-1\*\*, the minimum number of available instances is automatically set to a system-recommended value. The value is the nearest integer to which the calculated result of the following formula is rounded up: Current number of instances × 25%. For example, if five instances are available, the minimum number of available instances is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2. > Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
public RollbackApplicationRequest.Builder updateStrategy(String updateStrategy)
* Perform canary release for one instance and release the remaining instances in two batches automatically with a one-minute interval between the deployment of each instance: `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}` * Perform canary release for one instance and release the remaining instances in two batches manually: `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}` * Release the instances in two batches automatically with no interval between the deployment of each instance: `{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}` The following table describes the parameters that are used in the preceding statements. * **type**: the type of the release policy. Valid values: **GrayBatchUpdate** and **BatchUpdate**. * **batchUpdate**: the phased release policy. * **batch**: the number of release batches. * **releaseType**: the processing method for the batches. Valid values: **auto** and **manual**. * **batchWaitTime**: the interval between release batches. Unit: seconds. * **grayUpdate**: the number of release batches in the phased release after a canary release. This parameter is returned only if the **type** parameter is set to **GrayBatchUpdate**.
public RollbackApplicationRequest.Builder versionId(String versionId)
public RollbackApplicationRequest build()
Copyright © 2024. All rights reserved.