CreateShardKeyRequest

@Serializable
data class CreateShardKeyRequest(val shardKey: ShardKey, val shardsNumber: Int? = null, val replicationFactor: Int? = null, val placement: List<Long>? = null)

Request body for PUT /collections/{name}/shards.

Constructors

Link copied to clipboard
constructor(shardKey: ShardKey, shardsNumber: Int? = null, replicationFactor: Int? = null, placement: List<Long>? = null)

Properties

Link copied to clipboard
@SerialName(value = "placement")
val placement: List<Long>?
Link copied to clipboard
@SerialName(value = "replication_factor")
val replicationFactor: Int?
Link copied to clipboard
@SerialName(value = "shard_key")
val shardKey: ShardKey
Link copied to clipboard
@SerialName(value = "shards_number")
val shardsNumber: Int?