Class ReleasesBetaApi


  • public class ReleasesBetaApi
    extends java.lang.Object
    • 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 ApiException
        Build 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 ApiException
        Create 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 ApiException
        Build 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 ApiException
        Delete 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 ApiException
        Delete 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 ApiException
        Build 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 ApiException
        Get 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 ApiException
        Build 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 ApiException
        Patch 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 ApiException
        Build 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 ApiException
        Update 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