Class PutRoleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutRoleRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class PutRoleRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutRoleRequest.BuilderBuilder forPutRoleRequest.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<PutRoleRequest>_DESERIALIZERJson deserializer forPutRoleRequeststatic Endpoint<PutRoleRequest,PutRoleResponse,ElasticsearchError>ENDPOINTEndpoint "security.put_role". -
Constructor Summary
Constructors Constructor Description PutRoleRequest(PutRoleRequest.Builder builder)PutRoleRequest(java.util.function.Function<PutRoleRequest.Builder,PutRoleRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.util.List<ApplicationPrivileges>applications()A list of application privilege entries.java.util.List<ClusterPrivilege>cluster()A list of cluster privileges.java.util.Map<java.lang.String,JsonData>global()An object defining global privileges.java.util.List<IndicesPrivileges>indices()A list of indices permissions entries.java.util.Map<java.lang.String,JsonData>metadata()Optional metadata.java.lang.Stringname()Required - Role namejakarta.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.java.util.List<java.lang.String>runAs()A list of users that the owners of this role can impersonate.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPutRoleRequestDeserializer(DelegatingDeserializer<PutRoleRequest.Builder> op)TransientMetadatatransientMetadata()Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutRoleRequest -
ENDPOINT
Endpoint "security.put_role".
-
-
Constructor Details
-
PutRoleRequest
-
PutRoleRequest
public PutRoleRequest(java.util.function.Function<PutRoleRequest.Builder,PutRoleRequest.Builder> fn)
-
-
Method Details
-
name
public java.lang.String name()Required - Role nameAPI name:
name -
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 -
applications
A list of application privilege entries.API name:
applications -
cluster
A list of cluster privileges. These privileges define the cluster-level actions for users with this role.API name:
cluster -
global
An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.API name:
global -
indices
A list of indices permissions entries.API name:
indices -
metadata
Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use.API name:
metadata -
runAs
@Nullable public java.util.List<java.lang.String> runAs()A list of users that the owners of this role can impersonate.API name:
run_as -
transientMetadata
Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. Ifenabledisfalse, the role is ignored, but is still listed in the response from the authenticate API.API name:
transient_metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutRoleRequestDeserializer
protected static void setupPutRoleRequestDeserializer(DelegatingDeserializer<PutRoleRequest.Builder> op)
-