{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-upgrade-object-storage-request-schema.json",
  "title": "UpgradeObjectStorageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-object-storages-api-openapi.yml#/components/schemas/UpgradeObjectStorageRequest",
  "type": "object",
  "properties": {
    "autoScaling": {
      "description": "New monthly object storage size limit for autoscaling if enabled.",
      "allOf": [
        {
          "$ref": "#/$defs/UpgradeAutoScalingType"
        }
      ]
    },
    "totalPurchasedSpaceTB": {
      "type": "number",
      "format": "double",
      "description": "New total object storage limit. If this number is larger than before you will also be billed for the added storage space. No downgrade possible."
    }
  },
  "$defs": {
    "UpgradeAutoScalingType": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "State of the autoscaling for the current object storage.",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "sizeLimitTB": {
          "type": "number",
          "format": "double",
          "description": "Autoscaling size limit for the current object storage."
        }
      }
    }
  }
}