@Generated public class TokensAPI extends Object
Constructor and Description |
---|
TokensAPI(ApiClient apiClient)
Regular-use constructor
|
TokensAPI(TokensService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
CreateTokenResponse |
create(CreateTokenRequest request)
Create a user token.
|
void |
delete(RevokeTokenRequest request)
Revoke token.
|
void |
delete(String tokenId) |
TokensService |
impl() |
Iterable<PublicTokenInfo> |
list()
List tokens.
|
public TokensAPI(ApiClient apiClient)
public TokensAPI(TokensService mock)
public CreateTokenResponse create(CreateTokenRequest request)
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**.
public void delete(String tokenId)
public void delete(RevokeTokenRequest request)
Revokes an access token.
If a token with the specified ID is not valid, this call returns an error **RESOURCE_DOES_NOT_EXIST**.
public Iterable<PublicTokenInfo> list()
Lists all the valid tokens for a user-workspace pair.
public TokensService impl()
Copyright © 2024. All rights reserved.