173 lines
5.1 KiB
C#
173 lines
5.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_TrapTargetForService.cs
|
|
//
|
|
// Contents: TrapTargetForService specifies the endpoint to which traps events are sent by the alerting service.
|
|
// This file was automatically generated from AMT_TrapTargetForService.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>
|
|
///TrapTargetForService specifies the endpoint to which traps events are sent by the alerting service.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TrapTargetForService")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_TrapTargetForService", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TrapTargetForService", IsNullable=false)]
|
|
public class AMT_TrapTargetForService : CIM_ServiceSAPDependency
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_TrapTargetForService() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_TrapTargetForService(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_TrapTargetForService(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The endpoint which gets the trap.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Antecedent")[0];
|
|
CimReference epr = new CimReference("Antecedent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Antecedent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The SNMP service that sends the notifications.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Dependent")[0];
|
|
CimReference epr = new CimReference("Dependent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Dependent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_TrapTargetForService 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_TrapTargetForService objects</returns>
|
|
public static new Collection<AMT_TrapTargetForService> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_TrapTargetForService> ret = CimBase.Enumerate<AMT_TrapTargetForService>(client, cimKeys);
|
|
return new Collection<AMT_TrapTargetForService>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_TrapTargetForService class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_TrapTargetForService objects</returns>
|
|
public static new Collection<AMT_TrapTargetForService> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_TrapTargetForService> ret = CimBase.Enumerate<AMT_TrapTargetForService>(client);
|
|
return new Collection<AMT_TrapTargetForService>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_TrapTargetForService 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_TrapTargetForService>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_TrapTargetForService class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_ServiceSAPDependency.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Required, The endpoint which gets the trap.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Antecedent");
|
|
CimReference epr = new CimReference("Antecedent", "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TrapTargetForService", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Antecedent", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, The SNMP service that sends the notifications.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Dependent");
|
|
CimReference epr = new CimReference("Dependent", "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TrapTargetForService", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Dependent", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|