@Generated public interface TokensService
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
Modifier and Type | Method and Description |
---|---|
CreateTokenResponse |
create(CreateTokenRequest createTokenRequest)
Create a user token.
|
void |
delete(RevokeTokenRequest revokeTokenRequest)
Revoke token.
|
ListTokensResponse |
list()
List tokens.
|
CreateTokenResponse create(CreateTokenRequest createTokenRequest)
Creates and returns a token for a user. If this call is made through token authentication, it creates a token with the same client ID as the authenticated token. If the user's token quota is exceeded, this call returns an error **QUOTA_EXCEEDED**.
void delete(RevokeTokenRequest revokeTokenRequest)
Revokes an access token.
If a token with the specified ID is not valid, this call returns an error **RESOURCE_DOES_NOT_EXIST**.
ListTokensResponse list()
Lists all the valid tokens for a user-workspace pair.
Copyright © 2023. All rights reserved.