Class IndicesPrivileges
java.lang.Object
co.elastic.clients.elasticsearch.security.IndicesPrivileges
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class IndicesPrivileges extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndicesPrivileges.BuilderBuilder forIndicesPrivileges. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IndicesPrivileges>_DESERIALIZERJson deserializer forIndicesPrivileges -
Constructor Summary
Constructors Constructor Description IndicesPrivileges(IndicesPrivileges.Builder builder)IndicesPrivileges(java.util.function.Function<IndicesPrivileges.Builder,IndicesPrivileges.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowRestrictedIndices()Set totrueif using wildcard or regular expressions for patterns that cover restricted indices.FieldSecurityfieldSecurity()The document fields that the owners of the role have read access to.java.util.List<java.lang.String>names()Required - A list of indices (or index name patterns) to which the permissions in this entry apply.java.util.List<IndexPrivilege>privileges()Required - The index level privileges that owners of the role have on the specified indices.Queryquery()A search query that defines the documents the owners of the role have read access to.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIndicesPrivilegesDeserializer(DelegatingDeserializer<IndicesPrivileges.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forIndicesPrivileges
-
-
Constructor Details
-
IndicesPrivileges
-
IndicesPrivileges
public IndicesPrivileges(java.util.function.Function<IndicesPrivileges.Builder,IndicesPrivileges.Builder> fn)
-
-
Method Details
-
fieldSecurity
The document fields that the owners of the role have read access to.API name:
field_security -
names
public java.util.List<java.lang.String> names()Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
names -
privileges
Required - The index level privileges that owners of the role have on the specified indices.API name:
privileges -
query
A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.API name:
query -
allowRestrictedIndices
@Nullable public java.lang.Boolean allowRestrictedIndices()Set totrueif using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in thenameslist, Elasticsearch checks privileges against these indices regardless of the value set forallow_restricted_indices.API name:
allow_restricted_indices -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupIndicesPrivilegesDeserializer
protected static void setupIndicesPrivilegesDeserializer(DelegatingDeserializer<IndicesPrivileges.Builder> op)
-