{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-notification-hubs/json-schema/microsoft-azure-notification-hubs-check-availability-result-schema.json",
  "title": "CheckAvailabilityResult",
  "description": "Description of a CheckAvailability resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-notification-hubs-hubs-api-openapi.yml#/components/schemas/CheckAvailabilityResult",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "properties": {
    "isAvailiable": {
      "description": "Gets or sets true if the name is available and can be used to\ncreate new Namespace/NotificationHub. Otherwise false.",
      "type": "boolean"
    },
    "location": {
      "description": "Deprecated - only for compatibility.",
      "type": "string",
      "x-ms-mutability": [
        "create",
        "read"
      ]
    },
    "tags": {
      "description": "Deprecated - only for compatibility.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "sku": {
      "$ref": "#/$defs/Sku"
    }
  },
  "$defs": {
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Sku": {
      "description": "The Sku description for a namespace",
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/SkuName"
        },
        "tier": {
          "description": "Gets or sets the tier of particular sku",
          "type": "string"
        },
        "size": {
          "description": "Gets or sets the Sku size",
          "type": "string"
        },
        "family": {
          "description": "Gets or sets the Sku Family",
          "type": "string"
        },
        "capacity": {
          "format": "int32",
          "description": "Gets or sets the capacity of the resource",
          "type": "integer"
        }
      }
    },
    "SkuName": {
      "description": "Namespace SKU name.",
      "enum": [
        "Free",
        "Basic",
        "Standard"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "SkuName",
        "modelAsString": true
      }
    }
  }
}