{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/runcrate/main/json-schema/runcrate-storage-volume-schema.json",
  "title": "StorageVolume",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/runcrate-api-openapi.json#/components/schemas/StorageVolume",
  "type": "object",
  "required": [
    "id",
    "name"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "sizeGb": {
      "type": [
        "integer",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ]
    },
    "providerType": {
      "type": [
        "string",
        "null"
      ]
    },
    "deploymentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Instance currently mounting this volume. Volume mounts at `/workspace` inside the instance."
    },
    "projectId": {
      "type": [
        "string",
        "null"
      ]
    },
    "environmentId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}