Class OAuth2ClientsApi


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

      • OAuth2ClientsApi

        public OAuth2ClientsApi()
      • OAuth2ClientsApi

        public OAuth2ClientsApi​(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)
      • createOAuth2ClientCall

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

        public Client createOAuth2Client​(OauthClientPost oauthClientPost)
                                  throws ApiException
        Create a LaunchDarkly OAuth 2.0 client Create (register) a LaunchDarkly OAuth2 client. OAuth2 clients allow you to build custom integrations using LaunchDarkly as your identity provider.
        Parameters:
        oauthClientPost - (required)
        Returns:
        Client
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createOAuth2ClientWithHttpInfo

        public ApiResponse<Client> createOAuth2ClientWithHttpInfo​(OauthClientPost oauthClientPost)
                                                           throws ApiException
        Create a LaunchDarkly OAuth 2.0 client Create (register) a LaunchDarkly OAuth2 client. OAuth2 clients allow you to build custom integrations using LaunchDarkly as your identity provider.
        Parameters:
        oauthClientPost - (required)
        Returns:
        ApiResponse<Client>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createOAuth2ClientAsync

        public okhttp3.Call createOAuth2ClientAsync​(OauthClientPost oauthClientPost,
                                                    ApiCallback<Client> _callback)
                                             throws ApiException
        Create a LaunchDarkly OAuth 2.0 client (asynchronously) Create (register) a LaunchDarkly OAuth2 client. OAuth2 clients allow you to build custom integrations using LaunchDarkly as your identity provider.
        Parameters:
        oauthClientPost - (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
      • deleteOAuthClientCall

        public okhttp3.Call deleteOAuthClientCall​(java.lang.String clientId,
                                                  ApiCallback _callback)
                                           throws ApiException
        Build call for deleteOAuthClient
        Parameters:
        clientId - The client ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteOAuthClient

        public void deleteOAuthClient​(java.lang.String clientId)
                               throws ApiException
        Delete OAuth 2.0 client Delete an existing OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteOAuthClientWithHttpInfo

        public ApiResponse<java.lang.Void> deleteOAuthClientWithHttpInfo​(java.lang.String clientId)
                                                                  throws ApiException
        Delete OAuth 2.0 client Delete an existing OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteOAuthClientAsync

        public okhttp3.Call deleteOAuthClientAsync​(java.lang.String clientId,
                                                   ApiCallback<java.lang.Void> _callback)
                                            throws ApiException
        Delete OAuth 2.0 client (asynchronously) Delete an existing OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client 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
      • getOAuthClientByIdCall

        public okhttp3.Call getOAuthClientByIdCall​(java.lang.String clientId,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getOAuthClientById
        Parameters:
        clientId - The client ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getOAuthClientById

        public Client getOAuthClientById​(java.lang.String clientId)
                                  throws ApiException
        Get client by ID Get a registered OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client ID (required)
        Returns:
        Client
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getOAuthClientByIdWithHttpInfo

        public ApiResponse<Client> getOAuthClientByIdWithHttpInfo​(java.lang.String clientId)
                                                           throws ApiException
        Get client by ID Get a registered OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client ID (required)
        Returns:
        ApiResponse<Client>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getOAuthClientByIdAsync

        public okhttp3.Call getOAuthClientByIdAsync​(java.lang.String clientId,
                                                    ApiCallback<Client> _callback)
                                             throws ApiException
        Get client by ID (asynchronously) Get a registered OAuth 2.0 client by unique client ID.
        Parameters:
        clientId - The client 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
      • getOAuthClientsCall

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

        public ClientCollection getOAuthClients()
                                         throws ApiException
        Get clients Get all OAuth 2.0 clients registered by your account.
        Returns:
        ClientCollection
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getOAuthClientsWithHttpInfo

        public ApiResponse<ClientCollection> getOAuthClientsWithHttpInfo()
                                                                  throws ApiException
        Get clients Get all OAuth 2.0 clients registered by your account.
        Returns:
        ApiResponse<ClientCollection>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getOAuthClientsAsync

        public okhttp3.Call getOAuthClientsAsync​(ApiCallback<ClientCollection> _callback)
                                          throws ApiException
        Get clients (asynchronously) Get all OAuth 2.0 clients registered by your account.
        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
      • patchOAuthClientCall

        public okhttp3.Call patchOAuthClientCall​(java.lang.String clientId,
                                                 java.util.List<PatchOperation> patchOperation,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for patchOAuthClient
        Parameters:
        clientId - The client ID (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchOAuthClient

        public Client patchOAuthClient​(java.lang.String clientId,
                                       java.util.List<PatchOperation> patchOperation)
                                throws ApiException
        Patch client by ID Patch an existing OAuth 2.0 client by client ID. Updating an OAuth2 client uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates). Only `name`, `description`, and `redirectUri` may be patched.
        Parameters:
        clientId - The client ID (required)
        patchOperation - (required)
        Returns:
        Client
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchOAuthClientWithHttpInfo

        public ApiResponse<Client> patchOAuthClientWithHttpInfo​(java.lang.String clientId,
                                                                java.util.List<PatchOperation> patchOperation)
                                                         throws ApiException
        Patch client by ID Patch an existing OAuth 2.0 client by client ID. Updating an OAuth2 client uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates). Only `name`, `description`, and `redirectUri` may be patched.
        Parameters:
        clientId - The client ID (required)
        patchOperation - (required)
        Returns:
        ApiResponse<Client>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchOAuthClientAsync

        public okhttp3.Call patchOAuthClientAsync​(java.lang.String clientId,
                                                  java.util.List<PatchOperation> patchOperation,
                                                  ApiCallback<Client> _callback)
                                           throws ApiException
        Patch client by ID (asynchronously) Patch an existing OAuth 2.0 client by client ID. Updating an OAuth2 client uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](/#section/Overview/Updates). Only `name`, `description`, and `redirectUri` may be patched.
        Parameters:
        clientId - The client 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