{
  "description": "Snapshot is the Schema for the snapshots API",
  "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": "SnapshotSpec defines the desired state of Longhorn Snapshot",
      "properties": {
        "createSnapshot": {
          "description": "require creating a new snapshot",
          "type": [
            "boolean",
            "null"
          ]
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The labels of snapshot",
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "volume": {
          "description": "the volume that this snapshot belongs to.\nThis field is immutable after creation.",
          "type": "string"
        }
      },
      "required": [
        "volume"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "SnapshotStatus defines the observed state of Longhorn Snapshot",
      "properties": {
        "checksum": {
          "type": [
            "string",
            "null"
          ]
        },
        "children": {
          "additionalProperties": {
            "type": "boolean"
          },
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "creationTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "nullable": true,
          "type": [
            "object",
            "null"
          ]
        },
        "markRemoved": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "ownerID": {
          "type": [
            "string",
            "null"
          ]
        },
        "parent": {
          "type": [
            "string",
            "null"
          ]
        },
        "readyToUse": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "restoreSize": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "size": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "userCreated": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}