generate: add and doc AlterReplicaLogDirs request
@@ -1089,6 +1089,53 @@ AlterConfigsResponse => from AlterConfigsRequest
// ResourceName is the name corresponding to the alter config request.
ResourceName: string
+// AlterReplicaLogDirsRequest requests for log directories to be moved
+// within Kafka.
+//
+// This is primarily useful for moving directories between disks.
+AlterReplicaLogDirsRequest => key 34, max version 1, admin
+ // LogDirs contains absolute paths of where you want things to end up.
+ LogDirs: [=>]
+ // LogDir is an absolute path where everything listed below should
+ // end up.
+ LogDir: string
+ // Topics contains topics to move to the above log directory.
+ Topics: [=>]
+ // Topic is a topic to move.
+ Topic: string
+ // Partitions contains partitions for the topic to move.
+ Partitions: [int32]
+
+// AlterReplicaLogDirsResponse is returned from an AlterReplicaLogDirsRequest.
+AlterReplicaLogDirsResponse => from AlterReplicaLogDirsRequest
+ // ThrottleTimeMs is how long of a throttle Kafka will apply to the client
+ // after this request.
+ // For Kafka < 2.0.0, the throttle is applied before issuing a response.
+ // For Kafka >= 2.0.0, the throttle is applied after issuing a response.
+ ThrottleTimeMs: int32
+ // Topics contains responses to each topic that had partitions requested
+ // for moving.
+ Topics: [=>]
+ // Topic is the topic this array slot corresponds to.
+ Topic: string
+ // Partitions contains responses to each partition that was requested
+ // to move.
+ Partitions: [=>]
+ // Partition is the partition this array slot corresponds to.
+ Partition: int32
+ // CLUSTER_AUTHORIZATION_FAILED is returned if the client is not
+ // authorized to alter replica dirs.
+ //
+ // LOG_DIR_NOT_FOUND is returned when the requested log directory
+ // is not in the broker config.
+ //
+ // KAFKA_STORAGE_EXCEPTION is returned when destination directory or
+ // requested replica is offline.
+ //
+ // REPLICA_NOT_AVAILABLE is returned if the replica does not exist
+ // yet.
+ ErrorCode: int16
+
// DescribeLogDirsRequest requests directory information for topic partitions.
// This request was added in support of KIP-113.
DescribeLogDirsRequest => key 35, max version 1, admin
