export function createClusterApi(client) {
    return {
        /**
         * Get information about the current state and composition of the cluster
         */
        clusterStatus: client.path('/cluster').method('get').create(),
        /**
         * Get cluster information for a collection
         */
        collectionClusterInfo: client.path('/collections/{collection_name}/cluster').method('get').create(),
        recoverCurrentPeer: client.path('/cluster/recover').method('post').create(),
        /**
         * Tries to remove peer from the cluster. Will return an error if peer has shards on it.
         */
        removePeer: client.path('/cluster/peer/{peer_id}').method('delete').create({ force: true }),
        updateCollectionCluster: client
            .path('/collections/{collection_name}/cluster')
            .method('post')
            .create({ timeout: true }),
    };
}
