101 lines
3.2 KiB
C#
101 lines
3.2 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_EventSubscriber.cs
|
|
//
|
|
// Contents: Represents an event subscriber in AMT
|
|
// This file was automatically generated from AMT_EventSubscriber.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 event subscriber in AMT
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EventSubscriber")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_EventSubscriber", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EventSubscriber", IsNullable=false)]
|
|
public class AMT_EventSubscriber : CIM_RemotePort
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_EventSubscriber() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_EventSubscriber(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_EventSubscriber(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EventSubscriber 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_EventSubscriber objects</returns>
|
|
public static new Collection<AMT_EventSubscriber> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_EventSubscriber> ret = CimBase.Enumerate<AMT_EventSubscriber>(client, cimKeys);
|
|
return new Collection<AMT_EventSubscriber>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EventSubscriber class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_EventSubscriber objects</returns>
|
|
public static new Collection<AMT_EventSubscriber> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_EventSubscriber> ret = CimBase.Enumerate<AMT_EventSubscriber>(client);
|
|
return new Collection<AMT_EventSubscriber>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_EventSubscriber 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_EventSubscriber>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_EventSubscriber class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_RemotePort.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|