Package com.atlan
Class AtlanClient
java.lang.Object
com.atlan.AtlanClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
Configuration for the SDK against a particular Atlan tenant.
-
Field Summary
Modifier and TypeFieldDescriptionfinal ApiTokensEndpoint
Endpoint with operations to manage API tokens.final AssetEndpoint
Endpoint with operations to manage assets.final ContractsEndpoint
Endpoint with operations to interact with data contracts.final CredentialsEndpoint
Endpoint with operations to manage credentials (of connectors).static final String
final FilesEndpoint
Endpoint with operations to manage files.final GroupsEndpoint
Endpoint with operations to manage groups of users.final ImagesEndpoint
Endpoint with operations to manage images.final ImpersonationEndpoint
Endpoint with operations to impersonate users.final LogsEndpoint
Endpoint with operations to manage logs.final OpenLineageEndpoint
Endpoint with operations to interact with OpenLineage.final PlaybooksEndpoint
Endpoint with operations to manage playbooks.final QueriesEndpoint
Endpoint with operations to run SQL queries.final QueryParserEndpoint
Endpoint with operations to manage query parsing.final RequestsEndpoint
Endpoint with operations to manage requests.final RolesEndpoint
Endpoint with operations to manage workspace roles.final SearchLogEndpoint
Endpoint with operations to search details of past searches.final SSOEndpoint
Endpoint with operations to manage SSO configuration.final TaskEndpoint
Endpoint with operations to manage background tasks.final TypeDefsEndpoint
Endpoint with operations to manage type definitions.final UsersEndpoint
Endpoint with operations to manage users.final WorkflowsEndpoint
Endpoint with operations to manage workflows. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
convertValue
(com.fasterxml.jackson.databind.JsonNode value, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) Converts from a JSON representation into an object.<T> T
convertValue
(com.fasterxml.jackson.databind.JsonNode value, Class<T> clazz) Converts from a JSON representation into an object.API token to use for authenticating API calls.Information about your application.Client-aware asset deserializer.Cache of Atlan tags specific to this client.Client-aware Atlan tag deserializer.Retrieve the base URL for the tenant of Atlan configured in this client.Cache of connections specific to this client.Proxy to tunnel all Atlan connections.int
Timeout value that will be used for making new connections to the Atlan API (in milliseconds).Client-aware custom metadata deserializer.Cache of custom metadata structures specific to this client.Cache of enums specific to this client.Extra headers to include on any requests made by this client.Cache of groups specific to this client.int
Maximum number of times requests will be retried.Credential for proxy authorization if required.int
Timeout value that will be used for reading a response from an API request (in milliseconds).Client-aware relationship attributes deserializer.Cache of workspace roles specific to this client.Cache of source-synced tags specific to this client.Cache of users specific to this client.Unique identifier (GUID) of the user this client impersonates.boolean
Indicates whether the SDK is configured for cluster-internal access (true) or external access (false).<T> T
readValue
(byte[] value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) Deserialize a string value into an object.<T> T
Deserialize a byte-array value into an object.<T> T
Deserialize a string value into an object.<T> T
Deserialize a string value into an object.void
setApiToken
(String apiToken) API token to use for authenticating API calls.void
setAppInfo
(String name) Sets information about your application.void
setAppInfo
(String name, String version) Sets information about your application.void
setAppInfo
(String name, String version, String url) Sets information about your application.void
setAppInfo
(String name, String version, String url, String partnerId) Sets information about your application.void
setConnectionProxy
(Proxy connectionProxy) Proxy to tunnel all Atlan connections.void
setConnectTimeout
(int connectTimeout) Timeout value that will be used for making new connections to the Atlan API (in milliseconds).void
setExtraHeaders
(Map<String, List<String>> extraHeaders) Extra headers to include on any requests made by this client.void
setMaxNetworkRetries
(int maxNetworkRetries) Maximum number of times requests will be retried.void
setProxyCredential
(PasswordAuthentication proxyCredential) Credential for proxy authorization if required.void
setReadTimeout
(int readTimeout) Timeout value that will be used for reading a response from an API request (in milliseconds).void
Unique identifier (GUID) of the user this client impersonates.void
writeValue
(com.fasterxml.jackson.core.JsonGenerator g, Object value) Serialize an object through the providedJsonGenerator
.<T> byte[]
writeValueAsBytes
(T value) Serialize an object into a JSON byte-array.<T> String
writeValueAsString
(T value) Serialize an object into a JSON string.
-
Field Details
-
DELETED_AUDIT_OBJECT
- See Also:
-
typeDefs
Endpoint with operations to manage type definitions. -
roles
Endpoint with operations to manage workspace roles. -
apiTokens
Endpoint with operations to manage API tokens. -
groups
Endpoint with operations to manage groups of users. -
users
Endpoint with operations to manage users. -
workflows
Endpoint with operations to manage workflows. -
queryParser
Endpoint with operations to manage query parsing. -
queries
Endpoint with operations to run SQL queries. -
playbooks
Endpoint with operations to manage playbooks. -
logs
Endpoint with operations to manage logs. -
images
Endpoint with operations to manage images. -
files
Endpoint with operations to manage files. -
assets
Endpoint with operations to manage assets. -
requests
Endpoint with operations to manage requests. -
impersonate
Endpoint with operations to impersonate users. -
searchLog
Endpoint with operations to search details of past searches. -
credentials
Endpoint with operations to manage credentials (of connectors). -
tasks
Endpoint with operations to manage background tasks. -
sso
Endpoint with operations to manage SSO configuration. -
openLineage
Endpoint with operations to interact with OpenLineage. -
contracts
Endpoint with operations to interact with data contracts.
-
-
Method Details
-
readValue
Deserialize a string value into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the value to deserializeclazz
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IOException
- on any errors doing the deserialization
-
readValue
Deserialize a byte-array value into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the value to deserializeclazz
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IOException
- on any errors doing the deserialization
-
readValue
public <T> T readValue(String value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException Deserialize a string value into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the value to deserializetypeRef
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IOException
- on any errors doing the deserialization
-
readValue
public <T> T readValue(byte[] value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException Deserialize a string value into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the value to deserializetypeRef
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IOException
- on any errors doing the deserialization
-
convertValue
public <T> T convertValue(com.fasterxml.jackson.databind.JsonNode value, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) throws IllegalArgumentException Converts from a JSON representation into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the JSON representationtypeReference
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IllegalArgumentException
- if conversion fails
-
convertValue
public <T> T convertValue(com.fasterxml.jackson.databind.JsonNode value, Class<T> clazz) throws IllegalArgumentException Converts from a JSON representation into an object.- Type Parameters:
T
- type of the deserialized object- Parameters:
value
- the JSON representationclazz
- the expected object type of the deserialization- Returns:
- the deserialized object
- Throws:
IllegalArgumentException
- if conversion fails
-
writeValueAsString
Serialize an object into a JSON string.- Type Parameters:
T
- type of the object- Parameters:
value
- the object to serialize- Returns:
- a string giving the JSON representing the object
- Throws:
IOException
- on any errors doing the serialization
-
writeValueAsBytes
Serialize an object into a JSON byte-array.- Type Parameters:
T
- type of the object- Parameters:
value
- the object to serialize- Returns:
- a byte-array giving the JSON representing the object
- Throws:
IOException
- on any errors doing the serialization
-
writeValue
Serialize an object through the providedJsonGenerator
.- Parameters:
g
- JSON generator through which to serialize the objectvalue
- object to serialize- Throws:
IOException
- on any errors doing the serialization
-
isInternal
public boolean isInternal()Indicates whether the SDK is configured for cluster-internal access (true) or external access (false).- Returns:
- boolean indicating whether the SDK is configured for cluster-internal access (true) or not (false)
-
getBaseUrl
Retrieve the base URL for the tenant of Atlan configured in this client. -
setAppInfo
Sets information about your application. The information is passed along to Atlan.- Parameters:
name
- Name of your application (e.g. "MyAwesomeApp")
-
setAppInfo
Sets information about your application. The information is passed along to Atlan.- Parameters:
name
- Name of your application (e.g. "MyAwesomeApp")version
- Version of your application (e.g. "1.2.34")
-
setAppInfo
Sets information about your application. The information is passed along to Atlan.- Parameters:
name
- Name of your application (e.g. "MyAwesomeApp")version
- Version of your application (e.g. "1.2.34")url
- Website for your application (e.g. "https://myawesomeapp.info")
-
setAppInfo
Sets information about your application. The information is passed along to Atlan.- Parameters:
name
- Name of your application (e.g. "MyAwesomeApp")version
- Version of your application (e.g. "1.2.34")url
- Website for your application (e.g. "https://myawesomeapp.info")partnerId
- Your Atlan Partner ID (e.g. "pp_partner_1234")
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getConnectTimeout
public int getConnectTimeout()Timeout value that will be used for making new connections to the Atlan API (in milliseconds). -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) Timeout value that will be used for making new connections to the Atlan API (in milliseconds). -
getReadTimeout
public int getReadTimeout()Timeout value that will be used for reading a response from an API request (in milliseconds). Note that this value should be set conservatively because some API requests can take time and a short timeout increases the likelihood of causing a problem in the backend. -
setReadTimeout
public void setReadTimeout(int readTimeout) Timeout value that will be used for reading a response from an API request (in milliseconds). Note that this value should be set conservatively because some API requests can take time and a short timeout increases the likelihood of causing a problem in the backend. -
getMaxNetworkRetries
public int getMaxNetworkRetries()Maximum number of times requests will be retried. -
setMaxNetworkRetries
public void setMaxNetworkRetries(int maxNetworkRetries) Maximum number of times requests will be retried. -
getExtraHeaders
Extra headers to include on any requests made by this client. -
setExtraHeaders
Extra headers to include on any requests made by this client. -
getApiToken
API token to use for authenticating API calls. -
setApiToken
API token to use for authenticating API calls. -
getUserId
Unique identifier (GUID) of the user this client impersonates. -
setUserId
Unique identifier (GUID) of the user this client impersonates. -
getConnectionProxy
Proxy to tunnel all Atlan connections. -
setConnectionProxy
Proxy to tunnel all Atlan connections. -
getProxyCredential
Credential for proxy authorization if required. -
setProxyCredential
Credential for proxy authorization if required. -
getAppInfo
Information about your application. -
getAtlanTagCache
Cache of Atlan tags specific to this client. -
getCustomMetadataCache
Cache of custom metadata structures specific to this client. -
getEnumCache
Cache of enums specific to this client. -
getGroupCache
Cache of groups specific to this client. -
getRoleCache
Cache of workspace roles specific to this client. -
getUserCache
Cache of users specific to this client. -
getConnectionCache
Cache of connections specific to this client. -
getSourceTagCache
Cache of source-synced tags specific to this client. -
getAssetDeserializer
Client-aware asset deserializer. -
getRelationshipAttributesDeserializer
Client-aware relationship attributes deserializer. -
getCustomMetadataAuditDeserializer
Client-aware custom metadata deserializer. -
getAtlanTagDeserializer
Client-aware Atlan tag deserializer.
-