Class RoleDescriptor
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleDescriptor
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RoleDescriptor>Json deserializer forRoleDescriptor -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ApplicationPrivileges>A list of application privilege entriescluster()A list of cluster privileges.final List<GlobalPrivilege>global()An object defining global privileges.final List<IndicesPrivileges>indices()A list of indices permissions entries.metadata()Optional meta-data.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 voidtoString()final TransientMetadataConfigAPI name:transient_metadata
-
Field Details
-
_DESERIALIZER
Json deserializer forRoleDescriptor
-
-
Method Details
-
of
-
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 -
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.API name:
run_as -
transientMetadata
API name:transient_metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupRoleDescriptorDeserializer
protected static void setupRoleDescriptorDeserializer(ObjectDeserializer<RoleDescriptor.Builder> op)
-