171 lines
4.8 KiB
C#
171 lines
4.8 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_SNMPEventSubscriber.cs
|
|
//
|
|
// Contents: Represents a SNMP-events subscriber in the Intel(R) AMT system.
|
|
// This file was automatically generated from AMT_SNMPEventSubscriber.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 a SNMP-events subscriber in the Intel(R) AMT system.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SNMPEventSubscriber")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_SNMPEventSubscriber", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SNMPEventSubscriber", IsNullable=false)]
|
|
public class AMT_SNMPEventSubscriber : AMT_EventSubscriber
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_SNMPEventSubscriber() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_SNMPEventSubscriber(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_SNMPEventSubscriber(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Access and/or addressing information for a remote connection. This can be a host name, network address or similar information.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public override string AccessInfo
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("AccessInfo")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AccessInfo",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CommunityString field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCommunityString()
|
|
{
|
|
RemoveField("CommunityString");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CommunityString exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CommunityStringExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CommunityString");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A community string to send with the trap operation.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string CommunityString
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CommunityString")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CommunityString",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Associates a Subscription to its filter.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual byte PolicyID
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["PolicyID"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PolicyID",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_SNMPEventSubscriber 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_SNMPEventSubscriber objects</returns>
|
|
public static new Collection<AMT_SNMPEventSubscriber> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_SNMPEventSubscriber> ret = CimBase.Enumerate<AMT_SNMPEventSubscriber>(client, cimKeys);
|
|
return new Collection<AMT_SNMPEventSubscriber>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_SNMPEventSubscriber class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_SNMPEventSubscriber objects</returns>
|
|
public static new Collection<AMT_SNMPEventSubscriber> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_SNMPEventSubscriber> ret = CimBase.Enumerate<AMT_SNMPEventSubscriber>(client);
|
|
return new Collection<AMT_SNMPEventSubscriber>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_SNMPEventSubscriber 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_SNMPEventSubscriber>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_SNMPEventSubscriber class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : AMT_EventSubscriber.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|