{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dedicated-housing-task-schema.json",
  "title": "dedicated.housing.Task",
  "description": "Housing tasks",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dedicated-housing-openapi.yml#/components/schemas/dedicated.housing.Task",
  "type": "object",
  "properties": {
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Details of this task",
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Completion date",
      "format": "date-time",
      "readOnly": true
    },
    "function": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.housing.TaskFunctionEnum"
        }
      ],
      "description": "Function name",
      "readOnly": true
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "last update",
      "format": "date-time",
      "readOnly": true
    },
    "startDate": {
      "type": "string",
      "description": "Task Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.TaskStatusEnum"
        }
      ],
      "description": "Task status",
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "the id of the task",
      "readOnly": true
    }
  },
  "$defs": {
    "dedicated.TaskStatusEnum": {
      "type": "string",
      "description": "different task status",
      "enum": [
        "cancelled",
        "customerError",
        "doing",
        "done",
        "init",
        "ovhError",
        "todo"
      ]
    },
    "dedicated.housing.TaskFunctionEnum": {
      "type": "string",
      "description": "Distincts task",
      "enum": [
        "applyBackupFtpAcls",
        "applyBackupFtpQuota",
        "changePasswordBackupFTP",
        "createBackupFTP",
        "migrateBackupFTP",
        "removeBackupFTP"
      ]
    }
  }
}