{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-upgrade-object-storage-response-schema.json",
  "title": "UpgradeObjectStorageResponse",
  "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/UpgradeObjectStorageResponse",
  "type": "object",
  "properties": {
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/SelfLinks"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UpgradeObjectStorageResponseData"
      }
    }
  },
  "required": [
    "_links",
    "data"
  ],
  "$defs": {
    "AutoScalingTypeResponse": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "State of the autoscaling for the current object storage.",
          "enum": [
            "enabled",
            "disabled",
            "error"
          ]
        },
        "sizeLimitTB": {
          "type": "number",
          "format": "double",
          "description": "Autoscaling size limit for the current object storage."
        },
        "errorMessage": {
          "type": "string",
          "description": "Error message"
        }
      },
      "required": [
        "state",
        "sizeLimitTB"
      ]
    },
    "SelfLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        }
      },
      "required": [
        "self"
      ]
    },
    "UpgradeObjectStorageResponseData": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer number"
        },
        "objectStorageId": {
          "type": "string",
          "minLength": 1,
          "description": "Object storage id"
        },
        "createdDate": {
          "type": "string",
          "description": "Creation date for object storage."
        },
        "dataCenter": {
          "type": "string",
          "description": "Data center of the object storage."
        },
        "autoScaling": {
          "description": "The autoscaling limit of the object storage.",
          "allOf": [
            {
              "$ref": "#/$defs/AutoScalingTypeResponse"
            }
          ]
        },
        "s3Url": {
          "type": "string",
          "description": "S3 URL to connect to your S3 compatible object storage"
        },
        "status": {
          "type": "string",
          "description": "The object storage status",
          "enum": [
            "READY",
            "PROVISIONING",
            "UPGRADING",
            "CANCELLED",
            "ERROR",
            "DISABLED",
            "MANUAL_PROVISIONING",
            "PRODUCT_NOT_AVAILABLE",
            "LIMIT_EXCEEDED",
            "VERIFICATION_REQUIRED",
            "ORDER_PROCESSING",
            "PENDING_PAYMENT",
            "UNKNOWN"
          ]
        },
        "totalPurchasedSpaceTB": {
          "type": "number",
          "format": "double",
          "description": "Total purchased object storage space in TB."
        },
        "region": {
          "type": "string",
          "description": "The region where your object storage is located"
        },
        "displayName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "description": "Display name for object storage."
        }
      },
      "required": [
        "tenantId",
        "customerId",
        "objectStorageId",
        "createdDate",
        "dataCenter",
        "autoScaling",
        "s3Url",
        "status",
        "totalPurchasedSpaceTB",
        "region",
        "displayName"
      ]
    }
  }
}