//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_CoolingDevice.cs // // Contents: Capabilities and management of CoolingDevices. // This file was automatically generated from CIM_CoolingDevice.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 CoolingDevices. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_CoolingDevice")] [System.Xml.Serialization.XmlRootAttribute("CIM_CoolingDevice", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_CoolingDevice", IsNullable=false)] public class CIM_CoolingDevice : CIM_LogicalDevice { /// /// Default constructor. /// public CIM_CoolingDevice() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_CoolingDevice(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_CoolingDevice(IWSManClient client): base(client) { } /// /// Remove ActiveCooling field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveActiveCooling() { RemoveField("ActiveCooling"); } /// /// Is true if the field ActiveCooling exists in the current object, /// otherwise is false. /// public virtual bool ActiveCoolingExist { get { return ContainsField("ActiveCooling"); } } /// /// Optional, ActiveCooling is a Boolean that indicates that the Cooling Device provides active (as opposed to passive) cooling. /// [CimField(false, false)] public virtual bool ActiveCooling { get { return bool.Parse(this["ActiveCooling"][0]); } set { this.SetOrAddField("ActiveCooling",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of CIM_CoolingDevice class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_CoolingDevice 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_CoolingDevice class at an endpoint. /// /// WS-Management client /// Collection of CIM_CoolingDevice objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_CoolingDevice 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_CoolingDevice class. /// public new class CimKeys : CIM_LogicalDevice.CimKeys { } } }