//---------------------------------------------------------------------------- // // 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 { /// ///A class derived from CIM_PowerManagementCapabilitieslities that adds OS power saving aspects of an element (AKA connected standby). /// [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 { /// /// Default constructor. /// public IPS_PowerManagementCapabilities() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public IPS_PowerManagementCapabilities(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public IPS_PowerManagementCapabilities(IWSManClient client): base(client) { } /// /// Remove OSPowerSavingStateChangeSupported field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOSPowerSavingStateChangeSupported() { RemoveField("OSPowerSavingStateChangeSupported"); } /// /// Is true if the field OSPowerSavingStateChangeSupported exists in the current object, /// otherwise is false. /// public virtual bool OSPowerSavingStateChangeSupportedExist { get { return ContainsField("OSPowerSavingStateChangeSupported"); } } /// /// Optional, An enumeration indicating the specific power-saving-related capabilities of a managed element. /// [CimField(false, false)] public virtual ushort OSPowerSavingStateChangeSupported { get { return ushort.Parse(this["OSPowerSavingStateChangeSupported"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("OSPowerSavingStateChangeSupported",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove OSPowerSavingStateSupported field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOSPowerSavingStateSupported() { RemoveField("OSPowerSavingStateSupported"); } /// /// Is true if the field OSPowerSavingStateSupported exists in the current object, /// otherwise is false. /// public virtual bool OSPowerSavingStateSupportedExist { get { return ContainsField("OSPowerSavingStateSupported"); } } /// /// Optional, A value that indicates whether OS power savingstate is supported by a managed element. /// [CimField(false, false)] public virtual ushort OSPowerSavingStateSupported { get { return ushort.Parse(this["OSPowerSavingStateSupported"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("OSPowerSavingStateSupported",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of IPS_PowerManagementCapabilities class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of IPS_PowerManagementCapabilities objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of IPS_PowerManagementCapabilities class at an endpoint. /// /// WS-Management client /// Collection of IPS_PowerManagementCapabilities objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of IPS_PowerManagementCapabilities 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 IPS_PowerManagementCapabilities class. /// public new class CimKeys : CIM_PowerManagementCapabilities.CimKeys { } } }