helpers

package
v0.0.0-...-0e4e14f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JavaContainerEmbeddedServer        string = "JAVA"
	JavaContainerTomcat                string = "TOMCAT"
	JavaContainerEmbeddedServerVersion string = "SE"
	PhpVersionSevenPointOne            string = "7.1"
	PhpVersionSevenPointFour           string = "7.4"
	PhpVersionOff                      string = "Off"

	CurrentStackDotNet     string = "dotnet"
	CurrentStackDotNetCore string = "dotnetcore"
	CurrentStackJava       string = "java"
	CurrentStackNode       string = "node"
	CurrentStackPhp        string = "php"
	CurrentStackPython     string = "python"

	LinuxJavaServerJava   string = "JAVA"
	LinuxJavaServerTomcat string = "TOMCAT"
	LinuxJavaServerJboss  string = "JBOSSEAP"
)
View Source
const (
	PublicNetworkAccessEnabled  string = "Enabled"
	PublicNetworkAccessDisabled string = "Disabled"
)
View Source
const (
	ValidationTypeTXT   = "dns-txt-token"
	ValidationTypeCName = "cname-delegation"
)
View Source
const (
	StorageStringFmt   = "DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;EndpointSuffix=%s"
	StorageStringFmtKV = "@Microsoft.KeyVault(SecretUri=%s)"
)
View Source
const (
	ServicePlanTypeConsumption     = "consumption"
	ServicePlanTypeFlexConsumption = "flexconsumption"
	ServicePlanTypeElastic         = "elastic"
	ServicePlanTypeIsolated        = "isolated"
	ServicePlanTypeAppPlan         = "app"
)
View Source
const (
	EnvironmentsTypeAllEnvironments       string = "AllEnvironments"
	EnvironmentsTypeStagingEnvironments   string = "StagingEnvironments"
	EnvironmentsTypeSpecifiedEnvironments string = "SpecifiedEnvironments"
)

Variables

This section is empty.

Functions

func AadAuthSettingsSchema

func AadAuthSettingsSchema() *pluginsdk.Schema

func AadAuthSettingsSchemaComputed

func AadAuthSettingsSchemaComputed() *pluginsdk.Schema

func AadAuthV2SettingsSchema

func AadAuthV2SettingsSchema() *pluginsdk.Schema

func AadAuthV2SettingsSchemaComputed

func AadAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func AllKnownServicePlanSkus

func AllKnownServicePlanSkus() []string

AllKnownServicePlanSkus returns a list of all supported known SKU names

func AppleAuthV2SettingsSchema

func AppleAuthV2SettingsSchema() *pluginsdk.Schema

func AppleAuthV2SettingsSchemaComputed

func AppleAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func AuthSettingsSchema

func AuthSettingsSchema() *pluginsdk.Schema

func AuthSettingsSchemaComputed

func AuthSettingsSchemaComputed() *pluginsdk.Schema

func AuthV2SettingsComputedSchema

func AuthV2SettingsComputedSchema() *pluginsdk.Schema

func AuthV2SettingsSchema

func AuthV2SettingsSchema() *pluginsdk.Schema

func BackupSchema

func BackupSchema() *pluginsdk.Schema

func BackupSchemaComputed

func BackupSchemaComputed() *pluginsdk.Schema

func BasicAuthSchema

func BasicAuthSchema() *pluginsdk.Schema

func BasicAuthSchemaComputed

func BasicAuthSchemaComputed() *pluginsdk.Schema

func ConnectionStringSchema

func ConnectionStringSchema() *pluginsdk.Schema

func ConnectionStringSchemaComputed

func ConnectionStringSchemaComputed() *pluginsdk.Schema

func CorsSettingsSchema

func CorsSettingsSchema() *pluginsdk.Schema

func CorsSettingsSchemaComputed

func CorsSettingsSchemaComputed() *pluginsdk.Schema

func CustomOIDCAuthV2SettingsSchema

func CustomOIDCAuthV2SettingsSchema() *pluginsdk.Schema

func CustomOIDCAuthV2SettingsSchemaComputed

func CustomOIDCAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func DisabledLogsConfig

func DisabledLogsConfig() *webapps.SiteLogsConfig

func EncodeDockerFxString

func EncodeDockerFxString(image string, registryUrl string) string

func EncodeDockerFxStringWindows

func EncodeDockerFxStringWindows(image string, registryUrl string) string

func EncodeFunctionAppLinuxFxVersion

func EncodeFunctionAppLinuxFxVersion(input []ApplicationStackLinuxFunctionApp) *string

func ExpandAppSettingsForCreate

func ExpandAppSettingsForCreate(settings map[string]string) *[]webapps.NameValuePair

func ExpandAppSettingsForUpdate

func ExpandAppSettingsForUpdate(siteConfigSettings *[]webapps.NameValuePair) *webapps.StringDictionary

func ExpandAuthSettings

func ExpandAuthSettings(auth []AuthSettings) *webapps.SiteAuthSettings

func ExpandAuthV2Settings

func ExpandAuthV2Settings(input []AuthV2Settings) *webapps.SiteAuthSettingsV2

func ExpandBackupConfig

func ExpandBackupConfig(backupConfigs []Backup) (*webapps.BackupRequest, error)

func ExpandConnectionStrings

func ExpandConnectionStrings(connectionStringsConfig []ConnectionString) *webapps.ConnectionStringDictionary

func ExpandCorsSettings

func ExpandCorsSettings(input []CorsSetting) *webapps.CorsSettings

func ExpandFunctionAppAppServiceLogs

func ExpandFunctionAppAppServiceLogs(input []FunctionAppAppServiceLogs) webapps.SiteLogsConfig

func ExpandIpRestrictions

func ExpandIpRestrictions(restrictions []IpRestriction) (*[]webapps.IPSecurityRestriction, error)

func ExpandLogsConfig

func ExpandLogsConfig(config []LogsConfig) *webapps.SiteLogsConfig

func ExpandSiteConfigFunctionFlexConsumptionApp

func ExpandSiteConfigFunctionFlexConsumptionApp(siteConfigFlexConsumption []SiteConfigFunctionAppFlexConsumption, existing *webapps.SiteConfig, metadata sdk.ResourceMetaData, storageUsesMSI bool, storageStringFlex string, storageConnStringForFCApp string) (*webapps.SiteConfig, error)

func ExpandSiteConfigLinuxFunctionApp

func ExpandSiteConfigLinuxFunctionApp(siteConfig []SiteConfigLinuxFunctionApp, existing *webapps.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*webapps.SiteConfig, error)

func ExpandSiteConfigLinuxFunctionAppSlot

func ExpandSiteConfigLinuxFunctionAppSlot(siteConfig []SiteConfigLinuxFunctionAppSlot, existing *webapps.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*webapps.SiteConfig, error)

func ExpandSiteConfigWindowsFunctionApp

func ExpandSiteConfigWindowsFunctionApp(siteConfig []SiteConfigWindowsFunctionApp, existing *webapps.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*webapps.SiteConfig, error)

func ExpandSiteConfigWindowsFunctionAppSlot

func ExpandSiteConfigWindowsFunctionAppSlot(siteConfig []SiteConfigWindowsFunctionAppSlot, existing *webapps.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*webapps.SiteConfig, error)

func ExpandStickySettings

func ExpandStickySettings(input []StickySettings) *webapps.SlotConfigNames

func ExpandStorageConfig

func ExpandStorageConfig(storageConfigs []StorageAccount) *webapps.AzureStoragePropertyDictionaryResource

func FacebookAuthSettingsSchema

func FacebookAuthSettingsSchema() *pluginsdk.Schema

func FacebookAuthSettingsSchemaComputed

func FacebookAuthSettingsSchemaComputed() *pluginsdk.Schema

func FacebookAuthV2SettingsSchema

func FacebookAuthV2SettingsSchema() *pluginsdk.Schema

func FacebookAuthV2SettingsSchemaComputed

func FacebookAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func FilterManagedAppSettings

func FilterManagedAppSettings(input map[string]string) map[string]string

FilterManagedAppSettings removes app_settings values from the state that are controlled directly be schema properties.

func FilterManagedAppSettingsDeprecated

func FilterManagedAppSettingsDeprecated(input map[string]string) map[string]string

FilterManagedAppSettingsDeprecated removes app_settings values from the state that are controlled directly be schema properties when the deprecated docker settings are used. This function should be removed in 4.0

func FlattenWebStringDictionary

func FlattenWebStringDictionary(input *webapps.StringDictionary) map[string]string

func FunctionAppAppServiceLogsSchema

func FunctionAppAppServiceLogsSchema() *pluginsdk.Schema

func FunctionAppAppServiceLogsSchemaComputed

func FunctionAppAppServiceLogsSchemaComputed() *pluginsdk.Schema

func FxStringHasPrefix

func FxStringHasPrefix(input string, prefix FxStringPrefix) bool

func GetCredentialsAndPublish

func GetCredentialsAndPublish(ctx context.Context, client *webapps.WebAppsClient, appID commonids.AppServiceId, sourceFile string) error

func GetCredentialsAndPublishSlot

func GetCredentialsAndPublishSlot(ctx context.Context, client *webapps.WebAppsClient, id webapps.SlotId, sourceFile string) error

func GetSendKeyValue

func GetSendKeyValue(ctx context.Context, metadata sdk.ResourceMetaData, id hybridconnections.HybridConnectionId, sendKeyName string) (*string, error)

func GetSitePublishingCredentials

func GetSitePublishingCredentials(ctx context.Context, client *webapps.WebAppsClient, appID commonids.AppServiceId) (user *string, passwd *string, err error)

func GetSitePublishingCredentialsSlot

func GetSitePublishingCredentialsSlot(ctx context.Context, client *webapps.WebAppsClient, id webapps.SlotId) (user *string, passwd *string, err error)

func GithubAuthSettingsSchema

func GithubAuthSettingsSchema() *pluginsdk.Schema

func GithubAuthSettingsSchemaComputed

func GithubAuthSettingsSchemaComputed() *pluginsdk.Schema

func GithubAuthV2SettingsSchema

func GithubAuthV2SettingsSchema() *pluginsdk.Schema

func GithubAuthV2SettingsSchemaComputed

func GithubAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func GoogleAuthSettingsSchema

func GoogleAuthSettingsSchema() *pluginsdk.Schema

func GoogleAuthSettingsSchemaComputed

func GoogleAuthSettingsSchemaComputed() *pluginsdk.Schema

func GoogleAuthV2SettingsSchema

func GoogleAuthV2SettingsSchema() *pluginsdk.Schema

func GoogleAuthV2SettingsSchemaComputed

func GoogleAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func HandlerMappingSchema

func HandlerMappingSchema() *pluginsdk.Schema

func HandlerMappingSchemaComputed

func HandlerMappingSchemaComputed() *pluginsdk.Schema

func IpRestrictionHeadersSchema

func IpRestrictionHeadersSchema() *pluginsdk.Schema

func IpRestrictionHeadersSchemaComputed

func IpRestrictionHeadersSchemaComputed() *pluginsdk.Schema

func IpRestrictionSchema

func IpRestrictionSchema() *pluginsdk.Schema

func IpRestrictionSchemaComputed

func IpRestrictionSchemaComputed() *pluginsdk.Schema

func IsFreeOrSharedServicePlan

func IsFreeOrSharedServicePlan(inputSKU string) bool

func JavaLinuxFxStringBuilder

func JavaLinuxFxStringBuilder(javaMajorVersion, javaServer, javaServerVersion string) (*string, error)

func ListPublishingCredentials

func ListPublishingCredentials(ctx context.Context, client *webapps.WebAppsClient, id commonids.AppServiceId) (*webapps.User, error)

func ListPublishingCredentialsSlot

func ListPublishingCredentialsSlot(ctx context.Context, client *webapps.WebAppsClient, id webapps.SlotId) (*webapps.User, error)

func LogsConfigSchema

func LogsConfigSchema() *pluginsdk.Schema

func LogsConfigSchemaComputed

func LogsConfigSchemaComputed() *pluginsdk.Schema

func MergeUserAppSettings

func MergeUserAppSettings(systemSettings *[]webapps.NameValuePair, userSettings map[string]string) *[]webapps.NameValuePair

func MicrosoftAuthSettingsSchema

func MicrosoftAuthSettingsSchema() *pluginsdk.Schema

func MicrosoftAuthSettingsSchemaComputed

func MicrosoftAuthSettingsSchemaComputed() *pluginsdk.Schema

func MicrosoftAuthV2SettingsSchema

func MicrosoftAuthV2SettingsSchema() *pluginsdk.Schema

func MicrosoftAuthV2SettingsSchemaComputed

func MicrosoftAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func ParseContentSettings

func ParseContentSettings(input *webapps.StringDictionary, existing map[string]string) map[string]string

func ParseWebJobsStorageString

func ParseWebJobsStorageString(input string) (name, key string)

func PlanIsAppPlan

func PlanIsAppPlan(input *string) bool

func PlanIsConsumption

func PlanIsConsumption(input *string) bool

func PlanIsElastic

func PlanIsElastic(input *string) bool

func PlanIsFlexConsumption

func PlanIsFlexConsumption(input *string) bool

func PlanIsIsolated

func PlanIsIsolated(input *string) bool

func PlanIsPremium

func PlanIsPremium(input string) bool

func PlanTypeFromSku

func PlanTypeFromSku(input string) string

func PublishZipDeployLocalFileKuduPush

func PublishZipDeployLocalFileKuduPush(ctx context.Context, host string, user string, passwd string, userAgent string, zipSource string) error

func ServicePlanInfoForApp

func ServicePlanInfoForApp(ctx context.Context, metadata sdk.ResourceMetaData, id commonids.AppServiceId) (osType *string, planSku *string, err error)

ServicePlanInfoForApp returns the OS type and Service Plan SKU for a given App Service Resource

func ServicePlanInfoForAppSlot

func ServicePlanInfoForAppSlot(ctx context.Context, metadata sdk.ResourceMetaData, id webapps.SlotId) (osType *string, planSku *string, err error)

ServicePlanInfoForApp returns the OS type and Service Plan SKU for a given App Service Resource

func SiteConfigSchemaFunctionAppFlexConsumption

func SiteConfigSchemaFunctionAppFlexConsumption() *pluginsdk.Schema

func SiteConfigSchemaLinux

func SiteConfigSchemaLinux() *pluginsdk.Schema

func SiteConfigSchemaLinuxComputed

func SiteConfigSchemaLinuxComputed() *pluginsdk.Schema

func SiteConfigSchemaLinuxFunctionApp

func SiteConfigSchemaLinuxFunctionApp() *pluginsdk.Schema

func SiteConfigSchemaLinuxFunctionAppComputed

func SiteConfigSchemaLinuxFunctionAppComputed() *pluginsdk.Schema

func SiteConfigSchemaLinuxFunctionAppSlot

func SiteConfigSchemaLinuxFunctionAppSlot() *pluginsdk.Schema

func SiteConfigSchemaLinuxWebAppSlot

func SiteConfigSchemaLinuxWebAppSlot() *pluginsdk.Schema

func SiteConfigSchemaWindows

func SiteConfigSchemaWindows() *pluginsdk.Schema

func SiteConfigSchemaWindowsComputed

func SiteConfigSchemaWindowsComputed() *pluginsdk.Schema

func SiteConfigSchemaWindowsFunctionApp

func SiteConfigSchemaWindowsFunctionApp() *pluginsdk.Schema

func SiteConfigSchemaWindowsFunctionAppComputed

func SiteConfigSchemaWindowsFunctionAppComputed() *pluginsdk.Schema

func SiteConfigSchemaWindowsFunctionAppSlot

func SiteConfigSchemaWindowsFunctionAppSlot() *pluginsdk.Schema

func SiteConfigSchemaWindowsWebAppSlot

func SiteConfigSchemaWindowsWebAppSlot() *pluginsdk.Schema

func SiteCredentialSchema

func SiteCredentialSchema() *pluginsdk.Schema

func StaticWebAppAuthV2SettingsSchema

func StaticWebAppAuthV2SettingsSchema() *pluginsdk.Schema

func StaticWebAppAuthV2SettingsSchemaComputed

func StaticWebAppAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func StickySettingsComputedSchema

func StickySettingsComputedSchema() *pluginsdk.Schema

func StickySettingsSchema

func StickySettingsSchema() *pluginsdk.Schema

func StorageAccountSchema

func StorageAccountSchema() *pluginsdk.Schema

func StorageAccountSchemaComputed

func StorageAccountSchemaComputed() *pluginsdk.Schema

func StorageAccountSchemaWindows

func StorageAccountSchemaWindows() *pluginsdk.Schema

func TwitterAuthSettingsSchema

func TwitterAuthSettingsSchema() *pluginsdk.Schema

func TwitterAuthSettingsSchemaComputed

func TwitterAuthSettingsSchemaComputed() *pluginsdk.Schema

func TwitterAuthV2SettingsSchema

func TwitterAuthV2SettingsSchema() *pluginsdk.Schema

func TwitterAuthV2SettingsSchemaComputed

func TwitterAuthV2SettingsSchemaComputed() *pluginsdk.Schema

func UnmarshalCredentialsResponse

func UnmarshalCredentialsResponse(r io.Reader, user *webapps.User) error

Types

type AadAuthSettings

type AadAuthSettings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecret            string   `tfschema:"client_secret"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	AllowedAudiences        []string `tfschema:"allowed_audiences"`
}

type AadAuthV2Settings

type AadAuthV2Settings struct {
	TenantAuthURI                     string            `tfschema:"tenant_auth_endpoint"` // Maps to OpenIDIssuer, takes the form `https://login.microsoftonline.com/v2.0/{tenant-guid}/`
	ClientId                          string            `tfschema:"client_id"`
	ClientSecretSettingName           string            `tfschema:"client_secret_setting_name"`
	ClientSecretCertificateThumbprint string            `tfschema:"client_secret_certificate_thumbprint"`
	LoginParameters                   map[string]string `tfschema:"login_parameters"`
	DisableWWWAuth                    bool              `tfschema:"www_authentication_disabled"`
	JWTAllowedGroups                  []string          `tfschema:"jwt_allowed_groups"`
	JWTAllowedClientApps              []string          `tfschema:"jwt_allowed_client_applications"`
	AllowedApplications               []string          `tfschema:"allowed_applications"`
	AllowedAudiences                  []string          `tfschema:"allowed_audiences"`
	AllowedIdentities                 []string          `tfschema:"allowed_identities"`
	AllowedGroups                     []string          `tfschema:"allowed_groups"`
}

type AppleAuthV2Settings

type AppleAuthV2Settings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	LoginScopes             []string `tfschema:"login_scopes"`
}

type ApplicationLog

type ApplicationLog struct {
	FileSystemLevel  string             `tfschema:"file_system_level"`
	AzureBlobStorage []AzureBlobStorage `tfschema:"azure_blob_storage"`
}

type ApplicationStackDocker

type ApplicationStackDocker struct {
	RegistryURL      string `tfschema:"registry_url"`
	RegistryUsername string `tfschema:"registry_username"`
	RegistryPassword string `tfschema:"registry_password"`
	ImageName        string `tfschema:"image_name"`
	ImageTag         string `tfschema:"image_tag"`
}

func DecodeFunctionAppDockerFxString

func DecodeFunctionAppDockerFxString(input string, partial ApplicationStackDocker) ([]ApplicationStackDocker, error)

type ApplicationStackLinux

type ApplicationStackLinux struct {
	NetFrameworkVersion string `tfschema:"dotnet_version"`
	GoVersion           string `tfschema:"go_version"`
	PhpVersion          string `tfschema:"php_version"`
	PythonVersion       string `tfschema:"python_version"`
	NodeVersion         string `tfschema:"node_version"`
	JavaVersion         string `tfschema:"java_version"`
	JavaServer          string `tfschema:"java_server"`
	JavaServerVersion   string `tfschema:"java_server_version"`
	DockerImageTag      string `tfschema:"docker_image_tag,removedInNextMajorVersion"`
	DockerImage         string `tfschema:"docker_image,removedInNextMajorVersion"`
	RubyVersion         string `tfschema:"ruby_version"`

	DockerRegistryUrl      string `tfschema:"docker_registry_url"`
	DockerRegistryUsername string `tfschema:"docker_registry_username"`
	DockerRegistryPassword string `tfschema:"docker_registry_password"`
	DockerImageName        string `tfschema:"docker_image_name"`
}

type ApplicationStackLinuxFunctionApp

type ApplicationStackLinuxFunctionApp struct {
	// Note - Function Apps differ to Web Apps here. They do not use the named properties in the SiteConfig block and exclusively use the app_settings map
	DotNetVersion         string                   `tfschema:"dotnet_version"`              // Supported values `3.1`, `6.0`, `7.0`, `8.0` and `9.0`.
	DotNetIsolated        bool                     `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise
	NodeVersion           string                   `tfschema:"node_version"`                // Supported values `12LTS`, `14LTS`, `16LTS`, `18LTS, `20LTS“
	PythonVersion         string                   `tfschema:"python_version"`              // Supported values `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, `3.7`
	PowerShellCoreVersion string                   `tfschema:"powershell_core_version"`     // Supported values are `7.0`, `7.2`
	JavaVersion           string                   `tfschema:"java_version"`                // Supported values `8`, `11`, `17`, `21`
	CustomHandler         bool                     `tfschema:"use_custom_runtime"`          // Supported values `true`
	Docker                []ApplicationStackDocker `tfschema:"docker"`                      // Needs ElasticPremium or Basic (B1) Standard (S 1-3) or Premium(PxV2 or PxV3) LINUX Service Plan
}

func DecodeFunctionAppLinuxFxVersion

func DecodeFunctionAppLinuxFxVersion(input string) ([]ApplicationStackLinuxFunctionApp, error)

type ApplicationStackWindows

type ApplicationStackWindows struct {
	CurrentStack            string `tfschema:"current_stack"`
	DockerContainerName     string `tfschema:"docker_container_name,removedInNextMajorVersion"`
	DockerContainerRegistry string `tfschema:"docker_container_registry,removedInNextMajorVersion"`
	DockerContainerTag      string `tfschema:"docker_container_tag,removedInNextMajorVersion"`
	JavaContainer           string `tfschema:"java_container"`
	JavaContainerVersion    string `tfschema:"java_container_version"`
	JavaEmbeddedServer      bool   `tfschema:"java_embedded_server_enabled"`
	JavaVersion             string `tfschema:"java_version"`
	NetFrameworkVersion     string `tfschema:"dotnet_version"`
	NetCoreVersion          string `tfschema:"dotnet_core_version"`
	NodeVersion             string `tfschema:"node_version"`
	PhpVersion              string `tfschema:"php_version"`
	PythonVersion           string `tfschema:"python_version,removedInNextMajorVersion"`
	Python                  bool   `tfschema:"python"`
	TomcatVersion           string `tfschema:"tomcat_version"`

	DockerRegistryUrl      string `tfschema:"docker_registry_url"`
	DockerRegistryUsername string `tfschema:"docker_registry_username"`
	DockerRegistryPassword string `tfschema:"docker_registry_password"`
	DockerImageName        string `tfschema:"docker_image_name"`
}

type ApplicationStackWindowsFunctionApp

type ApplicationStackWindowsFunctionApp struct {
	DotNetVersion         string `tfschema:"dotnet_version"`              // Supported values `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`
	DotNetIsolated        bool   `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise
	NodeVersion           string `tfschema:"node_version"`                // Supported values `12LTS`, `14LTS`, `16LTS`, `18LTS, `20LTS`
	JavaVersion           string `tfschema:"java_version"`                // Supported values `8`, `11`, `17`, `21`
	PowerShellCoreVersion string `tfschema:"powershell_core_version"`     // Supported values are `7.0`, `7.2`
	CustomHandler         bool   `tfschema:"use_custom_runtime"`          // Supported values `true`
}

type AuthSettings

type AuthSettings struct {
	Enabled                     bool                    `tfschema:"enabled"`
	AdditionalLoginParameters   map[string]string       `tfschema:"additional_login_parameters"`
	AllowedExternalRedirectURLs []string                `tfschema:"allowed_external_redirect_urls"`
	DefaultProvider             string                  `tfschema:"default_provider"`
	Issuer                      string                  `tfschema:"issuer"`
	RuntimeVersion              string                  `tfschema:"runtime_version"`
	TokenRefreshExtensionHours  float64                 `tfschema:"token_refresh_extension_hours"`
	TokenStoreEnabled           bool                    `tfschema:"token_store_enabled"`
	UnauthenticatedClientAction string                  `tfschema:"unauthenticated_client_action"`
	AzureActiveDirectoryAuth    []AadAuthSettings       `tfschema:"active_directory"`
	FacebookAuth                []FacebookAuthSettings  `tfschema:"facebook"`
	GithubAuth                  []GithubAuthSettings    `tfschema:"github"`
	GoogleAuth                  []GoogleAuthSettings    `tfschema:"google"`
	MicrosoftAuth               []MicrosoftAuthSettings `tfschema:"microsoft"`
	TwitterAuth                 []TwitterAuthSettings   `tfschema:"twitter"`
}

func FlattenAuthSettings

func FlattenAuthSettings(auth *webapps.SiteAuthSettings) []AuthSettings

type AuthV2Login

type AuthV2Login struct {
	LogoutEndpoint                string   `tfschema:"logout_endpoint"`
	TokenStoreEnabled             bool     `tfschema:"token_store_enabled"`
	TokenRefreshExtension         float64  `tfschema:"token_refresh_extension_time"`
	TokenFilesystemPath           string   `tfschema:"token_store_path"`
	TokenBlobStorageSAS           string   `tfschema:"token_store_sas_setting_name"`
	PreserveURLFragmentsForLogins bool     `tfschema:"preserve_url_fragments_for_logins"`
	AllowedExternalRedirectURLs   []string `tfschema:"allowed_external_redirect_urls"`
	CookieExpirationConvention    string   `tfschema:"cookie_expiration_convention"`
	CookieExpirationTime          string   `tfschema:"cookie_expiration_time"`
	ValidateNonce                 bool     `tfschema:"validate_nonce"`
	NonceExpirationTime           string   `tfschema:"nonce_expiration_time"`
}

type AuthV2Settings

type AuthV2Settings struct {
	// Platform
	AuthEnabled    bool   `tfschema:"auth_enabled"`
	RuntimeVersion string `tfschema:"runtime_version"`
	ConfigFilePath string `tfschema:"config_file_path"`
	// Global
	RequireAuth           bool     `tfschema:"require_authentication"`
	UnauthenticatedAction string   `tfschema:"unauthenticated_action"`
	DefaultAuthProvider   string   `tfschema:"default_provider"`
	ExcludedPaths         []string `tfschema:"excluded_paths"`
	// IdentityProviders
	AppleAuth                []AppleAuthV2Settings        `tfschema:"apple_v2"`
	AzureActiveDirectoryAuth []AadAuthV2Settings          `tfschema:"active_directory_v2"`
	AzureStaticWebAuth       []StaticWebAppAuthV2Settings `tfschema:"azure_static_web_app_v2"`
	CustomOIDCAuth           []CustomOIDCAuthV2Settings   `tfschema:"custom_oidc_v2"`
	FacebookAuth             []FacebookAuthV2Settings     `tfschema:"facebook_v2"`
	GithubAuth               []GithubAuthV2Settings       `tfschema:"github_v2"`
	GoogleAuth               []GoogleAuthV2Settings       `tfschema:"google_v2"`
	MicrosoftAuth            []MicrosoftAuthV2Settings    `tfschema:"microsoft_v2"`
	TwitterAuth              []TwitterAuthV2Settings      `tfschema:"twitter_v2"`
	// Login
	Login []AuthV2Login `tfschema:"login"`
	// HTTPSettings
	RequireHTTPS                       bool   `tfschema:"require_https"`
	HttpRoutesAPIPrefix                string `tfschema:"http_route_api_prefix"`
	ForwardProxyConvention             string `tfschema:"forward_proxy_convention"`
	ForwardProxyCustomHostHeaderName   string `tfschema:"forward_proxy_custom_host_header_name"`
	ForwardProxyCustomSchemeHeaderName string `tfschema:"forward_proxy_custom_scheme_header_name"`
}

func FlattenAuthV2Settings

func FlattenAuthV2Settings(input webapps.SiteAuthSettingsV2) []AuthV2Settings

type AutoHealActionLinux

type AutoHealActionLinux struct {
	ActionType         string `tfschema:"action_type"`                    // Enum - Only `Recycle` allowed
	MinimumProcessTime string `tfschema:"minimum_process_execution_time"` // Minimum uptime for process before action will trigger
}

type AutoHealActionWindows

type AutoHealActionWindows struct {
	ActionType         string                 `tfschema:"action_type"`                    // Enum
	CustomAction       []AutoHealCustomAction `tfschema:"custom_action"`                  // Max: 1, needs `action_type` to be "Custom"
	MinimumProcessTime string                 `tfschema:"minimum_process_execution_time"` // Minimum uptime for process before action will trigger
}

type AutoHealCustomAction

type AutoHealCustomAction struct {
	Executable string `tfschema:"executable"`
	Parameters string `tfschema:"parameters"`
}

type AutoHealRequestTrigger

type AutoHealRequestTrigger struct {
	Count    int64  `tfschema:"count"`
	Interval string `tfschema:"interval"`
}

type AutoHealSettingLinux

type AutoHealSettingLinux struct {
	Triggers []AutoHealTriggerLinux `tfschema:"trigger"`
	Actions  []AutoHealActionLinux  `tfschema:"action"`
}

type AutoHealSettingWindows

type AutoHealSettingWindows struct {
	Triggers []AutoHealTriggerWindows `tfschema:"trigger"`
	Actions  []AutoHealActionWindows  `tfschema:"action"`
}

type AutoHealSlowRequest

type AutoHealSlowRequest struct {
	TimeTaken string `tfschema:"time_taken"`
	Interval  string `tfschema:"interval"`
	Count     int64  `tfschema:"count"`
	Path      string `tfschema:"path,removedInNextMajorVersion"`
}

type AutoHealSlowRequestWithPath

type AutoHealSlowRequestWithPath struct {
	TimeTaken string `tfschema:"time_taken"`
	Interval  string `tfschema:"interval"`
	Count     int64  `tfschema:"count"`
	Path      string `tfschema:"path"`
}

type AutoHealStatusCodeTrigger

type AutoHealStatusCodeTrigger struct {
	StatusCodeRange string `tfschema:"status_code_range"` // Conflicts with `StatusCode`, `Win32Code`, and `SubStatus` when not a single value...
	SubStatus       int64  `tfschema:"sub_status"`
	Win32Status     int64  `tfschema:"win32_status_code"`
	Path            string `tfschema:"path"`
	Count           int64  `tfschema:"count"`
	Interval        string `tfschema:"interval"` // Format - hh:mm:ss
}

type AutoHealTriggerLinux

type AutoHealTriggerLinux struct {
	Requests             []AutoHealRequestTrigger      `tfschema:"requests"`
	StatusCodes          []AutoHealStatusCodeTrigger   `tfschema:"status_code"` // 0 or more, ranges split by `-`, ranges cannot use sub-status or win32 code
	SlowRequests         []AutoHealSlowRequest         `tfschema:"slow_request"`
	SlowRequestsWithPath []AutoHealSlowRequestWithPath `tfschema:"slow_request_with_path"`
}

type AutoHealTriggerWindows

type AutoHealTriggerWindows struct {
	Requests             []AutoHealRequestTrigger      `tfschema:"requests"`
	PrivateMemoryKB      int64                         `tfschema:"private_memory_kb"` // Private should be > 102400 KB (100 MB) to 13631488 KB (13 GB), defaults to 0 however and is always present.
	StatusCodes          []AutoHealStatusCodeTrigger   `tfschema:"status_code"`       // 0 or more, ranges split by `-`, ranges cannot use sub-status or win32 code
	SlowRequests         []AutoHealSlowRequest         `tfschema:"slow_request"`
	SlowRequestsWithPath []AutoHealSlowRequestWithPath `tfschema:"slow_request_with_path"`
}

type AzureBlobStorage

type AzureBlobStorage struct {
	Level           string `tfschema:"level"`
	SasURL          string `tfschema:"sas_url"`
	RetentionInDays int64  `tfschema:"retention_in_days"`
}

type AzureBlobStorageHttp

type AzureBlobStorageHttp struct {
	SasURL          string `tfschema:"sas_url"`
	RetentionInDays int64  `tfschema:"retention_in_days"`
}

type Backup

type Backup struct {
	Name              string           `tfschema:"name"`
	StorageAccountURL string           `tfschema:"storage_account_url"`
	Enabled           bool             `tfschema:"enabled"`
	Schedule          []BackupSchedule `tfschema:"schedule"`
}

func FlattenBackupConfig

func FlattenBackupConfig(backupRequest *webapps.BackupRequest) []Backup

type BackupSchedule

type BackupSchedule struct {
	FrequencyInterval    int64  `tfschema:"frequency_interval"`
	FrequencyUnit        string `tfschema:"frequency_unit"`
	KeepAtLeastOneBackup bool   `tfschema:"keep_at_least_one_backup"`
	RetentionPeriodDays  int64  `tfschema:"retention_period_days"`
	StartTime            string `tfschema:"start_time"`
	LastExecutionTime    string `tfschema:"last_execution_time"`
}

type BasicAuth

type BasicAuth struct {
	Password     string `tfschema:"password"`
	Environments string `tfschema:"environments"`
}

type BasicAuthComputed

type BasicAuthComputed struct {
	Environments string `tfschema:"environments"`
}

type ConnectionString

type ConnectionString struct {
	Name  string `tfschema:"name"`
	Type  string `tfschema:"type"`
	Value string `tfschema:"value"`
}

func FlattenConnectionStrings

func FlattenConnectionStrings(appConnectionStrings *webapps.ConnectionStringDictionary) []ConnectionString

type CorsSetting

type CorsSetting struct {
	AllowedOrigins     []string `tfschema:"allowed_origins"`
	SupportCredentials bool     `tfschema:"support_credentials"`
}

func FlattenCorsSettings

func FlattenCorsSettings(input *webapps.CorsSettings) []CorsSetting

type CustomOIDCAuthV2Settings

type CustomOIDCAuthV2Settings struct {
	Name                        string   `tfschema:"name"`
	ClientId                    string   `tfschema:"client_id"`
	ClientCredentialMethod      string   `tfschema:"client_credential_method"`
	ClientSecretSettingName     string   `tfschema:"client_secret_setting_name"`
	AuthorizationEndpoint       string   `tfschema:"authorisation_endpoint"`
	TokenEndpoint               string   `tfschema:"token_endpoint"`
	IssuerEndpoint              string   `tfschema:"issuer_endpoint"`
	CertificationURI            string   `tfschema:"certification_uri"`
	OpenIDConfigurationEndpoint string   `tfschema:"openid_configuration_endpoint"`
	NameClaimType               string   `tfschema:"name_claim_type"`
	Scopes                      []string `tfschema:"scopes"`
}

type FacebookAuthSettings

type FacebookAuthSettings struct {
	AppId                string   `tfschema:"app_id"`
	AppSecret            string   `tfschema:"app_secret"`
	AppSecretSettingName string   `tfschema:"app_secret_setting_name"`
	OauthScopes          []string `tfschema:"oauth_scopes"`
}

type FacebookAuthV2Settings

type FacebookAuthV2Settings struct {
	AppId                string   `tfschema:"app_id"`
	AppSecretSettingName string   `tfschema:"app_secret_setting_name"`
	LoginScopes          []string `tfschema:"login_scopes"`
	GraphAPIVersion      string   `tfschema:"graph_api_version"`
}

type FunctionAppAppServiceLogs

type FunctionAppAppServiceLogs struct {
	DiskQuotaMB         int64 `tfschema:"disk_quota_mb"`
	RetentionPeriodDays int64 `tfschema:"retention_period_days"`
}

func FlattenFunctionAppAppServiceLogs

func FlattenFunctionAppAppServiceLogs(input *webapps.SiteLogsConfig) []FunctionAppAppServiceLogs

type FxStringPrefix

type FxStringPrefix string
const (
	FxStringPrefixDocker         FxStringPrefix = "DOCKER"
	FxStringPrefixDotNet         FxStringPrefix = "DOTNET"
	FxStringPrefixDotNetCore     FxStringPrefix = "DOTNETCORE"
	FxStringPrefixDotNetIsolated FxStringPrefix = "DOTNET-ISOLATED"
	FxStringPrefixGo             FxStringPrefix = "GO"
	FxStringPrefixJava           FxStringPrefix = "JAVA"
	FxStringPrefixJBoss          FxStringPrefix = "JBOSSEAP"
	FxStringPrefixNode           FxStringPrefix = "NODE"
	FxStringPrefixPhp            FxStringPrefix = "PHP"
	FxStringPrefixPowerShell     FxStringPrefix = "POWERSHELL"
	FxStringPrefixPython         FxStringPrefix = "PYTHON"
	FxStringPrefixRuby           FxStringPrefix = "RUBY"
	FxStringPrefixTomcat         FxStringPrefix = "TOMCAT"
)

type GithubAuthSettings

type GithubAuthSettings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecret            string   `tfschema:"client_secret"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	OAuthScopes             []string `tfschema:"oauth_scopes"`
}

type GithubAuthV2Settings

type GithubAuthV2Settings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	LoginScopes             []string `tfschema:"login_scopes"`
}

type GoogleAuthSettings

type GoogleAuthSettings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecret            string   `tfschema:"client_secret"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	OauthScopes             []string `tfschema:"oauth_scopes"`
}

type GoogleAuthV2Settings

type GoogleAuthV2Settings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	AllowedAudiences        []string `tfschema:"allowed_audiences"`
	LoginScopes             []string `tfschema:"login_scopes"`
}

type HandlerMappings

type HandlerMappings struct {
	Extension           string `tfschema:"extension"`
	ScriptProcessorPath string `tfschema:"script_processor_path"`
	Arguments           string `tfschema:"arguments"`
}

type HttpLog

type HttpLog struct {
	FileSystems      []LogsFileSystem       `tfschema:"file_system"`
	AzureBlobStorage []AzureBlobStorageHttp `tfschema:"azure_blob_storage"`
}

type IpRestriction

type IpRestriction struct {
	IpAddress    string                 `tfschema:"ip_address"`
	ServiceTag   string                 `tfschema:"service_tag"`
	VnetSubnetId string                 `tfschema:"virtual_network_subnet_id"`
	Name         string                 `tfschema:"name"`
	Priority     int64                  `tfschema:"priority"`
	Action       string                 `tfschema:"action"`
	Headers      []IpRestrictionHeaders `tfschema:"headers"`
	Description  string                 `tfschema:"description"`
}

func FlattenIpRestrictions

func FlattenIpRestrictions(ipRestrictionsList *[]webapps.IPSecurityRestriction) []IpRestriction

func (IpRestriction) Validate

func (v IpRestriction) Validate() error

type IpRestrictionHeaders

type IpRestrictionHeaders struct {
	XForwardedHost []string `tfschema:"x_forwarded_host"`
	XForwardedFor  []string `tfschema:"x_forwarded_for"`
	XAzureFDID     []string `tfschema:"x_azure_fdid"`
	XFDHealthProbe []string `tfschema:"x_fd_health_probe"`
}

type LogsConfig

type LogsConfig struct {
	ApplicationLogs       []ApplicationLog `tfschema:"application_logs"`
	HttpLogs              []HttpLog        `tfschema:"http_logs"`
	DetailedErrorMessages bool             `tfschema:"detailed_error_messages"`
	FailedRequestTracing  bool             `tfschema:"failed_request_tracing"`
}

func FlattenLogsConfig

func FlattenLogsConfig(logsConfig *webapps.SiteLogsConfig) []LogsConfig

type LogsFileSystem

type LogsFileSystem struct {
	RetentionMB   int64 `tfschema:"retention_in_mb"`
	RetentionDays int64 `tfschema:"retention_in_days"`
}

type MicrosoftAuthSettings

type MicrosoftAuthSettings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecret            string   `tfschema:"client_secret"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	OauthScopes             []string `tfschema:"oauth_scopes"`
}

type MicrosoftAuthV2Settings

type MicrosoftAuthV2Settings struct {
	ClientId                string   `tfschema:"client_id"`
	ClientSecretSettingName string   `tfschema:"client_secret_setting_name"`
	AllowedAudiences        []string `tfschema:"allowed_audiences"`
	LoginScopes             []string `tfschema:"login_scopes"`
}

type SiteConfigFunctionAppFlexConsumption

type SiteConfigFunctionAppFlexConsumption struct {
	AppCommandLine                string                      `tfschema:"app_command_line"`
	ApiDefinition                 string                      `tfschema:"api_definition_url"`
	ApiManagementConfigId         string                      `tfschema:"api_management_api_id"`
	AppInsightsInstrumentationKey string                      `tfschema:"application_insights_key"`
	AppInsightsConnectionString   string                      `tfschema:"application_insights_connection_string"`
	AppServiceLogs                []FunctionAppAppServiceLogs `tfschema:"app_service_logs"`
	UseManagedIdentityACR         bool                        `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryMSI          string                      `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                    `tfschema:"default_documents"`
	ElasticInstanceMinimum        int64                       `tfschema:"elastic_instance_minimum"`
	Http2Enabled                  bool                        `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction             `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                      `tfschema:"ip_restriction_default_action"`
	LoadBalancing                 string                      `tfschema:"load_balancing_mode"`
	ManagedPipelineMode           string                      `tfschema:"managed_pipeline_mode"`
	RemoteDebugging               bool                        `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                      `tfschema:"remote_debugging_version"`
	RuntimeScaleMonitoring        bool                        `tfschema:"runtime_scale_monitoring_enabled"`
	ScmIpRestriction              []IpRestriction             `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                      `tfschema:"scm_ip_restriction_default_action"`
	ScmType                       string                      `tfschema:"scm_type"`
	ScmUseMainIpRestriction       bool                        `tfschema:"scm_use_main_ip_restriction"`
	Use32BitWorker                bool                        `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                        `tfschema:"websockets_enabled"`
	HealthCheckPath               string                      `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                       `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                       `tfschema:"worker_count"`
	MinTlsVersion                 string                      `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                      `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting               `tfschema:"cors"`
	DetailedErrorLogging          bool                        `tfschema:"detailed_error_logging_enabled"`
}

func FlattenSiteConfigFunctionAppFlexConsumption

func FlattenSiteConfigFunctionAppFlexConsumption(functionAppFlexConsumptionSiteConfig *webapps.SiteConfig) (*SiteConfigFunctionAppFlexConsumption, error)

type SiteConfigLinux

type SiteConfigLinux struct {
	AlwaysOn                      bool                    `tfschema:"always_on"`
	ApiManagementConfigId         string                  `tfschema:"api_management_api_id"`
	ApiDefinition                 string                  `tfschema:"api_definition_url"`
	AppCommandLine                string                  `tfschema:"app_command_line"`
	AutoHealSettings              []AutoHealSettingLinux  `tfschema:"auto_heal_setting"`
	UseManagedIdentityACR         bool                    `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryMSI          string                  `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                `tfschema:"default_documents"`
	Http2Enabled                  bool                    `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction         `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                  `tfschema:"ip_restriction_default_action"`
	ScmUseMainIpRestriction       bool                    `tfschema:"scm_use_main_ip_restriction"`
	ScmIpRestriction              []IpRestriction         `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                  `tfschema:"scm_ip_restriction_default_action"`
	LoadBalancing                 string                  `tfschema:"load_balancing_mode"`
	LocalMysql                    bool                    `tfschema:"local_mysql_enabled"`
	ManagedPipelineMode           string                  `tfschema:"managed_pipeline_mode"`
	RemoteDebugging               bool                    `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                  `tfschema:"remote_debugging_version"`
	ScmType                       string                  `tfschema:"scm_type"`
	Use32BitWorker                bool                    `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                    `tfschema:"websockets_enabled"`
	FtpsState                     string                  `tfschema:"ftps_state"`
	HealthCheckPath               string                  `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                   `tfschema:"health_check_eviction_time_in_min"`
	NumberOfWorkers               int64                   `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackLinux `tfschema:"application_stack"`
	MinTlsVersion                 string                  `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                  `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting           `tfschema:"cors"`
	DetailedErrorLogging          bool                    `tfschema:"detailed_error_logging_enabled"`
	LinuxFxVersion                string                  `tfschema:"linux_fx_version"`
	VnetRouteAllEnabled           bool                    `tfschema:"vnet_route_all_enabled"`
}

func (*SiteConfigLinux) DecodeDockerAppStack

func (s *SiteConfigLinux) DecodeDockerAppStack(input map[string]string)

func (*SiteConfigLinux) DecodeDockerDeprecatedAppStack

func (s *SiteConfigLinux) DecodeDockerDeprecatedAppStack(input map[string]string, usesDeprecated bool)

func (*SiteConfigLinux) ExpandForCreate

func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigLinux) ExpandForUpdate

func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigLinux) Flatten

func (s *SiteConfigLinux) Flatten(appSiteConfig *webapps.SiteConfig)

func (*SiteConfigLinux) SetHealthCheckEvictionTime

func (s *SiteConfigLinux) SetHealthCheckEvictionTime(input map[string]string)

type SiteConfigLinuxFunctionApp

type SiteConfigLinuxFunctionApp struct {
	AlwaysOn                      bool                               `tfschema:"always_on"`
	AppCommandLine                string                             `tfschema:"app_command_line"`
	ApiDefinition                 string                             `tfschema:"api_definition_url"`
	ApiManagementConfigId         string                             `tfschema:"api_management_api_id"`
	AppInsightsInstrumentationKey string                             `tfschema:"application_insights_key"` // App Insights Instrumentation Key
	AppInsightsConnectionString   string                             `tfschema:"application_insights_connection_string"`
	AppScaleLimit                 int64                              `tfschema:"app_scale_limit"`
	AppServiceLogs                []FunctionAppAppServiceLogs        `tfschema:"app_service_logs"`
	UseManagedIdentityACR         bool                               `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryMSI          string                             `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                           `tfschema:"default_documents"`
	ElasticInstanceMinimum        int64                              `tfschema:"elastic_instance_minimum"`
	Http2Enabled                  bool                               `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction                    `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                             `tfschema:"ip_restriction_default_action"`
	LoadBalancing                 string                             `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps?
	ManagedPipelineMode           string                             `tfschema:"managed_pipeline_mode"`
	PreWarmedInstanceCount        int64                              `tfschema:"pre_warmed_instance_count"`
	RemoteDebugging               bool                               `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                             `tfschema:"remote_debugging_version"`
	RuntimeScaleMonitoring        bool                               `tfschema:"runtime_scale_monitoring_enabled"`
	ScmIpRestriction              []IpRestriction                    `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                             `tfschema:"scm_ip_restriction_default_action"`
	ScmType                       string                             `tfschema:"scm_type"` // Computed?
	ScmUseMainIpRestriction       bool                               `tfschema:"scm_use_main_ip_restriction"`
	Use32BitWorker                bool                               `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                               `tfschema:"websockets_enabled"`
	FtpsState                     string                             `tfschema:"ftps_state"`
	HealthCheckPath               string                             `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                              `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                              `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackLinuxFunctionApp `tfschema:"application_stack"`
	MinTlsVersion                 string                             `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                             `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting                      `tfschema:"cors"`
	DetailedErrorLogging          bool                               `tfschema:"detailed_error_logging_enabled"`
	LinuxFxVersion                string                             `tfschema:"linux_fx_version"`
	VnetRouteAllEnabled           bool                               `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans
}

func FlattenSiteConfigLinuxFunctionApp

func FlattenSiteConfigLinuxFunctionApp(functionAppSiteConfig *webapps.SiteConfig) (*SiteConfigLinuxFunctionApp, error)

type SiteConfigLinuxFunctionAppSlot

type SiteConfigLinuxFunctionAppSlot struct {
	AlwaysOn                      bool                               `tfschema:"always_on"`
	AppCommandLine                string                             `tfschema:"app_command_line"`
	ApiDefinition                 string                             `tfschema:"api_definition_url"`
	ApiManagementConfigId         string                             `tfschema:"api_management_api_id"`
	AppInsightsInstrumentationKey string                             `tfschema:"application_insights_key"` // App Insights Instrumentation Key
	AppInsightsConnectionString   string                             `tfschema:"application_insights_connection_string"`
	AppScaleLimit                 int64                              `tfschema:"app_scale_limit"`
	AppServiceLogs                []FunctionAppAppServiceLogs        `tfschema:"app_service_logs"`
	AutoSwapSlotName              string                             `tfschema:"auto_swap_slot_name"`
	UseManagedIdentityACR         bool                               `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryMSI          string                             `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                           `tfschema:"default_documents"`
	ElasticInstanceMinimum        int64                              `tfschema:"elastic_instance_minimum"`
	Http2Enabled                  bool                               `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction                    `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                             `tfschema:"ip_restriction_default_action"`
	LoadBalancing                 string                             `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps?
	ManagedPipelineMode           string                             `tfschema:"managed_pipeline_mode"`
	PreWarmedInstanceCount        int64                              `tfschema:"pre_warmed_instance_count"`
	RemoteDebugging               bool                               `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                             `tfschema:"remote_debugging_version"`
	RuntimeScaleMonitoring        bool                               `tfschema:"runtime_scale_monitoring_enabled"`
	ScmIpRestriction              []IpRestriction                    `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                             `tfschema:"scm_ip_restriction_default_action"`
	ScmType                       string                             `tfschema:"scm_type"` // Computed?
	ScmUseMainIpRestriction       bool                               `tfschema:"scm_use_main_ip_restriction"`
	Use32BitWorker                bool                               `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                               `tfschema:"websockets_enabled"`
	FtpsState                     string                             `tfschema:"ftps_state"`
	HealthCheckPath               string                             `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                              `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                              `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackLinuxFunctionApp `tfschema:"application_stack"`
	MinTlsVersion                 string                             `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                             `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting                      `tfschema:"cors"`
	DetailedErrorLogging          bool                               `tfschema:"detailed_error_logging_enabled"`
	LinuxFxVersion                string                             `tfschema:"linux_fx_version"`
	VnetRouteAllEnabled           bool                               `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans
}

func FlattenSiteConfigLinuxFunctionAppSlot

func FlattenSiteConfigLinuxFunctionAppSlot(functionAppSlotSiteConfig *webapps.SiteConfig) (*SiteConfigLinuxFunctionAppSlot, error)

type SiteConfigLinuxWebAppSlot

type SiteConfigLinuxWebAppSlot struct {
	AlwaysOn                      bool                    `tfschema:"always_on"`
	ApiManagementConfigId         string                  `tfschema:"api_management_api_id"`
	ApiDefinition                 string                  `tfschema:"api_definition_url"`
	AppCommandLine                string                  `tfschema:"app_command_line"`
	AutoHealSettings              []AutoHealSettingLinux  `tfschema:"auto_heal_setting"`
	AutoSwapSlotName              string                  `tfschema:"auto_swap_slot_name"`
	UseManagedIdentityACR         bool                    `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryMSI          string                  `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                `tfschema:"default_documents"`
	Http2Enabled                  bool                    `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction         `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                  `tfschema:"ip_restriction_default_action"`
	ScmUseMainIpRestriction       bool                    `tfschema:"scm_use_main_ip_restriction"`
	ScmIpRestriction              []IpRestriction         `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                  `tfschema:"scm_ip_restriction_default_action"`
	LoadBalancing                 string                  `tfschema:"load_balancing_mode"`
	LocalMysql                    bool                    `tfschema:"local_mysql_enabled"`
	ManagedPipelineMode           string                  `tfschema:"managed_pipeline_mode"`
	RemoteDebugging               bool                    `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                  `tfschema:"remote_debugging_version"`
	ScmType                       string                  `tfschema:"scm_type"`
	Use32BitWorker                bool                    `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                    `tfschema:"websockets_enabled"`
	FtpsState                     string                  `tfschema:"ftps_state"`
	HealthCheckPath               string                  `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                   `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                   `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackLinux `tfschema:"application_stack"`
	MinTlsVersion                 string                  `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                  `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting           `tfschema:"cors"`
	DetailedErrorLogging          bool                    `tfschema:"detailed_error_logging_enabled"`
	LinuxFxVersion                string                  `tfschema:"linux_fx_version"`
	VnetRouteAllEnabled           bool                    `tfschema:"vnet_route_all_enabled"`
}

func (*SiteConfigLinuxWebAppSlot) DecodeDockerAppStack

func (s *SiteConfigLinuxWebAppSlot) DecodeDockerAppStack(input map[string]string)

func (*SiteConfigLinuxWebAppSlot) DecodeDockerDeprecatedAppStack

func (s *SiteConfigLinuxWebAppSlot) DecodeDockerDeprecatedAppStack(input map[string]string, usesDeprecated bool)

func (*SiteConfigLinuxWebAppSlot) ExpandForCreate

func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigLinuxWebAppSlot) ExpandForUpdate

func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigLinuxWebAppSlot) Flatten

func (s *SiteConfigLinuxWebAppSlot) Flatten(appSiteSlotConfig *webapps.SiteConfig)

func (*SiteConfigLinuxWebAppSlot) SetHealthCheckEvictionTime

func (s *SiteConfigLinuxWebAppSlot) SetHealthCheckEvictionTime(input map[string]string)

type SiteConfigWindows

type SiteConfigWindows struct {
	AlwaysOn                      bool                      `tfschema:"always_on"`
	ApiManagementConfigId         string                    `tfschema:"api_management_api_id"`
	ApiDefinition                 string                    `tfschema:"api_definition_url"`
	AppCommandLine                string                    `tfschema:"app_command_line"`
	AutoHealSettings              []AutoHealSettingWindows  `tfschema:"auto_heal_setting"`
	UseManagedIdentityACR         bool                      `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryUserMSI      string                    `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                  `tfschema:"default_documents"`
	Http2Enabled                  bool                      `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction           `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                    `tfschema:"ip_restriction_default_action"`
	ScmUseMainIpRestriction       bool                      `tfschema:"scm_use_main_ip_restriction"`
	ScmIpRestriction              []IpRestriction           `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                    `tfschema:"scm_ip_restriction_default_action"`
	LoadBalancing                 string                    `tfschema:"load_balancing_mode"`
	LocalMysql                    bool                      `tfschema:"local_mysql_enabled"`
	ManagedPipelineMode           string                    `tfschema:"managed_pipeline_mode"`
	RemoteDebugging               bool                      `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                    `tfschema:"remote_debugging_version"`
	ScmType                       string                    `tfschema:"scm_type"`
	Use32BitWorker                bool                      `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                      `tfschema:"websockets_enabled"`
	FtpsState                     string                    `tfschema:"ftps_state"`
	HealthCheckPath               string                    `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                     `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                     `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackWindows `tfschema:"application_stack"`
	HandlerMapping                []HandlerMappings         `tfschema:"handler_mapping"`
	VirtualApplications           []VirtualApplication      `tfschema:"virtual_application"`
	MinTlsVersion                 string                    `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                    `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting             `tfschema:"cors"`
	DetailedErrorLogging          bool                      `tfschema:"detailed_error_logging_enabled"`
	WindowsFxVersion              string                    `tfschema:"windows_fx_version"`
	VnetRouteAllEnabled           bool                      `tfschema:"vnet_route_all_enabled"`
}

func (*SiteConfigWindows) DecodeDockerAppStack

func (s *SiteConfigWindows) DecodeDockerAppStack(input map[string]string)

func (*SiteConfigWindows) DecodeDockerDeprecatedAppStack

func (s *SiteConfigWindows) DecodeDockerDeprecatedAppStack(input map[string]string, usesDeprecated bool)

func (*SiteConfigWindows) ExpandForCreate

func (s *SiteConfigWindows) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigWindows) ExpandForUpdate

func (s *SiteConfigWindows) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigWindows) Flatten

func (s *SiteConfigWindows) Flatten(appSiteConfig *webapps.SiteConfig, currentStack string) error

func (*SiteConfigWindows) ParseNodeVersion

func (s *SiteConfigWindows) ParseNodeVersion(input map[string]string) map[string]string

func (*SiteConfigWindows) SetHealthCheckEvictionTime

func (s *SiteConfigWindows) SetHealthCheckEvictionTime(input map[string]string)

type SiteConfigWindowsFunctionApp

type SiteConfigWindowsFunctionApp struct {
	AlwaysOn                      bool                                 `tfschema:"always_on"`
	AppCommandLine                string                               `tfschema:"app_command_line"`
	ApiDefinition                 string                               `tfschema:"api_definition_url"`
	ApiManagementConfigId         string                               `tfschema:"api_management_api_id"`
	AppInsightsInstrumentationKey string                               `tfschema:"application_insights_key"` // App Insights Instrumentation Key
	AppInsightsConnectionString   string                               `tfschema:"application_insights_connection_string"`
	AppScaleLimit                 int64                                `tfschema:"app_scale_limit"`
	AppServiceLogs                []FunctionAppAppServiceLogs          `tfschema:"app_service_logs"`
	DefaultDocuments              []string                             `tfschema:"default_documents"`
	ElasticInstanceMinimum        int64                                `tfschema:"elastic_instance_minimum"`
	Http2Enabled                  bool                                 `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction                      `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                               `tfschema:"ip_restriction_default_action"`
	LoadBalancing                 string                               `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps?
	ManagedPipelineMode           string                               `tfschema:"managed_pipeline_mode"`
	PreWarmedInstanceCount        int64                                `tfschema:"pre_warmed_instance_count"`
	RemoteDebugging               bool                                 `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                               `tfschema:"remote_debugging_version"`
	RuntimeScaleMonitoring        bool                                 `tfschema:"runtime_scale_monitoring_enabled"`
	ScmIpRestriction              []IpRestriction                      `tfschema:"scm_ip_restriction"`
	ScmType                       string                               `tfschema:"scm_type"` // Computed?
	ScmIpRestrictionDefaultAction string                               `tfschema:"scm_ip_restriction_default_action"`
	ScmUseMainIpRestriction       bool                                 `tfschema:"scm_use_main_ip_restriction"`
	Use32BitWorker                bool                                 `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                                 `tfschema:"websockets_enabled"`
	FtpsState                     string                               `tfschema:"ftps_state"`
	HealthCheckPath               string                               `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                                `tfschema:"health_check_eviction_time_in_min"`
	NumberOfWorkers               int64                                `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackWindowsFunctionApp `tfschema:"application_stack"`
	MinTlsVersion                 string                               `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                               `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting                        `tfschema:"cors"`
	DetailedErrorLogging          bool                                 `tfschema:"detailed_error_logging_enabled"`
	WindowsFxVersion              string                               `tfschema:"windows_fx_version"`
	VnetRouteAllEnabled           bool                                 `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans
}

func FlattenSiteConfigWindowsFunctionApp

func FlattenSiteConfigWindowsFunctionApp(functionAppSiteConfig *webapps.SiteConfig) (*SiteConfigWindowsFunctionApp, error)

type SiteConfigWindowsFunctionAppSlot

type SiteConfigWindowsFunctionAppSlot struct {
	AlwaysOn                      bool                                 `tfschema:"always_on"`
	AppCommandLine                string                               `tfschema:"app_command_line"`
	ApiDefinition                 string                               `tfschema:"api_definition_url"`
	ApiManagementConfigId         string                               `tfschema:"api_management_api_id"`
	AppInsightsInstrumentationKey string                               `tfschema:"application_insights_key"` // App Insights Instrumentation Key
	AppInsightsConnectionString   string                               `tfschema:"application_insights_connection_string"`
	AppScaleLimit                 int64                                `tfschema:"app_scale_limit"`
	AppServiceLogs                []FunctionAppAppServiceLogs          `tfschema:"app_service_logs"`
	AutoSwapSlotName              string                               `tfschema:"auto_swap_slot_name"`
	DefaultDocuments              []string                             `tfschema:"default_documents"`
	ElasticInstanceMinimum        int64                                `tfschema:"elastic_instance_minimum"`
	Http2Enabled                  bool                                 `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction                      `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                               `tfschema:"ip_restriction_default_action"`
	LoadBalancing                 string                               `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps?
	ManagedPipelineMode           string                               `tfschema:"managed_pipeline_mode"`
	PreWarmedInstanceCount        int64                                `tfschema:"pre_warmed_instance_count"`
	RemoteDebugging               bool                                 `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                               `tfschema:"remote_debugging_version"`
	RuntimeScaleMonitoring        bool                                 `tfschema:"runtime_scale_monitoring_enabled"`
	ScmIpRestriction              []IpRestriction                      `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                               `tfschema:"scm_ip_restriction_default_action"`
	ScmType                       string                               `tfschema:"scm_type"` // Computed?
	ScmUseMainIpRestriction       bool                                 `tfschema:"scm_use_main_ip_restriction"`
	Use32BitWorker                bool                                 `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                                 `tfschema:"websockets_enabled"`
	FtpsState                     string                               `tfschema:"ftps_state"`
	HealthCheckPath               string                               `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                                `tfschema:"health_check_eviction_time_in_min"`
	NumberOfWorkers               int64                                `tfschema:"worker_count"`
	ApplicationStack              []ApplicationStackWindowsFunctionApp `tfschema:"application_stack"`
	MinTlsVersion                 string                               `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                               `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting                        `tfschema:"cors"`
	DetailedErrorLogging          bool                                 `tfschema:"detailed_error_logging_enabled"`
	WindowsFxVersion              string                               `tfschema:"windows_fx_version"`
	VnetRouteAllEnabled           bool                                 `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans
}

func FlattenSiteConfigWindowsFunctionAppSlot

func FlattenSiteConfigWindowsFunctionAppSlot(functionAppSlotSiteConfig *webapps.SiteConfig) (*SiteConfigWindowsFunctionAppSlot, error)

type SiteConfigWindowsWebAppSlot

type SiteConfigWindowsWebAppSlot struct {
	AlwaysOn                      bool                      `tfschema:"always_on"`
	ApiManagementConfigId         string                    `tfschema:"api_management_api_id"`
	ApiDefinition                 string                    `tfschema:"api_definition_url"`
	ApplicationStack              []ApplicationStackWindows `tfschema:"application_stack"`
	AppCommandLine                string                    `tfschema:"app_command_line"`
	AutoHealSettings              []AutoHealSettingWindows  `tfschema:"auto_heal_setting"`
	AutoSwapSlotName              string                    `tfschema:"auto_swap_slot_name"`
	UseManagedIdentityACR         bool                      `tfschema:"container_registry_use_managed_identity"`
	ContainerRegistryUserMSI      string                    `tfschema:"container_registry_managed_identity_client_id"`
	DefaultDocuments              []string                  `tfschema:"default_documents"`
	Http2Enabled                  bool                      `tfschema:"http2_enabled"`
	IpRestriction                 []IpRestriction           `tfschema:"ip_restriction"`
	IpRestrictionDefaultAction    string                    `tfschema:"ip_restriction_default_action"`
	ScmUseMainIpRestriction       bool                      `tfschema:"scm_use_main_ip_restriction"`
	ScmIpRestriction              []IpRestriction           `tfschema:"scm_ip_restriction"`
	ScmIpRestrictionDefaultAction string                    `tfschema:"scm_ip_restriction_default_action"`
	LoadBalancing                 string                    `tfschema:"load_balancing_mode"`
	LocalMysql                    bool                      `tfschema:"local_mysql_enabled"`
	ManagedPipelineMode           string                    `tfschema:"managed_pipeline_mode"`
	RemoteDebugging               bool                      `tfschema:"remote_debugging_enabled"`
	RemoteDebuggingVersion        string                    `tfschema:"remote_debugging_version"`
	ScmType                       string                    `tfschema:"scm_type"`
	Use32BitWorker                bool                      `tfschema:"use_32_bit_worker"`
	WebSockets                    bool                      `tfschema:"websockets_enabled"`
	FtpsState                     string                    `tfschema:"ftps_state"`
	HealthCheckPath               string                    `tfschema:"health_check_path"`
	HealthCheckEvictionTime       int64                     `tfschema:"health_check_eviction_time_in_min"`
	WorkerCount                   int64                     `tfschema:"worker_count"`
	HandlerMapping                []HandlerMappings         `tfschema:"handler_mapping"`
	VirtualApplications           []VirtualApplication      `tfschema:"virtual_application"`
	MinTlsVersion                 string                    `tfschema:"minimum_tls_version"`
	ScmMinTlsVersion              string                    `tfschema:"scm_minimum_tls_version"`
	Cors                          []CorsSetting             `tfschema:"cors"`
	DetailedErrorLogging          bool                      `tfschema:"detailed_error_logging_enabled"`
	WindowsFxVersion              string                    `tfschema:"windows_fx_version"`
	VnetRouteAllEnabled           bool                      `tfschema:"vnet_route_all_enabled"`
}

func (*SiteConfigWindowsWebAppSlot) DecodeDockerAppStack

func (s *SiteConfigWindowsWebAppSlot) DecodeDockerAppStack(input map[string]string)

func (*SiteConfigWindowsWebAppSlot) DecodeDockerDeprecatedAppStack

func (s *SiteConfigWindowsWebAppSlot) DecodeDockerDeprecatedAppStack(input map[string]string, usesDeprecated bool)

func (*SiteConfigWindowsWebAppSlot) ExpandForCreate

func (s *SiteConfigWindowsWebAppSlot) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigWindowsWebAppSlot) ExpandForUpdate

func (s *SiteConfigWindowsWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error)

func (*SiteConfigWindowsWebAppSlot) Flatten

func (s *SiteConfigWindowsWebAppSlot) Flatten(appSiteSlotConfig *webapps.SiteConfig, currentStack string)

func (*SiteConfigWindowsWebAppSlot) ParseNodeVersion

func (s *SiteConfigWindowsWebAppSlot) ParseNodeVersion(input map[string]string) map[string]string

func (*SiteConfigWindowsWebAppSlot) SetHealthCheckEvictionTime

func (s *SiteConfigWindowsWebAppSlot) SetHealthCheckEvictionTime(input map[string]string)

type SiteCredential

type SiteCredential struct {
	Username string `tfschema:"name"`
	Password string `tfschema:"password"`
}

func FlattenSiteCredentials

func FlattenSiteCredentials(input *webapps.User) []SiteCredential

type SourceControl

type SourceControl struct {
	RepoURL           string `tfschema:"repo_url"`
	Branch            string `tfschema:"branch"`
	ManualIntegration bool   `tfschema:"manual_integration"`
	UseMercurial      bool   `tfschema:"use_mercurial"`
	RollbackEnabled   bool   `tfschema:"rollback_enabled"`
}

type StaticWebAppAuthV2Settings

type StaticWebAppAuthV2Settings struct {
	ClientId string `tfschema:"client_id"`
}

type StickySettings

type StickySettings struct {
	AppSettingNames       []string `tfschema:"app_setting_names"`
	ConnectionStringNames []string `tfschema:"connection_string_names"`
}

func FlattenStickySettings

func FlattenStickySettings(input *webapps.SlotConfigNames) []StickySettings

type StorageAccount

type StorageAccount struct {
	Name        string `tfschema:"name"`
	Type        string `tfschema:"type"`
	AccountName string `tfschema:"account_name"`
	ShareName   string `tfschema:"share_name"`
	AccessKey   string `tfschema:"access_key"`
	MountPath   string `tfschema:"mount_path"`
}

func FlattenStorageAccounts

func FlattenStorageAccounts(appStorageAccounts *webapps.AzureStoragePropertyDictionaryResource) []StorageAccount

type TwitterAuthSettings

type TwitterAuthSettings struct {
	ConsumerKey               string `tfschema:"consumer_key"`
	ConsumerSecret            string `tfschema:"consumer_secret"`
	ConsumerSecretSettingName string `tfschema:"consumer_secret_setting_name"`
}

type TwitterAuthV2Settings

type TwitterAuthV2Settings struct {
	ConsumerKey               string `tfschema:"consumer_key"`
	ConsumerSecretSettingName string `tfschema:"consumer_secret_setting_name"`
}

type VirtualApplication

type VirtualApplication struct {
	VirtualPath        string             `tfschema:"virtual_path"`
	PhysicalPath       string             `tfschema:"physical_path"`
	Preload            bool               `tfschema:"preload"`
	VirtualDirectories []VirtualDirectory `tfschema:"virtual_directory"`
}

type VirtualDirectory

type VirtualDirectory struct {
	VirtualPath  string `tfschema:"virtual_path"`
	PhysicalPath string `tfschema:"physical_path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL