Class FlagLinksBetaApi


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

      • FlagLinksBetaApi

        public FlagLinksBetaApi()
      • FlagLinksBetaApi

        public FlagLinksBetaApi​(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)
      • createFlagLinkCall

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

        public FlagLinkRep createFlagLink​(java.lang.String projectKey,
                                          java.lang.String featureFlagKey,
                                          FlagLinkPost flagLinkPost)
                                   throws ApiException
        Create flag link Create a new flag link. Flag links let you reference external resources and associate them with your flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        flagLinkPost - (required)
        Returns:
        FlagLinkRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createFlagLinkWithHttpInfo

        public ApiResponse<FlagLinkRep> createFlagLinkWithHttpInfo​(java.lang.String projectKey,
                                                                   java.lang.String featureFlagKey,
                                                                   FlagLinkPost flagLinkPost)
                                                            throws ApiException
        Create flag link Create a new flag link. Flag links let you reference external resources and associate them with your flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        flagLinkPost - (required)
        Returns:
        ApiResponse<FlagLinkRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createFlagLinkAsync

        public okhttp3.Call createFlagLinkAsync​(java.lang.String projectKey,
                                                java.lang.String featureFlagKey,
                                                FlagLinkPost flagLinkPost,
                                                ApiCallback<FlagLinkRep> _callback)
                                         throws ApiException
        Create flag link (asynchronously) Create a new flag link. Flag links let you reference external resources and associate them with your flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        flagLinkPost - (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
      • deleteFlagLinkCall

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

        public void deleteFlagLink​(java.lang.String projectKey,
                                   java.lang.String featureFlagKey,
                                   java.lang.String id)
                            throws ApiException
        Delete flag link Delete a flag link by ID or key.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID or Key (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteFlagLinkWithHttpInfo

        public ApiResponse<java.lang.Void> deleteFlagLinkWithHttpInfo​(java.lang.String projectKey,
                                                                      java.lang.String featureFlagKey,
                                                                      java.lang.String id)
                                                               throws ApiException
        Delete flag link Delete a flag link by ID or key.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID or Key (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteFlagLinkAsync

        public okhttp3.Call deleteFlagLinkAsync​(java.lang.String projectKey,
                                                java.lang.String featureFlagKey,
                                                java.lang.String id,
                                                ApiCallback<java.lang.Void> _callback)
                                         throws ApiException
        Delete flag link (asynchronously) Delete a flag link by ID or key.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID or 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
      • getFlagLinksCall

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

        public FlagLinkCollectionRep getFlagLinks​(java.lang.String projectKey,
                                                  java.lang.String featureFlagKey)
                                           throws ApiException
        List flag links Get a list of all flag links.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        Returns:
        FlagLinkCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagLinksWithHttpInfo

        public ApiResponse<FlagLinkCollectionRep> getFlagLinksWithHttpInfo​(java.lang.String projectKey,
                                                                           java.lang.String featureFlagKey)
                                                                    throws ApiException
        List flag links Get a list of all flag links.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        Returns:
        ApiResponse<FlagLinkCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getFlagLinksAsync

        public okhttp3.Call getFlagLinksAsync​(java.lang.String projectKey,
                                              java.lang.String featureFlagKey,
                                              ApiCallback<FlagLinkCollectionRep> _callback)
                                       throws ApiException
        List flag links (asynchronously) Get a list of all flag links.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • updateFlagLinkCall

        public okhttp3.Call updateFlagLinkCall​(java.lang.String projectKey,
                                               java.lang.String featureFlagKey,
                                               java.lang.String id,
                                               java.util.List<PatchOperation> patchOperation,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for updateFlagLink
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • updateFlagLink

        public FlagLinkRep updateFlagLink​(java.lang.String projectKey,
                                          java.lang.String featureFlagKey,
                                          java.lang.String id,
                                          java.util.List<PatchOperation> patchOperation)
                                   throws ApiException
        Update flag link Update a flag link. The request body must be a valid JSON patch document. To learn more, read [Updates](/#section/Overview/Updates).
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID (required)
        patchOperation - (required)
        Returns:
        FlagLinkRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • updateFlagLinkWithHttpInfo

        public ApiResponse<FlagLinkRep> updateFlagLinkWithHttpInfo​(java.lang.String projectKey,
                                                                   java.lang.String featureFlagKey,
                                                                   java.lang.String id,
                                                                   java.util.List<PatchOperation> patchOperation)
                                                            throws ApiException
        Update flag link Update a flag link. The request body must be a valid JSON patch document. To learn more, read [Updates](/#section/Overview/Updates).
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link ID (required)
        patchOperation - (required)
        Returns:
        ApiResponse<FlagLinkRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • updateFlagLinkAsync

        public okhttp3.Call updateFlagLinkAsync​(java.lang.String projectKey,
                                                java.lang.String featureFlagKey,
                                                java.lang.String id,
                                                java.util.List<PatchOperation> patchOperation,
                                                ApiCallback<FlagLinkRep> _callback)
                                         throws ApiException
        Update flag link (asynchronously) Update a flag link. The request body must be a valid JSON patch document. To learn more, read [Updates](/#section/Overview/Updates).
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        id - The flag link 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