{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-horizon-view-task-schema.json",
  "title": "horizonView.Task",
  "description": "Operation on a Horizon View component",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-horizonView-openapi.yml#/components/schemas/horizonView.Task",
  "type": "object",
  "properties": {
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Current progress description",
      "readOnly": true
    },
    "lastModificationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Task last modification date",
      "format": "date-time",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Task name",
      "readOnly": true
    },
    "progress": {
      "type": "integer",
      "description": "Current progress",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/horizonView.TaskStateEnum"
        }
      ],
      "description": "Current Task state",
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "Task id",
      "readOnly": true
    }
  },
  "$defs": {
    "horizonView.TaskStateEnum": {
      "type": "string",
      "description": "All states a Horizon View  Task can be in",
      "enum": [
        "canceled",
        "doing",
        "done",
        "error",
        "fixing",
        "toCancel",
        "toCreate",
        "todo",
        "unknown",
        "waitingForChilds",
        "waitingTodo"
      ]
    }
  }
}