Class TagsApi
- java.lang.Object
-
- com.configcat.publicapi.java.client.api.TagsApi
-
public class TagsApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagModelcreateTag(java.util.UUID productId, CreateTagModel createTagModel)Create Tag This endpoint creates a new Tag in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallcreateTagAsync(java.util.UUID productId, CreateTagModel createTagModel, ApiCallback<TagModel> _callback)Create Tag (asynchronously) This endpoint creates a new Tag in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.okhttp3.CallcreateTagCall(java.util.UUID productId, CreateTagModel createTagModel, ApiCallback _callback)Build call for createTagApiResponse<TagModel>createTagWithHttpInfo(java.util.UUID productId, CreateTagModel createTagModel)Create Tag This endpoint creates a new Tag in a specified Product identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.voiddeleteTag(java.lang.Long tagId)Delete Tag This endpoint deletes a Tag identified by the `tagId` parameter.okhttp3.CalldeleteTagAsync(java.lang.Long tagId, ApiCallback<java.lang.Void> _callback)Delete Tag (asynchronously) This endpoint deletes a Tag identified by the `tagId` parameter.okhttp3.CalldeleteTagCall(java.lang.Long tagId, ApiCallback _callback)Build call for deleteTagApiResponse<java.lang.Void>deleteTagWithHttpInfo(java.lang.Long tagId)Delete Tag This endpoint deletes a Tag identified by the `tagId` parameter.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()java.util.List<SettingModel>getSettingsByTag(java.lang.Long tagId)List Settings by Tag This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.okhttp3.CallgetSettingsByTagAsync(java.lang.Long tagId, ApiCallback<java.util.List<SettingModel>> _callback)List Settings by Tag (asynchronously) This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.okhttp3.CallgetSettingsByTagCall(java.lang.Long tagId, ApiCallback _callback)Build call for getSettingsByTagApiResponse<java.util.List<SettingModel>>getSettingsByTagWithHttpInfo(java.lang.Long tagId)List Settings by Tag This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.TagModelgetTag(java.lang.Long tagId)Get Tag This endpoint returns the metadata of a Tag identified by the `tagId`.okhttp3.CallgetTagAsync(java.lang.Long tagId, ApiCallback<TagModel> _callback)Get Tag (asynchronously) This endpoint returns the metadata of a Tag identified by the `tagId`.okhttp3.CallgetTagCall(java.lang.Long tagId, ApiCallback _callback)Build call for getTagjava.util.List<TagModel>getTags(java.util.UUID productId)List Tags This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.okhttp3.CallgetTagsAsync(java.util.UUID productId, ApiCallback<java.util.List<TagModel>> _callback)List Tags (asynchronously) This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.okhttp3.CallgetTagsCall(java.util.UUID productId, ApiCallback _callback)Build call for getTagsApiResponse<java.util.List<TagModel>>getTagsWithHttpInfo(java.util.UUID productId)List Tags This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.ApiResponse<TagModel>getTagWithHttpInfo(java.lang.Long tagId)Get Tag This endpoint returns the metadata of a Tag identified by the `tagId`.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)TagModelupdateTag(java.lang.Long tagId, UpdateTagModel updateTagModel)Update Tag This endpoint updates a Tag identified by the `tagId` parameter.okhttp3.CallupdateTagAsync(java.lang.Long tagId, UpdateTagModel updateTagModel, ApiCallback<TagModel> _callback)Update Tag (asynchronously) This endpoint updates a Tag identified by the `tagId` parameter.okhttp3.CallupdateTagCall(java.lang.Long tagId, UpdateTagModel updateTagModel, ApiCallback _callback)Build call for updateTagApiResponse<TagModel>updateTagWithHttpInfo(java.lang.Long tagId, UpdateTagModel updateTagModel)Update Tag This endpoint updates a Tag identified by the `tagId` parameter.
-
-
-
Constructor Detail
-
TagsApi
public TagsApi()
-
TagsApi
public TagsApi(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)
-
createTagCall
public okhttp3.Call createTagCall(java.util.UUID productId, CreateTagModel createTagModel, ApiCallback _callback) throws ApiExceptionBuild call for createTag- Parameters:
productId- The identifier of the Organization. (required)createTagModel- (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. -
-
createTag
public TagModel createTag(java.util.UUID productId, CreateTagModel createTagModel) throws ApiException
Create Tag This endpoint creates a new Tag 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 Organization. (required)createTagModel- (required)- Returns:
- TagModel
- 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. -
-
createTagWithHttpInfo
public ApiResponse<TagModel> createTagWithHttpInfo(java.util.UUID productId, CreateTagModel createTagModel) throws ApiException
Create Tag This endpoint creates a new Tag 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 Organization. (required)createTagModel- (required)- Returns:
- ApiResponse<TagModel>
- 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. -
-
createTagAsync
public okhttp3.Call createTagAsync(java.util.UUID productId, CreateTagModel createTagModel, ApiCallback<TagModel> _callback) throws ApiExceptionCreate Tag (asynchronously) This endpoint creates a new Tag 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 Organization. (required)createTagModel- (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. -
-
deleteTagCall
public okhttp3.Call deleteTagCall(java.lang.Long tagId, ApiCallback _callback) throws ApiExceptionBuild call for deleteTag- Parameters:
tagId- The identifier of the Tag. (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. -
-
deleteTag
public void deleteTag(java.lang.Long tagId) throws ApiExceptionDelete Tag This endpoint deletes a Tag identified by the `tagId` parameter. To remove a Tag from a Feature Flag or Setting use the [Update Flag](#operation/update-setting) endpoint.- Parameters:
tagId- The identifier of the Tag. (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. -
-
deleteTagWithHttpInfo
public ApiResponse<java.lang.Void> deleteTagWithHttpInfo(java.lang.Long tagId) throws ApiException
Delete Tag This endpoint deletes a Tag identified by the `tagId` parameter. To remove a Tag from a Feature Flag or Setting use the [Update Flag](#operation/update-setting) endpoint.- Parameters:
tagId- The identifier of the Tag. (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. -
-
deleteTagAsync
public okhttp3.Call deleteTagAsync(java.lang.Long tagId, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete Tag (asynchronously) This endpoint deletes a Tag identified by the `tagId` parameter. To remove a Tag from a Feature Flag or Setting use the [Update Flag](#operation/update-setting) endpoint.- Parameters:
tagId- The identifier of the Tag. (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. -
-
getSettingsByTagCall
public okhttp3.Call getSettingsByTagCall(java.lang.Long tagId, ApiCallback _callback) throws ApiExceptionBuild call for getSettingsByTag- Parameters:
tagId- The identifier of the Tag. (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 settings data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getSettingsByTag
public java.util.List<SettingModel> getSettingsByTag(java.lang.Long tagId) throws ApiException
List Settings by Tag This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (required)- Returns:
- List<SettingModel>
- 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 settings data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getSettingsByTagWithHttpInfo
public ApiResponse<java.util.List<SettingModel>> getSettingsByTagWithHttpInfo(java.lang.Long tagId) throws ApiException
List Settings by Tag This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (required)- Returns:
- ApiResponse<List<SettingModel>>
- 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 settings data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getSettingsByTagAsync
public okhttp3.Call getSettingsByTagAsync(java.lang.Long tagId, ApiCallback<java.util.List<SettingModel>> _callback) throws ApiExceptionList Settings by Tag (asynchronously) This endpoint returns the list of the Settings that has the specified Tag, identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (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 settings data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagCall
public okhttp3.Call getTagCall(java.lang.Long tagId, ApiCallback _callback) throws ApiExceptionBuild call for getTag- Parameters:
tagId- The identifier of the Tag. (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 tag data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTag
public TagModel getTag(java.lang.Long tagId) throws ApiException
Get Tag This endpoint returns the metadata of a Tag identified by the `tagId`.- Parameters:
tagId- The identifier of the Tag. (required)- Returns:
- TagModel
- 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 tag data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagWithHttpInfo
public ApiResponse<TagModel> getTagWithHttpInfo(java.lang.Long tagId) throws ApiException
Get Tag This endpoint returns the metadata of a Tag identified by the `tagId`.- Parameters:
tagId- The identifier of the Tag. (required)- Returns:
- ApiResponse<TagModel>
- 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 tag data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagAsync
public okhttp3.Call getTagAsync(java.lang.Long tagId, ApiCallback<TagModel> _callback) throws ApiExceptionGet Tag (asynchronously) This endpoint returns the metadata of a Tag identified by the `tagId`.- Parameters:
tagId- The identifier of the Tag. (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 tag data returned. - 400 Bad request. - 404 Not found. - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagsCall
public okhttp3.Call getTagsCall(java.util.UUID productId, ApiCallback _callback) throws ApiExceptionBuild call for getTags- 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 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTags
public java.util.List<TagModel> getTags(java.util.UUID productId) throws ApiException
List Tags This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.- Parameters:
productId- The identifier of the Product. (required)- Returns:
- List<TagModel>
- 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 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagsWithHttpInfo
public ApiResponse<java.util.List<TagModel>> getTagsWithHttpInfo(java.util.UUID productId) throws ApiException
List Tags This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.- Parameters:
productId- The identifier of the Product. (required)- Returns:
- ApiResponse<List<TagModel>>
- 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 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getTagsAsync
public okhttp3.Call getTagsAsync(java.util.UUID productId, ApiCallback<java.util.List<TagModel>> _callback) throws ApiExceptionList Tags (asynchronously) This endpoint returns the list of the Tags in a specified Product, identified by the `productId` parameter.- 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 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
updateTagCall
public okhttp3.Call updateTagCall(java.lang.Long tagId, UpdateTagModel updateTagModel, ApiCallback _callback) throws ApiExceptionBuild call for updateTag- Parameters:
tagId- The identifier of the Tag. (required)updateTagModel- (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. -
-
updateTag
public TagModel updateTag(java.lang.Long tagId, UpdateTagModel updateTagModel) throws ApiException
Update Tag This endpoint updates a Tag identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (required)updateTagModel- (required)- Returns:
- TagModel
- 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. -
-
updateTagWithHttpInfo
public ApiResponse<TagModel> updateTagWithHttpInfo(java.lang.Long tagId, UpdateTagModel updateTagModel) throws ApiException
Update Tag This endpoint updates a Tag identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (required)updateTagModel- (required)- Returns:
- ApiResponse<TagModel>
- 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. -
-
updateTagAsync
public okhttp3.Call updateTagAsync(java.lang.Long tagId, UpdateTagModel updateTagModel, ApiCallback<TagModel> _callback) throws ApiExceptionUpdate Tag (asynchronously) This endpoint updates a Tag identified by the `tagId` parameter.- Parameters:
tagId- The identifier of the Tag. (required)updateTagModel- (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. -
-
-