Package com.atlan.model.packages
Class TableauCrawler.TableauCrawlerBuilder<C extends TableauCrawler,B extends TableauCrawler.TableauCrawlerBuilder<C,B>>
java.lang.Object
com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder<C,B>
com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder<C,B>
com.atlan.model.packages.TableauCrawler.TableauCrawlerBuilder<C,B>
- Enclosing class:
- TableauCrawler
public abstract static class TableauCrawler.TableauCrawlerBuilder<C extends TableauCrawler,B extends TableauCrawler.TableauCrawlerBuilder<C,B>>
extends AbstractCrawler.AbstractCrawlerBuilder<C,B>
-
Field Summary
Fields inherited from class com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder
client, connection, localCreds
Fields inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
epoch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) alternateHost
(String hostname) Set an alternate host to use for the "View in Tableau" button for assets in the UI.Set up the crawler to use basic authentication.abstract C
build()
crawlHiddenFields
(boolean enabled) Whether to crawl hidden datasource fields (true) or not.crawlUnpublished
(boolean enabled) Whether to crawl unpublished worksheets and dashboards (true) or not.Set up the crawler to extract directly from Tableau.Defines a regular expression to use for excluding projects when crawling.Defines the filter for projects to exclude when crawling.Defines the filter for projects to include when crawling.protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).personalAccessToken
(String username, String accessToken) Set up the crawler to use PAT-based authentication.protected abstract B
self()
toString()
Methods inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
_annotation, _annotations, _credential, _label, _labels, _name, _parameter, _parameters, _prefix, _runName, clear_annotations, clear_labels, clear_parameters
-
Constructor Details
-
TableauCrawlerBuilder
public TableauCrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to extract directly from Tableau.- Parameters:
hostname
- of Tableausite
- in Tableau from which to extractsslEnabled
- if true, use SSL for the connection, otherwise do not use SSL- Returns:
- the builder, set up to extract directly from Tableau
-
basicAuth
Set up the crawler to use basic authentication.- Parameters:
username
- through which to access Tableaupassword
- through which to access Tableau- Returns:
- the builder, set up to use basic authentication
-
personalAccessToken
Set up the crawler to use PAT-based authentication.- Parameters:
username
- through which to access TableauaccessToken
- personal access token for the user, through which to access Tableau- Returns:
- the builder, set up to use PAT-based authentication
-
include
Defines the filter for projects to include when crawling.- Parameters:
projects
- the GUIDs of projects to include when crawling- Returns:
- the builder, set to include only those projects specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines the filter for projects to exclude when crawling.- Parameters:
projects
- the GUIDs of projects to exclude when crawling- Returns:
- the builder, set to exclude only those projects specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines a regular expression to use for excluding projects when crawling.- Parameters:
regex
- any project names that match this regular expression will be excluded from crawling- Returns:
- the builder, set to exclude any assets that match the provided regular expression
-
crawlHiddenFields
Whether to crawl hidden datasource fields (true) or not.- Parameters:
enabled
- if true, hidden datasource fields will be crawled otherwise they will not- Returns:
- the builder, set to include or exclude hidden datasource fields
-
crawlUnpublished
Whether to crawl unpublished worksheets and dashboards (true) or not.- Parameters:
enabled
- if true, unpublished worksheets and dashboards will be crawled otherwise they will not- Returns:
- the builder, set to include or exclude unpublished worksheets and dashboards
-
alternateHost
Set an alternate host to use for the "View in Tableau" button for assets in the UI.- Parameters:
hostname
- alternate hostname (and protocol) to use- Returns:
- the builder, set to use an alternate host for viewing assets in Tableau
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends TableauCrawler,
B extends TableauCrawler.TableauCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends TableauCrawler,
B extends TableauCrawler.TableauCrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends TableauCrawler,
B extends TableauCrawler.TableauCrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends TableauCrawler,
B extends TableauCrawler.TableauCrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends TableauCrawler,
B extends TableauCrawler.TableauCrawlerBuilder<C, B>>
-