{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-check-name-availability-response-schema.json",
  "title": "AiGatewayCheckNameAvailabilityResponse",
  "description": "Availability of an AI Gateway name in a location.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-aigatewaynameavailabilityoperations-api-openapi.yml#/components/schemas/AiGatewayCheckNameAvailabilityResponse",
  "type": "object",
  "properties": {
    "nameAvailable": {
      "type": "boolean",
      "description": "Whether the name is valid and available."
    },
    "reason": {
      "$ref": "#/$defs/AiGatewayNameAvailabilityReason",
      "description": "Reason for the availability result."
    },
    "message": {
      "type": "string",
      "description": "Additional information about the availability result."
    }
  },
  "required": [
    "nameAvailable"
  ],
  "$defs": {
    "AiGatewayNameAvailabilityReason": {
      "type": "string",
      "description": "Result of name validation and availability checking.",
      "enum": [
        "Invalid",
        "AlreadyExists"
      ],
      "x-ms-enum": {
        "name": "AiGatewayNameAvailabilityReason",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid",
            "description": "The name does not satisfy gateway naming requirements."
          },
          {
            "name": "AlreadyExists",
            "value": "AlreadyExists",
            "description": "A gateway with this name already exists in the location."
          }
        ]
      }
    }
  }
}