Class PutPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutPrivilegesRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class PutPrivilegesRequest extends RequestBase implements JsonpSerializable
-
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,ElasticsearchError>
ENDPOINT
Endpoint "security.put_privileges
". -
Constructor Summary
Constructors Constructor Description PutPrivilegesRequest(PutPrivilegesRequest.Builder builder)
PutPrivilegesRequest(java.util.function.Function<PutPrivilegesRequest.Builder,PutPrivilegesRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutPrivilegesRequest>
createPutPrivilegesRequestDeserializer()
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Actions>>
privileges()
Required - Request body.jakarta.json.JsonValue
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
public static final Endpoint<PutPrivilegesRequest,PutPrivilegesResponse,ElasticsearchError> ENDPOINTEndpoint "security.put_privileges
".
-
-
Constructor Details
-
PutPrivilegesRequest
-
PutPrivilegesRequest
public PutPrivilegesRequest(java.util.function.Function<PutPrivilegesRequest.Builder,PutPrivilegesRequest.Builder> fn)
-
-
Method Details
-
refresh
@Nullable public jakarta.json.JsonValue 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
-