Class CreateOrUpdateWebAppTask
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationBase
-
- com.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
- com.microsoft.azure.toolkit.lib.appservice.task.CreateOrUpdateWebAppTask
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.operation.Operation
public class CreateOrUpdateWebAppTask extends com.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description private AppServiceConfigconfigprivate static StringCREATE_NEW_WEB_APPprivate booleanskipCreateAzureResourceprivate List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>>subTasksprivate static StringWEBAPP_NOT_EXIST_FOR_SLOT
-
Constructor Summary
Constructors Constructor Description CreateOrUpdateWebAppTask(AppServiceConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private WebAppcreate()private WebAppDeploymentSlotcreateDeploymentSlot(WebAppDeploymentSlotDraft draft)private WebAppBase<?,?,?>createOrUpdateResource()WebAppBase<?,?,?>doExecute()private DockerConfigurationgetDockerConfiguration(RuntimeConfig runtime)private RuntimegetRuntime(RuntimeConfig runtime)private List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>>initTasks()private booleanisDeployToDeploymentSlot()private WebAppupdate(WebApp webApp)private WebAppDeploymentSlotupdateDeploymentSlot(WebAppDeploymentSlotDraft draft)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
execute, getBackgrounded, getBody, getDescription, getExecutionId, getId, getModality, getMonitor, getProject, getType, isBackgroundable, isCancellable, setBackgroundable, setBackgrounded, setMonitor, setType, toString
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.operation.OperationBase
getContext, getParent, setParent
-
-
-
-
Field Detail
-
CREATE_NEW_WEB_APP
private static final String CREATE_NEW_WEB_APP
- See Also:
- Constant Field Values
-
WEBAPP_NOT_EXIST_FOR_SLOT
private static final String WEBAPP_NOT_EXIST_FOR_SLOT
- See Also:
- Constant Field Values
-
config
private final AppServiceConfig config
-
subTasks
private final List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>> subTasks
-
skipCreateAzureResource
private boolean skipCreateAzureResource
-
-
Constructor Detail
-
CreateOrUpdateWebAppTask
public CreateOrUpdateWebAppTask(AppServiceConfig config)
-
-
Method Detail
-
initTasks
private List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>> initTasks()
-
createOrUpdateResource
private WebAppBase<?,?,?> createOrUpdateResource()
-
create
private WebApp create()
-
createDeploymentSlot
private WebAppDeploymentSlot createDeploymentSlot(WebAppDeploymentSlotDraft draft)
-
updateDeploymentSlot
private WebAppDeploymentSlot updateDeploymentSlot(WebAppDeploymentSlotDraft draft)
-
isDeployToDeploymentSlot
private boolean isDeployToDeploymentSlot()
-
getDockerConfiguration
private DockerConfiguration getDockerConfiguration(RuntimeConfig runtime)
-
getRuntime
private Runtime getRuntime(RuntimeConfig runtime)
-
doExecute
public WebAppBase<?,?,?> doExecute()
- Overrides:
doExecutein classcom.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
-