{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-model-capacity-list-result-schema.json",
  "title": "ModelCapacityListResult",
  "description": "The list of cognitive services accounts operation response.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-modelcapacities-api-openapi.yml#/components/schemas/ModelCapacityListResult",
  "type": "object",
  "properties": {
    "nextLink": {
      "type": "string",
      "description": "The link used to get the next page of ModelSkuCapacity."
    },
    "value": {
      "type": "array",
      "description": "Gets the list of Cognitive Services accounts ModelSkuCapacity.",
      "items": {
        "$ref": "#/$defs/ModelCapacityListResultValueItem"
      },
      "readOnly": true,
      "x-ms-identifiers": [
        "model"
      ]
    }
  },
  "$defs": {
    "CallRateLimit": {
      "type": "object",
      "description": "The call rate limit Cognitive Services account.",
      "properties": {
        "count": {
          "type": "number",
          "format": "float",
          "description": "The count value of Call Rate Limit."
        },
        "renewalPeriod": {
          "type": "number",
          "format": "float",
          "description": "The renewal period in seconds of Call Rate Limit."
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ThrottlingRule"
          },
          "x-ms-identifiers": [
            "key"
          ]
        }
      }
    },
    "DeploymentModel": {
      "type": "object",
      "description": "Properties of Cognitive Services account deployment model.",
      "properties": {
        "publisher": {
          "type": "string",
          "description": "Deployment model publisher."
        },
        "format": {
          "type": "string",
          "description": "Deployment model format."
        },
        "name": {
          "type": "string",
          "description": "Deployment model name."
        },
        "version": {
          "type": "string",
          "description": "Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API."
        },
        "source": {
          "type": "string",
          "description": "Optional. Deployment model source ARM resource ID."
        },
        "sourceAccount": {
          "type": "string",
          "format": "arm-id",
          "description": "Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM resource ID.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.CognitiveServices/accounts"
              }
            ]
          }
        },
        "callRateLimit": {
          "$ref": "#/$defs/CallRateLimit",
          "description": "The call rate limit Cognitive Services account.",
          "readOnly": true
        }
      }
    },
    "ModelCapacityListResultValueItem": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string",
          "description": "The location of the Model Sku Capacity."
        },
        "properties": {
          "$ref": "#/$defs/ModelSkuCapacityProperties",
          "description": "Cognitive Services account ModelSkuCapacity."
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "ModelSkuCapacityProperties": {
      "type": "object",
      "description": "Cognitive Services account ModelSkuCapacity.",
      "properties": {
        "model": {
          "$ref": "#/$defs/DeploymentModel",
          "description": "Properties of Cognitive Services account deployment model."
        },
        "skuName": {
          "type": "string"
        },
        "availableCapacity": {
          "type": "number",
          "format": "float",
          "description": "The available capacity for deployment with this model and sku."
        },
        "availableFinetuneCapacity": {
          "type": "number",
          "format": "float",
          "description": "The available capacity for deployment with a fine-tune version of this model and sku."
        },
        "scopeId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The scope identifier for model SKU capacity."
        },
        "scopeType": {
          "$ref": "#/$defs/QuotaScopeType",
          "description": "The scope type for model SKU capacity."
        }
      }
    },
    "QuotaScopeType": {
      "type": "string",
      "description": "The quota scope that determines the level at which the quota is applied.",
      "enum": [
        "Regional",
        "Global",
        "DataZone",
        "Classic"
      ],
      "x-ms-enum": {
        "name": "QuotaScopeType",
        "modelAsString": true,
        "values": [
          {
            "name": "Regional",
            "value": "Regional"
          },
          {
            "name": "Global",
            "value": "Global"
          },
          {
            "name": "DataZone",
            "value": "DataZone"
          },
          {
            "name": "Classic",
            "value": "Classic"
          }
        ]
      }
    },
    "RequestMatchPattern": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "method": {
          "type": "string"
        }
      }
    },
    "ThrottlingRule": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "renewalPeriod": {
          "type": "number",
          "format": "float"
        },
        "count": {
          "type": "number",
          "format": "float"
        },
        "minCount": {
          "type": "number",
          "format": "float"
        },
        "dynamicThrottlingEnabled": {
          "type": "boolean"
        },
        "matchPatterns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RequestMatchPattern"
          },
          "x-ms-identifiers": [
            "path",
            "method"
          ]
        }
      }
    }
  }
}