{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-domain-task-schema.json",
  "title": "domain.Task",
  "description": "Tasks associated to domain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-domain-openapi.yml#/components/schemas/domain.Task",
  "type": "object",
  "properties": {
    "canAccelerate": {
      "type": "boolean",
      "description": "Can accelerate the task",
      "readOnly": true
    },
    "canCancel": {
      "type": "boolean",
      "description": "Can cancel the task",
      "readOnly": true
    },
    "canRelaunch": {
      "type": "boolean",
      "description": "Can relaunch the task",
      "readOnly": true
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Comment about the task",
      "readOnly": true
    },
    "creationDate": {
      "type": "string",
      "description": "Creation date of the task",
      "format": "date-time",
      "readOnly": true
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "Domain of the task",
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Done date of the task",
      "format": "date-time",
      "readOnly": true
    },
    "function": {
      "type": "string",
      "description": "Function of the task",
      "readOnly": true
    },
    "id": {
      "type": "integer",
      "description": "Id of the task",
      "readOnly": true
    },
    "lastUpdate": {
      "type": "string",
      "description": "Last update date of the task",
      "format": "date-time",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.OperationStatusEnum"
        }
      ],
      "description": "Status of the task",
      "readOnly": true
    },
    "todoDate": {
      "type": "string",
      "description": "Todo date of the task",
      "format": "date-time",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.OperationTypeEnum"
        }
      ],
      "description": "type of the task",
      "readOnly": true
    }
  },
  "$defs": {
    "domain.OperationStatusEnum": {
      "type": "string",
      "description": "Operation status",
      "enum": [
        "cancelled",
        "doing",
        "done",
        "error",
        "problem",
        "todo"
      ]
    },
    "domain.OperationTypeEnum": {
      "type": "string",
      "description": "Operation type",
      "enum": [
        "alldom",
        "domain"
      ]
    }
  }
}