Class PutUserRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutUserRequest
- All Implemented Interfaces:
JsonpSerializable
Adds and updates users in the native realm. These users are commonly referred
to as native users.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutUserRequest>
Json deserializer forPutUserRequest
static final Endpoint<PutUserRequest,
PutUserResponse, ErrorResponse> Endpoint "security.put_user
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
email()
API name:email
final Boolean
enabled()
API name:enabled
final String
fullName()
API name:full_name
metadata()
API name:metadata
static PutUserRequest
final String
password()
API name:password
final String
API name:password_hash
final Refresh
refresh()
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.roles()
API name:roles
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
username()
Required - The username of the UserMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutUserRequest
-
_ENDPOINT
Endpoint "security.put_user
".
-
-
Method Details
-
of
-
email
API name:email
-
enabled
API name:enabled
-
fullName
API name:full_name
-
metadata
API name:metadata
-
password
API name:password
-
passwordHash
API name:password_hash
-
refresh
Iftrue
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
roles
API name:roles
-
username
Required - The username of the UserAPI name:
username
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutUserRequestDeserializer
protected static void setupPutUserRequestDeserializer(ObjectDeserializer<PutUserRequest.Builder> op)
-