Class FlagImportConfigurationsBetaApi


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

      • FlagImportConfigurationsBetaApi

        public FlagImportConfigurationsBetaApi()
      • FlagImportConfigurationsBetaApi

        public FlagImportConfigurationsBetaApi​(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)
      • createFlagImportConfigurationCall

        public okhttp3.Call createFlagImportConfigurationCall​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              java.lang.String integrationKey,
                                                              @Nonnull
                                                              FlagImportConfigurationPost flagImportConfigurationPost,
                                                              ApiCallback _callback)
                                                       throws ApiException
        Build call for createFlagImportConfiguration
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        flagImportConfigurationPost - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • createFlagImportConfiguration

        public FlagImportIntegration createFlagImportConfiguration​(@Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String integrationKey,
                                                                   @Nonnull
                                                                   FlagImportConfigurationPost flagImportConfigurationPost)
                                                            throws ApiException
        Create a flag import configuration Create a new flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`. The `config` object in the request body schema is described by the global integration settings, as specified by the <code>formVariables</code> in the <code>manifest.json</code> for this integration. It varies slightly based on the `integrationKey`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        flagImportConfigurationPost - (required)
        Returns:
        FlagImportIntegration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createFlagImportConfigurationWithHttpInfo

        public ApiResponse<FlagImportIntegration> createFlagImportConfigurationWithHttpInfo​(@Nonnull
                                                                                            java.lang.String projectKey,
                                                                                            @Nonnull
                                                                                            java.lang.String integrationKey,
                                                                                            @Nonnull
                                                                                            FlagImportConfigurationPost flagImportConfigurationPost)
                                                                                     throws ApiException
        Create a flag import configuration Create a new flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`. The `config` object in the request body schema is described by the global integration settings, as specified by the <code>formVariables</code> in the <code>manifest.json</code> for this integration. It varies slightly based on the `integrationKey`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        flagImportConfigurationPost - (required)
        Returns:
        ApiResponse<FlagImportIntegration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createFlagImportConfigurationAsync

        public okhttp3.Call createFlagImportConfigurationAsync​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nonnull
                                                               java.lang.String integrationKey,
                                                               @Nonnull
                                                               FlagImportConfigurationPost flagImportConfigurationPost,
                                                               ApiCallback<FlagImportIntegration> _callback)
                                                        throws ApiException
        Create a flag import configuration (asynchronously) Create a new flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`. The `config` object in the request body schema is described by the global integration settings, as specified by the <code>formVariables</code> in the <code>manifest.json</code> for this integration. It varies slightly based on the `integrationKey`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        flagImportConfigurationPost - (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
      • deleteFlagImportConfigurationCall

        public okhttp3.Call deleteFlagImportConfigurationCall​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              java.lang.String integrationKey,
                                                              @Nonnull
                                                              java.lang.String integrationId,
                                                              ApiCallback _callback)
                                                       throws ApiException
        Build call for deleteFlagImportConfiguration
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteFlagImportConfiguration

        public void deleteFlagImportConfiguration​(@Nonnull
                                                  java.lang.String projectKey,
                                                  @Nonnull
                                                  java.lang.String integrationKey,
                                                  @Nonnull
                                                  java.lang.String integrationId)
                                           throws ApiException
        Delete a flag import configuration Delete a flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteFlagImportConfigurationWithHttpInfo

        public ApiResponse<java.lang.Void> deleteFlagImportConfigurationWithHttpInfo​(@Nonnull
                                                                                     java.lang.String projectKey,
                                                                                     @Nonnull
                                                                                     java.lang.String integrationKey,
                                                                                     @Nonnull
                                                                                     java.lang.String integrationId)
                                                                              throws ApiException
        Delete a flag import configuration Delete a flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteFlagImportConfigurationAsync

        public okhttp3.Call deleteFlagImportConfigurationAsync​(@Nonnull
                                                               java.lang.String projectKey,
                                                               @Nonnull
                                                               java.lang.String integrationKey,
                                                               @Nonnull
                                                               java.lang.String integrationId,
                                                               ApiCallback<java.lang.Void> _callback)
                                                        throws ApiException
        Delete a flag import configuration (asynchronously) Delete a flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration 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
      • getFlagImportConfigurationCall

        public okhttp3.Call getFlagImportConfigurationCall​(@Nonnull
                                                           java.lang.String projectKey,
                                                           @Nonnull
                                                           java.lang.String integrationKey,
                                                           @Nonnull
                                                           java.lang.String integrationId,
                                                           ApiCallback _callback)
                                                    throws ApiException
        Build call for getFlagImportConfiguration
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key, for example, `split` (required)
        integrationId - The integration ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getFlagImportConfiguration

        public FlagImportIntegration getFlagImportConfiguration​(@Nonnull
                                                                java.lang.String projectKey,
                                                                @Nonnull
                                                                java.lang.String integrationKey,
                                                                @Nonnull
                                                                java.lang.String integrationId)
                                                         throws ApiException
        Get a single flag import configuration Get a single flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key, for example, `split` (required)
        integrationId - The integration ID (required)
        Returns:
        FlagImportIntegration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagImportConfigurationWithHttpInfo

        public ApiResponse<FlagImportIntegration> getFlagImportConfigurationWithHttpInfo​(@Nonnull
                                                                                         java.lang.String projectKey,
                                                                                         @Nonnull
                                                                                         java.lang.String integrationKey,
                                                                                         @Nonnull
                                                                                         java.lang.String integrationId)
                                                                                  throws ApiException
        Get a single flag import configuration Get a single flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key, for example, `split` (required)
        integrationId - The integration ID (required)
        Returns:
        ApiResponse<FlagImportIntegration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagImportConfigurationAsync

        public okhttp3.Call getFlagImportConfigurationAsync​(@Nonnull
                                                            java.lang.String projectKey,
                                                            @Nonnull
                                                            java.lang.String integrationKey,
                                                            @Nonnull
                                                            java.lang.String integrationId,
                                                            ApiCallback<FlagImportIntegration> _callback)
                                                     throws ApiException
        Get a single flag import configuration (asynchronously) Get a single flag import configuration by ID. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key, for example, `split` (required)
        integrationId - The integration 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
      • getFlagImportConfigurationsCall

        public okhttp3.Call getFlagImportConfigurationsCall​(ApiCallback _callback)
                                                     throws ApiException
        Build call for getFlagImportConfigurations
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getFlagImportConfigurations

        public FlagImportIntegrationCollection getFlagImportConfigurations()
                                                                    throws ApiException
        List all flag import configurations List all flag import configurations.
        Returns:
        FlagImportIntegrationCollection
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagImportConfigurationsWithHttpInfo

        public ApiResponse<FlagImportIntegrationCollection> getFlagImportConfigurationsWithHttpInfo()
                                                                                             throws ApiException
        List all flag import configurations List all flag import configurations.
        Returns:
        ApiResponse<FlagImportIntegrationCollection>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagImportConfigurationsAsync

        public okhttp3.Call getFlagImportConfigurationsAsync​(ApiCallback<FlagImportIntegrationCollection> _callback)
                                                      throws ApiException
        List all flag import configurations (asynchronously) List all flag import configurations.
        Parameters:
        _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
      • patchFlagImportConfigurationCall

        public okhttp3.Call patchFlagImportConfigurationCall​(@Nonnull
                                                             java.lang.String projectKey,
                                                             @Nonnull
                                                             java.lang.String integrationKey,
                                                             @Nonnull
                                                             java.lang.String integrationId,
                                                             @Nonnull
                                                             java.util.List<PatchOperation> patchOperation,
                                                             ApiCallback _callback)
                                                      throws ApiException
        Build call for patchFlagImportConfiguration
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchFlagImportConfiguration

        public FlagImportIntegration patchFlagImportConfiguration​(@Nonnull
                                                                  java.lang.String projectKey,
                                                                  @Nonnull
                                                                  java.lang.String integrationKey,
                                                                  @Nonnull
                                                                  java.lang.String integrationId,
                                                                  @Nonnull
                                                                  java.util.List<PatchOperation> patchOperation)
                                                           throws ApiException
        Update a flag import configuration Updating a flag import configuration uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).<br/><br/>To add an element to the import configuration fields that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.<br/><br/>You can update the `config`, `tags`, and `name` of the flag import configuration.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        patchOperation - (required)
        Returns:
        FlagImportIntegration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchFlagImportConfigurationWithHttpInfo

        public ApiResponse<FlagImportIntegration> patchFlagImportConfigurationWithHttpInfo​(@Nonnull
                                                                                           java.lang.String projectKey,
                                                                                           @Nonnull
                                                                                           java.lang.String integrationKey,
                                                                                           @Nonnull
                                                                                           java.lang.String integrationId,
                                                                                           @Nonnull
                                                                                           java.util.List<PatchOperation> patchOperation)
                                                                                    throws ApiException
        Update a flag import configuration Updating a flag import configuration uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).<br/><br/>To add an element to the import configuration fields that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.<br/><br/>You can update the `config`, `tags`, and `name` of the flag import configuration.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        patchOperation - (required)
        Returns:
        ApiResponse<FlagImportIntegration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchFlagImportConfigurationAsync

        public okhttp3.Call patchFlagImportConfigurationAsync​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              java.lang.String integrationKey,
                                                              @Nonnull
                                                              java.lang.String integrationId,
                                                              @Nonnull
                                                              java.util.List<PatchOperation> patchOperation,
                                                              ApiCallback<FlagImportIntegration> _callback)
                                                       throws ApiException
        Update a flag import configuration (asynchronously) Updating a flag import configuration uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).<br/><br/>To add an element to the import configuration fields that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.<br/><br/>You can update the `config`, `tags`, and `name` of the flag import configuration.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (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
      • triggerFlagImportJobCall

        public okhttp3.Call triggerFlagImportJobCall​(@Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     java.lang.String integrationKey,
                                                     @Nonnull
                                                     java.lang.String integrationId,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for triggerFlagImportJob
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • triggerFlagImportJob

        public void triggerFlagImportJob​(@Nonnull
                                         java.lang.String projectKey,
                                         @Nonnull
                                         java.lang.String integrationKey,
                                         @Nonnull
                                         java.lang.String integrationId)
                                  throws ApiException
        Trigger a single flag import run Trigger a single flag import run for an existing flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • triggerFlagImportJobWithHttpInfo

        public ApiResponse<java.lang.Void> triggerFlagImportJobWithHttpInfo​(@Nonnull
                                                                            java.lang.String projectKey,
                                                                            @Nonnull
                                                                            java.lang.String integrationKey,
                                                                            @Nonnull
                                                                            java.lang.String integrationId)
                                                                     throws ApiException
        Trigger a single flag import run Trigger a single flag import run for an existing flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • triggerFlagImportJobAsync

        public okhttp3.Call triggerFlagImportJobAsync​(@Nonnull
                                                      java.lang.String projectKey,
                                                      @Nonnull
                                                      java.lang.String integrationKey,
                                                      @Nonnull
                                                      java.lang.String integrationId,
                                                      ApiCallback<java.lang.Void> _callback)
                                               throws ApiException
        Trigger a single flag import run (asynchronously) Trigger a single flag import run for an existing flag import configuration. The `integrationKey` path parameter identifies the feature management system from which the import occurs, for example, `split`.
        Parameters:
        projectKey - The project key (required)
        integrationKey - The integration key (required)
        integrationId - The integration 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