Class TagsRestApiSimulatorBase<TContent, TTag>
Base class for objects that define simulation of Tableau REST API permissions and tags methods.
Inherited Members
Namespace: Tableau.Migration.Api.Simulation.Rest.Api
Assembly: Tableau.Migration.dll
Syntax
public abstract class TagsRestApiSimulatorBase<TContent, TTag> : PermissionsRestApiSimulatorBase<TContent> where TContent : IRestIdentifiable, INamedContent, IWithTagTypes where TTag : ITagType, new()
Type Parameters
Name | Description |
---|---|
TContent | |
TTag |
Constructors
TagsRestApiSimulatorBase(TableauApiResponseSimulator, string, Func<TableauData, ICollection<TContent>>)
Creates a new TagsRestApiSimulatorBase<TContent, TTag> object.
Declaration
public TagsRestApiSimulatorBase(TableauApiResponseSimulator simulator, string contentTypeUrlPrefix, Func<TableauData, ICollection<TContent>> getContent)
Parameters
Type | Name | Description |
---|---|---|
TableauApiResponseSimulator | simulator | A response simulator to setup with REST API methods. |
string | contentTypeUrlPrefix | The content type's URl prefix. |
Func<TableauData, ICollection<TContent>> | getContent | Delegate used to retrieve content items by ID. |
Properties
AddTags
Gets the simulated add tags API method.
Declaration
public MethodSimulator AddTags { get; }
Property Value
Type | Description |
---|---|
MethodSimulator |
RemoveTags
Gets the simulated remove tags API method.
Declaration
public MethodSimulator RemoveTags { get; }
Property Value
Type | Description |
---|---|
MethodSimulator |