DSCResources/gcInSpec/gcInSpec.schema.mof

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[ClassVersion("1.0.0.0")]
class Reason
{
    [Read] String Phrase;
    [Read] String Code;
};

[ClassVersion("1.0.0.0"), FriendlyName("gcInSpec")]
class gcInSpec : OMI_BaseResource
{
    [Key, Description("Name of the InSpec profile")] String InSpecProfileName;
    [Required, Description("The version of InSpec that is expected to be installed")] String InSpecVersion;
    [Required, Description("The version of Windows where the test will be executed (InSpec support is specific to Windows versions)"), ValueMap{"2012r2","2016","2019"}, Values{"2012r2","2016","2019"}] String WindowsServerVersion;
    [Read, Description("Compliance Status returned from InSpec")] Boolean Status;
    [Read, EmbeddedInstance("Reason")] String Reasons[];
};