{
  "description": "Auto-generated derived type for DiskPoolSpec via `CustomResource`",
  "properties": {
    "spec": {
      "description": "The pool spec which contains the parameters we use when creating the pool",
      "properties": {
        "disks": {
          "description": "The disk device the pool is located on",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "node": {
          "description": "The node the pool is placed on",
          "type": "string"
        }
      },
      "required": [
        "disks",
        "node"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "Status of the pool which is driven and changed by the controller loop.",
      "nullable": true,
      "properties": {
        "available": {
          "description": "Available number of bytes.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "capacity": {
          "description": "Capacity as number of bytes.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "cr_state": {
          "default": "Creating",
          "description": "PoolState represents operator specific states for DSP CR.",
          "enum": [
            "Creating",
            "Created",
            "Terminating"
          ],
          "type": "string"
        },
        "pool_status": {
          "description": "Pool status from respective control plane object.",
          "enum": [
            "Unknown",
            "Online",
            "Degraded",
            "Faulted"
          ],
          "nullable": true,
          "type": "string"
        },
        "used": {
          "description": "Used number of bytes.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "available",
        "capacity",
        "used"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "title": "DiskPool",
  "type": "object"
}
