public static final class DeployApplicationRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeployApplicationRequest.Builder |
appEnv(String appEnv)
The environment variables of the application.
|
DeployApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
DeployApplicationRequest.Builder |
batch(Integer batch)
The number of batches per instance group.
|
DeployApplicationRequest.Builder |
batchWaitTime(Integer batchWaitTime)
The wait time between deployment batches for the application.
|
DeployApplicationRequest |
build() |
DeployApplicationRequest.Builder |
buildPackId(Long buildPackId)
The build package number of EDAS Container.
|
DeployApplicationRequest.Builder |
componentIds(String componentIds)
The IDs of the components used by the application.
|
DeployApplicationRequest.Builder |
deployType(String deployType)
The deployment mode of the application.
|
DeployApplicationRequest.Builder |
desc(String desc)
The description of the application deployment.
|
DeployApplicationRequest.Builder |
gray(Boolean gray)
Specifies whether canary release is selected as the deployment method.
|
DeployApplicationRequest.Builder |
groupId(String groupId)
The ID of the instance group to which the application is deployed.
|
DeployApplicationRequest.Builder |
imageUrl(String imageUrl)
The URL of the application image that is used to deploy the application in a Swarm cluster.
|
DeployApplicationRequest.Builder |
packageVersion(String packageVersion)
The version of the application deployment package.
|
DeployApplicationRequest.Builder |
releaseType(Long releaseType)
The mode in which the deployment batches are triggered.
|
DeployApplicationRequest.Builder |
trafficControlStrategy(String trafficControlStrategy)
The canary release policy.
|
DeployApplicationRequest.Builder |
warUrl(String warUrl)
The URL of the application deployment package.
|
public DeployApplicationRequest.Builder appEnv(String appEnv)
public DeployApplicationRequest.Builder appId(String appId)
public DeployApplicationRequest.Builder batch(Integer batch)
* If you specify an ID when you set the GroupId parameter, the application is deployed to the specified instance group. The minimum number of batches that can be specified is 1. The maximum number of batches is the maximum number of ECS instances in the Normal state in the instance group. The actual value falls in the range of \[1, specified number]. The specified number of batches equals the number of ECS instances in the specified instance group. * If you set the GroupId parameter to all, the application is deployed to all instance groups. The minimum number of batches that can be specified is 1. The maximum number of batches is the number of ECS instances in the instance group that has the largest number of ECS instances in the Normal state.
public DeployApplicationRequest.Builder batchWaitTime(Integer batchWaitTime)
* Default value: 0. If no wait time between deployment batches is needed, set this parameter to 0. * Maximum value: 5. If many deployment batches are needed, we recommend that you specify a small value for this parameter. Otherwise, the application deployment is time-consuming.
public DeployApplicationRequest.Builder buildPackId(Long buildPackId)
* You do not need to set the parameter if you do not need to change the EDAS Container version during the deployment. * Set the parameter if you need to update the EDAS Container version of the application during the deployment. You can query the build package number by using one of the following methods: * Call the ListBuildPack operation. For more information, see [ListBuildPack](~~149391~~). * Obtain the value in the **Build package number** column of the [Release notes for EDAS Container](~~92614~~) topic. For example, `59` indicates `EDAS Container 3.5.8`.
public DeployApplicationRequest.Builder componentIds(String componentIds)
* If you have specified the component IDs when you create the application, you do not need to set the parameter when you deploy the application. * Set the parameter if you need to update the component versions for the application during the deployment. Valid values for common application components: * 4: Apache Tomcat 7.0.91 * 7: Apache Tomcat 8.5.42 * 5: OpenJDK 1.8.x * 6: OpenJDK 1.7.x For more information, see the Common application parameters section of the [InsertApplication](~~423185~~) topic.
public DeployApplicationRequest.Builder deployType(String deployType)
public DeployApplicationRequest.Builder desc(String desc)
public DeployApplicationRequest.Builder gray(Boolean gray)
* true: Canary release is selected. * To implement a canary release, specify the GroupId parameter, which specifies the ID of the instance group for the canary release. * Canary release can be selected as the deployment method for only one batch. * After the canary release is complete, the application is released in regular mode. The Batch parameter specifies the number of batches. * false: Single-batch release or phased release is selected.
public DeployApplicationRequest.Builder groupId(String groupId)
Set the parameter to `all` if you want to deploy the application to all instance groups.
public DeployApplicationRequest.Builder imageUrl(String imageUrl)
public DeployApplicationRequest.Builder packageVersion(String packageVersion)
public DeployApplicationRequest.Builder releaseType(Long releaseType)
* 0: automatic. * 1: You must manually trigger the next batch. You can manually click **Proceed to Next Batch** in the console or call the ContinuePipeline operation to proceed to the next batch. We recommend that you choose the automatic mode when you call an API operation to deploy the application. For more information, see [ContinuePipeline](~~126990~~).
public DeployApplicationRequest.Builder trafficControlStrategy(String trafficControlStrategy)
public DeployApplicationRequest.Builder warUrl(String warUrl)
public DeployApplicationRequest build()
Copyright © 2023. All rights reserved.