Class IndexPrivilegesCheck
java.lang.Object
co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class IndexPrivilegesCheck extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexPrivilegesCheck.BuilderBuilder forIndexPrivilegesCheck. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IndexPrivilegesCheck>_DESERIALIZERJson deserializer forIndexPrivilegesCheck -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowRestrictedIndices()This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices.java.util.List<java.lang.String>names()Required - A list of indices.static IndexPrivilegesCheckof(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn)java.util.List<IndexPrivilege>privileges()Required - A list of the privileges that you want to check for the specified indices.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIndexPrivilegesCheckDeserializer(ObjectDeserializer<IndexPrivilegesCheck.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 forIndexPrivilegesCheck
-
-
Method Details
-
of
public static IndexPrivilegesCheck of(java.util.function.Function<IndexPrivilegesCheck.Builder,ObjectBuilder<IndexPrivilegesCheck>> fn) -
names
public final java.util.List<java.lang.String> names()Required - A list of indices.API name:
names -
privileges
Required - A list of the privileges that you want to check for the specified indices.API name:
privileges -
allowRestrictedIndices
@Nullable public final java.lang.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
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupIndexPrivilegesCheckDeserializer
protected static void setupIndexPrivilegesCheckDeserializer(ObjectDeserializer<IndexPrivilegesCheck.Builder> op)
-