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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutPrivilegesRequest.Builder
Builder forPutPrivilegesRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutPrivilegesRequest>
_DESERIALIZER
static Endpoint<PutPrivilegesRequest,PutPrivilegesResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.put_privileges
". -
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutPrivilegesRequest>
createPutPrivilegesRequestDeserializer()
static PutPrivilegesRequest
of(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn)
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Actions>>
privileges()
Required - Request body.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.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this value to JSON.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
Endpoint "security.put_privileges
".
-
-
Method Details
-
of
public static PutPrivilegesRequest of(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn) -
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
-
privileges
Required - Request body.API name:
_value_body
-
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createPutPrivilegesRequestDeserializer
-