Class DeployOptions
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.DeployOptions
-
public class DeployOptions extends Object
The options for OneDeploy.
-
-
Constructor Summary
Constructors Constructor Description DeployOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancleanDeployment()Stringpath()BooleanrestartSite()BooleantrackDeployment()DeployOptionswithCleanDeployment(Boolean cleanDeployment)Specifies whether to perform clean deployment.DeployOptionswithPath(String path)Specifies the path for deploy.DeployOptionswithRestartSite(Boolean restartSite)Specifies whether to restart site after deployment.DeployOptionswithTrackDeployment(Boolean trackDeployment)Specifies whether to haveKuduDeploymentResult.deploymentId()to track deployment progress.
-
-
-
Method Detail
-
path
public String path()
- Returns:
- the path for deploy
-
withPath
public DeployOptions withPath(String path)
Specifies the path for deploy. Some some deploy type, path is required.- Parameters:
path- the path for deploy- Returns:
- the DeployOptions object
-
restartSite
public Boolean restartSite()
- Returns:
- whether to restart site after deployment
-
withRestartSite
public DeployOptions withRestartSite(Boolean restartSite)
Specifies whether to restart site after deployment. By default, any OneDeploy call will restart the site. This behavior can be altered by this option.- Parameters:
restartSite- whether to restart side after deployment- Returns:
- the DeployOptions object
-
cleanDeployment
public Boolean cleanDeployment()
- Returns:
- whether to perform clean deployment
-
withCleanDeployment
public DeployOptions withCleanDeployment(Boolean cleanDeployment)
Specifies whether to perform clean deployment. By defaulttype=zipandtype=war&path=webapps/<appname>performs clean deployment. All other types of artifacts will be deployed incrementally. The default behavior for any artifact type can be changed by this option. A clean deployment removes the default directory associated with the type of artifact being deployed.- Parameters:
cleanDeployment- whether to perform clean deployment- Returns:
- the DeployOptions object
-
trackDeployment
public Boolean trackDeployment()
- Returns:
- whether to track deployment progress
-
withTrackDeployment
public DeployOptions withTrackDeployment(Boolean trackDeployment)
Specifies whether to haveKuduDeploymentResult.deploymentId()to track deployment progress. This option only takes effect when used inSupportsOneDeploy.pushDeploy(DeployType, java.io.File, DeployOptions).- Parameters:
trackDeployment- whether to track deployment progress- Returns:
- the DeployOptions object
-
-