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 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,ErrorResponse>_ENDPOINTEndpoint "security.put_privileges". -
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutPrivilegesRequest>createPutPrivilegesRequestDeserializer()java.util.Map<java.lang.String,Actions>get(java.lang.String key)Get an element ofprivileges.static PutPrivilegesRequestof(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.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
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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_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
-