Class IndexPrivilegesCheck

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

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

  • Method Details

    • of

    • names

      public final List<String> names()
      Required - A list of indices.

      API name: names

    • privileges

      public final List<String> privileges()
      Required - A list of the privileges that you want to check for the specified indices.

      API name: privileges

    • allowRestrictedIndices

      @Nullable public final Boolean allowRestrictedIndices()
      This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices.

      API name: allow_restricted_indices

    • 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
    • setupIndexPrivilegesCheckDeserializer

      protected static void setupIndexPrivilegesCheckDeserializer(ObjectDeserializer<IndexPrivilegesCheck.Builder> op)