Package com.launchdarkly.api.api
Class ReleasesBetaApi
- java.lang.Object
-
- com.launchdarkly.api.api.ReleasesBetaApi
-
public class ReleasesBetaApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReleasesBetaApi()ReleasesBetaApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()ReleasegetReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey)Get release for flag Get currently active release for a flagokhttp3.CallgetReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, ApiCallback<Release> _callback)Get release for flag (asynchronously) Get currently active release for a flagokhttp3.CallgetReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, ApiCallback _callback)Build call for getReleaseByFlagKeyApiResponse<Release>getReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey)Get release for flag Get currently active release for a flagvoidpatchReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation)Patch release for flag Update currently active release for a flag.okhttp3.CallpatchReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback<java.lang.Void> _callback)Patch release for flag (asynchronously) Update currently active release for a flag.okhttp3.CallpatchReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)Build call for patchReleaseByFlagKeyApiResponse<java.lang.Void>patchReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation)Patch release for flag Update currently active release for a flag.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
ReleasesBetaApi
public ReleasesBetaApi()
-
ReleasesBetaApi
public ReleasesBetaApi(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)
-
getReleaseByFlagKeyCall
public okhttp3.Call getReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, ApiCallback _callback) throws ApiExceptionBuild call for getReleaseByFlagKey- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getReleaseByFlagKey
public Release getReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey) throws ApiException
Get release for flag Get currently active release for a flag- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)- Returns:
- Release
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleaseByFlagKeyWithHttpInfo
public ApiResponse<Release> getReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey) throws ApiException
Get release for flag Get currently active release for a flag- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)- Returns:
- ApiResponse<Release>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleaseByFlagKeyAsync
public okhttp3.Call getReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, ApiCallback<Release> _callback) throws ApiExceptionGet release for flag (asynchronously) Get currently active release for a flag- Parameters:
projectKey- The project key (required)flagKey- The flag 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
-
patchReleaseByFlagKeyCall
public okhttp3.Call patchReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiExceptionBuild call for patchReleaseByFlagKey- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)patchOperation- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
patchReleaseByFlagKey
public void patchReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation) throws ApiExceptionPatch release for flag Update currently active release for a flag. Updating releases requires the [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) format. To learn more, read [Updates](/#section/Overview/Updates). You can only use this endpoint to mark a release phase complete or incomplete. To indicate which phase to update, use the array index in the `path`. For example, to mark the first phase of a release as complete, use the following request body: ``` [ { \"op\": \"replace\", \"path\": \"/phase/0/complete\", \"value\": true } ] ```- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)patchOperation- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchReleaseByFlagKeyWithHttpInfo
public ApiResponse<java.lang.Void> patchReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation) throws ApiException
Patch release for flag Update currently active release for a flag. Updating releases requires the [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) format. To learn more, read [Updates](/#section/Overview/Updates). You can only use this endpoint to mark a release phase complete or incomplete. To indicate which phase to update, use the array index in the `path`. For example, to mark the first phase of a release as complete, use the following request body: ``` [ { \"op\": \"replace\", \"path\": \"/phase/0/complete\", \"value\": true } ] ```- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)patchOperation- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchReleaseByFlagKeyAsync
public okhttp3.Call patchReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback<java.lang.Void> _callback) throws ApiExceptionPatch release for flag (asynchronously) Update currently active release for a flag. Updating releases requires the [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) format. To learn more, read [Updates](/#section/Overview/Updates). You can only use this endpoint to mark a release phase complete or incomplete. To indicate which phase to update, use the array index in the `path`. For example, to mark the first phase of a release as complete, use the following request body: ``` [ { \"op\": \"replace\", \"path\": \"/phase/0/complete\", \"value\": true } ] ```- Parameters:
projectKey- The project key (required)flagKey- The flag key (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
-
-