public abstract class AbstractFunctionMojo extends AbstractAppServiceMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler, AbstractAzureMojo.RunnableWithException| Modifier and Type | Field and Description |
|---|---|
protected String |
appInsightsInstance |
protected String |
appInsightsKey |
private static String |
DISABLE_APP_INSIGHTS_KEY |
protected boolean |
disableAppInsights |
protected String |
finalName |
private static String |
FUNCTION_DEPLOY_TO_SLOT_KEY |
private static String |
FUNCTION_IS_DOCKER_KEY |
private static String |
FUNCTION_JAVA_VERSION_KEY |
private static String |
FUNCTION_PRICING_KEY |
private static String |
FUNCTION_REGION_KEY |
private static String |
FUNCTION_RUNTIME_KEY |
protected File |
outputDirectory |
protected String |
pricingTier
App Service pricing tier, which will only be used to create Functions App at the first time.
|
protected String |
region
App Service region, which will only be used to create App Service at the first time.
|
protected com.microsoft.azure.common.function.configurations.RuntimeConfiguration |
runtime |
protected boolean |
skip
Skip execution.
|
protected static String |
TRIGGER_TYPE |
appName, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, deploymentType, MAVEN_PLUGIN_POSTFIX, PORTAL_URL_PATTERN, resourceGroupallowTelemetry, auth, authentication, authType, buildDirectory, DEPLOY, failsOnError, httpProxyHost, httpProxyPort, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, SUBSCRIPTION_NOT_FOUND, SUBSCRIPTION_NOT_SPECIFIED, SUBSCRIPTION_TEMPLATE, subscriptionId, USING_AZURE_ENVIRONMENT| Constructor and Description |
|---|
AbstractFunctionMojo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppInsightsInstance() |
String |
getAppInsightsKey() |
String |
getFinalName() |
com.microsoft.azure.management.appservice.FunctionApp |
getFunctionApp() |
com.microsoft.azure.management.appservice.PricingTier |
getPricingTier() |
String |
getRegion() |
com.microsoft.azure.common.function.configurations.RuntimeConfiguration |
getRuntime() |
Map<String,String> |
getTelemetryProperties() |
boolean |
isDisableAppInsights() |
protected boolean |
isSkipMojo() |
protected void |
validateAppName() |
getAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getDeploymentType, getPortalUrl, getResourceGroup, getResourcePortalUrl, getResources, setDeploymentSlotdoExecute, execute, executeWithTimeRecorder, getAuthenticationSetting, getAuthMethod, getAuthType, getAzureClient, getAzureCredentialWrapper, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getOrCreateAzureClient, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProxy, getUserAgent, handleException, highlightDefaultValue, infoWithMultipleLines, initTelemetry, isAuthConfigurationExist, isFailingOnError, isTelemetryAllowed, printCurrentSubscription, selectSubscription, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccessprivate static final String FUNCTION_JAVA_VERSION_KEY
private static final String DISABLE_APP_INSIGHTS_KEY
private static final String FUNCTION_RUNTIME_KEY
private static final String FUNCTION_IS_DOCKER_KEY
private static final String FUNCTION_REGION_KEY
private static final String FUNCTION_PRICING_KEY
private static final String FUNCTION_DEPLOY_TO_SLOT_KEY
protected static final String TRIGGER_TYPE
@Parameter(property="functions.pricingTier") protected String pricingTier
Below is the list of supported pricing tier:
@Parameter(defaultValue="${project.build.finalName}",
readonly=true,
required=true)
protected String finalName
@Parameter(defaultValue="${project.build.outputDirectory}",
readonly=true,
required=true)
protected File outputDirectory
@Parameter(property="functions.skip",
defaultValue="false")
protected boolean skip
@Parameter(property="functions.region",
defaultValue="westeurope")
protected String region
@Parameter(property="functions.runtime") protected com.microsoft.azure.common.function.configurations.RuntimeConfiguration runtime
@Parameter(property="functions.appInsightsInstance") protected String appInsightsInstance
@Parameter(property="functions.appInsightsKey") protected String appInsightsKey
@Parameter(property="functions.disableAppInsights",
defaultValue="false")
protected boolean disableAppInsights
public com.microsoft.azure.management.appservice.PricingTier getPricingTier()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic String getRegion()
protected boolean isSkipMojo()
isSkipMojo in class AbstractAzureMojopublic String getFinalName()
public String getAppInsightsInstance()
public String getAppInsightsKey()
public boolean isDisableAppInsights()
@Nullable public com.microsoft.azure.management.appservice.FunctionApp getFunctionApp() throws AzureAuthFailureException, com.microsoft.azure.common.exceptions.AzureExecutionException
AzureAuthFailureExceptioncom.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic com.microsoft.azure.common.function.configurations.RuntimeConfiguration getRuntime()
protected void validateAppName()
public Map<String,String> getTelemetryProperties()
getTelemetryProperties in interface TelemetryConfigurationgetTelemetryProperties in class AbstractAzureMojoCopyright © 2021. All rights reserved.