Class ApprovalsApi


  • public class ApprovalsApi
    extends java.lang.Object
    • Constructor Detail

      • ApprovalsApi

        public ApprovalsApi()
      • ApprovalsApi

        public ApprovalsApi​(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)
      • deleteApprovalRequestCall

        public okhttp3.Call deleteApprovalRequestCall​(java.lang.String projectKey,
                                                      java.lang.String featureFlagKey,
                                                      java.lang.String environmentKey,
                                                      java.lang.String id,
                                                      ApiCallback _callback)
                                               throws ApiException
        Build call for deleteApprovalRequest
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteApprovalRequest

        public void deleteApprovalRequest​(java.lang.String projectKey,
                                          java.lang.String featureFlagKey,
                                          java.lang.String environmentKey,
                                          java.lang.String id)
                                   throws ApiException
        Delete approval request Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestWithHttpInfo

        public ApiResponse<java.lang.Void> deleteApprovalRequestWithHttpInfo​(java.lang.String projectKey,
                                                                             java.lang.String featureFlagKey,
                                                                             java.lang.String environmentKey,
                                                                             java.lang.String id)
                                                                      throws ApiException
        Delete approval request Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestAsync

        public okhttp3.Call deleteApprovalRequestAsync​(java.lang.String projectKey,
                                                       java.lang.String featureFlagKey,
                                                       java.lang.String environmentKey,
                                                       java.lang.String id,
                                                       ApiCallback<java.lang.Void> _callback)
                                                throws ApiException
        Delete approval request (asynchronously) Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (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
      • getApprovalCall

        public okhttp3.Call getApprovalCall​(java.lang.String projectKey,
                                            java.lang.String featureFlagKey,
                                            java.lang.String environmentKey,
                                            java.lang.String id,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for getApproval
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApproval

        public FlagConfigApprovalRequestResponse getApproval​(java.lang.String projectKey,
                                                             java.lang.String featureFlagKey,
                                                             java.lang.String environmentKey,
                                                             java.lang.String id)
                                                      throws ApiException
        Get approval request Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> getApprovalWithHttpInfo​(java.lang.String projectKey,
                                                                                      java.lang.String featureFlagKey,
                                                                                      java.lang.String environmentKey,
                                                                                      java.lang.String id)
                                                                               throws ApiException
        Get approval request Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalAsync

        public okhttp3.Call getApprovalAsync​(java.lang.String projectKey,
                                             java.lang.String featureFlagKey,
                                             java.lang.String environmentKey,
                                             java.lang.String id,
                                             ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                      throws ApiException
        Get approval request (asynchronously) Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (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
      • getApprovalsCall

        public okhttp3.Call getApprovalsCall​(java.lang.String projectKey,
                                             java.lang.String featureFlagKey,
                                             java.lang.String environmentKey,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for getApprovals
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApprovals

        public FlagConfigApprovalRequestsResponse getApprovals​(java.lang.String projectKey,
                                                               java.lang.String featureFlagKey,
                                                               java.lang.String environmentKey)
                                                        throws ApiException
        List all approval requests Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        FlagConfigApprovalRequestsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalsWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestsResponse> getApprovalsWithHttpInfo​(java.lang.String projectKey,
                                                                                        java.lang.String featureFlagKey,
                                                                                        java.lang.String environmentKey)
                                                                                 throws ApiException
        List all approval requests Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalsAsync

        public okhttp3.Call getApprovalsAsync​(java.lang.String projectKey,
                                              java.lang.String featureFlagKey,
                                              java.lang.String environmentKey,
                                              ApiCallback<FlagConfigApprovalRequestsResponse> _callback)
                                       throws ApiException
        List all approval requests (asynchronously) Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment 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
      • postApprovalRequestCall

        public okhttp3.Call postApprovalRequestCall​(java.lang.String projectKey,
                                                    java.lang.String featureFlagKey,
                                                    java.lang.String environmentKey,
                                                    CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for postApprovalRequest
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequest

        public FlagConfigApprovalRequestResponse postApprovalRequest​(java.lang.String projectKey,
                                                                     java.lang.String featureFlagKey,
                                                                     java.lang.String environmentKey,
                                                                     CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest)
                                                              throws ApiException
        Create approval request Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestWithHttpInfo​(java.lang.String projectKey,
                                                                                              java.lang.String featureFlagKey,
                                                                                              java.lang.String environmentKey,
                                                                                              CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest)
                                                                                       throws ApiException
        Create approval request Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestAsync

        public okhttp3.Call postApprovalRequestAsync​(java.lang.String projectKey,
                                                     java.lang.String featureFlagKey,
                                                     java.lang.String environmentKey,
                                                     CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest,
                                                     ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                              throws ApiException
        Create approval request (asynchronously) Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (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
      • postApprovalRequestApplyRequestCall

        public okhttp3.Call postApprovalRequestApplyRequestCall​(java.lang.String projectKey,
                                                                java.lang.String featureFlagKey,
                                                                java.lang.String environmentKey,
                                                                java.lang.String id,
                                                                PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                                ApiCallback _callback)
                                                         throws ApiException
        Build call for postApprovalRequestApplyRequest
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestApplyRequest

        public FlagConfigApprovalRequestResponse postApprovalRequestApplyRequest​(java.lang.String projectKey,
                                                                                 java.lang.String featureFlagKey,
                                                                                 java.lang.String environmentKey,
                                                                                 java.lang.String id,
                                                                                 PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                                          throws ApiException
        Apply approval request Apply an approval request that has been approved.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyRequestWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestApplyRequestWithHttpInfo​(java.lang.String projectKey,
                                                                                                          java.lang.String featureFlagKey,
                                                                                                          java.lang.String environmentKey,
                                                                                                          java.lang.String id,
                                                                                                          PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                                                                   throws ApiException
        Apply approval request Apply an approval request that has been approved.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyRequestAsync

        public okhttp3.Call postApprovalRequestApplyRequestAsync​(java.lang.String projectKey,
                                                                 java.lang.String featureFlagKey,
                                                                 java.lang.String environmentKey,
                                                                 java.lang.String id,
                                                                 PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                                 ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                          throws ApiException
        Apply approval request (asynchronously) Apply an approval request that has been approved.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (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
      • postApprovalRequestReviewCall

        public okhttp3.Call postApprovalRequestReviewCall​(java.lang.String projectKey,
                                                          java.lang.String featureFlagKey,
                                                          java.lang.String environmentKey,
                                                          java.lang.String id,
                                                          PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                          ApiCallback _callback)
                                                   throws ApiException
        Build call for postApprovalRequestReview
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestReview

        public FlagConfigApprovalRequestResponse postApprovalRequestReview​(java.lang.String projectKey,
                                                                           java.lang.String featureFlagKey,
                                                                           java.lang.String environmentKey,
                                                                           java.lang.String id,
                                                                           PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                                    throws ApiException
        Review approval request Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestReviewWithHttpInfo​(java.lang.String projectKey,
                                                                                                    java.lang.String featureFlagKey,
                                                                                                    java.lang.String environmentKey,
                                                                                                    java.lang.String id,
                                                                                                    PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                                                             throws ApiException
        Review approval request Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewAsync

        public okhttp3.Call postApprovalRequestReviewAsync​(java.lang.String projectKey,
                                                           java.lang.String featureFlagKey,
                                                           java.lang.String environmentKey,
                                                           java.lang.String id,
                                                           PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                           ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                    throws ApiException
        Review approval request (asynchronously) Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (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
      • postFlagCopyConfigApprovalRequestCall

        public okhttp3.Call postFlagCopyConfigApprovalRequestCall​(java.lang.String projectKey,
                                                                  java.lang.String featureFlagKey,
                                                                  java.lang.String environmentKey,
                                                                  CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest,
                                                                  ApiCallback _callback)
                                                           throws ApiException
        Build call for postFlagCopyConfigApprovalRequest
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postFlagCopyConfigApprovalRequest

        public FlagConfigApprovalRequestResponse postFlagCopyConfigApprovalRequest​(java.lang.String projectKey,
                                                                                   java.lang.String featureFlagKey,
                                                                                   java.lang.String environmentKey,
                                                                                   CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest)
                                                                            throws ApiException
        Create approval request to copy flag configurations across environments Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagCopyConfigApprovalRequestWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postFlagCopyConfigApprovalRequestWithHttpInfo​(java.lang.String projectKey,
                                                                                                            java.lang.String featureFlagKey,
                                                                                                            java.lang.String environmentKey,
                                                                                                            CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest)
                                                                                                     throws ApiException
        Create approval request to copy flag configurations across environments Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagCopyConfigApprovalRequestAsync

        public okhttp3.Call postFlagCopyConfigApprovalRequestAsync​(java.lang.String projectKey,
                                                                   java.lang.String featureFlagKey,
                                                                   java.lang.String environmentKey,
                                                                   CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest,
                                                                   ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                            throws ApiException
        Create approval request to copy flag configurations across environments (asynchronously) Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (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