class AlterReplicaLogDirsRequest extends AbstractRequest {

    public Map<TopicPartition, String> partitionDirs() {
        Map<TopicPartition, String> result = new HashMap<>();
        data.dirs().forEach(alterDir ->
            alterDir.topics().forEach(topic ->
                topic.partitions().forEach(partition ->
                    result.put(new TopicPartition(topic.name(), partition.intValue()), alterDir.path())))
        );
        return result;
    }

    public  AlterReplicaLogDirsRequest(Struct struct, short version);
    public  AlterReplicaLogDirsRequest(AlterReplicaLogDirsRequestData data, short version);

}