DSCResources/MSFT_xSQLServerDatabaseRole/MSFT_xSQLServerDatabaseRole.schema.mof

 
[ClassVersion("1.0.0.0"), FriendlyName("xSQLServerDatabaseRole")]
class MSFT_xSQLServerDatabaseRole : OMI_BaseResource
{
    [Write, Description("If 'Present' (the default value) then the login (user) will be added to the role(s). If 'Absent' then the login (user) will be removed from the role(s)."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
    [Key, Description("The name of the login that will become a member, or removed as a member, of the role(s).")] String Name;
    [Key, Description("The SQL server on which the instance exist.")] String SQLServer;
    [Key, Description("The SQL instance in which the database exist.")] String SQLInstanceName;
    [Key, Description("The database in which the login (user) and role(s) exist.")] String Database;
    [Required, Description("One or more roles to which the login (user) will be added or removed.")] String Role[];
};