{
  "description": "DownloadRequest is a request to download an artifact from backup object storage, such as a backup\nlog file.",
  "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": "DownloadRequestSpec is the specification for a download request.",
      "properties": {
        "target": {
          "additionalProperties": false,
          "description": "Target is what to download (e.g. logs for a backup).",
          "properties": {
            "kind": {
              "description": "Kind is the type of file to download.",
              "enum": [
                "BackupLog",
                "BackupContents",
                "BackupVolumeSnapshots",
                "BackupItemOperations",
                "BackupResourceList",
                "BackupResults",
                "RestoreLog",
                "RestoreResults",
                "RestoreResourceList",
                "RestoreItemOperations",
                "CSIBackupVolumeSnapshots",
                "CSIBackupVolumeSnapshotContents",
                "BackupVolumeInfos",
                "RestoreVolumeInfo"
              ],
              "type": "string"
            },
            "name": {
              "description": "Name is the name of the Kubernetes resource with which the file is associated.",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object"
        }
      },
      "required": [
        "target"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "DownloadRequestStatus is the current status of a DownloadRequest.",
      "properties": {
        "downloadURL": {
          "description": "DownloadURL contains the pre-signed URL for the target file.",
          "type": [
            "string",
            "null"
          ]
        },
        "expiration": {
          "description": "Expiration is when this DownloadRequest expires and can be deleted by the system.",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "phase": {
          "description": "Phase is the current state of the DownloadRequest.",
          "enum": [
            "New",
            "Processed"
          ],
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}