Package com.launchdarkly.api.api
Class AccessTokensApi
- java.lang.Object
-
- com.launchdarkly.api.api.AccessTokensApi
-
public class AccessTokensApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AccessTokensApi()AccessTokensApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteToken(java.lang.String id)Delete access token Delete an access token by ID.okhttp3.CalldeleteTokenAsync(java.lang.String id, ApiCallback<java.lang.Void> _callback)Delete access token (asynchronously) Delete an access token by ID.okhttp3.CalldeleteTokenCall(java.lang.String id, ApiCallback _callback)Build call for deleteTokenApiResponse<java.lang.Void>deleteTokenWithHttpInfo(java.lang.String id)Delete access token Delete an access token by ID.ApiClientgetApiClient()TokengetToken(java.lang.String id)Get access token Get a single access token by ID.okhttp3.CallgetTokenAsync(java.lang.String id, ApiCallback<Token> _callback)Get access token (asynchronously) Get a single access token by ID.okhttp3.CallgetTokenCall(java.lang.String id, ApiCallback _callback)Build call for getTokenTokensgetTokens(java.lang.Boolean showAll)List access tokens Fetch a list of all access tokens.okhttp3.CallgetTokensAsync(java.lang.Boolean showAll, ApiCallback<Tokens> _callback)List access tokens (asynchronously) Fetch a list of all access tokens.okhttp3.CallgetTokensCall(java.lang.Boolean showAll, ApiCallback _callback)Build call for getTokensApiResponse<Tokens>getTokensWithHttpInfo(java.lang.Boolean showAll)List access tokens Fetch a list of all access tokens.ApiResponse<Token>getTokenWithHttpInfo(java.lang.String id)Get access token Get a single access token by ID.TokenpatchToken(java.lang.String id, java.util.List<PatchOperation> patchOperation)Patch access token Update an access token's settings.okhttp3.CallpatchTokenAsync(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback<Token> _callback)Patch access token (asynchronously) Update an access token's settings.okhttp3.CallpatchTokenCall(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)Build call for patchTokenApiResponse<Token>patchTokenWithHttpInfo(java.lang.String id, java.util.List<PatchOperation> patchOperation)Patch access token Update an access token's settings.TokenpostToken(AccessTokenPost accessTokenPost)Create access token Create a new access token.okhttp3.CallpostTokenAsync(AccessTokenPost accessTokenPost, ApiCallback<Token> _callback)Create access token (asynchronously) Create a new access token.okhttp3.CallpostTokenCall(AccessTokenPost accessTokenPost, ApiCallback _callback)Build call for postTokenApiResponse<Token>postTokenWithHttpInfo(AccessTokenPost accessTokenPost)Create access token Create a new access token.TokenresetToken(java.lang.String id, java.lang.Long expiry)Reset access token Reset an access token's secret key with an optional expiry time for the old key.okhttp3.CallresetTokenAsync(java.lang.String id, java.lang.Long expiry, ApiCallback<Token> _callback)Reset access token (asynchronously) Reset an access token's secret key with an optional expiry time for the old key.okhttp3.CallresetTokenCall(java.lang.String id, java.lang.Long expiry, ApiCallback _callback)Build call for resetTokenApiResponse<Token>resetTokenWithHttpInfo(java.lang.String id, java.lang.Long expiry)Reset access token Reset an access token's secret key with an optional expiry time for the old key.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
AccessTokensApi
public AccessTokensApi()
-
AccessTokensApi
public AccessTokensApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
deleteTokenCall
public okhttp3.Call deleteTokenCall(java.lang.String id, ApiCallback _callback) throws ApiExceptionBuild call for deleteToken- Parameters:
id- The ID of the access token to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteToken
public void deleteToken(java.lang.String id) throws ApiExceptionDelete access token Delete an access token by ID.- Parameters:
id- The ID of the access token to update (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteTokenWithHttpInfo
public ApiResponse<java.lang.Void> deleteTokenWithHttpInfo(java.lang.String id) throws ApiException
Delete access token Delete an access token by ID.- Parameters:
id- The ID of the access token to update (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteTokenAsync
public okhttp3.Call deleteTokenAsync(java.lang.String id, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete access token (asynchronously) Delete an access token by ID.- Parameters:
id- The ID of the access token to update (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getTokenCall
public okhttp3.Call getTokenCall(java.lang.String id, ApiCallback _callback) throws ApiExceptionBuild call for getToken- Parameters:
id- The ID of the access token (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getToken
public Token getToken(java.lang.String id) throws ApiException
Get access token Get a single access token by ID.- Parameters:
id- The ID of the access token (required)- Returns:
- Token
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTokenWithHttpInfo
public ApiResponse<Token> getTokenWithHttpInfo(java.lang.String id) throws ApiException
Get access token Get a single access token by ID.- Parameters:
id- The ID of the access token (required)- Returns:
- ApiResponse<Token>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTokenAsync
public okhttp3.Call getTokenAsync(java.lang.String id, ApiCallback<Token> _callback) throws ApiExceptionGet access token (asynchronously) Get a single access token by ID.- Parameters:
id- The ID of the access token (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getTokensCall
public okhttp3.Call getTokensCall(java.lang.Boolean showAll, ApiCallback _callback) throws ApiExceptionBuild call for getTokens- Parameters:
showAll- If set to true, and the authentication access token has the 'Admin' role, personal access tokens for all members will be retrieved. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getTokens
public Tokens getTokens(java.lang.Boolean showAll) throws ApiException
List access tokens Fetch a list of all access tokens.- Parameters:
showAll- If set to true, and the authentication access token has the 'Admin' role, personal access tokens for all members will be retrieved. (optional)- Returns:
- Tokens
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTokensWithHttpInfo
public ApiResponse<Tokens> getTokensWithHttpInfo(java.lang.Boolean showAll) throws ApiException
List access tokens Fetch a list of all access tokens.- Parameters:
showAll- If set to true, and the authentication access token has the 'Admin' role, personal access tokens for all members will be retrieved. (optional)- Returns:
- ApiResponse<Tokens>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTokensAsync
public okhttp3.Call getTokensAsync(java.lang.Boolean showAll, ApiCallback<Tokens> _callback) throws ApiExceptionList access tokens (asynchronously) Fetch a list of all access tokens.- Parameters:
showAll- If set to true, and the authentication access token has the 'Admin' role, personal access tokens for all members will be retrieved. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
patchTokenCall
public okhttp3.Call patchTokenCall(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiExceptionBuild call for patchToken- Parameters:
id- The ID of the access token to update (required)patchOperation- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchToken
public Token patchToken(java.lang.String id, java.util.List<PatchOperation> patchOperation) throws ApiException
Patch access token Update an access token's settings. The request should be a valid JSON Patch document describing the changes to be made to the access token.- Parameters:
id- The ID of the access token to update (required)patchOperation- (required)- Returns:
- Token
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchTokenWithHttpInfo
public ApiResponse<Token> patchTokenWithHttpInfo(java.lang.String id, java.util.List<PatchOperation> patchOperation) throws ApiException
Patch access token Update an access token's settings. The request should be a valid JSON Patch document describing the changes to be made to the access token.- Parameters:
id- The ID of the access token to update (required)patchOperation- (required)- Returns:
- ApiResponse<Token>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchTokenAsync
public okhttp3.Call patchTokenAsync(java.lang.String id, java.util.List<PatchOperation> patchOperation, ApiCallback<Token> _callback) throws ApiExceptionPatch access token (asynchronously) Update an access token's settings. The request should be a valid JSON Patch document describing the changes to be made to the access token.- Parameters:
id- The ID of the access token to update (required)patchOperation- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
postTokenCall
public okhttp3.Call postTokenCall(AccessTokenPost accessTokenPost, ApiCallback _callback) throws ApiException
Build call for postToken- Parameters:
accessTokenPost- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postToken
public Token postToken(AccessTokenPost accessTokenPost) throws ApiException
Create access token Create a new access token.- Parameters:
accessTokenPost- (required)- Returns:
- Token
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postTokenWithHttpInfo
public ApiResponse<Token> postTokenWithHttpInfo(AccessTokenPost accessTokenPost) throws ApiException
Create access token Create a new access token.- Parameters:
accessTokenPost- (required)- Returns:
- ApiResponse<Token>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postTokenAsync
public okhttp3.Call postTokenAsync(AccessTokenPost accessTokenPost, ApiCallback<Token> _callback) throws ApiException
Create access token (asynchronously) Create a new access token.- Parameters:
accessTokenPost- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
resetTokenCall
public okhttp3.Call resetTokenCall(java.lang.String id, java.lang.Long expiry, ApiCallback _callback) throws ApiExceptionBuild call for resetToken- Parameters:
id- The ID of the access token to update (required)expiry- An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
resetToken
public Token resetToken(java.lang.String id, java.lang.Long expiry) throws ApiException
Reset access token Reset an access token's secret key with an optional expiry time for the old key.- Parameters:
id- The ID of the access token to update (required)expiry- An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)- Returns:
- Token
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
resetTokenWithHttpInfo
public ApiResponse<Token> resetTokenWithHttpInfo(java.lang.String id, java.lang.Long expiry) throws ApiException
Reset access token Reset an access token's secret key with an optional expiry time for the old key.- Parameters:
id- The ID of the access token to update (required)expiry- An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)- Returns:
- ApiResponse<Token>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
resetTokenAsync
public okhttp3.Call resetTokenAsync(java.lang.String id, java.lang.Long expiry, ApiCallback<Token> _callback) throws ApiExceptionReset access token (asynchronously) Reset an access token's secret key with an optional expiry time for the old key.- Parameters:
id- The ID of the access token to update (required)expiry- An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-