Interface IConnectionManager
Interface for listing or updating embedded connections of content items.
Namespace: Tableau.Migration.Api
Assembly: Tableau.Migration.dll
Syntax
public interface IConnectionManager
Methods
ListConnectionsAsync(string, Guid, CancellationToken)
List the connection on the content item.
Declaration
Task<IResult<ImmutableList<IConnection>>> ListConnectionsAsync(string urlPrefix, Guid contentItemId, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
string | urlPrefix | The URL prefix of the content item to get connections for. |
Guid | contentItemId | The ID of the content item to get connections for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<ImmutableList<IConnection>>> |
UpdateConnectionAsync(string, Guid, Guid, IUpdateConnectionOptions, CancellationToken)
Update the connection on the content item.
Declaration
Task<IResult<IConnection>> UpdateConnectionAsync(string urlPrefix, Guid contentItemId, Guid connectionId, IUpdateConnectionOptions options, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
string | urlPrefix | The URL prefix of the content item to update connections for. |
Guid | contentItemId | The ID of the content item to update connections for. |
Guid | connectionId | The ID of the connection to be updated. |
IUpdateConnectionOptions | options | The update connetion options. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IConnection>> |