Repairs a storage unit on the node.

    @type node: str
    @param node: node whose storage units to repair
    @type storage_type: str
    @param storage_type: storage type to repair
    @type name: str
    @param name: name of the storage unit to repair

    @rtype: int
    @return: job id

def RepairNodeStorageUnits(r, node, storage_type, name):
    """
    Repairs a storage unit on the node.

    @type node: str
    @param node: node whose storage units to repair
    @type storage_type: str
    @param storage_type: storage type to repair
    @type name: str
    @param name: name of the storage unit to repair

    @rtype: int
    @return: job id
    """

    query = {
        "storage_type": storage_type,
        "name": name,
    }

    return r.request("put", "/2/nodes/%s/storage/repair" % node, query=query)