Class RoleDescriptorRead

java.lang.Object
co.elastic.clients.elasticsearch.security.RoleDescriptorRead
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class RoleDescriptorRead extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • cluster

      public final List<String> 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

      public final List<IndicesPrivileges> indices()
      Required - A list of indices permissions entries.

      API name: indices

    • remoteIndices

      public final List<RemoteIndicesPrivileges> remoteIndices()
      A list of indices permissions for remote clusters.

      API name: remote_indices

    • remoteCluster

      public final List<RemoteClusterPrivileges> remoteCluster()
      A list of cluster permissions for remote clusters. NOTE: This is limited a subset of the cluster permissions.

      API name: remote_cluster

    • global

      public final List<GlobalPrivilege> 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

      public final List<ApplicationPrivileges> applications()
      A list of application privilege entries

      API name: applications

    • metadata

      public final Map<String,JsonData> metadata()
      Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage.

      API name: metadata

    • runAs

      public final List<String> runAs()
      A list of users that the API keys can impersonate.

      API name: run_as

    • description

      @Nullable public final String description()
      An optional description of the role descriptor.

      API name: description

    • restriction

      @Nullable public final Restriction restriction()
      A restriction for when the role descriptor is allowed to be effective.

      API name: restriction

    • transientMetadata

      public final Map<String,JsonData> transientMetadata()
      API name: transient_metadata
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupRoleDescriptorReadDeserializer

      protected static void setupRoleDescriptorReadDeserializer(ObjectDeserializer<RoleDescriptorRead.Builder> op)