{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-context-cache-check-name-availability-result-schema.json",
  "title": "ContextCacheCheckNameAvailabilityResult",
  "description": "The result of the context cache name availability check.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-storage-accounts-contextcaches-api-openapi.yml#/components/schemas/ContextCacheCheckNameAvailabilityResult",
  "type": "object",
  "properties": {
    "nameAvailable": {
      "type": "boolean",
      "description": "A boolean value that indicates whether the context cache name is available to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.",
      "readOnly": true
    },
    "reason": {
      "$ref": "#/$defs/ContextCacheCheckNameAvailabilityFailureReason",
      "description": "The reason why the context cache name is not available. The Reason element is only returned if NameAvailable is false",
      "readOnly": true
    },
    "message": {
      "type": "string",
      "description": "The error message providing additional information about the context cache name availability check failure.",
      "readOnly": true
    }
  },
  "required": [
    "nameAvailable"
  ],
  "$defs": {
    "ContextCacheCheckNameAvailabilityFailureReason": {
      "type": "string",
      "description": "The reason why the context cache name is not available. The Reason element is only returned if NameAvailable is false.",
      "enum": [
        "AlreadyExists",
        "ContextCacheNameInvalid"
      ],
      "x-ms-enum": {
        "name": "ContextCacheCheckNameAvailabilityFailureReason",
        "modelAsString": true,
        "values": [
          {
            "name": "AlreadyExists",
            "value": "AlreadyExists",
            "description": "The context cache name is already in use."
          },
          {
            "name": "ContextCacheNameInvalid",
            "value": "ContextCacheNameInvalid",
            "description": "The context cache name is invalid."
          }
        ]
      }
    }
  }
}