{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spectro-cloud/main/json-schema/spectro-cloud-v1-plan-limit-update-schema.json",
  "title": "v1PlanLimitUpdate",
  "description": "Plan limit change update entity",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spectro-cloud-plans-api-openapi.yml#/components/schemas/v1PlanLimitUpdate",
  "properties": {
    "planLimit": {
      "$ref": "#/$defs/v1PlanLimit"
    }
  },
  "required": [
    "planLimit"
  ],
  "$defs": {
    "v1PlanLimit": {
      "description": "Monthly Plan Limit",
      "properties": {
        "alloy": {
          "$ref": "#/$defs/v1PlanLimitSpec"
        },
        "isOnDemand": {
          "description": "is onDemand plan and has no limit",
          "type": "boolean",
          "x-omitempty": false
        },
        "isUnlimited": {
          "description": "is unlimited cpu core hours",
          "type": "boolean",
          "x-omitempty": false
        },
        "pure": {
          "$ref": "#/$defs/v1PlanLimitSpec"
        }
      }
    },
    "v1PlanLimitSpec": {
      "description": "Monthly Plan Limit spec",
      "properties": {
        "cpuCoreHours": {
          "description": "cpu cores hours",
          "format": "int64",
          "type": "integer",
          "x-omitempty": false
        },
        "overageLimitPercentage": {
          "default": 25,
          "description": "overage limit in percentage",
          "format": "int8",
          "type": "integer",
          "x-omitempty": false
        },
        "warnLimitPercentage": {
          "default": 90,
          "description": "warning limit in percentage",
          "format": "int8",
          "type": "integer",
          "x-omitempty": false
        }
      }
    }
  }
}