Class RoleDescriptorRead
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleDescriptorRead
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RoleDescriptorRead>Json deserializer forRoleDescriptorRead -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ApplicationPrivileges>A list of application privilege entriescluster()Required - A list of cluster privileges.final StringAn optional description of the role descriptor.final List<GlobalPrivilege>global()An object defining global privileges.final List<IndicesPrivileges>indices()Required - A list of indices permissions entries.metadata()Optional meta-data.static RoleDescriptorReadfinal List<RemoteClusterPrivileges>A list of cluster permissions for remote clusters.final List<RemoteIndicesPrivileges>A list of indices permissions for remote clusters.final RestrictionA restriction for when the role descriptor is allowed to be effective.runAs()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()API name:transient_metadata
-
Field Details
-
_DESERIALIZER
Json deserializer forRoleDescriptorRead
-
-
Method Details
-
of
public static RoleDescriptorRead of(Function<RoleDescriptorRead.Builder, ObjectBuilder<RoleDescriptorRead>> fn) -
cluster
Required - A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.API name:
cluster -
indices
Required - 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.API name:
run_as -
description
An optional description of the role descriptor.API name:
description -
restriction
A 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
-
setupRoleDescriptorReadDeserializer
protected static void setupRoleDescriptorReadDeserializer(ObjectDeserializer<RoleDescriptorRead.Builder> op)
-