137 lines
4.1 KiB
C#
137 lines
4.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///Capabilities and management of CoolingDevices.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_CoolingDevice() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_CoolingDevice(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public CIM_CoolingDevice(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ActiveCooling field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveActiveCooling()
|
|
{
|
|
RemoveField("ActiveCooling");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ActiveCooling exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ActiveCoolingExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ActiveCooling");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, ActiveCooling is a Boolean that indicates that the Cooling Device provides active (as opposed to passive) cooling.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool ActiveCooling
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["ActiveCooling"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ActiveCooling",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_CoolingDevice class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_CoolingDevice objects</returns>
|
|
public static new Collection<CIM_CoolingDevice> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_CoolingDevice> ret = CimBase.Enumerate<CIM_CoolingDevice>(client, cimKeys);
|
|
return new Collection<CIM_CoolingDevice>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_CoolingDevice class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_CoolingDevice objects</returns>
|
|
public static new Collection<CIM_CoolingDevice> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_CoolingDevice> ret = CimBase.Enumerate<CIM_CoolingDevice>(client);
|
|
return new Collection<CIM_CoolingDevice>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_CoolingDevice if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_CoolingDevice>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_CoolingDevice class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_LogicalDevice.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|