{
  "description": "BackingImage is where Longhorn stores backing image object.",
  "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": "BackingImageSpec defines the desired state of the Longhorn backing image",
      "properties": {
        "checksum": {
          "type": [
            "string",
            "null"
          ]
        },
        "dataEngine": {
          "default": "v1",
          "enum": [
            "v1",
            "v2"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "diskFileSpecMap": {
          "additionalProperties": {
            "additionalProperties": false,
            "properties": {
              "dataEngine": {
                "enum": [
                  "v1",
                  "v2"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "evictionRequested": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "diskSelector": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "disks": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks.",
          "type": [
            "object",
            "null"
          ]
        },
        "minNumberOfCopies": {
          "type": [
            "integer",
            "null"
          ]
        },
        "nodeSelector": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "secret": {
          "type": [
            "string",
            "null"
          ]
        },
        "secretNamespace": {
          "type": [
            "string",
            "null"
          ]
        },
        "sourceParameters": {
          "additionalProperties": {
            "type": "string"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "sourceType": {
          "enum": [
            "download",
            "upload",
            "export-from-volume",
            "restore",
            "clone"
          ],
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "BackingImageStatus defines the observed state of the Longhorn backing image status",
      "properties": {
        "checksum": {
          "type": [
            "string",
            "null"
          ]
        },
        "diskFileStatusMap": {
          "additionalProperties": {
            "additionalProperties": false,
            "properties": {
              "dataEngine": {
                "enum": [
                  "v1",
                  "v2"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastStateTransitionTime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "progress": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "diskLastRefAtMap": {
          "additionalProperties": {
            "type": "string"
          },
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "ownerID": {
          "type": [
            "string",
            "null"
          ]
        },
        "realSize": {
          "description": "Real size of image in bytes, which may be smaller than the size when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading)",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "size": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "uuid": {
          "type": [
            "string",
            "null"
          ]
        },
        "v2FirstCopyDisk": {
          "type": [
            "string",
            "null"
          ]
        },
        "v2FirstCopyStatus": {
          "description": "It is pending -\u003e in-progress -\u003e ready/failed",
          "type": [
            "string",
            "null"
          ]
        },
        "virtualSize": {
          "description": "Virtual size of image in bytes, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading)",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}