Class IntegrationAuditLogSubscriptionsApi


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

      • IntegrationAuditLogSubscriptionsApi

        public IntegrationAuditLogSubscriptionsApi()
      • IntegrationAuditLogSubscriptionsApi

        public IntegrationAuditLogSubscriptionsApi​(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)
      • createSubscriptionCall

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

        public Integration createSubscription​(@Nonnull
                                              java.lang.String integrationKey,
                                              @Nonnull
                                              SubscriptionPost subscriptionPost)
                                       throws ApiException
        Create audit log subscription Create an audit log subscription.<br /><br />For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read [Custom role concepts](https://launchdarkly.com/docs/home/account/role-concepts).
        Parameters:
        integrationKey - The integration key (required)
        subscriptionPost - (required)
        Returns:
        Integration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createSubscriptionWithHttpInfo

        public ApiResponse<Integration> createSubscriptionWithHttpInfo​(@Nonnull
                                                                       java.lang.String integrationKey,
                                                                       @Nonnull
                                                                       SubscriptionPost subscriptionPost)
                                                                throws ApiException
        Create audit log subscription Create an audit log subscription.<br /><br />For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read [Custom role concepts](https://launchdarkly.com/docs/home/account/role-concepts).
        Parameters:
        integrationKey - The integration key (required)
        subscriptionPost - (required)
        Returns:
        ApiResponse<Integration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createSubscriptionAsync

        public okhttp3.Call createSubscriptionAsync​(@Nonnull
                                                    java.lang.String integrationKey,
                                                    @Nonnull
                                                    SubscriptionPost subscriptionPost,
                                                    ApiCallback<Integration> _callback)
                                             throws ApiException
        Create audit log subscription (asynchronously) Create an audit log subscription.<br /><br />For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read [Custom role concepts](https://launchdarkly.com/docs/home/account/role-concepts).
        Parameters:
        integrationKey - The integration key (required)
        subscriptionPost - (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
      • deleteSubscriptionCall

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

        public void deleteSubscription​(@Nonnull
                                       java.lang.String integrationKey,
                                       @Nonnull
                                       java.lang.String id)
                                throws ApiException
        Delete audit log subscription Delete an audit log subscription.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteSubscriptionWithHttpInfo

        public ApiResponse<java.lang.Void> deleteSubscriptionWithHttpInfo​(@Nonnull
                                                                          java.lang.String integrationKey,
                                                                          @Nonnull
                                                                          java.lang.String id)
                                                                   throws ApiException
        Delete audit log subscription Delete an audit log subscription.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteSubscriptionAsync

        public okhttp3.Call deleteSubscriptionAsync​(@Nonnull
                                                    java.lang.String integrationKey,
                                                    @Nonnull
                                                    java.lang.String id,
                                                    ApiCallback<java.lang.Void> _callback)
                                             throws ApiException
        Delete audit log subscription (asynchronously) Delete an audit log subscription.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription 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
      • getSubscriptionByIDCall

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

        public Integration getSubscriptionByID​(@Nonnull
                                               java.lang.String integrationKey,
                                               @Nonnull
                                               java.lang.String id)
                                        throws ApiException
        Get audit log subscription by ID Get an audit log subscription by ID.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription ID (required)
        Returns:
        Integration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionByIDWithHttpInfo

        public ApiResponse<Integration> getSubscriptionByIDWithHttpInfo​(@Nonnull
                                                                        java.lang.String integrationKey,
                                                                        @Nonnull
                                                                        java.lang.String id)
                                                                 throws ApiException
        Get audit log subscription by ID Get an audit log subscription by ID.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription ID (required)
        Returns:
        ApiResponse<Integration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionByIDAsync

        public okhttp3.Call getSubscriptionByIDAsync​(@Nonnull
                                                     java.lang.String integrationKey,
                                                     @Nonnull
                                                     java.lang.String id,
                                                     ApiCallback<Integration> _callback)
                                              throws ApiException
        Get audit log subscription by ID (asynchronously) Get an audit log subscription by ID.
        Parameters:
        integrationKey - The integration key (required)
        id - The subscription 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
      • getSubscriptionsCall

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

        public Integrations getSubscriptions​(@Nonnull
                                             java.lang.String integrationKey)
                                      throws ApiException
        Get audit log subscriptions by integration Get all audit log subscriptions associated with a given integration.
        Parameters:
        integrationKey - The integration key (required)
        Returns:
        Integrations
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionsWithHttpInfo

        public ApiResponse<Integrations> getSubscriptionsWithHttpInfo​(@Nonnull
                                                                      java.lang.String integrationKey)
                                                               throws ApiException
        Get audit log subscriptions by integration Get all audit log subscriptions associated with a given integration.
        Parameters:
        integrationKey - The integration key (required)
        Returns:
        ApiResponse<Integrations>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionsAsync

        public okhttp3.Call getSubscriptionsAsync​(@Nonnull
                                                  java.lang.String integrationKey,
                                                  ApiCallback<Integrations> _callback)
                                           throws ApiException
        Get audit log subscriptions by integration (asynchronously) Get all audit log subscriptions associated with a given integration.
        Parameters:
        integrationKey - The integration 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
      • updateSubscriptionCall

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

        public Integration updateSubscription​(@Nonnull
                                              java.lang.String integrationKey,
                                              @Nonnull
                                              java.lang.String id,
                                              @Nonnull
                                              java.util.List<PatchOperation> patchOperation)
                                       throws ApiException
        Update audit log subscription Update an audit log subscription configuration. Updating an audit log subscription 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).
        Parameters:
        integrationKey - The integration key (required)
        id - The ID of the audit log subscription (required)
        patchOperation - (required)
        Returns:
        Integration
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • updateSubscriptionWithHttpInfo

        public ApiResponse<Integration> updateSubscriptionWithHttpInfo​(@Nonnull
                                                                       java.lang.String integrationKey,
                                                                       @Nonnull
                                                                       java.lang.String id,
                                                                       @Nonnull
                                                                       java.util.List<PatchOperation> patchOperation)
                                                                throws ApiException
        Update audit log subscription Update an audit log subscription configuration. Updating an audit log subscription 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).
        Parameters:
        integrationKey - The integration key (required)
        id - The ID of the audit log subscription (required)
        patchOperation - (required)
        Returns:
        ApiResponse<Integration>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • updateSubscriptionAsync

        public okhttp3.Call updateSubscriptionAsync​(@Nonnull
                                                    java.lang.String integrationKey,
                                                    @Nonnull
                                                    java.lang.String id,
                                                    @Nonnull
                                                    java.util.List<PatchOperation> patchOperation,
                                                    ApiCallback<Integration> _callback)
                                             throws ApiException
        Update audit log subscription (asynchronously) Update an audit log subscription configuration. Updating an audit log subscription 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).
        Parameters:
        integrationKey - The integration key (required)
        id - The ID of the audit log subscription (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