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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<BulkPutRoleRequest>Json deserializer forBulkPutRoleRequeststatic final Endpoint<BulkPutRoleRequest,BulkPutRoleResponse, ErrorResponse> Endpoint "security.bulk_put_role".
- 
Method SummaryModifier and TypeMethodDescriptionstatic BulkPutRoleRequestfinal 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.final Map<String,RoleDescriptor> roles()Required - A dictionary of role name to RoleDescriptor objects to add or updatevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forBulkPutRoleRequest
- 
_ENDPOINTEndpoint "security.bulk_put_role".
 
- 
- 
Method Details- 
ofpublic static BulkPutRoleRequest of(Function<BulkPutRoleRequest.Builder, ObjectBuilder<BulkPutRoleRequest>> fn) 
- 
refreshIftrue(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
- 
rolesRequired - A dictionary of role name to RoleDescriptor objects to add or updateAPI name: roles
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupBulkPutRoleRequestDeserializerprotected static void setupBulkPutRoleRequestDeserializer(ObjectDeserializer<BulkPutRoleRequest.Builder> op) 
 
-