189 lines
6.2 KiB
C#
189 lines
6.2 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_AssetTableService.cs
|
|
//
|
|
// Contents: Represents the Asset Table Service in the Intel(R) AMT subsystem.
|
|
// This file was automatically generated from AMT_AssetTableService.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>
|
|
///Represents the Asset Table Service in the Intel(R) AMT subsystem.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTableService")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_AssetTableService", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTableService", IsNullable=false)]
|
|
public class AMT_AssetTableService : CIM_Service
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_AssetTableService() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_AssetTableService(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 AMT_AssetTableService(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, An array of asset types supported by this service. Each string is of the following format: 'TableTypeInfo:TableType' for example: 'SMbios:130'
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual string[] TableTypes
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["TableTypes"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("TableTypes", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
///Sends a request to BIOS to send the Media Device table on next boot.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTableService", IsNullable=false)]
|
|
private class RequestMediaDeviceTableUpdate_INPUT : CimParams
|
|
{
|
|
public RequestMediaDeviceTableUpdate_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required, Ask BIOS to send Media Device table.
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual bool FullUpdate
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("FullUpdate",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, Apply just for next boot or permanently.
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual bool Sticky
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("Sticky",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///Sends a request to BIOS to send the Media Device table on next boot.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTableService", IsNullable=false)]
|
|
private class RequestMediaDeviceTableUpdate_OUTPUT : CimParams
|
|
{
|
|
public RequestMediaDeviceTableUpdate_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Sends a request to BIOS to send the Media Device table on next boot.
|
|
/// </summary>
|
|
/// <param name="inFullUpdate">Required, IN -Ask BIOS to send Media Device table.</param>
|
|
/// <param name="inSticky">Required, IN -Apply just for next boot or permanently.</param>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// PT_STATUS_SUCCESS : 0
|
|
/// PT_STATUS_INTERNAL_ERROR : 1
|
|
/// Reserved : 2..
|
|
/// </returns>
|
|
public virtual uint RequestMediaDeviceTableUpdate(bool? inFullUpdate,bool? inSticky)
|
|
{
|
|
RequestMediaDeviceTableUpdate_INPUT input = new RequestMediaDeviceTableUpdate_INPUT(this.XmlNamespace);
|
|
if (inFullUpdate.HasValue)
|
|
input.FullUpdate=inFullUpdate.Value;
|
|
if (inSticky.HasValue)
|
|
input.Sticky=inSticky.Value;
|
|
RequestMediaDeviceTableUpdate_OUTPUT output = new RequestMediaDeviceTableUpdate_OUTPUT();
|
|
uint returnValue = base.Invoke("RequestMediaDeviceTableUpdate",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AssetTableService class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of AMT_AssetTableService objects</returns>
|
|
public static new Collection<AMT_AssetTableService> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_AssetTableService> ret = CimBase.Enumerate<AMT_AssetTableService>(client, cimKeys);
|
|
return new Collection<AMT_AssetTableService>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AssetTableService class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_AssetTableService objects</returns>
|
|
public static new Collection<AMT_AssetTableService> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_AssetTableService> ret = CimBase.Enumerate<AMT_AssetTableService>(client);
|
|
return new Collection<AMT_AssetTableService>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_AssetTableService 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<AMT_AssetTableService>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_AssetTableService class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Service.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|