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 Details

    • ApiTokenApi

      public ApiTokenApi()
    • ApiTokenApi

      @Autowired public ApiTokenApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 id

      200 - 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 id

      200 - 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 id

      200 - 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 tokens

      200 - 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 tokens

      200 - 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 tokens

      200 - 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 id

      204 - 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 id

      204 - 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.RestClientException
      Revoke the Current API Token Revokes the API token provided in the Authorization header

      204 - 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.RestClientException
      Revoke the Current API Token Revokes the API token provided in the Authorization header

      204 - 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