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 ReleasecreateReleaseForFlag(java.lang.String projectKey, java.lang.String flagKey, CreateReleaseInput createReleaseInput)Create a new release for flag Creates a release by adding a flag to a release pipelineokhttp3.CallcreateReleaseForFlagAsync(java.lang.String projectKey, java.lang.String flagKey, CreateReleaseInput createReleaseInput, ApiCallback<Release> _callback)Create a new release for flag (asynchronously) Creates a release by adding a flag to a release pipelineokhttp3.CallcreateReleaseForFlagCall(java.lang.String projectKey, java.lang.String flagKey, CreateReleaseInput createReleaseInput, ApiCallback _callback)Build call for createReleaseForFlagApiResponse<Release>createReleaseForFlagWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey, CreateReleaseInput createReleaseInput)Create a new release for flag Creates a release by adding a flag to a release pipelinevoiddeleteReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey)Delete a release for flag Deletes a release from a flagokhttp3.CalldeleteReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, ApiCallback<java.lang.Void> _callback)Delete a release for flag (asynchronously) Deletes a release from a flagokhttp3.CalldeleteReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, ApiCallback _callback)Build call for deleteReleaseByFlagKeyApiResponse<java.lang.Void>deleteReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey)Delete a release for flag Deletes a release from a flagApiClientgetApiClient()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 flagReleasepatchReleaseByFlagKey(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation)Patch release for flag This endpoint is only available for releases that are part of a legacy release pipeline.okhttp3.CallpatchReleaseByFlagKeyAsync(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback<Release> _callback)Patch release for flag (asynchronously) This endpoint is only available for releases that are part of a legacy release pipeline.okhttp3.CallpatchReleaseByFlagKeyCall(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)Build call for patchReleaseByFlagKeyApiResponse<Release>patchReleaseByFlagKeyWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey, java.util.List<PatchOperation> patchOperation)Patch release for flag This endpoint is only available for releases that are part of a legacy release pipeline.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)ReleaseupdatePhaseStatus(java.lang.String projectKey, java.lang.String flagKey, java.lang.String phaseId, UpdatePhaseStatusInput updatePhaseStatusInput)Update phase status for release Updates the execution status of a phase of a releaseokhttp3.CallupdatePhaseStatusAsync(java.lang.String projectKey, java.lang.String flagKey, java.lang.String phaseId, UpdatePhaseStatusInput updatePhaseStatusInput, ApiCallback<Release> _callback)Update phase status for release (asynchronously) Updates the execution status of a phase of a releaseokhttp3.CallupdatePhaseStatusCall(java.lang.String projectKey, java.lang.String flagKey, java.lang.String phaseId, UpdatePhaseStatusInput updatePhaseStatusInput, ApiCallback _callback)Build call for updatePhaseStatusApiResponse<Release>updatePhaseStatusWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey, java.lang.String phaseId, UpdatePhaseStatusInput updatePhaseStatusInput)Update phase status for release Updates the execution status of a phase of a release
-
-
-
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)
-
createReleaseForFlagCall
public okhttp3.Call createReleaseForFlagCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull CreateReleaseInput createReleaseInput, ApiCallback _callback) throws ApiExceptionBuild call for createReleaseForFlag- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)createReleaseInput- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createReleaseForFlag
public Release createReleaseForFlag(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull CreateReleaseInput createReleaseInput) throws ApiException
Create a new release for flag Creates a release by adding a flag to a release pipeline- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)createReleaseInput- (required)- Returns:
- Release
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createReleaseForFlagWithHttpInfo
public ApiResponse<Release> createReleaseForFlagWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull CreateReleaseInput createReleaseInput) throws ApiException
Create a new release for flag Creates a release by adding a flag to a release pipeline- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)createReleaseInput- (required)- Returns:
- ApiResponse<Release>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createReleaseForFlagAsync
public okhttp3.Call createReleaseForFlagAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull CreateReleaseInput createReleaseInput, ApiCallback<Release> _callback) throws ApiExceptionCreate a new release for flag (asynchronously) Creates a release by adding a flag to a release pipeline- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)createReleaseInput- (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
-
deleteReleaseByFlagKeyCall
public okhttp3.Call deleteReleaseByFlagKeyCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteReleaseByFlagKey- 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
-
deleteReleaseByFlagKey
public void deleteReleaseByFlagKey(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey) throws ApiExceptionDelete a release for flag Deletes a release from a flag- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteReleaseByFlagKeyWithHttpInfo
public ApiResponse<java.lang.Void> deleteReleaseByFlagKeyWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey) throws ApiException
Delete a release for flag Deletes a release from a flag- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteReleaseByFlagKeyAsync
public okhttp3.Call deleteReleaseByFlagKeyAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete a release for flag (asynchronously) Deletes a release from 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
-
getReleaseByFlagKeyCall
public okhttp3.Call getReleaseByFlagKeyCall(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull 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 Release patchReleaseByFlagKey(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.util.List<PatchOperation> patchOperation) throws ApiException
Patch release for flag This endpoint is only available for releases that are part of a legacy release pipeline. Releases for new release pipelines should use the [Update phase status for release](https://launchdarkly.com/docs/api/releases-beta/update-phase-status) endpoint. 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](https://launchdarkly.com/docs/api#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:
- Release
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchReleaseByFlagKeyWithHttpInfo
public ApiResponse<Release> patchReleaseByFlagKeyWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.util.List<PatchOperation> patchOperation) throws ApiException
Patch release for flag This endpoint is only available for releases that are part of a legacy release pipeline. Releases for new release pipelines should use the [Update phase status for release](https://launchdarkly.com/docs/api/releases-beta/update-phase-status) endpoint. 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](https://launchdarkly.com/docs/api#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<Release>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchReleaseByFlagKeyAsync
public okhttp3.Call patchReleaseByFlagKeyAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.util.List<PatchOperation> patchOperation, ApiCallback<Release> _callback) throws ApiExceptionPatch release for flag (asynchronously) This endpoint is only available for releases that are part of a legacy release pipeline. Releases for new release pipelines should use the [Update phase status for release](https://launchdarkly.com/docs/api/releases-beta/update-phase-status) endpoint. 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](https://launchdarkly.com/docs/api#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
-
updatePhaseStatusCall
public okhttp3.Call updatePhaseStatusCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.lang.String phaseId, @Nonnull UpdatePhaseStatusInput updatePhaseStatusInput, ApiCallback _callback) throws ApiExceptionBuild call for updatePhaseStatus- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)phaseId- The phase ID (required)updatePhaseStatusInput- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
updatePhaseStatus
public Release updatePhaseStatus(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.lang.String phaseId, @Nonnull UpdatePhaseStatusInput updatePhaseStatusInput) throws ApiException
Update phase status for release Updates the execution status of a phase of a release- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)phaseId- The phase ID (required)updatePhaseStatusInput- (required)- Returns:
- Release
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updatePhaseStatusWithHttpInfo
public ApiResponse<Release> updatePhaseStatusWithHttpInfo(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.lang.String phaseId, @Nonnull UpdatePhaseStatusInput updatePhaseStatusInput) throws ApiException
Update phase status for release Updates the execution status of a phase of a release- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)phaseId- The phase ID (required)updatePhaseStatusInput- (required)- Returns:
- ApiResponse<Release>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updatePhaseStatusAsync
public okhttp3.Call updatePhaseStatusAsync(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String flagKey, @Nonnull java.lang.String phaseId, @Nonnull UpdatePhaseStatusInput updatePhaseStatusInput, ApiCallback<Release> _callback) throws ApiExceptionUpdate phase status for release (asynchronously) Updates the execution status of a phase of a release- Parameters:
projectKey- The project key (required)flagKey- The flag key (required)phaseId- The phase ID (required)updatePhaseStatusInput- (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
-
-