{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-static-site-basic-auth-properties-armresource-schema.json",
  "title": "StaticSiteBasicAuthPropertiesARMResource",
  "description": "Static site basic auth properties ARM resource.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-static-sites-api-openapi.yml#/components/schemas/StaticSiteBasicAuthPropertiesARMResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/StaticSiteBasicAuthPropertiesARMResourceProperties",
      "description": "StaticSiteBasicAuthPropertiesARMResource resource specific properties",
      "x-ms-client-flatten": true
    },
    "kind": {
      "type": "string",
      "description": "Kind of resource."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "StaticSiteBasicAuthPropertiesARMResourceProperties": {
      "type": "object",
      "description": "StaticSiteBasicAuthPropertiesARMResource resource specific properties",
      "properties": {
        "password": {
          "type": "string",
          "description": "The password for basic auth."
        },
        "secretUrl": {
          "type": "string",
          "description": "Url to the secret in Key Vault."
        },
        "applicableEnvironmentsMode": {
          "type": "string",
          "description": "State indicating if basic auth is enabled and for what environments it is active."
        },
        "environments": {
          "type": "array",
          "description": "The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.",
          "items": {
            "type": "string"
          }
        },
        "secretState": {
          "type": "string",
          "description": "State indicating if basic auth has a secret and what type it is.",
          "readOnly": true
        }
      },
      "required": [
        "applicableEnvironmentsMode"
      ]
    }
  }
}