{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Panda-Hook Destroy",
    "description": "This is the configuation object panda-hook needs to delete a repo from the hook-server",
    "type": "object",
    "properties": {
        "cluster_address": {
            "description": "The hostname of the cluster.  Must specify user and port if not 22. <user>@<host_address>:<port>",
            "type": "string"
        },
        "repo_name": {
            "description": "The name of the repository to be manipulated on the hook server.",
            "type": "string"
        },
        "hook_address": {
            "description": "The hostname of the hook-server.  Must specify user and port if not 22. <user>@<host_address>:<port>",
            "type": "string"
        },
        "hook_source": {
            "description": "The path of the githook template.",
            "type": "string"
        },
        "hook_name": {
            "description": "The name of the githook to be manipulated.",
            "type": "string",
            "enum": [
                "applypatch-msg",
                "pre-applypatch",
                "post-applypatch",
                "pre-commit",
                "prepare-commit-msg",
                "commit-msg",
                "commit-msg",
                "post-commit",
                "pre-rebase",
                "post-checkout",
                "post-merge",
                "pre-push",
                "pre-receive",
                "update",
                "post-receive",
                "post-update",
                "pre-auto-gc",
                "post-rewrite"
            ]
        },
        "launch_path": {
            "description": "Relatvive path to target directory to scan for service names",
            "type": "string"
        }
    },
    "additionalProperties": false,
    "required": [
        "cluster_address",
        "repo_name",
        "hook_address"
    ]
}