-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDSC_KeyValuePairFile.schema.mof
More file actions
13 lines (13 loc) · 1.43 KB
/
DSC_KeyValuePairFile.schema.mof
File metadata and controls
13 lines (13 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
[ClassVersion("1.0.0.0"), FriendlyName("KeyValuePairFile")]
class DSC_KeyValuePairFile : OMI_BaseResource
{
[Key, Description("The path to the key value pair text file.")] String Path;
[Key, Description("The name of the key.")] String Name;
[Write, Description("Specifies the if the key value pair with the specified key should exist in the file."),ValueMap{"Present", "Absent"},Values{"Present", "Absent"}] String Ensure;
[Write, Description("Specifies the value type to use as the replacement string. Defaults to 'Text'."),ValueMap{"Text", "Secret"},Values{"Text", "Secret"}] String Type;
[Write, Description("The text to replace the value with in the identified key. Only used when Type is set to 'Text'.")] String Text;
[write, Description("The secret text to replace the value with in the identified key. Only used when Type is set to 'Secret'."),EmbeddedInstance("MSFT_Credential")] String Secret;
[Write, Description("Ignore the case of the name of the key. Defaults to $False.")] Boolean IgnoreNameCase;
[Write, Description("Ignore the case of any text or secret when determining if it they need to be updated. Defaults to $False.")] Boolean IgnoreValueCase;
[Write, Description("Specifies the file encoding. Defaults to ASCII"),ValueMap{"ASCII", "BigEndianUnicode", "BigEndianUTF32", "UTF8", "UTF8BOM", "UTF8NoBOM", "UTF32"},Values{"ASCII", "BigEndianUnicode", "BigEndianUTF32", "UTF8", "UTF8BOM", "UTF8NoBOM", "UTF32"}] String Encoding;
};