140 lines
5.8 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_BootSettingData.cs
//
// Contents: BootSettingData is a set of settings that apply to system boot. An example of usage of this class is to hold several BIOS, NVRAM, firmware or system settings, typically seen in the BIOS setup screens. These settings would need to be modified by the system as part of the boot process. Since, it is often not possible to intercept the boot process to apply these settings, users can set these a priori in the instance associated with the selected BootSourceSetting, thereby instructing the system to apply them during the next system reboot.
// This file was automatically generated from CIM_BootSettingData.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>
///BootSettingData is a set of settings that apply to system boot. An example of usage of this class is to hold several BIOS, NVRAM, firmware or system settings, typically seen in the BIOS setup screens. These settings would need to be modified by the system as part of the boot process. Since, it is often not possible to intercept the boot process to apply these settings, users can set these a priori in the instance associated with the selected BootSourceSetting, thereby instructing the system to apply them during the next system reboot.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootSettingData")]
[System.Xml.Serialization.XmlRootAttribute("CIM_BootSettingData", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootSettingData", IsNullable=false)]
public class CIM_BootSettingData : CIM_SettingData
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_BootSettingData() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_BootSettingData(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_BootSettingData(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove OwningEntity field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveOwningEntity()
{
RemoveField("OwningEntity");
}
/// <summary>
/// Is true if the field OwningEntity exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool OwningEntityExist
{
get
{
return ContainsField("OwningEntity");
}
}
/// <summary>
/// Optional, OwningEntity identifies the vendor or organization that defines the contained boot settings. In order to ensure uniqueness, the value of OwningEntity MUST be constructed using the following algorithm:
/// &lt;OrgID&gt;[:&lt;LocalID&gt;]
/// where &lt;OrgID&gt; MUST include a copyrighted, trademarked or otherwise unique name that is owned by the entity creating/defining the BootSettingData, or is a registered ID that is assigned to the entity by a recognized global authority (This is similar to the &lt;Schema Name&gt;_&lt;Class Name&gt; structure of Schema class names.) In addition, &lt;OrgID&gt; MUST NOT contain a colon (':').
/// &lt;LocalID&gt; is optional and, when used, MUST be unique within the scope of the &lt;OrgID&gt;. When a &lt;LocalID&gt; is present, a colon MUST appear between &lt;OrgID&gt; and &lt;LocalID&gt;. For DMTF defined instances, the algorithm MUST be used with the &lt;OrgID&gt; set to 'CIM'.
/// </summary>
[CimField(false, false)]
public virtual string OwningEntity
{
get
{
return this.GetField("OwningEntity")[0];
}
set
{
this.SetOrAddField("OwningEntity",value);
}
}
/// <summary>
/// Enumerate instances of CIM_BootSettingData 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_BootSettingData objects</returns>
public static new Collection<CIM_BootSettingData> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_BootSettingData> ret = CimBase.Enumerate<CIM_BootSettingData>(client, cimKeys);
return new Collection<CIM_BootSettingData>(ret);
}
/// <summary>
/// Enumerate instances of CIM_BootSettingData class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_BootSettingData objects</returns>
public static new Collection<CIM_BootSettingData> Enumerate(IWSManClient client)
{
List<CIM_BootSettingData> ret = CimBase.Enumerate<CIM_BootSettingData>(client);
return new Collection<CIM_BootSettingData>(ret);
}
/// <summary>
/// Delete the instance of CIM_BootSettingData 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_BootSettingData>(client);
}
/// <summary>
/// Represents the keys of the CIM_BootSettingData class.
/// </summary>
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}