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 classPutPrivilegesRequest.BuilderBuilder 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>_DESERIALIZERstatic Endpoint<PutPrivilegesRequest,PutPrivilegesResponse,ElasticsearchError>ENDPOINTEndpoint "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.JsonValuerefresh()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 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_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
privileges
Required - Request body.API name:
_value_body -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutPrivilegesRequestDeserializer
-