{
  "description": "ZFSBackup describes a zfs backup resource created as a custom resource",
  "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": "ZFSBackupSpec is the spec for a ZFSBackup resource",
      "properties": {
        "backupDest": {
          "description": "BackupDest is the remote address for backup transfer",
          "minLength": 1,
          "pattern": "^([0-9]+.[0-9]+.[0-9]+.[0-9]+:[0-9]+)$",
          "type": "string"
        },
        "ownerNodeID": {
          "description": "OwnerNodeID is a name of the nodes where the source volume is",
          "minLength": 1,
          "type": "string"
        },
        "prevSnapName": {
          "description": "PrevSnapName is the last completed-backup's snapshot name",
          "type": [
            "string",
            "null"
          ]
        },
        "snapName": {
          "description": "SnapName is the snapshot name for backup",
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "volumeName": {
          "description": "VolumeName is a name of the volume for which this backup is destined",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "backupDest",
        "ownerNodeID",
        "volumeName"
      ],
      "type": "object"
    },
    "status": {
      "description": "ZFSBackupStatus is to hold status of backup",
      "enum": [
        "Init",
        "Done",
        "Failed",
        "Pending",
        "InProgress",
        "Invalid"
      ],
      "type": "string"
    }
  },
  "required": [
    "spec",
    "status"
  ],
  "type": "object"
}