Package com.atlan.model.packages
Class PowerBICrawler.PowerBICrawlerBuilder<C extends PowerBICrawler,B extends PowerBICrawler.PowerBICrawlerBuilder<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.PowerBICrawler.PowerBICrawlerBuilder<C,B>
- Enclosing class:
- PowerBICrawler
public abstract static class PowerBICrawler.PowerBICrawlerBuilder<C extends PowerBICrawler,B extends PowerBICrawler.PowerBICrawlerBuilder<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) abstract C
build()
delegatedUser
(String username, String password, String tenantId, String clientId, String clientSecret) Set up the crawler to use delegated user authentication.direct()
Set up the crawler to extract directly from Power BI.directEndorsements
(boolean enabled) Whether to directly attach endorsements as certificates (true), or instead raise these as requests.Defines a regular expression to use for excluding dashboards and reports when crawling.Defines the filter for workspaces to exclude when crawling.Defines a regular expression to use for including dashboards and reports when crawling.Defines the filter for workspaces to include when crawling.protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).protected abstract B
self()
servicePrincipal
(String tenantId, String clientId, String clientSecret) Set up the crawler to use service principal authentication.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
-
PowerBICrawlerBuilder
public PowerBICrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to extract directly from Power BI.- Returns:
- the builder, set up to extract directly from Power BI
-
delegatedUser
public B delegatedUser(String username, String password, String tenantId, String clientId, String clientSecret) Set up the crawler to use delegated user authentication.- Parameters:
username
- through which to access Power BIpassword
- through which to access Power BItenantId
- unique ID (GUID) of the tenant for Power BIclientId
- unique ID (GUID) of the client for Power BIclientSecret
- through which to access Power BI- Returns:
- the builder, set up to use basic authentication
-
servicePrincipal
Set up the crawler to use service principal authentication.- Parameters:
tenantId
- unique ID (GUID) of the tenant for Power BIclientId
- unique ID (GUID) of the client for Power BIclientSecret
- through which to access Power BI- Returns:
- the builder, set up to use basic authentication
-
include
Defines the filter for workspaces to include when crawling.- Parameters:
workspaces
- the GUIDs of workspaces to include when crawling- Returns:
- the builder, set to include only those workspaces specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines the filter for workspaces to exclude when crawling.- Parameters:
workspaces
- the GUIDs of workspaces to exclude when crawling- Returns:
- the builder, set to exclude only those workspaces specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
include
Defines a regular expression to use for including dashboards and reports when crawling.- Parameters:
regex
- any dashboard and report names that match this regular expression will be included in crawling- Returns:
- the builder, set to include any assets that match the provided regular expression
-
exclude
Defines a regular expression to use for excluding dashboards and reports when crawling.- Parameters:
regex
- any dashboard and report 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
-
directEndorsements
Whether to directly attach endorsements as certificates (true), or instead raise these as requests.- Parameters:
enabled
- if true, endorsements will be directly set as certificates on assets, otherwise requests will be raised- Returns:
- the builder, set to directly (or not) set certificates on assets for endorsements
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends PowerBICrawler,
B extends PowerBICrawler.PowerBICrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends PowerBICrawler,
B extends PowerBICrawler.PowerBICrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends PowerBICrawler,
B extends PowerBICrawler.PowerBICrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends PowerBICrawler,
B extends PowerBICrawler.PowerBICrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends PowerBICrawler,
B extends PowerBICrawler.PowerBICrawlerBuilder<C, B>>
-