{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dedicated-nas-task-task-schema.json",
  "title": "dedicated.nasTask.Task",
  "description": "Storage task",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dedicated-nasha-openapi.yml#/components/schemas/dedicated.nasTask.Task",
  "type": "object",
  "properties": {
    "details": {
      "type": [
        "string",
        "null"
      ],
      "description": "information about operation",
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "the date when the task finished",
      "format": "date-time",
      "readOnly": true
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "last modification of task",
      "format": "date-time",
      "readOnly": true
    },
    "operation": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.storage.TaskFunctionEnum"
        }
      ],
      "description": "Task type of operation",
      "readOnly": true
    },
    "partitionName": {
      "type": [
        "string",
        "null"
      ],
      "description": "name of the partition",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.TaskStatusEnum"
        }
      ],
      "description": "The actual state of the task",
      "readOnly": true
    },
    "storageName": {
      "type": [
        "string",
        "null"
      ],
      "description": "the name of your service",
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "id of the task",
      "readOnly": true
    },
    "todoDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Insertion of task in the todo",
      "format": "date-time",
      "readOnly": true
    }
  },
  "$defs": {
    "dedicated.TaskStatusEnum": {
      "type": "string",
      "description": "different task status",
      "enum": [
        "cancelled",
        "customerError",
        "doing",
        "done",
        "init",
        "ovhError",
        "todo"
      ]
    },
    "dedicated.storage.TaskFunctionEnum": {
      "type": "string",
      "description": "Distincts task",
      "enum": [
        "backupRecursiveDestroy",
        "clusterLeclercAclUpdate",
        "clusterLeclercChangeServiceIp",
        "clusterLeclercCustomSnapCreate",
        "clusterLeclercCustomSnapDelete",
        "clusterLeclercDeleteSnapshotDirectory",
        "clusterLeclercDestroyNasContainer",
        "clusterLeclercPartitionAdd",
        "clusterLeclercPartitionDelete",
        "clusterLeclercPartitionUpdate",
        "clusterLeclercQuotaUpdate",
        "clusterLeclercSetupNasContainer",
        "clusterLeclercSnapshotUpdate",
        "clusterLeclercZfsOptions",
        "nasAclUpdate",
        "nasDeleteSnapshotDirectory",
        "nasPartitionAdd",
        "nasPartitionDelete",
        "nasPartitionUpdate",
        "nasQuotaUpdate",
        "remoteBackupRecursiveDestroy"
      ]
    }
  }
}