173 lines
4.8 KiB
C#
173 lines
4.8 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_SystemBIOS.cs
|
|
//
|
|
// Contents: SystemBIOS associates a UnitaryComputerSystem's BIOS with the System itself.
|
|
// This file was automatically generated from CIM_SystemBIOS.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>
|
|
///SystemBIOS associates a UnitaryComputerSystem's BIOS with the System itself.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SystemBIOS")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_SystemBIOS", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SystemBIOS", IsNullable=false)]
|
|
public class CIM_SystemBIOS : CIM_SystemComponent
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_SystemBIOS() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_SystemBIOS(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_SystemBIOS(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The ComputerSystem that boots from the BIOS.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference GroupComponent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("GroupComponent")[0];
|
|
CimReference epr = new CimReference("GroupComponent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("GroupComponent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The System's BIOS.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference PartComponent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("PartComponent")[0];
|
|
CimReference epr = new CimReference("PartComponent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PartComponent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_SystemBIOS 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_SystemBIOS objects</returns>
|
|
public static new Collection<CIM_SystemBIOS> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_SystemBIOS> ret = CimBase.Enumerate<CIM_SystemBIOS>(client, cimKeys);
|
|
return new Collection<CIM_SystemBIOS>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_SystemBIOS class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_SystemBIOS objects</returns>
|
|
public static new Collection<CIM_SystemBIOS> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_SystemBIOS> ret = CimBase.Enumerate<CIM_SystemBIOS>(client);
|
|
return new Collection<CIM_SystemBIOS>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_SystemBIOS 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_SystemBIOS>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_SystemBIOS class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SystemComponent.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Required, The ComputerSystem that boots from the BIOS.
|
|
/// </summary>
|
|
|
|
public virtual CimReference GroupComponent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("GroupComponent");
|
|
CimReference epr = new CimReference("GroupComponent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SystemBIOS", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("GroupComponent", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, The System's BIOS.
|
|
/// </summary>
|
|
|
|
public virtual CimReference PartComponent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("PartComponent");
|
|
CimReference epr = new CimReference("PartComponent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SystemBIOS", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("PartComponent", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|