Package org.openapitools.client.api
Class ApiTokenApi
java.lang.Object
org.openapitools.client.api.ApiTokenApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-04-19T09:13:44.263607-05:00[America/Chicago]")
@Component("org.openapitools.client.api.ApiTokenApi")
public class ApiTokenApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApiToken
(String apiTokenId) Retrieve an API Token's Metadata Retrieves the metadata for an active API token by idorg.springframework.http.ResponseEntity<ApiToken>
getApiTokenWithHttpInfo
(String apiTokenId) Retrieve an API Token's Metadata Retrieves the metadata for an active API token by idgetApiTokenWithPaginationInfo
(String apiTokenId) Retrieve an API Token's Metadata Retrieves the metadata for an active API token by idlistApiTokens
(String after, Integer limit, String q) List all API Token Metadata Lists all the metadata of the active API tokenslistApiTokensWithHttpInfo
(String after, Integer limit, String q) List all API Token Metadata Lists all the metadata of the active API tokenslistApiTokensWithPaginationInfo
(String after, Integer limit, String q) List all API Token Metadata Lists all the metadata of the active API tokensvoid
revokeApiToken
(String apiTokenId) Revoke an API Token Revoke an API token by idorg.springframework.http.ResponseEntity<Void>
revokeApiTokenWithHttpInfo
(String apiTokenId) Revoke an API Token Revoke an API token by idvoid
Revoke the Current API Token Revokes the API token provided in the Authorization headerorg.springframework.http.ResponseEntity<Void>
Revoke the Current API Token Revokes the API token provided in the Authorization headervoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApiTokenApi
public ApiTokenApi() -
ApiTokenApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getApiToken
public ApiToken getApiToken(String apiTokenId) throws org.springframework.web.client.RestClientException Retrieve an API Token's Metadata Retrieves the metadata for an active API token by id200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
apiTokenId
- id of the API Token (required)- Returns:
- ApiToken
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getApiTokenWithHttpInfo
public org.springframework.http.ResponseEntity<ApiToken> getApiTokenWithHttpInfo(String apiTokenId) throws org.springframework.web.client.RestClientException Retrieve an API Token's Metadata Retrieves the metadata for an active API token by id200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
apiTokenId
- id of the API Token (required)- Returns:
- ResponseEntity<ApiToken>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getApiTokenWithPaginationInfo
public PagedList getApiTokenWithPaginationInfo(String apiTokenId) throws org.springframework.web.client.RestClientException Retrieve an API Token's Metadata Retrieves the metadata for an active API token by id200 - OK
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
apiTokenId
- id of the API Token (required)- Returns:
- ResponseEntity<ApiToken>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listApiTokens
public List<ApiToken> listApiTokens(String after, Integer limit, String q) throws org.springframework.web.client.RestClientException List all API Token Metadata Lists all the metadata of the active API tokens200 - OK
403 - Forbidden
429 - Too Many Requests
- Parameters:
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return. (optional, default to 20)q
- Finds a token that matches the name or clientName. (optional)- Returns:
- List<ApiToken>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listApiTokensWithHttpInfo
public org.springframework.http.ResponseEntity<List<ApiToken>> listApiTokensWithHttpInfo(String after, Integer limit, String q) throws org.springframework.web.client.RestClientException List all API Token Metadata Lists all the metadata of the active API tokens200 - OK
403 - Forbidden
429 - Too Many Requests
- Parameters:
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return. (optional, default to 20)q
- Finds a token that matches the name or clientName. (optional)- Returns:
- ResponseEntity<List<ApiToken>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listApiTokensWithPaginationInfo
public PagedList listApiTokensWithPaginationInfo(String after, Integer limit, String q) throws org.springframework.web.client.RestClientException List all API Token Metadata Lists all the metadata of the active API tokens200 - OK
403 - Forbidden
429 - Too Many Requests
- Parameters:
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return. (optional, default to 20)q
- Finds a token that matches the name or clientName. (optional)- Returns:
- ResponseEntity<List<ApiToken>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeApiToken
public void revokeApiToken(String apiTokenId) throws org.springframework.web.client.RestClientException Revoke an API Token Revoke an API token by id204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
apiTokenId
- id of the API Token (required)- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeApiTokenWithHttpInfo
public org.springframework.http.ResponseEntity<Void> revokeApiTokenWithHttpInfo(String apiTokenId) throws org.springframework.web.client.RestClientException Revoke an API Token Revoke an API token by id204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
apiTokenId
- id of the API Token (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeCurrentApiToken
public void revokeCurrentApiToken() throws org.springframework.web.client.RestClientExceptionRevoke the Current API Token Revokes the API token provided in the Authorization header204 - No Content
403 - Forbidden
429 - Too Many Requests
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
revokeCurrentApiTokenWithHttpInfo
public org.springframework.http.ResponseEntity<Void> revokeCurrentApiTokenWithHttpInfo() throws org.springframework.web.client.RestClientExceptionRevoke the Current API Token Revokes the API token provided in the Authorization header204 - No Content
403 - Forbidden
429 - Too Many Requests
- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-