14#pragma warning disable CA1019
43 RightsType = Api.Rights.RightsType.Administration;
53 RightsType = Api.Rights.RightsType.InstanceManager;
93 RightsType = Api.Rights.RightsType.DreamDaemon;
113 RightsType = Api.Rights.RightsType.Configuration;
123 RightsType = Api.Rights.RightsType.InstancePermissionSet;
Helper for using the AuthorizeAttribute with the Api.Rights system.
TgsAuthorizeAttribute(InstanceManagerRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(IEnumerable< string > roles)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(ChatBotRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(DreamDaemonRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
const string UserEnabledRole
Role used to indicate access to the server is allowed.
TgsAuthorizeAttribute(RepositoryRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(EngineRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(ConfigurationRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute()
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(AdministrationRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(InstancePermissionSetRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
TgsAuthorizeAttribute(DreamMakerRights requiredRights)
Initializes a new instance of the TgsAuthorizeAttribute class.
ChatBotRights
Rights for chat bots.
ConfigurationRights
Rights for Models.IConfigurationFiles.
@ List
User may list files if the Models.Instance allows it.
DreamMakerRights
Rights for deployment.
RightsType
The type of rights a model uses.
EngineRights
Rights for engine version management.
RepositoryRights
Rights for the git repository.
InstancePermissionSetRights
Rights for an Models.Instance.
DreamDaemonRights
Rights for managing DreamDaemon.
InstanceManagerRights
Rights for managing Models.Instances.
AdministrationRights
Administration rights for the server.