//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_LogicalPortCapabilities.cs // // Contents: LogicalPortCapabilities describes the configuration capabilities for properties in LogicalPortSettings. // This file was automatically generated from CIM_LogicalPortCapabilities.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 { /// ///LogicalPortCapabilities describes the configuration capabilities for properties in LogicalPortSettings. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalPortCapabilities")] [System.Xml.Serialization.XmlRootAttribute("CIM_LogicalPortCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalPortCapabilities", IsNullable=false)] public class CIM_LogicalPortCapabilities : CIM_EnabledLogicalElementCapabilities { /// /// Default constructor. /// public CIM_LogicalPortCapabilities() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_LogicalPortCapabilities(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_LogicalPortCapabilities(IWSManClient client): base(client) { } /// /// Remove AutoSenseSpeedConfigurable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveAutoSenseSpeedConfigurable() { RemoveField("AutoSenseSpeedConfigurable"); } /// /// Is true if the field AutoSenseSpeedConfigurable exists in the current object, /// otherwise is false. /// public virtual bool AutoSenseSpeedConfigurableExist { get { return ContainsField("AutoSenseSpeedConfigurable"); } } /// /// Optional, A boolean indicating whether the value in LogicalPortSettings.AutoSenseSpeed may be changed (TRUE), or may only be viewed (FALSE). /// [CimField(false, false)] public virtual bool AutoSenseSpeedConfigurable { get { return bool.Parse(this["AutoSenseSpeedConfigurable"][0]); } set { this.SetOrAddField("AutoSenseSpeedConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove RequestedSpeedsSupported field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRequestedSpeedsSupported() { RemoveField("RequestedSpeedsSupported"); } /// /// Is true if the field RequestedSpeedsSupported exists in the current object, /// otherwise is false. /// public virtual bool RequestedSpeedsSupportedExist { get { return ContainsField("RequestedSpeedsSupported"); } } /// /// Optional, List of supported port speeds that can be configured on LogicalPortSettings.RequestedSpeed. /// [CimField(false, false)] public virtual ulong[] RequestedSpeedsSupported { get { return CimTypesUtils.StringArrayToArray(this["RequestedSpeedsSupported"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("RequestedSpeedsSupported", arr); } } /// /// Enumerate instances of CIM_LogicalPortCapabilities class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_LogicalPortCapabilities 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_LogicalPortCapabilities class at an endpoint. /// /// WS-Management client /// Collection of CIM_LogicalPortCapabilities objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_LogicalPortCapabilities 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_LogicalPortCapabilities class. /// public new class CimKeys : CIM_EnabledLogicalElementCapabilities.CimKeys { } } }