Package com.launchdarkly.api.api
Class SdkKeysBetaApi
- java.lang.Object
-
- com.launchdarkly.api.api.SdkKeysBetaApi
-
public class SdkKeysBetaApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SdkKeysBetaApi()SdkKeysBetaApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSdkKeyByKey(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey)Delete SDK key Delete a specific SDK key by its key.okhttp3.CalldeleteSdkKeyByKeyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, ApiCallback<java.lang.Void> _callback)Delete SDK key (asynchronously) Delete a specific SDK key by its key.okhttp3.CalldeleteSdkKeyByKeyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, ApiCallback _callback)Build call for deleteSdkKeyByKeyApiResponse<java.lang.Void>deleteSdkKeyByKeyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey)Delete SDK key Delete a specific SDK key by its key.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()SdkKeygetSdkKeyByKey(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey)Get SDK key Get a specific SDK key by its key.okhttp3.CallgetSdkKeyByKeyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, ApiCallback<SdkKey> _callback)Get SDK key (asynchronously) Get a specific SDK key by its key.okhttp3.CallgetSdkKeyByKeyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, ApiCallback _callback)Build call for getSdkKeyByKeyApiResponse<SdkKey>getSdkKeyByKeyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey)Get SDK key Get a specific SDK key by its key.SdkKeypatchSdkKeyByKey(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, SdkKeyPatch sdkKeyPatch, java.lang.Integer version)Update SDK key Update a an existing SDK key by its identifying key.okhttp3.CallpatchSdkKeyByKeyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, SdkKeyPatch sdkKeyPatch, java.lang.Integer version, ApiCallback<SdkKey> _callback)Update SDK key (asynchronously) Update a an existing SDK key by its identifying key.okhttp3.CallpatchSdkKeyByKeyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, SdkKeyPatch sdkKeyPatch, java.lang.Integer version, ApiCallback _callback)Build call for patchSdkKeyByKeyApiResponse<SdkKey>patchSdkKeyByKeyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, java.lang.String sdkKeyKey, SdkKeyPatch sdkKeyPatch, java.lang.Integer version)Update SDK key Update a an existing SDK key by its identifying key.SdkKeypostSdkKey(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, SdkKeyPost sdkKeyPost)Create SDK key Create a new server-side or mobile SDK key.okhttp3.CallpostSdkKeyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, SdkKeyPost sdkKeyPost, ApiCallback<SdkKey> _callback)Create SDK key (asynchronously) Create a new server-side or mobile SDK key.okhttp3.CallpostSdkKeyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, SdkKeyPost sdkKeyPost, ApiCallback _callback)Build call for postSdkKeyApiResponse<SdkKey>postSdkKeyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String environmentKey, SdkKeyPost sdkKeyPost)Create SDK key Create a new server-side or mobile SDK key.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
SdkKeysBetaApi
public SdkKeysBetaApi()
-
SdkKeysBetaApi
public SdkKeysBetaApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
deleteSdkKeyByKeyCall
public okhttp3.Call deleteSdkKeyByKeyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteSdkKeyByKey- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteSdkKeyByKey
public void deleteSdkKeyByKey(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey) throws ApiExceptionDelete SDK key Delete a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteSdkKeyByKeyWithHttpInfo
public ApiResponse<java.lang.Void> deleteSdkKeyByKeyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey) throws ApiException
Delete SDK key Delete a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteSdkKeyByKeyAsync
public okhttp3.Call deleteSdkKeyByKeyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete SDK key (asynchronously) Delete a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (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
-
getSdkKeyByKeyCall
public okhttp3.Call getSdkKeyByKeyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, ApiCallback _callback) throws ApiExceptionBuild call for getSdkKeyByKey- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getSdkKeyByKey
public SdkKey getSdkKeyByKey(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey) throws ApiException
Get SDK key Get a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)- Returns:
- SdkKey
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSdkKeyByKeyWithHttpInfo
public ApiResponse<SdkKey> getSdkKeyByKeyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey) throws ApiException
Get SDK key Get a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)- Returns:
- ApiResponse<SdkKey>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSdkKeyByKeyAsync
public okhttp3.Call getSdkKeyByKeyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, ApiCallback<SdkKey> _callback) throws ApiExceptionGet SDK key (asynchronously) Get a specific SDK key by its key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (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
-
patchSdkKeyByKeyCall
public okhttp3.Call patchSdkKeyByKeyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, @Nonnull SdkKeyPatch sdkKeyPatch, @Nullable java.lang.Integer version, ApiCallback _callback) throws ApiExceptionBuild call for patchSdkKeyByKey- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)sdkKeyPatch- An array of patches for updating an existing SDK key. The following fields are supported: `name`, `description`, `expiry`. (required)version- The version of the SDK key for optimistic locking. If provided, the update will only succeed if the current version matches. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchSdkKeyByKey
public SdkKey patchSdkKeyByKey(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, @Nonnull SdkKeyPatch sdkKeyPatch, @Nullable java.lang.Integer version) throws ApiException
Update SDK key Update a an existing SDK key by its identifying key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)sdkKeyPatch- An array of patches for updating an existing SDK key. The following fields are supported: `name`, `description`, `expiry`. (required)version- The version of the SDK key for optimistic locking. If provided, the update will only succeed if the current version matches. (optional)- Returns:
- SdkKey
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchSdkKeyByKeyWithHttpInfo
public ApiResponse<SdkKey> patchSdkKeyByKeyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, @Nonnull SdkKeyPatch sdkKeyPatch, @Nullable java.lang.Integer version) throws ApiException
Update SDK key Update a an existing SDK key by its identifying key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)sdkKeyPatch- An array of patches for updating an existing SDK key. The following fields are supported: `name`, `description`, `expiry`. (required)version- The version of the SDK key for optimistic locking. If provided, the update will only succeed if the current version matches. (optional)- Returns:
- ApiResponse<SdkKey>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchSdkKeyByKeyAsync
public okhttp3.Call patchSdkKeyByKeyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull java.lang.String sdkKeyKey, @Nonnull SdkKeyPatch sdkKeyPatch, @Nullable java.lang.Integer version, ApiCallback<SdkKey> _callback) throws ApiExceptionUpdate SDK key (asynchronously) Update a an existing SDK key by its identifying key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyKey- The user-defined identifying key of the SDK key. This is used solely to identify an SDK key and is distinct from the value field, which is the actual SDK key value. (required)sdkKeyPatch- An array of patches for updating an existing SDK key. The following fields are supported: `name`, `description`, `expiry`. (required)version- The version of the SDK key for optimistic locking. If provided, the update will only succeed if the current version matches. (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
-
postSdkKeyCall
public okhttp3.Call postSdkKeyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull SdkKeyPost sdkKeyPost, ApiCallback _callback) throws ApiExceptionBuild call for postSdkKey- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyPost- Parameters for creating a new SDK key (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postSdkKey
public SdkKey postSdkKey(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull SdkKeyPost sdkKeyPost) throws ApiException
Create SDK key Create a new server-side or mobile SDK key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyPost- Parameters for creating a new SDK key (required)- Returns:
- SdkKey
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postSdkKeyWithHttpInfo
public ApiResponse<SdkKey> postSdkKeyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull SdkKeyPost sdkKeyPost) throws ApiException
Create SDK key Create a new server-side or mobile SDK key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyPost- Parameters for creating a new SDK key (required)- Returns:
- ApiResponse<SdkKey>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postSdkKeyAsync
public okhttp3.Call postSdkKeyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String environmentKey, @Nonnull SdkKeyPost sdkKeyPost, ApiCallback<SdkKey> _callback) throws ApiExceptionCreate SDK key (asynchronously) Create a new server-side or mobile SDK key.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- (required)environmentKey- (required)sdkKeyPost- Parameters for creating a new SDK key (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
-
-