//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_NetworkPortCapabilities.cs // // Contents: NetworkPortCapabilities describes the capabilities supported for properties that are configurable in NetworkPort. // This file was automatically generated from CIM_NetworkPortCapabilities.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 { /// ///NetworkPortCapabilities describes the capabilities supported for properties that are configurable in NetworkPort. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NetworkPortCapabilities")] [System.Xml.Serialization.XmlRootAttribute("CIM_NetworkPortCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NetworkPortCapabilities", IsNullable=false)] public class CIM_NetworkPortCapabilities : CIM_LogicalPortCapabilities { /// /// Default constructor. /// public CIM_NetworkPortCapabilities() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_NetworkPortCapabilities(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_NetworkPortCapabilities(IWSManClient client): base(client) { } /// /// Remove LinkTechnologiesSupported field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveLinkTechnologiesSupported() { RemoveField("LinkTechnologiesSupported"); } /// /// Is true if the field LinkTechnologiesSupported exists in the current object, /// otherwise is false. /// public virtual bool LinkTechnologiesSupportedExist { get { return ContainsField("LinkTechnologiesSupported"); } } /// /// Optional, List of the LinkTechnologies supported by the the NetworkPort. /// [CimField(false, false)] public virtual ushort[] LinkTechnologiesSupported { get { return CimTypesUtils.StringArrayToArray(this["LinkTechnologiesSupported"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("LinkTechnologiesSupported", arr); } } /// /// Remove NetworkIDsConfigurable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveNetworkIDsConfigurable() { RemoveField("NetworkIDsConfigurable"); } /// /// Is true if the field NetworkIDsConfigurable exists in the current object, /// otherwise is false. /// public virtual bool NetworkIDsConfigurableExist { get { return ContainsField("NetworkIDsConfigurable"); } } /// /// Optional, Boolean indicating whether the NetworkPort can be configured to connect to specific Networks. /// [CimField(false, false)] public virtual bool NetworkIDsConfigurable { get { return bool.Parse(this["NetworkIDsConfigurable"][0]); } set { this.SetOrAddField("NetworkIDsConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove NetworkIDsFormat field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveNetworkIDsFormat() { RemoveField("NetworkIDsFormat"); } /// /// Is true if the field NetworkIDsFormat exists in the current object, /// otherwise is false. /// public virtual bool NetworkIDsFormatExist { get { return ContainsField("NetworkIDsFormat"); } } /// /// Optional, The format that is expected to populate the NetworkIds for the associated NetworkPortSettings.list of supported LinkTechnologies of the NetworkPort is defined in the NetworkPortCapabilities. /// [CimField(false, false)] public virtual ushort NetworkIDsFormat { get { return ushort.Parse(this["NetworkIDsFormat"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("NetworkIDsFormat",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove PortSpeedsSupported field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemovePortSpeedsSupported() { RemoveField("PortSpeedsSupported"); } /// /// Is true if the field PortSpeedsSupported exists in the current object, /// otherwise is false. /// public virtual bool PortSpeedsSupportedExist { get { return ContainsField("PortSpeedsSupported"); } } /// /// Optional, List of supported port speeds that can be configured on NetworkPort.Speed. /// [CimField(false, false)] public virtual ulong[] PortSpeedsSupported { get { return CimTypesUtils.StringArrayToArray(this["PortSpeedsSupported"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("PortSpeedsSupported", arr); } } /// /// Remove SpeedConfigurable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSpeedConfigurable() { RemoveField("SpeedConfigurable"); } /// /// Is true if the field SpeedConfigurable exists in the current object, /// otherwise is false. /// public virtual bool SpeedConfigurableExist { get { return ContainsField("SpeedConfigurable"); } } /// /// Optional, Boolean that indicates whether the Speed can be configured. /// [CimField(false, false)] public virtual bool SpeedConfigurable { get { return bool.Parse(this["SpeedConfigurable"][0]); } set { this.SetOrAddField("SpeedConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of CIM_NetworkPortCapabilities class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_NetworkPortCapabilities 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_NetworkPortCapabilities class at an endpoint. /// /// WS-Management client /// Collection of CIM_NetworkPortCapabilities objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_NetworkPortCapabilities 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_NetworkPortCapabilities class. /// public new class CimKeys : CIM_LogicalPortCapabilities.CimKeys { } } }