//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: IPS_HostBootReason.cs // // Contents: The IPS_HostBootReason class returns the details of the last host boot. // This file was automatically generated from IPS_HostBootReason.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 { /// ///The IPS_HostBootReason class returns the details of the last host boot. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBootReason")] [System.Xml.Serialization.XmlRootAttribute("IPS_HostBootReason", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBootReason", IsNullable=false)] public class IPS_HostBootReason : CIM_ManagedElement { /// /// Default constructor. /// public IPS_HostBootReason() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public IPS_HostBootReason(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public IPS_HostBootReason(IWSManClient client): base(client) { } /// /// Key, Required, /// [CimField(true, true)] public override string InstanceID { get { return this.GetField("InstanceID")[0]; } set { this.SetOrAddField("InstanceID",value); } } /// /// Required, The host S-state prior to the last boot. /// [CimField(false, true)] public virtual uint PreviousSxState { get { return uint.Parse(this["PreviousSxState"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("PreviousSxState",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Required, The reason for the last host boot.'Other' stands for a boot that did not originate in AMT, e.g. OS-initiated reset.'Remote Control' stands for a boot that originated in AMT remote control operation.'Alarm' stands for a boot that originated in an Alarm Clock operation. /// [CimField(false, true)] public virtual uint Reason { get { return uint.Parse(this["Reason"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Reason",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove ReasonDetails field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveReasonDetails() { RemoveField("ReasonDetails"); } /// /// Is true if the field ReasonDetails exists in the current object, /// otherwise is false. /// public virtual bool ReasonDetailsExist { get { return ContainsField("ReasonDetails"); } } /// /// Optional, Details of the last host boot reason.If reason is 'Remote Control', this field will contain a string representing the remote control operation performed ("Reset", "Power Up" or "Power Cycle"). If reason is 'Alarm', this field will contain the ElementName of the IPS_AlarmClockOccurence instance that invoked the alarm. /// [CimField(false, false)] public virtual string ReasonDetails { get { return this.GetField("ReasonDetails")[0]; } set { this.SetOrAddField("ReasonDetails",value); } } /// /// Enumerate instances of IPS_HostBootReason class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of IPS_HostBootReason 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_HostBootReason class at an endpoint. /// /// WS-Management client /// Collection of IPS_HostBootReason objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of IPS_HostBootReason 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_HostBootReason class. /// public new class CimKeys : CIM_ManagedElement.CimKeys { /// /// Key, Required, /// public virtual string InstanceID { get { return GetKey("InstanceID"); } set { SetOrAddKey("InstanceID", value); } } } } }