Class RunFromBlobFunctionDeployHandler
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.appservice.deploy.RunFromBlobFunctionDeployHandler
-
- All Implemented Interfaces:
IFunctionDeployHandler
public class RunFromBlobFunctionDeployHandler extends Object implements IFunctionDeployHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static StringDEPLOYMENT_PACKAGE_CONTAINERprivate static StringFAILED_TO_GET_FUNCTION_APP_ARTIFACT_CONTAINERprivate static intSAS_EXPIRE_DATE_BY_YEARprivate static StringUPDATE_ACCESS_LEVEL_TO_PRIVATE-
Fields inherited from interface com.microsoft.azure.toolkit.lib.appservice.deploy.IFunctionDeployHandler
DEPLOY_FINISH, DEPLOY_START
-
-
Constructor Summary
Constructors Constructor Description RunFromBlobFunctionDeployHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(File file, com.azure.resourcemanager.appservice.models.WebAppBase target)private com.microsoft.azure.storage.blob.CloudBlockBlobdeployArtifactToAzureStorage(com.azure.resourcemanager.appservice.models.WebAppBase deployTarget, File zipPackage, com.microsoft.azure.storage.CloudStorageAccount storageAccount)private StringgetBlobName(com.azure.resourcemanager.appservice.models.WebAppBase deployTarget, File zipPackage)private com.microsoft.azure.storage.blob.CloudBlobContainergetOrCreateArtifactContainer(com.microsoft.azure.storage.CloudStorageAccount storageAccount)private voidupdateContainerPublicAccessLevel(com.microsoft.azure.storage.blob.CloudBlobContainer container)
-
-
-
Field Detail
-
SAS_EXPIRE_DATE_BY_YEAR
private static final int SAS_EXPIRE_DATE_BY_YEAR
- See Also:
- Constant Field Values
-
DEPLOYMENT_PACKAGE_CONTAINER
private static final String DEPLOYMENT_PACKAGE_CONTAINER
- See Also:
- Constant Field Values
-
FAILED_TO_GET_FUNCTION_APP_ARTIFACT_CONTAINER
private static final String FAILED_TO_GET_FUNCTION_APP_ARTIFACT_CONTAINER
- See Also:
- Constant Field Values
-
UPDATE_ACCESS_LEVEL_TO_PRIVATE
private static final String UPDATE_ACCESS_LEVEL_TO_PRIVATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
deploy
public void deploy(File file, com.azure.resourcemanager.appservice.models.WebAppBase target)
- Specified by:
deployin interfaceIFunctionDeployHandler
-
deployArtifactToAzureStorage
private com.microsoft.azure.storage.blob.CloudBlockBlob deployArtifactToAzureStorage(com.azure.resourcemanager.appservice.models.WebAppBase deployTarget, File zipPackage, com.microsoft.azure.storage.CloudStorageAccount storageAccount) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
getOrCreateArtifactContainer
private com.microsoft.azure.storage.blob.CloudBlobContainer getOrCreateArtifactContainer(com.microsoft.azure.storage.CloudStorageAccount storageAccount)
-
updateContainerPublicAccessLevel
private void updateContainerPublicAccessLevel(com.microsoft.azure.storage.blob.CloudBlobContainer container) throws com.microsoft.azure.storage.StorageException- Throws:
com.microsoft.azure.storage.StorageException
-
-