{
  "description": "DataUpload acts as the protocol between data mover plugins and data mover controller for the datamover backup operation",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "DataUploadSpec is the specification for a DataUpload.",
      "properties": {
        "backupStorageLocation": {
          "description": "BackupStorageLocation is the name of the backup storage location\nwhere the backup repository is stored.",
          "type": "string"
        },
        "cancel": {
          "description": "Cancel indicates request to cancel the ongoing DataUpload. It can be set\nwhen the DataUpload is in InProgress phase",
          "type": [
            "boolean",
            "null"
          ]
        },
        "csiSnapshot": {
          "additionalProperties": false,
          "description": "If SnapshotType is CSI, CSISnapshot provides the information of the CSI snapshot.",
          "nullable": true,
          "properties": {
            "driver": {
              "description": "Driver is the driver used by the VolumeSnapshotContent",
              "type": [
                "string",
                "null"
              ]
            },
            "snapshotClass": {
              "description": "SnapshotClass is the name of the snapshot class that the volume snapshot is created with",
              "type": [
                "string",
                "null"
              ]
            },
            "storageClass": {
              "description": "StorageClass is the name of the storage class of the PVC that the volume snapshot is created from",
              "type": "string"
            },
            "volumeSnapshot": {
              "description": "VolumeSnapshot is the name of the volume snapshot to be backed up",
              "type": "string"
            }
          },
          "required": [
            "storageClass",
            "volumeSnapshot"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "dataMoverConfig": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "DataMoverConfig is for data-mover-specific configuration fields.",
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "datamover": {
          "description": "DataMover specifies the data mover to be used by the backup.\nIf DataMover is \"\" or \"velero\", the built-in data mover will be used.",
          "type": [
            "string",
            "null"
          ]
        },
        "operationTimeout": {
          "description": "OperationTimeout specifies the time used to wait internal operations,\nbefore returning error as timeout.",
          "type": "string"
        },
        "snapshotType": {
          "description": "SnapshotType is the type of the snapshot to be backed up.",
          "type": "string"
        },
        "sourceNamespace": {
          "description": "SourceNamespace is the original namespace where the volume is backed up from.\nIt is the same namespace for SourcePVC and CSI namespaced objects.",
          "type": "string"
        },
        "sourcePVC": {
          "description": "SourcePVC is the name of the PVC which the snapshot is taken for.",
          "type": "string"
        }
      },
      "required": [
        "backupStorageLocation",
        "operationTimeout",
        "snapshotType",
        "sourceNamespace",
        "sourcePVC"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "DataUploadStatus is the current status of a DataUpload.",
      "properties": {
        "acceptedByNode": {
          "description": "AcceptedByNode is name of the node where the DataUpload is prepared.",
          "type": [
            "string",
            "null"
          ]
        },
        "acceptedTimestamp": {
          "description": "AcceptedTimestamp records the time the DataUpload is to be prepared.\nThe server's time is used for AcceptedTimestamp",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "completionTimestamp": {
          "description": "CompletionTimestamp records the time a backup was completed.\nCompletion time is recorded even on failed backups.\nCompletion time is recorded before uploading the backup object.\nThe server's time is used for CompletionTimestamps",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "dataMoverResult": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "DataMoverResult stores data-mover-specific information as a result of the DataUpload.",
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "message": {
          "description": "Message is a message about the DataUpload's status.",
          "type": [
            "string",
            "null"
          ]
        },
        "node": {
          "description": "Node is name of the node where the DataUpload is processed.",
          "type": [
            "string",
            "null"
          ]
        },
        "nodeOS": {
          "description": "NodeOS is OS of the node where the DataUpload is processed.",
          "enum": [
            "auto",
            "linux",
            "windows"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "path": {
          "description": "Path is the full path of the snapshot volume being backed up.",
          "type": [
            "string",
            "null"
          ]
        },
        "phase": {
          "description": "Phase is the current state of the DataUpload.",
          "enum": [
            "New",
            "Accepted",
            "Prepared",
            "InProgress",
            "Canceling",
            "Canceled",
            "Completed",
            "Failed"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "progress": {
          "additionalProperties": false,
          "description": "Progress holds the total number of bytes of the volume and the current\nnumber of backed up bytes. This can be used to display progress information\nabout the backup operation.",
          "properties": {
            "bytesDone": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            },
            "totalBytes": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "snapshotID": {
          "description": "SnapshotID is the identifier for the snapshot in the backup repository.",
          "type": [
            "string",
            "null"
          ]
        },
        "startTimestamp": {
          "description": "StartTimestamp records the time a backup was started.\nSeparate from CreationTimestamp, since that value changes\non restores.\nThe server's time is used for StartTimestamps",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}