Class ConfigsApi
- java.lang.Object
-
- com.configcat.publicapi.java.client.api.ConfigsApi
-
public class ConfigsApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigsApi()ConfigsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigModelcreateConfig(java.util.UUID productId, CreateConfigRequest createConfigRequest)Create Config This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallcreateConfigAsync(java.util.UUID productId, CreateConfigRequest createConfigRequest, ApiCallback<ConfigModel> _callback)Create Config (asynchronously) This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallcreateConfigCall(java.util.UUID productId, CreateConfigRequest createConfigRequest, ApiCallback _callback)Build call for createConfigApiResponse<ConfigModel>createConfigWithHttpInfo(java.util.UUID productId, CreateConfigRequest createConfigRequest)Create Config This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.voiddeleteConfig(java.util.UUID configId)Delete Config This endpoint removes a Config identified by the `configId` parameter.okhttp3.CalldeleteConfigAsync(java.util.UUID configId, ApiCallback<java.lang.Void> _callback)Delete Config (asynchronously) This endpoint removes a Config identified by the `configId` parameter.okhttp3.CalldeleteConfigCall(java.util.UUID configId, ApiCallback _callback)Build call for deleteConfigApiResponse<java.lang.Void>deleteConfigWithHttpInfo(java.util.UUID configId)Delete Config This endpoint removes a Config identified by the `configId` parameter.ApiClientgetApiClient()ConfigModelgetConfig(java.util.UUID configId)Get Config This endpoint returns the metadata of a Config identified by the `configId`.okhttp3.CallgetConfigAsync(java.util.UUID configId, ApiCallback<ConfigModel> _callback)Get Config (asynchronously) This endpoint returns the metadata of a Config identified by the `configId`.okhttp3.CallgetConfigCall(java.util.UUID configId, ApiCallback _callback)Build call for getConfigjava.util.List<ConfigModel>getConfigs(java.util.UUID productId)List Configs This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallgetConfigsAsync(java.util.UUID productId, ApiCallback<java.util.List<ConfigModel>> _callback)List Configs (asynchronously) This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallgetConfigsCall(java.util.UUID productId, ApiCallback _callback)Build call for getConfigsApiResponse<java.util.List<ConfigModel>>getConfigsWithHttpInfo(java.util.UUID productId)List Configs This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.ApiResponse<ConfigModel>getConfigWithHttpInfo(java.util.UUID configId)Get Config This endpoint returns the metadata of a Config identified by the `configId`.java.lang.StringgetCustomBaseUrl()intgetHostIndex()voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)ConfigModelupdateConfig(java.util.UUID configId, UpdateConfigRequest updateConfigRequest)Update Config This endpoint updates a Config identified by the `configId` parameter.okhttp3.CallupdateConfigAsync(java.util.UUID configId, UpdateConfigRequest updateConfigRequest, ApiCallback<ConfigModel> _callback)Update Config (asynchronously) This endpoint updates a Config identified by the `configId` parameter.okhttp3.CallupdateConfigCall(java.util.UUID configId, UpdateConfigRequest updateConfigRequest, ApiCallback _callback)Build call for updateConfigApiResponse<ConfigModel>updateConfigWithHttpInfo(java.util.UUID configId, UpdateConfigRequest updateConfigRequest)Update Config This endpoint updates a Config identified by the `configId` parameter.
-
-
-
Constructor Detail
-
ConfigsApi
public ConfigsApi()
-
ConfigsApi
public ConfigsApi(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)
-
createConfigCall
public okhttp3.Call createConfigCall(java.util.UUID productId, CreateConfigRequest createConfigRequest, ApiCallback _callback) throws ApiExceptionBuild call for createConfig- Parameters:
productId- The identifier of the Product. (required)createConfigRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 201 When the creation was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
createConfig
public ConfigModel createConfig(java.util.UUID productId, CreateConfigRequest createConfigRequest) throws ApiException
Create Config This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (required)createConfigRequest- (required)- Returns:
- ConfigModel
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 201 When the creation was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
createConfigWithHttpInfo
public ApiResponse<ConfigModel> createConfigWithHttpInfo(java.util.UUID productId, CreateConfigRequest createConfigRequest) throws ApiException
Create Config This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (required)createConfigRequest- (required)- Returns:
- ApiResponse<ConfigModel>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 201 When the creation was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
createConfigAsync
public okhttp3.Call createConfigAsync(java.util.UUID productId, CreateConfigRequest createConfigRequest, ApiCallback<ConfigModel> _callback) throws ApiExceptionCreate Config (asynchronously) This endpoint creates a new Config in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (required)createConfigRequest- (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- Http Response Details
Status Code Description Response Headers 201 When the creation was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
deleteConfigCall
public okhttp3.Call deleteConfigCall(java.util.UUID configId, ApiCallback _callback) throws ApiExceptionBuild call for deleteConfig- Parameters:
configId- The identifier of the Config. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 204 When the delete was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
deleteConfig
public void deleteConfig(java.util.UUID configId) throws ApiExceptionDelete Config This endpoint removes a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 204 When the delete was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
deleteConfigWithHttpInfo
public ApiResponse<java.lang.Void> deleteConfigWithHttpInfo(java.util.UUID configId) throws ApiException
Delete Config This endpoint removes a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 204 When the delete was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
deleteConfigAsync
public okhttp3.Call deleteConfigAsync(java.util.UUID configId, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete Config (asynchronously) This endpoint removes a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (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- Http Response Details
Status Code Description Response Headers 204 When the delete was successful. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigCall
public okhttp3.Call getConfigCall(java.util.UUID configId, ApiCallback _callback) throws ApiExceptionBuild call for getConfig- Parameters:
configId- The identifier of the Config. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 When everything is ok, the config data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfig
public ConfigModel getConfig(java.util.UUID configId) throws ApiException
Get Config This endpoint returns the metadata of a Config identified by the `configId`.- Parameters:
configId- The identifier of the Config. (required)- Returns:
- ConfigModel
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 When everything is ok, the config data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigWithHttpInfo
public ApiResponse<ConfigModel> getConfigWithHttpInfo(java.util.UUID configId) throws ApiException
Get Config This endpoint returns the metadata of a Config identified by the `configId`.- Parameters:
configId- The identifier of the Config. (required)- Returns:
- ApiResponse<ConfigModel>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 When everything is ok, the config data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigAsync
public okhttp3.Call getConfigAsync(java.util.UUID configId, ApiCallback<ConfigModel> _callback) throws ApiExceptionGet Config (asynchronously) This endpoint returns the metadata of a Config identified by the `configId`.- Parameters:
configId- The identifier of the Config. (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- Http Response Details
Status Code Description Response Headers 200 When everything is ok, the config data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigsCall
public okhttp3.Call getConfigsCall(java.util.UUID productId, ApiCallback _callback) throws ApiExceptionBuild call for getConfigs- Parameters:
productId- The identifier of the Product. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigs
public java.util.List<ConfigModel> getConfigs(java.util.UUID productId) throws ApiException
List Configs This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (required)- Returns:
- List<ConfigModel>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigsWithHttpInfo
public ApiResponse<java.util.List<ConfigModel>> getConfigsWithHttpInfo(java.util.UUID productId) throws ApiException
List Configs This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (required)- Returns:
- ApiResponse<List<ConfigModel>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getConfigsAsync
public okhttp3.Call getConfigsAsync(java.util.UUID productId, ApiCallback<java.util.List<ConfigModel>> _callback) throws ApiExceptionList Configs (asynchronously) This endpoint returns the list of the Configs that belongs to the given Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.- Parameters:
productId- The identifier of the Product. (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- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
updateConfigCall
public okhttp3.Call updateConfigCall(java.util.UUID configId, UpdateConfigRequest updateConfigRequest, ApiCallback _callback) throws ApiExceptionBuild call for updateConfig- Parameters:
configId- The identifier of the Config. (required)updateConfigRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
updateConfig
public ConfigModel updateConfig(java.util.UUID configId, UpdateConfigRequest updateConfigRequest) throws ApiException
Update Config This endpoint updates a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (required)updateConfigRequest- (required)- Returns:
- ConfigModel
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
updateConfigWithHttpInfo
public ApiResponse<ConfigModel> updateConfigWithHttpInfo(java.util.UUID configId, UpdateConfigRequest updateConfigRequest) throws ApiException
Update Config This endpoint updates a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (required)updateConfigRequest- (required)- Returns:
- ApiResponse<ConfigModel>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
updateConfigAsync
public okhttp3.Call updateConfigAsync(java.util.UUID configId, UpdateConfigRequest updateConfigRequest, ApiCallback<ConfigModel> _callback) throws ApiExceptionUpdate Config (asynchronously) This endpoint updates a Config identified by the `configId` parameter.- Parameters:
configId- The identifier of the Config. (required)updateConfigRequest- (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- Http Response Details
Status Code Description Response Headers 200 - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
-