//---------------------------------------------------------------------------- // // 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 { /// ///Represents the Asset Table Service in the Intel(R) AMT subsystem. /// [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 { /// /// Default constructor. /// public AMT_AssetTableService() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_AssetTableService(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_AssetTableService(IWSManClient client): base(client) { } /// /// Required, An array of asset types supported by this service. Each string is of the following format: 'TableTypeInfo:TableType' for example: 'SMbios:130' /// [CimField(false, true)] public virtual string[] TableTypes { get { return CimTypesUtils.StringArrayToArray(this["TableTypes"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("TableTypes", arr); } } /// ///Sends a request to BIOS to send the Media Device table on next boot. /// [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) { } /// /// Required, Ask BIOS to send Media Device table. /// [CimField(false,true)] public virtual bool FullUpdate { set { this.SetOrAddField("FullUpdate",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Required, Apply just for next boot or permanently. /// [CimField(false,true)] public virtual bool Sticky { set { this.SetOrAddField("Sticky",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } } /// ///Sends a request to BIOS to send the Media Device table on next boot. /// [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("") { } } /// ///Sends a request to BIOS to send the Media Device table on next boot. /// /// Required, IN -Ask BIOS to send Media Device table. /// Required, IN -Apply just for next boot or permanently. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// Reserved : 2.. /// 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; } /// /// Enumerate instances of AMT_AssetTableService class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_AssetTableService objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of AMT_AssetTableService class at an endpoint. /// /// WS-Management client /// Collection of AMT_AssetTableService objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_AssetTableService 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 AMT_AssetTableService class. /// public new class CimKeys : CIM_Service.CimKeys { } } }