Class FunctionAppDeploymentSlotDraft
- 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.function.FunctionAppBase<FunctionAppDeploymentSlot,FunctionApp,com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot>
-
- com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppDeploymentSlot
-
- com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppDeploymentSlotDraft
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<FunctionAppDeploymentSlot,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 FunctionAppDeploymentSlotDraft extends FunctionAppDeploymentSlot implements com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<FunctionAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFunctionAppDeploymentSlotDraft.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 FunctionAppDeploymentSlotDraft.Configconfigprivate static StringCONFIGURATION_SOURCE_DOES_NOT_EXISTSstatic StringCONFIGURATION_SOURCE_NEWstatic StringCONFIGURATION_SOURCE_PARENTprivate static StringCREATE_NEW_DEPLOYMENT_SLOTprivate static StringFAILED_TO_GET_CONFIGURATION_SOURCEprivate FunctionAppDeploymentSlotorigin-
Fields inherited from class com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppDeploymentSlot
MAX_PORT
-
Fields inherited from class com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppBase
DEFAULT_REMOTE_DEBUG_JAVA_OPTS, DEFAULT_REMOTE_DEBUG_PORT, HTTP_PLATFORM_DEBUG_PORT, JAVA_OPTS, PREFER_IPV_4_STACK_TRUE, XDEBUG, XRUNJDWP
-
Fields inherited from class com.microsoft.azure.toolkit.lib.appservice.AppServiceAppBase
kuduManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFunctionAppDeploymentSlotDraft(FunctionAppDeploymentSlot origin)protectedFunctionAppDeploymentSlotDraft(String name, FunctionAppDeploymentSlotModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.resourcemanager.appservice.models.FunctionDeploymentSlotcreateResourceInAzure()private FunctionAppDeploymentSlotDraft.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.FunctionDeploymentSlotupdateResourceInAzure(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.function.FunctionAppDeploymentSlot
disableRemoteDebug, enableRemoteDebug, getMasterKey, getRemoteDebugPort, getSubModules
-
Methods inherited from class com.microsoft.azure.toolkit.lib.appservice.function.FunctionAppBase
deploy, deploy, getAdminClient, getDefaultDeployType, getDeployHandlerByType, getFileClient, getJavaOptsWithRemoteDebugDisabled, getJavaOptsWithRemoteDebugEnabled, isRemoteDebugEnabled, ping, updateAdditionalProperties
-
Methods inherited from class com.microsoft.azure.toolkit.lib.appservice.AppServiceAppBase
createDirectory, deleteFile, execute, getAppServicePlan, getAppServiceTunnelStatus, getFileByPath, 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
-
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
-
-
-
-
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 FunctionAppDeploymentSlot origin
-
config
@Nullable private FunctionAppDeploymentSlotDraft.Config config
-
-
Constructor Detail
-
FunctionAppDeploymentSlotDraft
protected FunctionAppDeploymentSlotDraft(@Nonnull String name, @Nonnull FunctionAppDeploymentSlotModule module)
-
FunctionAppDeploymentSlotDraft
protected FunctionAppDeploymentSlotDraft(@Nonnull FunctionAppDeploymentSlot origin)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<FunctionAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
ensureConfig
@Nonnull private FunctionAppDeploymentSlotDraft.Config ensureConfig()
-
createResourceInAzure
@Nonnull public com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot createResourceInAzure()
- Specified by:
createResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<FunctionAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
updateResourceInAzure
@Nonnull public com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot updateResourceInAzure(@Nonnull com.azure.resourcemanager.appservice.models.WebSiteBase base)
- Specified by:
updateResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<FunctionAppDeploymentSlot,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<FunctionAppDeploymentSlot,FunctionApp,com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot>
-
removeAppSetting
public void removeAppSetting(String key)
-
setDiagnosticConfig
public void setDiagnosticConfig(DiagnosticConfig config)
-
getDiagnosticConfig
@Nullable public DiagnosticConfig getDiagnosticConfig()
- Overrides:
getDiagnosticConfigin classAppServiceAppBase<FunctionAppDeploymentSlot,FunctionApp,com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot>
-
getRuntime
@Nullable public Runtime getRuntime()
- Overrides:
getRuntimein classAppServiceAppBase<FunctionAppDeploymentSlot,FunctionApp,com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot>
-
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<FunctionAppDeploymentSlot,com.azure.resourcemanager.appservice.models.WebSiteBase>
-
-