DSCResources/DSC_VMNetworkAdapter/DSC_VMNetworkAdapter.schema.mof

[ClassVersion("2.0.0.0")]
Class NetworkSettings
{
  [Write, Description("IpAddress to give the network adapter. Only used if not Dhcp. Required if not Dhcp.")] string IpAddress;
  [Write, Description("Subnet to give the network adapter. Only used if not Dhcp. Required if not Dhcp.")] string Subnet;
  [Write, Description("DefaultGateway to give the network adapter. Only used if not Dhcp.")] string DefaultGateway;
  [Write, Description("DNS server to give the network adapter. Only used if not Dhcp.")] string DnsServer;
};
 
[ClassVersion("2.0.0.0"), FriendlyName("VMNetworkAdapter")]
class DSC_VMNetworkAdapter : OMI_BaseResource
{
    [Key, Description("Unique string for identifying the resource instance.")] String Id;
    [Required, Description("Name of the network adapter as it appears either in the management OS or attached to a VM.")] String Name;
    [Required, Description("Virtual Switch name to connect to.")] String SwitchName;
    [Required, Description("Name of the VM to attach to. If you want to attach new VM Network adapter to the management OS, set this property to 'ManagementOS'.")] String VMName;
    [Write, Description("Use this to specify a Static MAC Address. If this parameter is not specified, dynamic MAC Address will be set.")] String MacAddress;
    [Write, Description("Network Settings of the network adapter. If this parameter is not supplied, DHCP will be used."), EmbeddedInstance("NetworkSettings")] String NetworkSetting;
    [Write, Description("Use this to specify a Vlan id on the Network Adapter.")] String VlanId;
    [Write, Description("Ensures that the VM Network Adapter is Present or Absent. The default value is `Present`."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
    [Read, Description("Returns `$true` if the network adapter uses a dynamic MAC address.")] Boolean DynamicMacAddress;
};