Class WebAppDeploymentSlotDraft
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<T,P,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
- com.microsoft.azure.toolkit.lib.appservice.AppServiceAppBase<T,P,F>
-
- com.microsoft.azure.toolkit.lib.appservice.webapp.WebAppBase<WebAppDeploymentSlot,WebApp,com.azure.resourcemanager.appservice.models.DeploymentSlot>
-
- com.microsoft.azure.toolkit.lib.appservice.webapp.WebAppDeploymentSlot
-
- com.microsoft.azure.toolkit.lib.appservice.webapp.WebAppDeploymentSlotDraft
-
- All Implemented Interfaces:
IOneDeploy,com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable,com.microsoft.azure.toolkit.lib.common.model.Startable
public class WebAppDeploymentSlotDraft extends WebAppDeploymentSlot implements com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classWebAppDeploymentSlotDraft.Config-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
-
Field Summary
Fields Modifier and Type Field Description private WebAppDeploymentSlotDraft.Configconfigprivate static StringCONFIGURATION_SOURCE_DOES_NOT_EXISTSstatic StringCONFIGURATION_SOURCE_NEWstatic StringCONFIGURATION_SOURCE_PARENTprivate static StringCREATE_NEW_DEPLOYMENT_SLOTprivate static StringFAILED_TO_GET_CONFIGURATION_SOURCEprivate WebAppDeploymentSlotorigin-
Fields inherited from class com.microsoft.azure.toolkit.lib.appservice.AppServiceAppBase
kuduManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebAppDeploymentSlotDraft(WebAppDeploymentSlot origin)protectedWebAppDeploymentSlotDraft(String name, WebAppDeploymentSlotModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.resourcemanager.appservice.models.DeploymentSlotcreateResourceInAzure()private WebAppDeploymentSlotDraft.ConfigensureConfig()Map<String,String>getAppSettings()Set<String>getAppSettingsToRemove()StringgetConfigurationSource()DiagnosticConfiggetDiagnosticConfig()DockerConfigurationgetDockerConfiguration()RuntimegetRuntime()booleanisModified()voidremoveAppSetting(String key)voidremoveAppSettings(Set<String> keys)voidreset()voidsetAppSettings(Map<String,String> appSettings)voidsetConfigurationSource(String source)voidsetDiagnosticConfig(DiagnosticConfig config)voidsetDockerConfiguration(DockerConfiguration dockerConfiguration)voidsetRuntime(Runtime runtime)private voidupdateDockerConfiguration(com.azure.resourcemanager.appservice.models.DeploymentSlotBase.Update<?> update, DockerConfiguration newConfig)com.azure.resourcemanager.appservice.models.DeploymentSlotupdateResourceInAzure(com.azure.resourcemanager.appservice.models.WebSiteBase base)private voidupdateRuntime(com.azure.resourcemanager.appservice.models.DeploymentSlotBase.Update<?> update, Runtime newRuntime)-
Methods inherited from class com.microsoft.azure.toolkit.lib.appservice.webapp.WebAppDeploymentSlot
getSubModules
-
Methods inherited from class com.microsoft.azure.toolkit.lib.appservice.webapp.WebAppBase
deploy, getDeploymentStatus, pushDeploy
-
Methods inherited from class com.microsoft.azure.toolkit.lib.appservice.AppServiceAppBase
createDirectory, deleteFile, execute, getAppServicePlan, getAppServiceTunnelStatus, getFileByPath, getFileClient, getFileContent, getFilesInDirectory, getFullRemote, getHostName, getKuduHostName, getKuduManager, getLinuxFxVersion, getProcessClient, getPublishingProfile, getRegion, listProcess, listPublishingProfileXmlWithSecrets, loadStatus, refreshRemoteFromAzure, restart, start, stop, streamAllLogsAsync, uploadFileToPath
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
getFullResourceType, getPortalUrl, getResourceTypeName, getSubscription, getSubscriptionId, id, name
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft
asResource, commit, createIfNotExist, getModule, getName, getOrigin, getResourceGroupName, updateIfExist
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
getFormalStatus
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.appservice.deploy.IOneDeploy
deploy, deploy, deploy, deploy
-
-
-
-
Field Detail
-
CREATE_NEW_DEPLOYMENT_SLOT
private static final String CREATE_NEW_DEPLOYMENT_SLOT
- See Also:
- Constant Field Values
-
CONFIGURATION_SOURCE_NEW
public static final String CONFIGURATION_SOURCE_NEW
- See Also:
- Constant Field Values
-
CONFIGURATION_SOURCE_PARENT
public static final String CONFIGURATION_SOURCE_PARENT
- See Also:
- Constant Field Values
-
CONFIGURATION_SOURCE_DOES_NOT_EXISTS
private static final String CONFIGURATION_SOURCE_DOES_NOT_EXISTS
- See Also:
- Constant Field Values
-
FAILED_TO_GET_CONFIGURATION_SOURCE
private static final String FAILED_TO_GET_CONFIGURATION_SOURCE
- See Also:
- Constant Field Values
-
origin
@Nullable private final WebAppDeploymentSlot origin
-
config
@Nullable private WebAppDeploymentSlotDraft.Config config
-
-
Constructor Detail
-
WebAppDeploymentSlotDraft
protected WebAppDeploymentSlotDraft(@Nonnull String name, @Nonnull WebAppDeploymentSlotModule module)
-
WebAppDeploymentSlotDraft
protected WebAppDeploymentSlotDraft(@Nonnull WebAppDeploymentSlot origin)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
ensureConfig
@Nonnull private WebAppDeploymentSlotDraft.Config ensureConfig()
-
createResourceInAzure
@Nonnull public com.azure.resourcemanager.appservice.models.DeploymentSlot createResourceInAzure()
- Specified by:
createResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
updateResourceInAzure
@Nonnull public com.azure.resourcemanager.appservice.models.DeploymentSlot updateResourceInAzure(@Nonnull com.azure.resourcemanager.appservice.models.WebSiteBase base)
- Specified by:
updateResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
updateRuntime
private void updateRuntime(@Nonnull com.azure.resourcemanager.appservice.models.DeploymentSlotBase.Update<?> update, @Nonnull Runtime newRuntime)
-
updateDockerConfiguration
private void updateDockerConfiguration(@Nonnull com.azure.resourcemanager.appservice.models.DeploymentSlotBase.Update<?> update, @Nonnull DockerConfiguration newConfig)
-
setConfigurationSource
public void setConfigurationSource(String source)
-
getAppSettings
@Nullable public Map<String,String> getAppSettings()
- Overrides:
getAppSettingsin classAppServiceAppBase<WebAppDeploymentSlot,WebApp,com.azure.resourcemanager.appservice.models.DeploymentSlot>
-
removeAppSetting
public void removeAppSetting(String key)
-
setDiagnosticConfig
public void setDiagnosticConfig(DiagnosticConfig config)
-
getDiagnosticConfig
@Nullable public DiagnosticConfig getDiagnosticConfig()
- Overrides:
getDiagnosticConfigin classAppServiceAppBase<WebAppDeploymentSlot,WebApp,com.azure.resourcemanager.appservice.models.DeploymentSlot>
-
getRuntime
@Nullable public Runtime getRuntime()
- Overrides:
getRuntimein classAppServiceAppBase<WebAppDeploymentSlot,WebApp,com.azure.resourcemanager.appservice.models.DeploymentSlot>
-
setRuntime
public void setRuntime(Runtime runtime)
-
setDockerConfiguration
public void setDockerConfiguration(DockerConfiguration dockerConfiguration)
-
getDockerConfiguration
@Nullable public DockerConfiguration getDockerConfiguration()
-
isModified
public boolean isModified()
- Specified by:
isModifiedin interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<WebAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
-