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​(java.lang.String integrationKey,
                                                   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​(java.lang.String integrationKey,
                                              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://docs.launchdarkly.com/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​(java.lang.String integrationKey,
                                                                       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://docs.launchdarkly.com/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​(java.lang.String integrationKey,
                                                    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://docs.launchdarkly.com/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​(java.lang.String integrationKey,
                                                   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​(java.lang.String integrationKey,
                                       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​(java.lang.String integrationKey,
                                                                          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​(java.lang.String integrationKey,
                                                    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​(java.lang.String integrationKey,
                                                    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​(java.lang.String integrationKey,
                                               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​(java.lang.String integrationKey,
                                                                        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​(java.lang.String integrationKey,
                                                     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​(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​(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​(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​(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​(java.lang.String integrationKey,
                                                   java.lang.String id,
                                                   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​(java.lang.String integrationKey,
                                              java.lang.String id,
                                              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](/#section/Overview/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​(java.lang.String integrationKey,
                                                                       java.lang.String id,
                                                                       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](/#section/Overview/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​(java.lang.String integrationKey,
                                                    java.lang.String id,
                                                    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](/#section/Overview/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