Interface IMigrationPlanBuilder
Interface for an object that can build IMigrationPlan objects.
Namespace: Tableau.Migration
Assembly: Tableau.Migration.dll
Syntax
public interface IMigrationPlanBuilder
Properties
Filters
Gets the filters to execute at various points during the migration.
Declaration
IContentFilterBuilder Filters { get; }
Property Value
| Type | Description |
|---|---|
| IContentFilterBuilder |
Hooks
Gets the hooks to execute at various points during the migration, determined by hook type.
Declaration
IMigrationHookBuilder Hooks { get; }
Property Value
| Type | Description |
|---|---|
| IMigrationHookBuilder |
Mappings
Gets the mappings to execute at various points during the migration.
Declaration
IContentMappingBuilder Mappings { get; }
Property Value
| Type | Description |
|---|---|
| IContentMappingBuilder |
Options
Gets the per-plan options to supply.
Declaration
IMigrationPlanOptionsBuilder Options { get; }
Property Value
| Type | Description |
|---|---|
| IMigrationPlanOptionsBuilder |
PipelineProfile
Gets the pipeline profile to execute.
Declaration
PipelineProfile PipelineProfile { get; }
Property Value
| Type | Description |
|---|---|
| PipelineProfile |
Transformers
Gets the transformations to execute at various points during the migration.
Declaration
IContentTransformerBuilder Transformers { get; }
Property Value
| Type | Description |
|---|---|
| IContentTransformerBuilder |
Methods
AppendDefaultExtensions()
Adds default hooks, filters, etc. that are common between all migration scenarios.
Declaration
IMigrationPlanBuilder AppendDefaultExtensions()
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
Build()
Finalizes the IMigrationPlan based on the current state.
Declaration
IMigrationPlan Build()
Returns
| Type | Description |
|---|---|
| IMigrationPlan | The created IMigrationPlan. |
ClearExtensions()
Clears all hooks, filters, mappings, and transformations.
Declaration
IMigrationPlanBuilder ClearExtensions()
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
ForCustomPipelineFactory(Func<IServiceProvider, IMigrationPipelineFactory>, params IEnumerable<MigrationPipelineContentType>)
Initializes the plan to perform a custom migration pipeline using the given pipeline factory.
Declaration
IMigrationPlanBuilder ForCustomPipelineFactory(Func<IServiceProvider, IMigrationPipelineFactory> pipelineFactoryOverride, params IEnumerable<MigrationPipelineContentType> supportedContentTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IServiceProvider, IMigrationPipelineFactory> | pipelineFactoryOverride | An initializer function to build the pipeline factory. |
| IEnumerable<MigrationPipelineContentType> | supportedContentTypes | The supported content types of the custom pipeline. |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
ForCustomPipelineFactory<T>(params IEnumerable<MigrationPipelineContentType>)
Initializes the plan to perform a custom migration pipeline using the given pipeline factory.
Declaration
IMigrationPlanBuilder ForCustomPipelineFactory<T>(params IEnumerable<MigrationPipelineContentType> supportedContentTypes) where T : IMigrationPipelineFactory
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MigrationPipelineContentType> | supportedContentTypes | The supported content types of the custom pipeline. |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
Type Parameters
| Name | Description |
|---|---|
| T |
ForCustomPipeline<T>(params IEnumerable<MigrationPipelineContentType>)
Initializes the plan to perform a custom migration pipeline.
Declaration
IMigrationPlanBuilder ForCustomPipeline<T>(params IEnumerable<MigrationPipelineContentType> supportedContentTypes) where T : IMigrationPipeline
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MigrationPipelineContentType> | supportedContentTypes | The supported content types of the custom pipeline. |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
Type Parameters
| Name | Description |
|---|---|
| T |
ForServerToCloud()
Initializes the plan to perform a migration of content between a Tableau Server and Tableau Cloud site.
Declaration
IServerToCloudMigrationPlanBuilder ForServerToCloud()
Returns
| Type | Description |
|---|---|
| IServerToCloudMigrationPlanBuilder | The same plan builder object for fluent API calls. |
FromSource(IMigrationPlanEndpointConfiguration)
Sets or overwrites the configuration for the source endpoint to migrate content from.
Declaration
IMigrationPlanBuilder FromSource(IMigrationPlanEndpointConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPlanEndpointConfiguration | config | The endpoint configuration. |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
FromSourceTableauServer(Uri, string, string, string, bool)
Sets or overwrites the configuration for the source Tableau Server site to migrate content from.
Declaration
IMigrationPlanBuilder FromSourceTableauServer(Uri serverUrl, string siteContentUrl, string accessTokenName, string accessToken, bool createApiSimulator = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | serverUrl | The base URL of the Tableau Server to connect to. |
| string | siteContentUrl | The URL namespace of the site to connect to. Can be empty string for default site. |
| string | accessTokenName | The name of the personal access token to use to sign into the site. |
| string | accessToken | The personal access token to use to sign into the site. |
| bool | createApiSimulator | Whether or not to create an API simulator for the |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
ToDestination(IMigrationPlanEndpointConfiguration)
Sets or overwrites the configuration for the destination endpoint to migrate content to.
Declaration
IMigrationPlanBuilder ToDestination(IMigrationPlanEndpointConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPlanEndpointConfiguration | config | The endpoint configuration. |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
ToDestinationTableauCloud(Uri, string, string, string, bool)
Sets or overwrites the configuration for the destination Tableau Cloud site to migrate content to.
Declaration
IMigrationPlanBuilder ToDestinationTableauCloud(Uri podUrl, string siteContentUrl, string accessTokenName, string accessToken, bool createApiSimulator = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | podUrl | The base URL of Tableau Cloud pod to connect to. |
| string | siteContentUrl | The URL namespace of the site to connect to. |
| string | accessTokenName | The name of the personal access token to use to sign into the site. |
| string | accessToken | The personal access token to use to sign into the site. |
| bool | createApiSimulator | Whether or not to create an API simulator for the |
Returns
| Type | Description |
|---|---|
| IMigrationPlanBuilder | The same plan builder object for fluent API calls. |
Validate()
Validates that the plan that would be built has enough information to execute.
Declaration
IResult Validate()
Returns
| Type | Description |
|---|---|
| IResult | The validation result. |