Class ScheduledChangesApi


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

      • ScheduledChangesApi

        public ScheduledChangesApi()
      • ScheduledChangesApi

        public ScheduledChangesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • deleteFlagConfigScheduledChangesCall

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

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

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

        public okhttp3.Call deleteFlagConfigScheduledChangesAsync​(java.lang.String projectKey,
                                                                  java.lang.String featureFlagKey,
                                                                  java.lang.String environmentKey,
                                                                  java.lang.String id,
                                                                  ApiCallback<java.lang.Void> _callback)
                                                           throws ApiException
        Delete scheduled changes workflow (asynchronously) Delete a scheduled changes workflow
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change 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
      • getFeatureFlagScheduledChangeCall

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

        public FeatureFlagScheduledChange getFeatureFlagScheduledChange​(java.lang.String projectKey,
                                                                        java.lang.String featureFlagKey,
                                                                        java.lang.String environmentKey,
                                                                        java.lang.String id)
                                                                 throws ApiException
        Get a scheduled change Get a scheduled change that will be applied to the feature flag by ID
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change id (required)
        Returns:
        FeatureFlagScheduledChange
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFeatureFlagScheduledChangeWithHttpInfo

        public ApiResponse<FeatureFlagScheduledChange> getFeatureFlagScheduledChangeWithHttpInfo​(java.lang.String projectKey,
                                                                                                 java.lang.String featureFlagKey,
                                                                                                 java.lang.String environmentKey,
                                                                                                 java.lang.String id)
                                                                                          throws ApiException
        Get a scheduled change Get a scheduled change that will be applied to the feature flag by ID
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change id (required)
        Returns:
        ApiResponse<FeatureFlagScheduledChange>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFeatureFlagScheduledChangeAsync

        public okhttp3.Call getFeatureFlagScheduledChangeAsync​(java.lang.String projectKey,
                                                               java.lang.String featureFlagKey,
                                                               java.lang.String environmentKey,
                                                               java.lang.String id,
                                                               ApiCallback<FeatureFlagScheduledChange> _callback)
                                                        throws ApiException
        Get a scheduled change (asynchronously) Get a scheduled change that will be applied to the feature flag by ID
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change 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
      • getFlagConfigScheduledChangesCall

        public okhttp3.Call getFlagConfigScheduledChangesCall​(java.lang.String projectKey,
                                                              java.lang.String featureFlagKey,
                                                              java.lang.String environmentKey,
                                                              ApiCallback _callback)
                                                       throws ApiException
        Build call for getFlagConfigScheduledChanges
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's 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
      • getFlagConfigScheduledChanges

        public FeatureFlagScheduledChanges getFlagConfigScheduledChanges​(java.lang.String projectKey,
                                                                         java.lang.String featureFlagKey,
                                                                         java.lang.String environmentKey)
                                                                  throws ApiException
        List scheduled changes Get a list of scheduled changes that will be applied to the feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        Returns:
        FeatureFlagScheduledChanges
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagConfigScheduledChangesWithHttpInfo

        public ApiResponse<FeatureFlagScheduledChanges> getFlagConfigScheduledChangesWithHttpInfo​(java.lang.String projectKey,
                                                                                                  java.lang.String featureFlagKey,
                                                                                                  java.lang.String environmentKey)
                                                                                           throws ApiException
        List scheduled changes Get a list of scheduled changes that will be applied to the feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        Returns:
        ApiResponse<FeatureFlagScheduledChanges>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagConfigScheduledChangesAsync

        public okhttp3.Call getFlagConfigScheduledChangesAsync​(java.lang.String projectKey,
                                                               java.lang.String featureFlagKey,
                                                               java.lang.String environmentKey,
                                                               ApiCallback<FeatureFlagScheduledChanges> _callback)
                                                        throws ApiException
        List scheduled changes (asynchronously) Get a list of scheduled changes that will be applied to the feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's 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
      • patchFlagConfigScheduledChangeCall

        public okhttp3.Call patchFlagConfigScheduledChangeCall​(java.lang.String projectKey,
                                                               java.lang.String featureFlagKey,
                                                               java.lang.String environmentKey,
                                                               java.lang.String id,
                                                               FlagScheduledChangesInput flagScheduledChangesInput,
                                                               java.lang.Boolean ignoreConflicts,
                                                               ApiCallback _callback)
                                                        throws ApiException
        Build call for patchFlagConfigScheduledChange
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change ID (required)
        flagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchFlagConfigScheduledChange

        public FeatureFlagScheduledChange patchFlagConfigScheduledChange​(java.lang.String projectKey,
                                                                         java.lang.String featureFlagKey,
                                                                         java.lang.String environmentKey,
                                                                         java.lang.String id,
                                                                         FlagScheduledChangesInput flagScheduledChangesInput,
                                                                         java.lang.Boolean ignoreConflicts)
                                                                  throws ApiException
        Update scheduled changes workflow Update a scheduled change, overriding existing instructions with the new ones.<br /><br />Requires a semantic patch representation of the desired changes to the resource. To learn more about semantic patches, read [Updates](/#section/Updates/Updates-via-semantic-patches)
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change ID (required)
        flagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        Returns:
        FeatureFlagScheduledChange
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchFlagConfigScheduledChangeWithHttpInfo

        public ApiResponse<FeatureFlagScheduledChange> patchFlagConfigScheduledChangeWithHttpInfo​(java.lang.String projectKey,
                                                                                                  java.lang.String featureFlagKey,
                                                                                                  java.lang.String environmentKey,
                                                                                                  java.lang.String id,
                                                                                                  FlagScheduledChangesInput flagScheduledChangesInput,
                                                                                                  java.lang.Boolean ignoreConflicts)
                                                                                           throws ApiException
        Update scheduled changes workflow Update a scheduled change, overriding existing instructions with the new ones.<br /><br />Requires a semantic patch representation of the desired changes to the resource. To learn more about semantic patches, read [Updates](/#section/Updates/Updates-via-semantic-patches)
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change ID (required)
        flagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        Returns:
        ApiResponse<FeatureFlagScheduledChange>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchFlagConfigScheduledChangeAsync

        public okhttp3.Call patchFlagConfigScheduledChangeAsync​(java.lang.String projectKey,
                                                                java.lang.String featureFlagKey,
                                                                java.lang.String environmentKey,
                                                                java.lang.String id,
                                                                FlagScheduledChangesInput flagScheduledChangesInput,
                                                                java.lang.Boolean ignoreConflicts,
                                                                ApiCallback<FeatureFlagScheduledChange> _callback)
                                                         throws ApiException
        Update scheduled changes workflow (asynchronously) Update a scheduled change, overriding existing instructions with the new ones.<br /><br />Requires a semantic patch representation of the desired changes to the resource. To learn more about semantic patches, read [Updates](/#section/Updates/Updates-via-semantic-patches)
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        id - The scheduled change ID (required)
        flagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        _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
      • postFlagConfigScheduledChangesCall

        public okhttp3.Call postFlagConfigScheduledChangesCall​(java.lang.String projectKey,
                                                               java.lang.String featureFlagKey,
                                                               java.lang.String environmentKey,
                                                               PostFlagScheduledChangesInput postFlagScheduledChangesInput,
                                                               java.lang.Boolean ignoreConflicts,
                                                               ApiCallback _callback)
                                                        throws ApiException
        Build call for postFlagConfigScheduledChanges
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        postFlagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postFlagConfigScheduledChanges

        public FeatureFlagScheduledChange postFlagConfigScheduledChanges​(java.lang.String projectKey,
                                                                         java.lang.String featureFlagKey,
                                                                         java.lang.String environmentKey,
                                                                         PostFlagScheduledChangesInput postFlagScheduledChangesInput,
                                                                         java.lang.Boolean ignoreConflicts)
                                                                  throws ApiException
        Create scheduled changes workflow Create scheduled changes for a feature flag. If the ignoreConficts query parameter is false and the new instructions would conflict with the current state of the feature flag or any existing scheduled changes, the request will fail. If the parameter is true and there are conflicts, the request will succeed as normal.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        postFlagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        Returns:
        FeatureFlagScheduledChange
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagConfigScheduledChangesWithHttpInfo

        public ApiResponse<FeatureFlagScheduledChange> postFlagConfigScheduledChangesWithHttpInfo​(java.lang.String projectKey,
                                                                                                  java.lang.String featureFlagKey,
                                                                                                  java.lang.String environmentKey,
                                                                                                  PostFlagScheduledChangesInput postFlagScheduledChangesInput,
                                                                                                  java.lang.Boolean ignoreConflicts)
                                                                                           throws ApiException
        Create scheduled changes workflow Create scheduled changes for a feature flag. If the ignoreConficts query parameter is false and the new instructions would conflict with the current state of the feature flag or any existing scheduled changes, the request will fail. If the parameter is true and there are conflicts, the request will succeed as normal.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        postFlagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        Returns:
        ApiResponse<FeatureFlagScheduledChange>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagConfigScheduledChangesAsync

        public okhttp3.Call postFlagConfigScheduledChangesAsync​(java.lang.String projectKey,
                                                                java.lang.String featureFlagKey,
                                                                java.lang.String environmentKey,
                                                                PostFlagScheduledChangesInput postFlagScheduledChangesInput,
                                                                java.lang.Boolean ignoreConflicts,
                                                                ApiCallback<FeatureFlagScheduledChange> _callback)
                                                         throws ApiException
        Create scheduled changes workflow (asynchronously) Create scheduled changes for a feature flag. If the ignoreConficts query parameter is false and the new instructions would conflict with the current state of the feature flag or any existing scheduled changes, the request will fail. If the parameter is true and there are conflicts, the request will succeed as normal.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag's key (required)
        environmentKey - The environment key (required)
        postFlagScheduledChangesInput - (required)
        ignoreConflicts - Whether or not to succeed or fail when the new instructions conflict with existing scheduled changes (optional)
        _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