{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-license-task-schema.json",
  "title": "license.Task",
  "description": "licenses Todos",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-cloudLinux-openapi.yml#/components/schemas/license.Task",
  "type": "object",
  "properties": {
    "action": {
      "allOf": [
        {
          "$ref": "#/$defs/license.ActionType"
        }
      ],
      "description": "This Task description",
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "When was this Task done",
      "format": "date-time",
      "readOnly": true
    },
    "lastUpdate": {
      "type": "string",
      "description": "The last time this Task was updated",
      "format": "date-time",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "This Task name",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/license.TaskStateEnum"
        }
      ],
      "description": "Current Taks status",
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "This Task id",
      "readOnly": true
    },
    "todoDate": {
      "type": "string",
      "description": "When was this Task created",
      "format": "date-time",
      "readOnly": true
    }
  },
  "$defs": {
    "license.ActionType": {
      "type": "string",
      "description": "A short description of what does the Task on your license",
      "enum": [
        "addWindowFromExistingSerial",
        "changeIp",
        "changeOs",
        "installLicense",
        "optionUpgrade",
        "releaseOption",
        "versionUpgrade"
      ]
    },
    "license.TaskStateEnum": {
      "type": "string",
      "description": "All states a license Task can be in",
      "enum": [
        "cancelled",
        "doing",
        "done",
        "error",
        "todo"
      ]
    }
  }
}