mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
978a979566
* win_dsc: improved parameter handling * removed uneeded try/catch leftover from testing * removed undeed return values * added custom DSC to fully test out casting * fix up codestyle issues * using new Requires ps version check * fixed up error message check on earlier ps version
25 lines
909 B
Text
25 lines
909 B
Text
[ClassVersion("{{item.version}}")]
|
|
class ANSIBLE_xTestClass
|
|
{
|
|
[Write] String StringKey;
|
|
[Write] Boolean BooleanKey;
|
|
[Write] UInt32 UInt32Key;
|
|
[Write] String StringArrayKey[];
|
|
};
|
|
|
|
[ClassVersion("{{item.version}}"), FriendlyName("xTestResource")]
|
|
class ANSIBLE_xTestResource : OMI_BaseResource
|
|
{
|
|
[Key] String Path;
|
|
[Required, ValueMap{"Present", "Absent"}, Values{"Present", "Absent"}] String Ensure;
|
|
[Write] String StringParam;
|
|
[Write] UInt32 UInt32Param;
|
|
[Write] UInt64 UInt64Param;
|
|
[Write] String StringArrayParam[];
|
|
[Write] UInt32 UInt32ArrayParam[];
|
|
[Write] UInt64 UInt64ArrayParam[];
|
|
[Write] Boolean BooleanParam;
|
|
[Write, EmbeddedInstance("MSFT_Credential")] String PSCredentialParam;
|
|
[Write, EmbeddedInstance("ANSIBLE_xTestClass")] String CimInstanceParam;
|
|
[Write, EmbeddedInstance("ANSIBLE_xTestClass")] String CimInstanceArrayParam[];
|
|
};
|