Class WorkbooksContentClient
Content client to interact with workbooks.
Namespace: Tableau.Migration.Engine.Endpoints.ContentClients
Assembly: Tableau.Migration.dll
Syntax
public class WorkbooksContentClient : ContentClientBase<IWorkbook>, IWorkbooksContentClient, IContentClient<IWorkbook>
Constructors
WorkbooksContentClient(IWorkbooksApiClient, ILogger<IWorkbooksContentClient>, ISharedResourcesLocalizer)
Declaration
public WorkbooksContentClient(IWorkbooksApiClient workbooksApiClient, ILogger<IWorkbooksContentClient> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IWorkbooksApiClient | workbooksApiClient | |
ILogger<IWorkbooksContentClient> | logger | |
ISharedResourcesLocalizer | localizer |
Methods
GetViewsForWorkbookIdAsync(Guid, CancellationToken)
Gets the views for a workbook.
Declaration
public Task<IResult<IImmutableList<IView>>> GetViewsForWorkbookIdAsync(Guid workbookId, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | workbookId | The Workbook Id to get views for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IImmutableList<IView>>> | Collection of views for the workbook. |