DSCResources/MSFT_xVMNetworkAdapter/MSFT_xVMNetworkAdapter.schema.mof

 
[ClassVersion("2.0.0.0")]
Class xNetworkSettings
{
  [Write] string IpAddress;
  [Write] string Subnet;
  [Write] string DefaultGateway;
  [Write] string DnsServer;
};
 
[ClassVersion("2.0.0.0"), FriendlyName("xVMNetworkAdapter")]
class MSFT_xVMNetworkAdapter : OMI_BaseResource
{
    [Key] String Id;
    [Required] String Name;
    [Required] String SwitchName;
    [Required] String VMName;
    [Write] String MacAddress;
    [Write, EmbeddedInstance("xNetworkSettings")] String NetworkSetting;
    [Write] String VlanId;
    [Write, ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
    [Read] Boolean DynamicMacAddress;
};