Class BulkPutRoleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.BulkPutRoleRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class BulkPutRoleRequest
extends RequestBase
implements JsonpSerializable
Bulk create or update roles.
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk create or update roles API cannot update roles that are defined in roles files.
- 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<BulkPutRoleRequest>
Json deserializer forBulkPutRoleRequest
static final Endpoint<BulkPutRoleRequest,
BulkPutRoleResponse, ErrorResponse> Endpoint "security.bulk_put_role
". -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkPutRoleRequest
final 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.final Map<String,
RoleDescriptor> roles()
Required - A dictionary of role name to RoleDescriptor objects to add or updatevoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forBulkPutRoleRequest
-
_ENDPOINT
Endpoint "security.bulk_put_role
".
-
-
Method Details
-
of
public static BulkPutRoleRequest of(Function<BulkPutRoleRequest.Builder, ObjectBuilder<BulkPutRoleRequest>> 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
-
roles
Required - A dictionary of role name to RoleDescriptor objects to add or updateAPI name:
roles
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupBulkPutRoleRequestDeserializer
protected static void setupBulkPutRoleRequestDeserializer(ObjectDeserializer<BulkPutRoleRequest.Builder> op)
-