173 lines
5.8 KiB
C#
173 lines
5.8 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: IPS_PowerManagementCapabilities.cs
|
|
//
|
|
// Contents: A class derived from CIM_PowerManagementCapabilitieslities that adds OS power saving aspects of an element (AKA connected standby).
|
|
// This file was automatically generated from IPS_PowerManagementCapabilities.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>
|
|
///A class derived from CIM_PowerManagementCapabilitieslities that adds OS power saving aspects of an element (AKA connected standby).
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_PowerManagementCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("IPS_PowerManagementCapabilities", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_PowerManagementCapabilities", IsNullable=false)]
|
|
public class IPS_PowerManagementCapabilities : CIM_PowerManagementCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public IPS_PowerManagementCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public IPS_PowerManagementCapabilities(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 IPS_PowerManagementCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove OSPowerSavingStateChangeSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOSPowerSavingStateChangeSupported()
|
|
{
|
|
RemoveField("OSPowerSavingStateChangeSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OSPowerSavingStateChangeSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OSPowerSavingStateChangeSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OSPowerSavingStateChangeSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An enumeration indicating the specific power-saving-related capabilities of a managed element.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort OSPowerSavingStateChangeSupported
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["OSPowerSavingStateChangeSupported"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OSPowerSavingStateChangeSupported",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OSPowerSavingStateSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOSPowerSavingStateSupported()
|
|
{
|
|
RemoveField("OSPowerSavingStateSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OSPowerSavingStateSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OSPowerSavingStateSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OSPowerSavingStateSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A value that indicates whether OS power savingstate is supported by a managed element.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort OSPowerSavingStateSupported
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["OSPowerSavingStateSupported"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OSPowerSavingStateSupported",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_PowerManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of IPS_PowerManagementCapabilities objects</returns>
|
|
public static new Collection<IPS_PowerManagementCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<IPS_PowerManagementCapabilities> ret = CimBase.Enumerate<IPS_PowerManagementCapabilities>(client, cimKeys);
|
|
return new Collection<IPS_PowerManagementCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_PowerManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of IPS_PowerManagementCapabilities objects</returns>
|
|
public static new Collection<IPS_PowerManagementCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<IPS_PowerManagementCapabilities> ret = CimBase.Enumerate<IPS_PowerManagementCapabilities>(client);
|
|
return new Collection<IPS_PowerManagementCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of IPS_PowerManagementCapabilities 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<IPS_PowerManagementCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the IPS_PowerManagementCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_PowerManagementCapabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|