Class PutPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutPrivilegesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutPrivilegesRequest
extends RequestBase
implements JsonpSerializable
Adds or updates application privileges.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutPrivilegesRequest>static final Endpoint<PutPrivilegesRequest,PutPrivilegesResponse, ErrorResponse> Endpoint "security.put_privileges". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<PutPrivilegesRequest>Get an element ofprivileges.static PutPrivilegesRequestRequired - Request body.final Refreshrefresh()Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
Endpoint "security.put_privileges".
-
-
Method Details
-
of
public static PutPrivilegesRequest of(Function<PutPrivilegesRequest.Builder, ObjectBuilder<PutPrivilegesRequest>> fn) -
refresh
Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
privileges
Required - Request body. -
get
Get an element ofprivileges. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutPrivilegesRequestDeserializer
-