Class IndexPrivilegesCheck
java.lang.Object
co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IndexPrivilegesCheck>Json deserializer forIndexPrivilegesCheck -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanThis needs to be set totrue(default isfalse) if using wildcards or regexps for patterns that cover restricted indices.names()Required - A list of indices.static IndexPrivilegesCheckRequired - 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 voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forIndexPrivilegesCheck
-
-
Method Details
-
of
public static IndexPrivilegesCheck of(Function<IndexPrivilegesCheck.Builder, ObjectBuilder<IndexPrivilegesCheck>> fn) -
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
This needs to be set totrue(default isfalse) 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 ofallow_restricted_indices.API name:
allow_restricted_indices -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupIndexPrivilegesCheckDeserializer
protected static void setupIndexPrivilegesCheckDeserializer(ObjectDeserializer<IndexPrivilegesCheck.Builder> op)
-