//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_EthernetPort.cs // // Contents: Capabilities and management of an EthernetPort. // This file was automatically generated from CIM_EthernetPort.mof // //---------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Globalization; using System.Xml.Serialization; using System.IO; using Intel.Manageability.WSManagement; using Intel.Manageability.Cim.Untyped; namespace Intel.Manageability.Cim.Typed { /// ///Capabilities and management of an EthernetPort. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EthernetPort")] [System.Xml.Serialization.XmlRootAttribute("CIM_EthernetPort", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EthernetPort", IsNullable=false)] public class CIM_EthernetPort : CIM_NetworkPort { /// /// Default constructor. /// public CIM_EthernetPort() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_EthernetPort(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_EthernetPort(IWSManClient client): base(client) { } /// /// Remove Capabilities field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCapabilities() { RemoveField("Capabilities"); } /// /// Is true if the field Capabilities exists in the current object, /// otherwise is false. /// public virtual bool CapabilitiesExist { get { return ContainsField("Capabilities"); } } /// /// Optional, Capabilities of the EthernetPort. For example, the Device might support AlertOnLan, WakeOnLan, Load Balancing, or FailOver. If failover or load balancing capabilities are listed, a SpareGroup (failover) or ExtraCapacityGroup (load balancing) should also be defined to completely describe the capability. /// [CimField(false, false)] public virtual ushort[] Capabilities { get { return CimTypesUtils.StringArrayToArray(this["Capabilities"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("Capabilities", arr); } } /// /// Remove CapabilityDescriptions field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCapabilityDescriptions() { RemoveField("CapabilityDescriptions"); } /// /// Is true if the field CapabilityDescriptions exists in the current object, /// otherwise is false. /// public virtual bool CapabilityDescriptionsExist { get { return ContainsField("CapabilityDescriptions"); } } /// /// Optional, An array of free-form strings that provides more detailed explanations for any of the EthernetPort features that are indicated in the Capabilities array. Note, each entry of this array is related to the entry in the Capabilities array that is located at the same index. /// [CimField(false, false)] public virtual string[] CapabilityDescriptions { get { return CimTypesUtils.StringArrayToArray(this["CapabilityDescriptions"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("CapabilityDescriptions", arr); } } /// /// Remove EnabledCapabilities field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveEnabledCapabilities() { RemoveField("EnabledCapabilities"); } /// /// Is true if the field EnabledCapabilities exists in the current object, /// otherwise is false. /// public virtual bool EnabledCapabilitiesExist { get { return ContainsField("EnabledCapabilities"); } } /// /// Optional, Specifies which capabilities are enabled from the list of all supported ones, which are defined in the Capabilities array. /// [CimField(false, false)] public virtual ushort[] EnabledCapabilities { get { return CimTypesUtils.StringArrayToArray(this["EnabledCapabilities"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("EnabledCapabilities", arr); } } /// /// Remove MaxDataSize field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveMaxDataSize() { RemoveField("MaxDataSize"); } /// /// Is true if the field MaxDataSize exists in the current object, /// otherwise is false. /// public virtual bool MaxDataSizeExist { get { return ContainsField("MaxDataSize"); } } /// /// Optional, The maximum size of the INFO (non-MAC) field that will be received or transmitted. /// [CimField(false, false)] public virtual uint MaxDataSize { get { return uint.Parse(this["MaxDataSize"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("MaxDataSize",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove NetworkAddresses field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public override void RemoveNetworkAddresses() { RemoveField("NetworkAddresses"); } /// /// Is true if the field NetworkAddresses exists in the current object, /// otherwise is false. /// public override bool NetworkAddressesExist { get { return ContainsField("NetworkAddresses"); } } /// /// Optional, Ethernet/802.3 MAC addresses formatted as twelve hexadecimal digits (for example, "010203040506"), with each pair representing one of the six octets of the MAC address in "canonical" bit order. (Therefore, the Group address bit is found in the low order bit of the first character of the string.) /// [CimField(false, false)] public override string[] NetworkAddresses { get { return CimTypesUtils.StringArrayToArray(this["NetworkAddresses"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("NetworkAddresses", arr); } } /// /// Remove OtherEnabledCapabilities field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOtherEnabledCapabilities() { RemoveField("OtherEnabledCapabilities"); } /// /// Is true if the field OtherEnabledCapabilities exists in the current object, /// otherwise is false. /// public virtual bool OtherEnabledCapabilitiesExist { get { return ContainsField("OtherEnabledCapabilities"); } } /// /// Optional, An array of free-form strings that provides more detailed explanations for any of the enabled capabilities that are specified as 'Other'. /// [CimField(false, false)] public virtual string[] OtherEnabledCapabilities { get { return CimTypesUtils.StringArrayToArray(this["OtherEnabledCapabilities"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("OtherEnabledCapabilities", arr); } } /// /// Remove PortType field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public override void RemovePortType() { RemoveField("PortType"); } /// /// Is true if the field PortType exists in the current object, /// otherwise is false. /// public override bool PortTypeExist { get { return ContainsField("PortType"); } } /// /// Optional, The specific mode that is currently enabled for the Port. When set to 1 ("Other"), the related property OtherPortType contains a string description of the type of port. /// [CimField(false, false)] public override ushort PortType { get { return ushort.Parse(this["PortType"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("PortType",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of CIM_EthernetPort class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_EthernetPort objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_EthernetPort class at an endpoint. /// /// WS-Management client /// Collection of CIM_EthernetPort objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_EthernetPort if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the CIM_EthernetPort class. /// public new class CimKeys : CIM_NetworkPort.CimKeys { } } }