Class WorkflowsBetaApi


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

      • WorkflowsBetaApi

        public WorkflowsBetaApi()
      • WorkflowsBetaApi

        public WorkflowsBetaApi​(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)
      • deleteWorkflowCall

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

        public void deleteWorkflow​(java.lang.String projectKey,
                                   java.lang.String featureFlagKey,
                                   java.lang.String environmentKey,
                                   java.lang.String workflowId)
                            throws ApiException
        Delete workflow Delete a workflow from a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        workflowId - The workflow id (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteWorkflowWithHttpInfo

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

        public okhttp3.Call deleteWorkflowAsync​(java.lang.String projectKey,
                                                java.lang.String featureFlagKey,
                                                java.lang.String environmentKey,
                                                java.lang.String workflowId,
                                                ApiCallback<java.lang.Void> _callback)
                                         throws ApiException
        Delete workflow (asynchronously) Delete a workflow from a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        workflowId - The workflow 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
      • getCustomWorkflowCall

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

        public CustomWorkflowOutputRep getCustomWorkflow​(java.lang.String projectKey,
                                                         java.lang.String featureFlagKey,
                                                         java.lang.String environmentKey,
                                                         java.lang.String workflowId)
                                                  throws ApiException
        Get custom workflow Get a specific workflow by ID.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        workflowId - The workflow ID (required)
        Returns:
        CustomWorkflowOutputRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomWorkflowWithHttpInfo

        public ApiResponse<CustomWorkflowOutputRep> getCustomWorkflowWithHttpInfo​(java.lang.String projectKey,
                                                                                  java.lang.String featureFlagKey,
                                                                                  java.lang.String environmentKey,
                                                                                  java.lang.String workflowId)
                                                                           throws ApiException
        Get custom workflow Get a specific workflow by ID.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        workflowId - The workflow ID (required)
        Returns:
        ApiResponse<CustomWorkflowOutputRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getCustomWorkflowAsync

        public okhttp3.Call getCustomWorkflowAsync​(java.lang.String projectKey,
                                                   java.lang.String featureFlagKey,
                                                   java.lang.String environmentKey,
                                                   java.lang.String workflowId,
                                                   ApiCallback<CustomWorkflowOutputRep> _callback)
                                            throws ApiException
        Get custom workflow (asynchronously) Get a specific workflow by ID.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        workflowId - The workflow 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
      • getWorkflowsCall

        public okhttp3.Call getWorkflowsCall​(java.lang.String projectKey,
                                             java.lang.String featureFlagKey,
                                             java.lang.String environmentKey,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for getWorkflows
        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
      • getWorkflows

        public CustomWorkflowsListingOutputRep getWorkflows​(java.lang.String projectKey,
                                                            java.lang.String featureFlagKey,
                                                            java.lang.String environmentKey)
                                                     throws ApiException
        Get workflows Display workflows associated with a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        CustomWorkflowsListingOutputRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWorkflowsWithHttpInfo

        public ApiResponse<CustomWorkflowsListingOutputRep> getWorkflowsWithHttpInfo​(java.lang.String projectKey,
                                                                                     java.lang.String featureFlagKey,
                                                                                     java.lang.String environmentKey)
                                                                              throws ApiException
        Get workflows Display workflows associated with a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        ApiResponse<CustomWorkflowsListingOutputRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWorkflowsAsync

        public okhttp3.Call getWorkflowsAsync​(java.lang.String projectKey,
                                              java.lang.String featureFlagKey,
                                              java.lang.String environmentKey,
                                              ApiCallback<CustomWorkflowsListingOutputRep> _callback)
                                       throws ApiException
        Get workflows (asynchronously) Display workflows associated with 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
      • postWorkflowCall

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

        public CustomWorkflowOutputRep postWorkflow​(java.lang.String projectKey,
                                                    java.lang.String featureFlagKey,
                                                    java.lang.String environmentKey,
                                                    CustomWorkflowInputRep customWorkflowInputRep)
                                             throws ApiException
        Create workflow Create a workflow for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        customWorkflowInputRep - (required)
        Returns:
        CustomWorkflowOutputRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postWorkflowWithHttpInfo

        public ApiResponse<CustomWorkflowOutputRep> postWorkflowWithHttpInfo​(java.lang.String projectKey,
                                                                             java.lang.String featureFlagKey,
                                                                             java.lang.String environmentKey,
                                                                             CustomWorkflowInputRep customWorkflowInputRep)
                                                                      throws ApiException
        Create workflow Create a workflow for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        customWorkflowInputRep - (required)
        Returns:
        ApiResponse<CustomWorkflowOutputRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postWorkflowAsync

        public okhttp3.Call postWorkflowAsync​(java.lang.String projectKey,
                                              java.lang.String featureFlagKey,
                                              java.lang.String environmentKey,
                                              CustomWorkflowInputRep customWorkflowInputRep,
                                              ApiCallback<CustomWorkflowOutputRep> _callback)
                                       throws ApiException
        Create workflow (asynchronously) Create a workflow for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        customWorkflowInputRep - (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