Class RoleDescriptor
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleDescriptor
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
QueryRole
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RoleDescriptor>Json deserializer forRoleDescriptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRoleDescriptor(RoleDescriptor.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ApplicationPrivileges>A list of application privilege entriescluster()A list of cluster privileges.final StringOptional description of the role descriptorfinal List<GlobalPrivilege>global()An object defining global privileges.final List<IndicesPrivileges>indices()A list of indices permissions entries.metadata()Optional meta-data.final List<RemoteClusterPrivileges>A list of cluster permissions for remote clusters.final List<RemoteIndicesPrivileges>A list of indices permissions for remote clusters.final RestrictionRestriction for when the role descriptor is allowed to be effective.static RoleDescriptorrunAs()A list of users that the API keys 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 <BuilderT extends RoleDescriptor.AbstractBuilder<BuilderT>>
voidsetupRoleDescriptorDeserializer(ObjectDeserializer<BuilderT> op) toString()API name:transient_metadata
-
Field Details
-
_DESERIALIZER
Json deserializer forRoleDescriptor
-
-
Constructor Details
-
RoleDescriptor
-
-
Method Details
-
roleDescriptorOf
public static RoleDescriptor roleDescriptorOf(Function<RoleDescriptor.Builder, ObjectBuilder<RoleDescriptor>> fn) -
cluster
A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
cluster -
indices
A list of indices permissions entries.API name:
indices -
remoteIndices
A list of indices permissions for remote clusters.API name:
remote_indices -
remoteCluster
A list of cluster permissions for remote clusters. NOTE: This is limited a subset of the cluster permissions.API name:
remote_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 -
applications
A list of application privilege entriesAPI name:
applications -
metadata
Optional meta-data. Within the metadata object, keys that begin with_are reserved for system usage.API name:
metadata -
runAs
A list of users that the API keys can impersonate. NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. For API compatibility, you can still specify an emptyrun_asfield, but a non-empty list will be rejected.API name:
run_as -
description
Optional description of the role descriptorAPI name:
description -
restriction
Restriction for when the role descriptor is allowed to be effective.API name:
restriction -
transientMetadata
API name:transient_metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupRoleDescriptorDeserializer
protected static <BuilderT extends RoleDescriptor.AbstractBuilder<BuilderT>> void setupRoleDescriptorDeserializer(ObjectDeserializer<BuilderT> op)
-