217 lines
5.4 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_AssetTable.cs
//
// Contents: Represents an Asset Table
// This file was automatically generated from AMT_AssetTable.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 an Asset Table
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTable")]
[System.Xml.Serialization.XmlRootAttribute("AMT_AssetTable", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AssetTable", IsNullable=false)]
public class AMT_AssetTable : CIM_ManagedElement
{
/// <summary>
/// Default constructor.
/// </summary>
public AMT_AssetTable() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public AMT_AssetTable(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_AssetTable(IWSManClient client): base(client)
{
}
/// <summary>
/// Key, Required, An instance number uniquely identifying a table of certain type.
/// </summary>
[CimField(true, true)]
public override string InstanceID
{
get
{
return this.GetField("InstanceID")[0];
}
set
{
this.SetOrAddField("InstanceID",value);
}
}
/// <summary>
/// Required, The table data in binary.
/// </summary>
[CimField(false, true)]
public virtual byte[] TableData
{
get
{
return Convert.FromBase64String(this.GetField("TableData")[0]); }
set
{
this.SetOrAddField("TableData",Convert.ToBase64String(value));
}
}
/// <summary>
/// Key, Required, The table type.
/// </summary>
[CimField(true, true)]
public virtual uint TableType
{
get
{
return uint.Parse(this["TableType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TableType",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove TableTypeInfo field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveTableTypeInfo()
{
RemoveField("TableTypeInfo");
}
/// <summary>
/// Is true if the field TableTypeInfo exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool TableTypeInfoExist
{
get
{
return ContainsField("TableTypeInfo");
}
}
/// <summary>
/// Optional, Further information on the table type (such as is this a SMbios, FRU or Media Device table.)
/// </summary>
[CimField(false, false)]
public virtual string TableTypeInfo
{
get
{
return this.GetField("TableTypeInfo")[0];
}
set
{
this.SetOrAddField("TableTypeInfo",value);
}
}
/// <summary>
/// Enumerate instances of AMT_AssetTable 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_AssetTable objects</returns>
public static new Collection<AMT_AssetTable> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<AMT_AssetTable> ret = CimBase.Enumerate<AMT_AssetTable>(client, cimKeys);
return new Collection<AMT_AssetTable>(ret);
}
/// <summary>
/// Enumerate instances of AMT_AssetTable class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of AMT_AssetTable objects</returns>
public static new Collection<AMT_AssetTable> Enumerate(IWSManClient client)
{
List<AMT_AssetTable> ret = CimBase.Enumerate<AMT_AssetTable>(client);
return new Collection<AMT_AssetTable>(ret);
}
/// <summary>
/// Delete the instance of AMT_AssetTable 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_AssetTable>(client);
}
/// <summary>
/// Represents the keys of the AMT_AssetTable class.
/// </summary>
public new class CimKeys : CIM_ManagedElement.CimKeys
{
/// <summary>
/// Key, Required, An instance number uniquely identifying a table of certain type.
/// </summary>
public virtual string InstanceID
{
get
{
return GetKey("InstanceID");
}
set
{
SetOrAddKey("InstanceID", value);
}
}
/// <summary>
/// Key, Required, The table type.
/// </summary>
public virtual uint TableType
{
get
{
return uint.Parse(GetKey("TableType"), CultureInfo.InvariantCulture);
}
set
{
SetOrAddKey("TableType", value.ToString(CultureInfo.InvariantCulture));
}
}
}
}
}