Class DeleteServiceTokenRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.DeleteServiceTokenRequest
public class DeleteServiceTokenRequest extends RequestBase
Deletes a service account token.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteServiceTokenRequest.Builder
Builder forDeleteServiceTokenRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<DeleteServiceTokenRequest,DeleteServiceTokenResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.delete_service_token
". -
Method Summary
Modifier and Type Method Description java.lang.String
name()
Required - An identifier for the token namejava.lang.String
namespace()
Required - An identifier for the namespacestatic DeleteServiceTokenRequest
of(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn)
Refresh
refresh()
Iftrue
then refresh the affected shards to make this operation visible to search, ifwait_for
(the default) then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.java.lang.String
service()
Required - An identifier for the service nameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
public static final Endpoint<DeleteServiceTokenRequest,DeleteServiceTokenResponse,ErrorResponse> _ENDPOINTEndpoint "security.delete_service_token
".
-
-
Method Details
-
of
public static DeleteServiceTokenRequest of(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn) -
name
public final java.lang.String name()Required - An identifier for the token nameAPI name:
name
-
namespace
public final java.lang.String namespace()Required - An identifier for the namespaceAPI name:
namespace
-
refresh
Iftrue
then refresh the affected shards to make this operation visible to search, ifwait_for
(the default) then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.API name:
refresh
-
service
public final java.lang.String service()Required - An identifier for the service nameAPI name:
service
-