All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.requests.security.users.CreateUser.scala Maven / Gradle / Ivy

There is a newer version: 8.15.1
Show newest version
package com.sksamuel.elastic4s.requests.security.users

sealed trait UserAction
case object CreateUser extends UserAction
case object UpdateUser extends UserAction

sealed trait UserPassword
case class PlaintextPassword(value: String) extends UserPassword
case class PasswordHash(value: String) extends UserPassword

case class CreateOrUpdateUserRequest(
	name: String,
	action: UserAction,
	enabled: Option[Boolean]=None,
	email: Option[String]=None,
	fullName: Option[String]=None,
	metadata: Map[String,Any]=Map(),
	password: Option[UserPassword],
	roles: Seq[String]=Seq()
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy