Class IndicesPrivilegesRead
java.lang.Object
co.elastic.clients.elasticsearch.security.get_role.IndicesPrivilegesRead
- All Implemented Interfaces:
JsonpSerializable
Read-side variant of
IndicesPrivileges returned by the get role
API. Carries the implicitly_granted marker that is set on
entries contributed by a registered ImplicitPrivilegesProvider
when include_implicit is true.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IndicesPrivilegesRead>Json deserializer forIndicesPrivilegesRead -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanSet totrueif using wildcard or regular expressions for patterns that cover restricted indices.final FieldSecurityThe document fields that the owners of the role have read access to.final BooleanSet totrueon entries that were contributed by a registeredImplicitPrivilegesProviderrather than explicitly stored on the role.names()Required - A list of indices (or index name patterns) to which the permissions in this entry apply.static IndicesPrivilegesReadRequired - The index level privileges that owners of the role have on the specified indices.final IndicesPrivilegesQueryquery()A search query that defines the documents the owners of the role have access to.rebuild()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 forIndicesPrivilegesRead
-
-
Method Details
-
of
public static IndicesPrivilegesRead of(Function<IndicesPrivilegesRead.Builder, ObjectBuilder<IndicesPrivilegesRead>> fn) -
implicitlyGranted
Set totrueon entries that were contributed by a registeredImplicitPrivilegesProviderrather than explicitly stored on the role. Only present when the get role API is called withinclude_implicit=true. The put role API rejects this field, so clients must not echo it back on a GET-then-PUT round-trip.API name:
implicitly_granted -
fieldSecurity
The document fields that the owners of the role have read access to.API name:
field_security -
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 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
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
-
toString
-
rebuild
- Returns:
- New
IndicesPrivilegesRead.Builderinitialized with field values of this instance
-
setupIndicesPrivilegesReadDeserializer
protected static void setupIndicesPrivilegesReadDeserializer(ObjectDeserializer<IndicesPrivilegesRead.Builder> op)
-