Package com.atlan.api
Class AssetEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.AtlasEndpoint
com.atlan.api.AssetEndpoint
API endpoints for operating on assets.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Request class for handling Atlan tag additions.Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse
-
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames) Add one or more Atlan tags to the provided asset.void
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) Add one or more Atlan tags to the provided asset.void
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation) Add one or more Atlan tags to the provided asset.void
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation, RequestOptions options) Add one or more Atlan tags to the provided asset.void
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, RequestOptions options) Add one or more Atlan tags to the provided asset.void
addAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, RequestOptions options) Add one or more Atlan tags to the provided asset.auditLogs
(AuditSearchRequest request) Run the requested search.auditLogs
(AuditSearchRequest request, RequestOptions options) Run the requested search.delete
(String guid, AtlanDeleteType deleteType) Deletes any asset.delete
(List<String> guids, AtlanDeleteType deleteType) Deletes any assets.delete
(List<String> guids, AtlanDeleteType deleteType, RequestOptions options) Deletes any assets.Retrieves any asset by its GUID.get
(String guid, boolean ignoreRelationships, boolean minExtInfo, RequestOptions options) Retrieves any asset by its GUID.Retrieves any asset by its qualifiedName.get
(String typeName, String qualifiedName, boolean ignoreRelationships, boolean minExtInfo, RequestOptions options) Retrieves any asset by its qualifiedName.lineage
(LineageListRequest request) Retrieve lineage using the higher-performance "list" API.lineage
(LineageListRequest request, RequestOptions options) Retrieve lineage using the higher-performance "list" API.void
removeAtlanTag
(String typeName, String qualifiedName, String atlanTagName, boolean idempotent) Removes a single Atlan tag from the provided asset.void
removeAtlanTag
(String typeName, String qualifiedName, String atlanTagName, boolean idempotent, RequestOptions options) Removes a single Atlan tag from the provided asset.void
removeCustomMetadata
(String guid, String cmName) Removes specific custom metadata from the specified asset.void
removeCustomMetadata
(String guid, String cmName, RequestOptions options) Removes specific custom metadata from the specified asset.void
replaceCustomMetadata
(String guid, String cmName, CustomMetadataAttributes values) Replaces specific custom metadata for the specified asset.void
replaceCustomMetadata
(String guid, String cmName, CustomMetadataAttributes values, RequestOptions options) Replaces specific custom metadata for the specified asset.Restores any asset from a soft-deleted (archived) to an active state.restore
(Asset value, RequestOptions options) Restores any asset from a soft-deleted (archived) to an active state.Restores any assets in the list provided from a soft-deleted (archived) to active state.restore
(List<Asset> values, RequestOptions options) Restores any assets in the list provided from a soft-deleted (archived) to active state.Creates any asset, not updating any of the existing asset's Atlan tags and entirely ignoring any custom metadata.Creates any asset, optionally overwriting an existing asset's Atlan tags and entirely ignoring any custom metadata.save
(Asset value, boolean replaceAtlanTags, RequestOptions options) Creates any asset, optionally overwriting an existing asset's Atlan tags and entirely ignoring any custom metadata.save
(Asset value, RequestOptions options) Creates any asset, not updating any of the existing asset's Atlan tags and entirely ignoring any custom metadata.Creates any assets, optionally overwriting the existing assets' Atlan tags and entirely ignoring any custom metadata.save
(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) Creates any assets, optionally overwriting the existing assets' Atlan tags and entirely ignoring any custom metadata.saveMergingCM
(List<Asset> values, boolean replaceAtlanTags) Creates any assets, optionally overwriting the existing assets' Atlan tags and merging any provided custom metadata values (but leaving any existing custom metadata values as-is).saveMergingCM
(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) Creates any assets, optionally overwriting the existing assets' Atlan tags and merging any provided custom metadata values (but leaving any existing custom metadata values as-is).saveReplacingCM
(List<Asset> values, boolean replaceAtlanTags) Creates any assets, optionally overwriting the existing assets' Atlan tags and replacing all custom metadata values on the asset with the ones provided (wiping out any existing custom metadata on the asset that is not also provided in the request).saveReplacingCM
(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) Creates any assets, optionally overwriting the existing assets' Atlan tags and replacing all custom metadata values on the asset with the ones provided (wiping out any existing custom metadata on the asset that is not also provided in the request).search
(IndexSearchRequest request) Run the requested search.search
(IndexSearchRequest request, RequestOptions options) Run the requested search.select()
Start a fluent search that will return all assets.select
(boolean includeArchived) Start a fluent search that will return all assets.void
updateAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) Update one or more Atlan tags on the provided asset.void
updateAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation) Update one or more Atlan tags on the provided asset.void
updateAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation, RequestOptions options) Update one or more Atlan tags on the provided asset.void
updateAtlanTags
(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, RequestOptions options) Update one or more Atlan tags on the provided asset.updateAttributes
(String typeName, String qualifiedName, Asset value) Updates any simple attributes provided.updateAttributes
(String typeName, String qualifiedName, Asset value, RequestOptions options) Updates any simple attributes provided.void
updateCustomMetadataAttributes
(String guid, String cmName, CustomMetadataAttributes values) Updates only the provided custom metadata attributes on the asset.void
updateCustomMetadataAttributes
(String guid, String cmName, CustomMetadataAttributes values, RequestOptions options) Updates only the provided custom metadata attributes on the asset.Methods inherited from class com.atlan.api.AtlasEndpoint
getBaseUrl
Methods inherited from class com.atlan.api.AbstractEndpoint
getBaseUrl
-
Constructor Details
-
AssetEndpoint
-
-
Method Details
-
select
Start a fluent search that will return all assets. Additional conditions can be chained onto the returned filter before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval. Only active (non-archived) assets will be included.- Returns:
- a fluent search that includes all assets
-
select
Start a fluent search that will return all assets. Additional conditions can be chained onto the returned filter before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval.- Parameters:
includeArchived
- when true, archived (soft-deleted) assets will be included- Returns:
- a fluent search that includes all assets
-
auditLogs
Run the requested search.- Parameters:
request
- detailing the search query, parameters, and so on to run- Returns:
- the results of the search
- Throws:
AtlanException
- on any API interaction problems
-
auditLogs
public AuditSearchResponse auditLogs(AuditSearchRequest request, RequestOptions options) throws AtlanException Run the requested search.- Parameters:
request
- detailing the search query, parameters, and so on to runoptions
- to override default client settings- Returns:
- the results of the search
- Throws:
AtlanException
- on any API interaction problems
-
save
Creates any asset, not updating any of the existing asset's Atlan tags and entirely ignoring any custom metadata.- Parameters:
value
- asset to upsert- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
save
Creates any asset, not updating any of the existing asset's Atlan tags and entirely ignoring any custom metadata.- Parameters:
value
- asset to upsertoptions
- to override default client settings- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
save
Creates any asset, optionally overwriting an existing asset's Atlan tags and entirely ignoring any custom metadata.- Parameters:
value
- asset to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
save
public AsyncCreationResponse save(Asset value, boolean replaceAtlanTags, RequestOptions options) throws AtlanException Creates any asset, optionally overwriting an existing asset's Atlan tags and entirely ignoring any custom metadata.- Parameters:
value
- asset to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)options
- to override default client settings- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
save
public AsyncCreationResponse save(List<Asset> values, boolean replaceAtlanTags) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and entirely ignoring any custom metadata.- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
save
public AsyncCreationResponse save(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and entirely ignoring any custom metadata.- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)options
- to override default client settings- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
saveMergingCM
public AsyncCreationResponse saveMergingCM(List<Asset> values, boolean replaceAtlanTags) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and merging any provided custom metadata values (but leaving any existing custom metadata values as-is).- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
saveMergingCM
public AsyncCreationResponse saveMergingCM(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and merging any provided custom metadata values (but leaving any existing custom metadata values as-is).- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)options
- to override default client settings- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
saveReplacingCM
public AsyncCreationResponse saveReplacingCM(List<Asset> values, boolean replaceAtlanTags) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and replacing all custom metadata values on the asset with the ones provided (wiping out any existing custom metadata on the asset that is not also provided in the request).- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
saveReplacingCM
public AsyncCreationResponse saveReplacingCM(List<Asset> values, boolean replaceAtlanTags, RequestOptions options) throws AtlanException Creates any assets, optionally overwriting the existing assets' Atlan tags and replacing all custom metadata values on the asset with the ones provided (wiping out any existing custom metadata on the asset that is not also provided in the request).- Parameters:
values
- assets to upsertreplaceAtlanTags
- whether to overwrite any existing Atlan tags (true) or not (false)options
- to override default client settings- Returns:
- the results of the upsert
- Throws:
AtlanException
- on any API interaction problems
-
delete
Deletes any asset.- Parameters:
guid
- unique ID of the asset to deletedeleteType
- whether to soft-delete (archive) or hard-delete (purge) the asset- Returns:
- the results of the deletion
- Throws:
AtlanException
- on any API interaction problems
-
delete
public AssetDeletionResponse delete(List<String> guids, AtlanDeleteType deleteType) throws AtlanException Deletes any assets.- Parameters:
guids
- unique IDs of the assets to deletedeleteType
- whether to soft-delete (archive) or hard-delete (purge) the assets- Returns:
- the results of the deletion
- Throws:
AtlanException
- on any API interaction problems
-
delete
public AssetDeletionResponse delete(List<String> guids, AtlanDeleteType deleteType, RequestOptions options) throws AtlanException Deletes any assets.- Parameters:
guids
- unique IDs of the assets to deletedeleteType
- whether to soft-delete (archive) or hard-delete (purge) the assetsoptions
- to override default client settings- Returns:
- the results of the deletion
- Throws:
AtlanException
- on any API interaction problemsInvalidRequestException
- if you attempt to archive a category, as categories can only be purged
-
restore
Restores any asset from a soft-deleted (archived) to an active state.- Parameters:
value
- asset to restore- Returns:
- the results of the restoration (the restored asset will be in the list of updated assets)
- Throws:
AtlanException
- on any API interaction problems
-
restore
Restores any asset from a soft-deleted (archived) to an active state.- Parameters:
value
- asset to restoreoptions
- to override default client settings- Returns:
- the results of the restoration (the restored asset will be in the list of updated assets)
- Throws:
AtlanException
- on any API interaction problems
-
restore
Restores any assets in the list provided from a soft-deleted (archived) to active state.- Parameters:
values
- assets to restore- Returns:
- the results of the restoration (any restored assets will be in the list of updated assets)
- Throws:
AtlanException
- on any API interaction problems
-
restore
public AssetMutationResponse restore(List<Asset> values, RequestOptions options) throws AtlanException Restores any assets in the list provided from a soft-deleted (archived) to active state.- Parameters:
values
- assets to restoreoptions
- to override default client settings- Returns:
- the results of the restoration (any restored assets will be in the list of updated assets)
- Throws:
AtlanException
- on any API interaction problems
-
get
public AssetResponse get(String guid, boolean ignoreRelationships, boolean minExtInfo) throws AtlanException Retrieves any asset by its GUID.- Parameters:
guid
- unique ID (GUID) of the asset to retrieveignoreRelationships
- whether to exclude the asset's relationships (true) or include them (false) in the responseminExtInfo
- TBC- Returns:
- the requested asset and its details, if it exists
- Throws:
AtlanException
- on any API interaction problems
-
get
public AssetResponse get(String guid, boolean ignoreRelationships, boolean minExtInfo, RequestOptions options) throws AtlanException Retrieves any asset by its GUID.- Parameters:
guid
- unique ID (GUID) of the asset to retrieveignoreRelationships
- whether to exclude the asset's relationships (true) or include them (false) in the responseminExtInfo
- TBCoptions
- to override default client settings- Returns:
- the requested asset and its details, if it exists
- Throws:
AtlanException
- on any API interaction problems
-
updateCustomMetadataAttributes
public void updateCustomMetadataAttributes(String guid, String cmName, CustomMetadataAttributes values) throws AtlanException Updates only the provided custom metadata attributes on the asset. This will leave all other custom metadata attributes, even within the same named custom metadata, unchanged.- Parameters:
guid
- unique identifier of the asset for which to update the custom metadata attributescmName
- the name of the custom metadata to updatevalues
- the values of the custom metadata attributes to change- Throws:
AtlanException
- on any API issue
-
updateCustomMetadataAttributes
public void updateCustomMetadataAttributes(String guid, String cmName, CustomMetadataAttributes values, RequestOptions options) throws AtlanException Updates only the provided custom metadata attributes on the asset. This will leave all other custom metadata attributes, even within the same named custom metadata, unchanged.- Parameters:
guid
- unique identifier of the asset for which to update the custom metadata attributescmName
- the name of the custom metadata to updatevalues
- the values of the custom metadata attributes to changeoptions
- to override default client settings- Throws:
AtlanException
- on any API issue
-
replaceCustomMetadata
public void replaceCustomMetadata(String guid, String cmName, CustomMetadataAttributes values) throws AtlanException Replaces specific custom metadata for the specified asset. This will replace everything within that named custom metadata, but not touch any of the other named custom metadata.- Parameters:
guid
- unique identifier of the asset for which to replace the custom metadatacmName
- the name of the custom metadata to replacevalues
- the values to replace- Throws:
AtlanException
- on any API issue
-
replaceCustomMetadata
public void replaceCustomMetadata(String guid, String cmName, CustomMetadataAttributes values, RequestOptions options) throws AtlanException Replaces specific custom metadata for the specified asset. This will replace everything within that named custom metadata, but not touch any of the other named custom metadata.- Parameters:
guid
- unique identifier of the asset for which to replace the custom metadatacmName
- the name of the custom metadata to replacevalues
- the values to replaceoptions
- to override the default client settings- Throws:
AtlanException
- on any API issue
-
removeCustomMetadata
Removes specific custom metadata from the specified asset.- Parameters:
guid
- unique identifier of the asset from which to remove the custom metadatacmName
- the name of the custom metadata to remove- Throws:
AtlanException
- on any API issue
-
removeCustomMetadata
public void removeCustomMetadata(String guid, String cmName, RequestOptions options) throws AtlanException Removes specific custom metadata from the specified asset.- Parameters:
guid
- unique identifier of the asset from which to remove the custom metadatacmName
- the name of the custom metadata to removeoptions
- to override the default client settings- Throws:
AtlanException
- on any API issue
-
get
public AssetResponse get(String typeName, String qualifiedName, boolean ignoreRelationships, boolean minExtInfo) throws AtlanException Retrieves any asset by its qualifiedName.- Parameters:
typeName
- type of asset to be retrievedqualifiedName
- qualifiedName of the asset to be retrievedignoreRelationships
- whether to include relationships (false) or exclude them (true)minExtInfo
- whether to minimize extra info (true) or not (false)- Returns:
- the requested asset
- Throws:
AtlanException
- on any API issue, or if the asset cannot be found
-
get
public AssetResponse get(String typeName, String qualifiedName, boolean ignoreRelationships, boolean minExtInfo, RequestOptions options) throws AtlanException Retrieves any asset by its qualifiedName.- Parameters:
typeName
- type of asset to be retrievedqualifiedName
- qualifiedName of the asset to be updatedignoreRelationships
- whether to include relationships (false) or exclude them (true)minExtInfo
- whether to minimize extra info (true) or not (false)options
- to override the default client settings- Returns:
- the requested asset
- Throws:
AtlanException
- on any API issue, or if the asset cannot be found
-
updateAttributes
public AssetMutationResponse updateAttributes(String typeName, String qualifiedName, Asset value) throws AtlanException Updates any simple attributes provided. Note that this only supports adding or updating the values of these attributes — it is not possible to REMOVE (null) attributes through this endpoint.- Parameters:
typeName
- type of asset to be updatedqualifiedName
- qualifiedName of the asset to be updatedvalue
- the asset containing only the attributes to be updated- Returns:
- the set of changed entities
- Throws:
AtlanException
- on any API issue
-
updateAttributes
public AssetMutationResponse updateAttributes(String typeName, String qualifiedName, Asset value, RequestOptions options) throws AtlanException Updates any simple attributes provided. Note that this only supports adding or updating the values of these attributes — it is not possible to REMOVE (null) attributes through this endpoint.- Parameters:
typeName
- type of asset to be updatedqualifiedName
- qualifiedName of the asset to be updatedvalue
- the asset containing only the attributes to be updatedoptions
- to override the default client settings- Returns:
- the set of changed entities
- Throws:
AtlanException
- on any API issue
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the asset- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, RequestOptions options) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the assetoptions
- to override the default client settings- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the assetpropagate
- whether to propagate the Atlan tag (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the assetpropagate
- whether to propagate the Atlan tag (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)restrictHierarchyPropagation
- whether to avoid propagating through hierarchy (true) or do propagate through hierarchy (false)- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, RequestOptions options) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the assetpropagate
- whether to propagate the Atlan tag (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)options
- to override the default client settings- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
addAtlanTags
public void addAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation, RequestOptions options) throws AtlanException Add one or more Atlan tags to the provided asset. Note: if one or more of the provided Atlan tags already exists on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-01A
.- Parameters:
typeName
- type of asset to which to add the Atlan tagsqualifiedName
- of the asset to which to add the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to add to the assetpropagate
- whether to propagate the Atlan tag (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)restrictHierarchyPropagation
- whether to avoid propagating through hierarchy (true) or do propagate through hierarchy (false)options
- to override the default client settings- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
removeAtlanTag
public void removeAtlanTag(String typeName, String qualifiedName, String atlanTagName, boolean idempotent) throws AtlanException Removes a single Atlan tag from the provided asset. Note: if the provided Atlan tag does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
, unlessidempotent
is set to true.- Parameters:
typeName
- type of asset from which to remove the Atlan tagqualifiedName
- of the asset from which to remove the Atlan tagatlanTagName
- human-readable name of the Atlan tag to remove from the assetidempotent
- whether to throw an error if the Atlan tag does not exist on the asset (false) or behave the same as if the Atlan tag was removed even though it did not exist on the asset (true)- Throws:
AtlanException
- on any API issue, or if the Atlan tag does not exist on the asset
-
removeAtlanTag
public void removeAtlanTag(String typeName, String qualifiedName, String atlanTagName, boolean idempotent, RequestOptions options) throws AtlanException Removes a single Atlan tag from the provided asset. Note: if the provided Atlan tag does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
, unlessidempotent
is set to true.- Parameters:
typeName
- type of asset from which to remove the Atlan tagqualifiedName
- of the asset from which to remove the Atlan tagatlanTagName
- human-readable name of the Atlan tag to remove from the assetidempotent
- whether to throw an error if the Atlan tag does not exist on the asset (false) or behave the same as if the Atlan tag was removed even though it did not exist on the asset (true)options
- to override the default client settings- Throws:
AtlanException
- on any API issue, or if the Atlan tag does not exist on the asset
-
updateAtlanTags
public void updateAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException Update one or more Atlan tags on the provided asset. Note: if one or more of the provided Atlan tags does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
.- Parameters:
typeName
- type of asset on which to update the Atlan tagsqualifiedName
- of the asset on which to update the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to update on the assetpropagate
- whether to propagate the Atlan tags (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
updateAtlanTags
public void updateAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation) throws AtlanException Update one or more Atlan tags on the provided asset. Note: if one or more of the provided Atlan tags does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
.- Parameters:
typeName
- type of asset on which to update the Atlan tagsqualifiedName
- of the asset on which to update the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to update on the assetpropagate
- whether to propagate the Atlan tags (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)restrictHierarchyPropagation
- whether to avoid propagating through hierarchy (true) or do propagate through hierarchy (false)- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
updateAtlanTags
public void updateAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, RequestOptions options) throws AtlanException Update one or more Atlan tags on the provided asset. Note: if one or more of the provided Atlan tags does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
.- Parameters:
typeName
- type of asset on which to update the Atlan tagsqualifiedName
- of the asset on which to update the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to update on the assetpropagate
- whether to propagate the Atlan tags (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)options
- to override the default client settings- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
updateAtlanTags
public void updateAtlanTags(String typeName, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation, boolean restrictHierarchyPropagation, RequestOptions options) throws AtlanException Update one or more Atlan tags on the provided asset. Note: if one or more of the provided Atlan tags does not exist on the asset, an InvalidRequestException will be thrown with error codeATLAS-400-00-06D
.- Parameters:
typeName
- type of asset on which to update the Atlan tagsqualifiedName
- of the asset on which to update the Atlan tagsatlanTagNames
- human-readable names of the Atlan tags to update on the assetpropagate
- whether to propagate the Atlan tags (true) or not (false)removePropagationsOnDelete
- whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)restrictLineagePropagation
- whether to avoid propagating through lineage (true) or do propagate through lineage (false)restrictHierarchyPropagation
- whether to avoid propagating through hierarchy (true) or do propagate through hierarchy (false)options
- to override the default client settings- Throws:
AtlanException
- on any API issues, or if any one of the Atlan tags already exists on the asset
-
search
Run the requested search.- Parameters:
request
- detailing the search query, parameters, and so on to run- Returns:
- the results of the search
- Throws:
AtlanException
- on any API interaction problems
-
search
public IndexSearchResponse search(IndexSearchRequest request, RequestOptions options) throws AtlanException Run the requested search.- Parameters:
request
- detailing the search query, parameters, and so on to runoptions
- to override default client settings- Returns:
- the results of the search
- Throws:
AtlanException
- on any API interaction problems
-
lineage
Retrieve lineage using the higher-performance "list" API.- Parameters:
request
- detailing the lineage to retrieve- Returns:
- the results of the lineage
- Throws:
AtlanException
- on any API interaction problems
-
lineage
public LineageListResponse lineage(LineageListRequest request, RequestOptions options) throws AtlanException Retrieve lineage using the higher-performance "list" API.- Parameters:
request
- detailing the lineage to retrieveoptions
- to override default client settings- Returns:
- the results of the lineage
- Throws:
AtlanException
- on any API interaction problems
-