//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_PowerSupply.cs
//
// Contents: Capabilities and management of the PowerSupply LogicalDevice.
// This file was automatically generated from CIM_PowerSupply.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 the PowerSupply LogicalDevice.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerSupply")]
[System.Xml.Serialization.XmlRootAttribute("CIM_PowerSupply", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerSupply", IsNullable=false)]
public class CIM_PowerSupply : CIM_LogicalDevice
{
///
/// Default constructor.
///
public CIM_PowerSupply() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_PowerSupply(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_PowerSupply(IWSManClient client): base(client)
{
}
///
/// Remove ActiveInputVoltage field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveActiveInputVoltage()
{
RemoveField("ActiveInputVoltage");
}
///
/// Is true if the field ActiveInputVoltage exists in the current object,
/// otherwise is false.
///
public virtual bool ActiveInputVoltageExist
{
get
{
return ContainsField("ActiveInputVoltage");
}
}
///
/// Optional, ActiveInputVoltage indicates which input voltage range is currently in use. Range 1, 2, or both can be specified using the values 3, 4, or 5, respectively. If the Supply is not currently drawing power, the value 6 ("Neither") can be specified. This information is necessary in the case of a UPS, a subclass of PowerSupply.
///
[CimField(false, false)]
public virtual ushort ActiveInputVoltage
{
get
{
return ushort.Parse(this["ActiveInputVoltage"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ActiveInputVoltage",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove IsSwitchingSupply field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIsSwitchingSupply()
{
RemoveField("IsSwitchingSupply");
}
///
/// Is true if the field IsSwitchingSupply exists in the current object,
/// otherwise is false.
///
public virtual bool IsSwitchingSupplyExist
{
get
{
return ContainsField("IsSwitchingSupply");
}
}
///
/// Optional, Boolean indicating that the PowerSupply is a switching (instead of linear) supply.
///
[CimField(false, false)]
public virtual bool IsSwitchingSupply
{
get
{
return bool.Parse(this["IsSwitchingSupply"][0]);
}
set
{
this.SetOrAddField("IsSwitchingSupply",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range1InputFrequencyHigh field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange1InputFrequencyHigh()
{
RemoveField("Range1InputFrequencyHigh");
}
///
/// Is true if the field Range1InputFrequencyHigh exists in the current object,
/// otherwise is false.
///
public virtual bool Range1InputFrequencyHighExist
{
get
{
return ContainsField("Range1InputFrequencyHigh");
}
}
///
/// Optional, The frequency (in hertz) at the high end of the Input Frequency Range 1 of this Power Supply. A value of 0 implies DC.
///
[CimField(false, false)]
public virtual uint Range1InputFrequencyHigh
{
get
{
return uint.Parse(this["Range1InputFrequencyHigh"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range1InputFrequencyHigh",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range1InputFrequencyLow field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange1InputFrequencyLow()
{
RemoveField("Range1InputFrequencyLow");
}
///
/// Is true if the field Range1InputFrequencyLow exists in the current object,
/// otherwise is false.
///
public virtual bool Range1InputFrequencyLowExist
{
get
{
return ContainsField("Range1InputFrequencyLow");
}
}
///
/// Optional, The frequency (in hertz) at the low end of the Input Frequency Range 1 of this Power Supply. A value of 0 implies DC.
///
[CimField(false, false)]
public virtual uint Range1InputFrequencyLow
{
get
{
return uint.Parse(this["Range1InputFrequencyLow"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range1InputFrequencyLow",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range1InputVoltageHigh field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange1InputVoltageHigh()
{
RemoveField("Range1InputVoltageHigh");
}
///
/// Is true if the field Range1InputVoltageHigh exists in the current object,
/// otherwise is false.
///
public virtual bool Range1InputVoltageHighExist
{
get
{
return ContainsField("Range1InputVoltageHigh");
}
}
///
/// Optional, The high voltage of Input Voltage Range 1 for this Power Supply, in millivolts. A value of 0 denotes 'unknown'.
///
[CimField(false, false)]
public virtual uint Range1InputVoltageHigh
{
get
{
return uint.Parse(this["Range1InputVoltageHigh"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range1InputVoltageHigh",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range1InputVoltageLow field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange1InputVoltageLow()
{
RemoveField("Range1InputVoltageLow");
}
///
/// Is true if the field Range1InputVoltageLow exists in the current object,
/// otherwise is false.
///
public virtual bool Range1InputVoltageLowExist
{
get
{
return ContainsField("Range1InputVoltageLow");
}
}
///
/// Optional, The low voltage of Input Voltage Range 1 for this Power Supply, in millivolts. A value of 0 denotes 'unknown'.
///
[CimField(false, false)]
public virtual uint Range1InputVoltageLow
{
get
{
return uint.Parse(this["Range1InputVoltageLow"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range1InputVoltageLow",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range2InputFrequencyHigh field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange2InputFrequencyHigh()
{
RemoveField("Range2InputFrequencyHigh");
}
///
/// Is true if the field Range2InputFrequencyHigh exists in the current object,
/// otherwise is false.
///
public virtual bool Range2InputFrequencyHighExist
{
get
{
return ContainsField("Range2InputFrequencyHigh");
}
}
///
/// Optional, The frequency (in hertz) at the high end of the Input Frequency Range 2 of this Power Supply. A value of 0 implies DC.
///
[CimField(false, false)]
public virtual uint Range2InputFrequencyHigh
{
get
{
return uint.Parse(this["Range2InputFrequencyHigh"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range2InputFrequencyHigh",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range2InputFrequencyLow field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange2InputFrequencyLow()
{
RemoveField("Range2InputFrequencyLow");
}
///
/// Is true if the field Range2InputFrequencyLow exists in the current object,
/// otherwise is false.
///
public virtual bool Range2InputFrequencyLowExist
{
get
{
return ContainsField("Range2InputFrequencyLow");
}
}
///
/// Optional, The frequency (in hertz) at the low end of the Input Frequency Range 2 of this Power Supply. A value of 0 implies DC.
///
[CimField(false, false)]
public virtual uint Range2InputFrequencyLow
{
get
{
return uint.Parse(this["Range2InputFrequencyLow"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range2InputFrequencyLow",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range2InputVoltageHigh field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange2InputVoltageHigh()
{
RemoveField("Range2InputVoltageHigh");
}
///
/// Is true if the field Range2InputVoltageHigh exists in the current object,
/// otherwise is false.
///
public virtual bool Range2InputVoltageHighExist
{
get
{
return ContainsField("Range2InputVoltageHigh");
}
}
///
/// Optional, The high voltage of Input Voltage Range 2 for this Power Supply, in millivolts. A value of 0 denotes 'unknown'.
///
[CimField(false, false)]
public virtual uint Range2InputVoltageHigh
{
get
{
return uint.Parse(this["Range2InputVoltageHigh"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range2InputVoltageHigh",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Range2InputVoltageLow field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRange2InputVoltageLow()
{
RemoveField("Range2InputVoltageLow");
}
///
/// Is true if the field Range2InputVoltageLow exists in the current object,
/// otherwise is false.
///
public virtual bool Range2InputVoltageLowExist
{
get
{
return ContainsField("Range2InputVoltageLow");
}
}
///
/// Optional, The low voltage of Input Voltage Range 2 for this Power Supply, in millivolts. A value of 0 denotes 'unknown'.
///
[CimField(false, false)]
public virtual uint Range2InputVoltageLow
{
get
{
return uint.Parse(this["Range2InputVoltageLow"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Range2InputVoltageLow",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TotalOutputPower field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTotalOutputPower()
{
RemoveField("TotalOutputPower");
}
///
/// Is true if the field TotalOutputPower exists in the current object,
/// otherwise is false.
///
public virtual bool TotalOutputPowerExist
{
get
{
return ContainsField("TotalOutputPower");
}
}
///
/// Optional, Represents the total output power of the PowerSupply in milliWatts. 0 denotes 'unknown'.
///
[CimField(false, false)]
public virtual uint TotalOutputPower
{
get
{
return uint.Parse(this["TotalOutputPower"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TotalOutputPower",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TypeOfRangeSwitching field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTypeOfRangeSwitching()
{
RemoveField("TypeOfRangeSwitching");
}
///
/// Is true if the field TypeOfRangeSwitching exists in the current object,
/// otherwise is false.
///
public virtual bool TypeOfRangeSwitchingExist
{
get
{
return ContainsField("TypeOfRangeSwitching");
}
}
///
/// Optional, TypeOfRangeSwitching describes the kind of input voltage range switching that is implemented in this PowerSupply. For example, autoswitching can be specified (value=4).
///
[CimField(false, false)]
public virtual ushort TypeOfRangeSwitching
{
get
{
return ushort.Parse(this["TypeOfRangeSwitching"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TypeOfRangeSwitching",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_PowerSupply class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_PowerSupply 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_PowerSupply class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_PowerSupply objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_PowerSupply 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_PowerSupply class.
///
public new class CimKeys : CIM_LogicalDevice.CimKeys
{
}
}
}