Class DeployOptions
java.lang.Object
com.microsoft.azure.management.appservice.DeployOptions
The options for OneDeploy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpath()
withCleanDeployment
(Boolean cleanDeployment) Specifies whether to perform clean deployment.Specifies the path for deploy.withRestartSite
(Boolean restartSite) Specifies whether to restart site after deployment.
-
Constructor Details
-
DeployOptions
public DeployOptions()
-
-
Method Details
-
path
- Returns:
- the path for deploy
-
withPath
Specifies the path for deploy. Some some deploy type, path is required.- Parameters:
path
- the path for deploy- Returns:
- the DeployOptions object
-
restartSite
- Returns:
- whether to restart site after deployment
-
withRestartSite
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
- Returns:
- whether to perform clean deployment
-
withCleanDeployment
Specifies whether to perform clean deployment. By defaulttype=zip
andtype=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 nukes the default directory associated with the type of artifact being deployed.- Parameters:
cleanDeployment
- whether to perform clean deployment- Returns:
- the DeployOptions object
-