Class GrantApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.grant_api_key.GrantApiKey
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GrantApiKey>Json deserializer forGrantApiKey -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeExpiration time for the API key.metadata()Arbitrary metadata that you want to associate with the API key.final Stringname()Required - API name:namestatic GrantApiKeyfinal List<Map<String,RoleDescriptor>> The role descriptors for this API key.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 forGrantApiKey
-
-
Method Details
-
of
-
name
Required - API name:name -
expiration
Expiration time for the API key. By default, API keys never expire.API name:
expiration -
roleDescriptors
The role descriptors for this API key. When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token.API name:
role_descriptors -
metadata
Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within themetadataobject, keys beginning with_are reserved for system usage.API name:
metadata -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGrantApiKeyDeserializer
-