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 |
CHANGE_FUNCTIONS_WORKER_RUNTIME |
private static String |
DISABLE_APP_INSIGHTS_KEY |
protected boolean |
disableAppInsights |
protected String |
finalName |
private static String |
FUNCTION_JAVA_VERSION_KEY |
private static String |
FUNCTIONS_EXTENSION_VERSION_NAME |
private static String |
FUNCTIONS_EXTENSION_VERSION_VALUE |
private static String |
FUNCTIONS_WORKER_RUNTIME_NAME |
private static String |
FUNCTIONS_WORKER_RUNTIME_VALUE |
protected File |
outputDirectory |
protected String |
pricingTier
App Service pricing tier, which will only be used to create Functions App at the first time.
Below is the list of supported pricing tier: F1 D1 B1 B2 B3 S1 S2 S3 P1V2 P2V2 P3V2 |
protected String |
region
App Service region, which will only be used to create App Service at the first time.
|
protected RuntimeConfiguration |
runtime |
private static String |
SET_FUNCTIONS_EXTENSION_VERSION |
private static String |
SET_FUNCTIONS_WORKER_RUNTIME |
protected boolean |
skip
Skip execution.
|
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, subscriptionId| Constructor and Description |
|---|
AbstractFunctionMojo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppInsightsInstance() |
String |
getAppInsightsKey() |
Map |
getAppSettingsWithDefaultValue() |
String |
getFinalName() |
com.microsoft.azure.management.appservice.FunctionApp |
getFunctionApp() |
FunctionExtensionVersion |
getFunctionExtensionVersion() |
com.microsoft.azure.management.appservice.PricingTier |
getPricingTier() |
String |
getRegion() |
RuntimeConfiguration |
getRuntime() |
Map<String,String> |
getTelemetryProperties() |
boolean |
isDisableAppInsights() |
protected boolean |
isSkipMojo() |
private void |
overrideDefaultAppSetting(Map result,
String settingName,
String settingIsEmptyMessage,
String settingValue,
String changeSettingMessage) |
private void |
setDefaultAppSetting(Map result,
String settingName,
String settingIsEmptyMessage,
String settingValue) |
getAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getDeploymentType, getResourceGroup, getResourcePortalUrl, getResources, setDeploymentSlotdoExecute, execute, executeWithTimeRecorder, getAuthenticationSetting, getAuthMethod, getAuthTypeEnum, getAzureClient, getAzureClientByAuthType, getAzureTokenWrapper, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProxy, getUserAgent, handleException, infoWithMultipleLines, initAuth, initializeAuthConfiguration, initTelemetry, isAuthConfigurationExist, isFailingOnError, isTelemetryAllowed, printCurrentSubscription, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccessprivate static final String FUNCTIONS_WORKER_RUNTIME_NAME
private static final String FUNCTIONS_WORKER_RUNTIME_VALUE
private static final String SET_FUNCTIONS_WORKER_RUNTIME
private static final String CHANGE_FUNCTIONS_WORKER_RUNTIME
private static final String FUNCTIONS_EXTENSION_VERSION_NAME
private static final String FUNCTIONS_EXTENSION_VERSION_VALUE
private static final String SET_FUNCTIONS_EXTENSION_VERSION
private static final String FUNCTION_JAVA_VERSION_KEY
private static final String DISABLE_APP_INSIGHTS_KEY
@Parameter(property="functions.pricingTier") protected String pricingTier
@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 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 Map getAppSettingsWithDefaultValue()
public FunctionExtensionVersion getFunctionExtensionVersion() throws AzureExecutionException
AzureExecutionExceptionprivate void overrideDefaultAppSetting(Map result, String settingName, String settingIsEmptyMessage, String settingValue, String changeSettingMessage)
private void setDefaultAppSetting(Map result, String settingName, String settingIsEmptyMessage, String settingValue)
public com.microsoft.azure.management.appservice.PricingTier getPricingTier()
throws AzureExecutionException
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
AzureAuthFailureExceptionpublic RuntimeConfiguration getRuntime()
public Map<String,String> getTelemetryProperties()
getTelemetryProperties in interface TelemetryConfigurationgetTelemetryProperties in class AbstractAzureMojoCopyright © 2021. All rights reserved.