{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-quota-tier-schema.json",
  "title": "QuotaTier",
  "description": "The quota tier information for the subscription",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-quotatier-api-openapi.yml#/components/schemas/QuotaTier",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/QuotaTierProperties",
      "description": "Properties of quota tier resource."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "QuotaTierProperties": {
      "type": "object",
      "description": "Properties of Quota Tier resource'.",
      "properties": {
        "currentTierName": {
          "type": "string",
          "description": "Name of the current quota tier for the subscription.",
          "readOnly": true
        },
        "tierUpgradePolicy": {
          "$ref": "#/$defs/TierUpgradePolicy",
          "description": "Gets the tier upgrade policy for the subscription."
        },
        "assignmentDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date on which the current tier was assigned to the subscription (UTC).",
          "readOnly": true
        },
        "tierUpgradeEligibilityInfo": {
          "$ref": "#/$defs/QuotaTierUpgradeEligibilityInfo",
          "description": "Information about the quota tier upgrade eligibility for the subscription.",
          "readOnly": true
        }
      }
    },
    "QuotaTierUpgradeEligibilityInfo": {
      "type": "object",
      "description": "Information about the quota tier upgrade eligibility for the subscription.",
      "properties": {
        "nextTierName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the next quota tier for the subscription."
        },
        "upgradeAvailabilityStatus": {
          "$ref": "#/$defs/UpgradeAvailabilityStatus",
          "description": "Specifies whether an upgrade to the next quota tier is available."
        },
        "upgradeApplicableDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The date after which the current tier will be upgraded to the next tier if the TierUpgradePolicy is \"OnceUpgradeIsAvailable\" (UTC)."
        },
        "upgradeUnavailabilityReason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Reason in case the subscription is not eligible for upgrade to the next tier."
        }
      }
    },
    "TierUpgradePolicy": {
      "type": "string",
      "description": "Gets the tier upgrade policy for the subscription.",
      "enum": [
        "OnceUpgradeIsAvailable",
        "NoAutoUpgrade"
      ],
      "x-ms-enum": {
        "name": "TierUpgradePolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "OnceUpgradeIsAvailable",
            "value": "OnceUpgradeIsAvailable"
          },
          {
            "name": "NoAutoUpgrade",
            "value": "NoAutoUpgrade"
          }
        ]
      }
    },
    "UpgradeAvailabilityStatus": {
      "type": "string",
      "description": "Specifies whether an upgrade to the next quota tier is available.",
      "enum": [
        "Available",
        "NotAvailable"
      ],
      "x-ms-enum": {
        "name": "UpgradeAvailabilityStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Available",
            "value": "Available"
          },
          {
            "name": "NotAvailable",
            "value": "NotAvailable"
          }
        ]
      }
    }
  }
}