{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-playwright/json-schema/microsoft-playwright-quota-schema.json",
  "title": "Quota",
  "description": "A subscription quota resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-playwright-quotas-api-openapi.yml#/components/schemas/Quota",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/QuotaProperties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "FreeTrialProperties": {
      "type": "object",
      "description": "The subscription quota resource free-trial properties.",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The Playwright service account id.",
          "readOnly": true
        },
        "state": {
          "$ref": "#/$defs/FreeTrialState",
          "description": "The free-trial state.",
          "readOnly": true
        }
      },
      "required": [
        "accountId",
        "state"
      ]
    },
    "FreeTrialState": {
      "type": "string",
      "description": "The free-trial state.",
      "enum": [
        "Active",
        "Expired",
        "NotEligible",
        "NotRegistered"
      ],
      "x-ms-enum": {
        "name": "FreeTrialState",
        "modelAsString": true,
        "values": [
          {
            "name": "Active",
            "value": "Active",
            "description": "The free-trial is Active."
          },
          {
            "name": "Expired",
            "value": "Expired",
            "description": "The free-trial is Expired."
          },
          {
            "name": "NotEligible",
            "value": "NotEligible",
            "description": "The free-trial is Not Eligible."
          },
          {
            "name": "NotRegistered",
            "value": "NotRegistered",
            "description": "The free-trial is Not Registered."
          }
        ]
      }
    },
    "OfferingType": {
      "type": "string",
      "description": "Offering type state.",
      "enum": [
        "NotApplicable",
        "PrivatePreview",
        "PublicPreview",
        "GeneralAvailability"
      ],
      "x-ms-enum": {
        "name": "OfferingType",
        "modelAsString": true,
        "values": [
          {
            "name": "NotApplicable",
            "value": "NotApplicable",
            "description": "The offeringType is NotApplicable."
          },
          {
            "name": "PrivatePreview",
            "value": "PrivatePreview",
            "description": "The offeringType is PrivatePreview."
          },
          {
            "name": "PublicPreview",
            "value": "PublicPreview",
            "description": "The offeringType is PublicPreview."
          },
          {
            "name": "GeneralAvailability",
            "value": "GeneralAvailability",
            "description": "The offeringType is GeneralAvailability."
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "The status of the current operation.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Deleting",
        "Accepted"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Resource has been created."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Resource creation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Resource creation was canceled."
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creation in progress.."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deletion in progress.."
          },
          {
            "name": "Accepted",
            "value": "Accepted",
            "description": "Change accepted for processing.."
          }
        ]
      },
      "readOnly": true
    },
    "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"
        }
      ]
    },
    "QuotaProperties": {
      "type": "object",
      "description": "The subscription quota resource properties.",
      "properties": {
        "freeTrial": {
          "$ref": "#/$defs/FreeTrialProperties",
          "description": "The subscription quota resource free-trial properties."
        },
        "offeringType": {
          "$ref": "#/$defs/OfferingType",
          "description": "Indicates the offering type for the subscription.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The status of the last operation.",
          "readOnly": true
        }
      }
    }
  }
}