{
  "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": "PodVolumeRestoreSpec is the specification for a PodVolumeRestore.",
      "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 PodVolumeRestore. It can be set\nwhen the PodVolumeRestore is in InProgress phase",
          "type": [
            "boolean",
            "null"
          ]
        },
        "pod": {
          "additionalProperties": false,
          "description": "Pod is a reference to the pod containing the volume to be restored.",
          "properties": {
            "apiVersion": {
              "description": "API version of the referent.",
              "type": [
                "string",
                "null"
              ]
            },
            "fieldPath": {
              "description": "If referring to a piece of an object instead of an entire object, this string\nshould contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].\nFor example, if the object reference is to a container within a pod, this would take on a value like:\n\"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered\nthe event) or if no container name is specified \"spec.containers[2]\" (container with\nindex 2 in this pod). This syntax is chosen only to have some well-defined way of\nreferencing a part of an object.",
              "type": [
                "string",
                "null"
              ]
            },
            "kind": {
              "description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
              "type": [
                "string",
                "null"
              ]
            },
            "namespace": {
              "description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
              "type": [
                "string",
                "null"
              ]
            },
            "resourceVersion": {
              "description": "Specific resourceVersion to which this reference is made, if any.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
              "type": [
                "string",
                "null"
              ]
            },
            "uid": {
              "description": "UID of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object",
          "x-kubernetes-map-type": "atomic"
        },
        "repoIdentifier": {
          "description": "RepoIdentifier is the backup repository identifier.",
          "type": "string"
        },
        "snapshotID": {
          "description": "SnapshotID is the ID of the volume snapshot to be restored.",
          "type": "string"
        },
        "sourceNamespace": {
          "description": "SourceNamespace is the original namespace for namaspace mapping.",
          "type": "string"
        },
        "uploaderSettings": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "UploaderSettings are a map of key-value pairs that should be applied to the\nuploader configuration.",
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "uploaderType": {
          "description": "UploaderType is the type of the uploader to handle the data transfer.",
          "enum": [
            "kopia",
            "restic",
            ""
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "volume": {
          "description": "Volume is the name of the volume within the Pod to be restored.",
          "type": "string"
        }
      },
      "required": [
        "backupStorageLocation",
        "pod",
        "repoIdentifier",
        "snapshotID",
        "sourceNamespace",
        "volume"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "PodVolumeRestoreStatus is the current status of a PodVolumeRestore.",
      "properties": {
        "acceptedTimestamp": {
          "description": "AcceptedTimestamp records the time the pod volume restore 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 restore was completed.\nCompletion time is recorded even on failed restores.\nThe server's time is used for CompletionTimestamps",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "description": "Message is a message about the pod volume restore's status.",
          "type": [
            "string",
            "null"
          ]
        },
        "node": {
          "description": "Node is name of the node where the pod volume restore is processed.",
          "type": [
            "string",
            "null"
          ]
        },
        "phase": {
          "description": "Phase is the current state of the PodVolumeRestore.",
          "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 snapshot and the current\nnumber of restored bytes. This can be used to display progress information\nabout the restore operation.",
          "properties": {
            "bytesDone": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            },
            "totalBytes": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "startTimestamp": {
          "description": "StartTimestamp records the time a restore was started.\nThe server's time is used for StartTimestamps",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}