Class GrantApiKeyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GrantApiKeyRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class GrantApiKeyRequest
extends RequestBase
implements JsonpSerializable
Creates an API key on behalf of another user.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<GrantApiKeyRequest>
Json deserializer forGrantApiKeyRequest
static final Endpoint<GrantApiKeyRequest,
GrantApiKeyResponse, ErrorResponse> Endpoint "security.grant_api_key
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
API name:access_token
final GrantApiKey
apiKey()
Required - API name:api_key
final ApiKeyGrantType
Required - API name:grant_type
static GrantApiKeyRequest
final String
password()
API name:password
final String
runAs()
API name:run_as
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
username()
API name:username
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forGrantApiKeyRequest
-
_ENDPOINT
Endpoint "security.grant_api_key
".
-
-
Method Details
-
of
public static GrantApiKeyRequest of(Function<GrantApiKeyRequest.Builder, ObjectBuilder<GrantApiKeyRequest>> fn) -
accessToken
API name:access_token
-
apiKey
Required - API name:api_key
-
grantType
Required - API name:grant_type
-
password
API name:password
-
runAs
API name:run_as
-
username
API name:username
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupGrantApiKeyRequestDeserializer
protected static void setupGrantApiKeyRequestDeserializer(ObjectDeserializer<GrantApiKeyRequest.Builder> op)
-