Class PermissionsRestApiSimulatorBase<TContent>
Base class for objects that define simulation of Tableau REST API permissions methods.
Inheritance
object
PermissionsRestApiSimulatorBase<TContent>
Namespace: Tableau.Migration.Api.Simulation.Rest.Api
Assembly: Tableau.Migration.dll
Syntax
public abstract class PermissionsRestApiSimulatorBase<TContent> where TContent : IRestIdentifiable, INamedContent
Type Parameters
| Name | Description |
|---|---|
| TContent |
Constructors
PermissionsRestApiSimulatorBase(TableauApiResponseSimulator, string, Func<TableauData, ICollection<TContent>>)
Creates a new PermissionsRestApiSimulatorBase<TContent> object.
Declaration
public PermissionsRestApiSimulatorBase(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. |
Fields
ContentTypeUrlPrefix
Gets the URL prefix for the content permissions.
Declaration
protected readonly string ContentTypeUrlPrefix
Field Value
| Type | Description |
|---|---|
| string |
Properties
CreatePermissions
Gets the simulated permission create API method.
Declaration
public MethodSimulator CreatePermissions { get; }
Property Value
| Type | Description |
|---|---|
| MethodSimulator |
QueryPermissions
Gets the simulated permission query API method.
Declaration
public MethodSimulator QueryPermissions { get; }
Property Value
| Type | Description |
|---|---|
| MethodSimulator |
ReplacePermissions
Gets the simulated replace permission API method.
Declaration
public MethodSimulator ReplacePermissions { get; }
Property Value
| Type | Description |
|---|---|
| MethodSimulator |