Package com.atlan.api
Class OAuthClientsEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.HeraclesEndpoint
com.atlan.api.OAuthClientsEndpoint
API endpoints for managing Atlan's OAuth clients.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse, AbstractEndpoint.ThrowingSupplier<T,E extends Exception> -
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a new OAuth client with the provided settings.create(String displayName, String description, Set<String> personas, String role, RequestOptions options) Create a new OAuth client with the provided settings.Exchange client details for a (short-lived) bearer token.exchange(String clientId, String clientSecret, RequestOptions options) Exchange client details for a (short-lived) bearer token.Retrieves the OAuth client with a name that exactly matches the provided string.Retrieves the OAuth client with a unique ID (GUID) that exactly matches the provided string.Retrieves the OAuth client with a client ID that exactly matches the provided string.list()Retrieves a list of the 20 most recently created clients defined in Atlan.list(RequestOptions options) Retrieves a list of the 20 most recently created clients defined in Atlan.Retrieves a list of the OAuth clients defined in Atlan.list(String filter, String sort, int offset, int limit, RequestOptions options) Retrieves a list of the OAuth clients defined in Atlan.voidDelete (purge) the specified OAuth client.voidpurge(String clientId, RequestOptions options) Delete (purge) the specified OAuth client.Update an existing OAuth client with the provided settings.update(String clientId, String displayName, String description, RequestOptions options) Update an existing OAuth client with the provided settings.Methods inherited from class com.atlan.api.HeraclesEndpoint
getBaseUrlMethods inherited from class com.atlan.api.AbstractEndpoint
executeWithRetries, getBaseUrl, getClient
-
Constructor Details
-
OAuthClientsEndpoint
-
-
Method Details
-
list
Retrieves a list of the 20 most recently created clients defined in Atlan.- Returns:
- a list of the 20 most recently created clients in Atlan
- Throws:
AtlanException- on any API communication issue
-
list
Retrieves a list of the 20 most recently created clients defined in Atlan.- Parameters:
options- to override default client settings- Returns:
- a list of the 20 most recently created clients in Atlan
- Throws:
AtlanException- on any API communication issue
-
list
public OAuthClientResponse list(String filter, String sort, int offset, int limit) throws AtlanException Retrieves a list of the OAuth clients defined in Atlan.- Parameters:
filter- which clients to retrievesort- property by which to sort the resultsoffset- starting point for results to return, for paginglimit- maximum number of results to be returned- Returns:
- a list of clients that match the provided criteria
- Throws:
AtlanException- on any API communication issue
-
list
public OAuthClientResponse list(String filter, String sort, int offset, int limit, RequestOptions options) throws AtlanException Retrieves a list of the OAuth clients defined in Atlan.- Parameters:
filter- which clients to retrievesort- property by which to sort the resultsoffset- starting point for results to return, for paginglimit- maximum number of results to be returnedoptions- to override default client settings- Returns:
- a list of clients that match the provided criteria
- Throws:
AtlanException- on any API communication issue
-
get
Retrieves the OAuth client with a name that exactly matches the provided string.- Parameters:
displayName- name (as it appears in the UI) by which to retrieve the OAuth client- Returns:
- the OAuth client whose name (in the UI) matches the provided string, or null if there is none
- Throws:
AtlanException- on any error during API invocation
-
getById
Retrieves the OAuth client with a client ID that exactly matches the provided string.- Parameters:
clientId- unique client identifier by which to retrieve the OAuth client- Returns:
- the OAuth client whose clientId matches the provided string, or null if there is none
- Throws:
AtlanException- on any error during API invocation
-
getByGuid
Retrieves the OAuth client with a unique ID (GUID) that exactly matches the provided string.- Parameters:
guid- unique identifier by which to retrieve the OAuth client- Returns:
- the OAuth client whose GUID matches the provided string, or null if there is none
- Throws:
AtlanException- on any error during API invocation
-
create
public OAuthClient create(String displayName, String description, Set<String> personas, String role) throws AtlanException Create a new OAuth client with the provided settings.- Parameters:
displayName- human-readable name for the OAuth clientdescription- optional explanation of the OAuth clientpersonas- unique names (qualifiedNames) of personas that should be linked to the clientrole- workspace role the client should be bound to- Returns:
- the created OAuth client
- Throws:
AtlanException- on any API communication issue
-
create
public OAuthClient create(String displayName, String description, Set<String> personas, String role, RequestOptions options) throws AtlanException Create a new OAuth client with the provided settings.- Parameters:
displayName- human-readable name for the OAuth clientdescription- optional explanation of the OAuth clientpersonas- unique names (qualifiedNames) of personas that should be linked to the clientrole- workspace role the client should be bound tooptions- to override default client settings- Returns:
- the created OAuth client
- Throws:
AtlanException- on any API communication issue
-
update
public OAuthClient update(String clientId, String displayName, String description) throws AtlanException Update an existing OAuth client with the provided settings.- Parameters:
clientId- unique identifier of the OAuth clientdisplayName- human-readable name for the OAuth clientdescription- optional explanation of the OAuth client- Returns:
- the updated OAuth client
- Throws:
AtlanException- on any API communication issue
-
update
public OAuthClient update(String clientId, String displayName, String description, RequestOptions options) throws AtlanException Update an existing OAuth client with the provided settings.- Parameters:
clientId- unique identifier of the OAuth clientdisplayName- human-readable name for the OAuth clientdescription- optional explanation of the OAuth clientoptions- to override default client settings- Returns:
- the updated OAuth client
- Throws:
AtlanException- on any API communication issue
-
purge
Delete (purge) the specified OAuth client.- Parameters:
clientId- unique identifier of the OAuth client to delete- Throws:
AtlanException- on any API communication issue
-
purge
Delete (purge) the specified OAuth client.- Parameters:
clientId- unique identifier of the OAuth client to deleteoptions- to override default client settings- Throws:
AtlanException- on any API communication issue
-
exchange
Exchange client details for a (short-lived) bearer token.- Parameters:
clientId- unique identifier of the OAuth clientclientSecret- secret for the OAuth client- Throws:
AtlanException- on any API communication issue
-
exchange
public OAuthExchangeResponse exchange(String clientId, String clientSecret, RequestOptions options) throws AtlanException Exchange client details for a (short-lived) bearer token.- Parameters:
clientId- unique identifier of the OAuth clientclientSecret- secret for the OAuth clientoptions- to override default client settings- Throws:
AtlanException- on any API communication issue
-