/// <summary> /// Initializes a new instance of the GenerateTokenRequest class. /// </summary> /// <param name="accessLevel">The dataset mode or type. Possible values /// include: 'View', 'Edit', 'Create'</param> /// <param name="datasetId">The dataset Id</param> /// <param name="allowSaveAs">Allow SaveAs the report with generated /// token.</param> /// <param name="identity">The effective identity to use for RLS /// rules</param> public GenerateTokenRequest(TokenAccessLevel accessLevel, string datasetId, bool?allowSaveAs, EffectiveIdentity identity) { AccessLevel = accessLevel; DatasetId = datasetId; AllowSaveAs = allowSaveAs; Identities = new[] { identity }; CustomInit(); }