229 lines
8.5 KiB
C#
229 lines
8.5 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_AgentPresenceWatchdogAction.cs
|
|
//
|
|
// Contents: Represents an action which is triggered on an application watchdog state transition.
|
|
// This file was automatically generated from AMT_AgentPresenceWatchdogAction.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 action which is triggered on an application watchdog state transition.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceWatchdogAction")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_AgentPresenceWatchdogAction", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceWatchdogAction", IsNullable=false)]
|
|
public class AMT_AgentPresenceWatchdogAction : CIM_PolicyAction
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_AgentPresenceWatchdogAction() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_AgentPresenceWatchdogAction(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_AgentPresenceWatchdogAction(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ActionSd field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveActionSd()
|
|
{
|
|
RemoveField("ActionSd");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ActionSd exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ActionSdExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ActionSd");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A System Defense Action which may be applied, on the application watchdog transition. Note that all Agent Presence instances share the same list of policies, which can be activated.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort ActionSd
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["ActionSd"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ActionSd",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove EventOnTransition field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveEventOnTransition()
|
|
{
|
|
RemoveField("EventOnTransition");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field EventOnTransition exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool EventOnTransitionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("EventOnTransition");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Specifies whether an Event should be created in the Event Manager on the application watchdog transition.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool EventOnTransition
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["EventOnTransition"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("EventOnTransition",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
///This method allows to determine if this action is defined as an EAC action. If this method returns TRUE: 1. Information about this agent is included in an Intel(R) AMT EAC posture. This happens if at least one transition is defined as TRUE for this agent. Posture information includes current state and state counters showing how many times each state was entered. 2. When this specific state transition occurs, an avent is generated to indicate that Intel(R) AMT posture has changed.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceWatchdogAction", IsNullable=false)]
|
|
private class GetActionEac_INPUT : CimParams
|
|
{
|
|
public GetActionEac_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///This method allows to determine if this action is defined as an EAC action. If this method returns TRUE: 1. Information about this agent is included in an Intel(R) AMT EAC posture. This happens if at least one transition is defined as TRUE for this agent. Posture information includes current state and state counters showing how many times each state was entered. 2. When this specific state transition occurs, an avent is generated to indicate that Intel(R) AMT posture has changed.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceWatchdogAction", IsNullable=false)]
|
|
private class GetActionEac_OUTPUT : CimParams
|
|
{
|
|
public GetActionEac_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A boolean flag indicating whether this action is defined as an EAC action.
|
|
/// </summary>
|
|
[CimField(false,false)]
|
|
public virtual bool ActionEac
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["ActionEac"][0]);
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///This method allows to determine if this action is defined as an EAC action. If this method returns TRUE: 1. Information about this agent is included in an Intel(R) AMT EAC posture. This happens if at least one transition is defined as TRUE for this agent. Posture information includes current state and state counters showing how many times each state was entered. 2. When this specific state transition occurs, an avent is generated to indicate that Intel(R) AMT posture has changed.
|
|
/// </summary>
|
|
/// <param name="outActionEac">OUT - A boolean flag indicating whether this action is defined as an EAC action.</param>
|
|
/// <returns>
|
|
/// </returns>
|
|
public virtual uint GetActionEac(out bool outActionEac)
|
|
{
|
|
GetActionEac_INPUT input = new GetActionEac_INPUT(this.XmlNamespace);
|
|
GetActionEac_OUTPUT output = new GetActionEac_OUTPUT();
|
|
uint returnValue = base.Invoke("GetActionEac",input,out output);
|
|
outActionEac=false;
|
|
if (returnValue == 0)
|
|
{
|
|
if (output.ContainsField("ActionEac"))
|
|
outActionEac = output.ActionEac;
|
|
}
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceWatchdogAction 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_AgentPresenceWatchdogAction objects</returns>
|
|
public static new Collection<AMT_AgentPresenceWatchdogAction> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_AgentPresenceWatchdogAction> ret = CimBase.Enumerate<AMT_AgentPresenceWatchdogAction>(client, cimKeys);
|
|
return new Collection<AMT_AgentPresenceWatchdogAction>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceWatchdogAction class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_AgentPresenceWatchdogAction objects</returns>
|
|
public static new Collection<AMT_AgentPresenceWatchdogAction> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_AgentPresenceWatchdogAction> ret = CimBase.Enumerate<AMT_AgentPresenceWatchdogAction>(client);
|
|
return new Collection<AMT_AgentPresenceWatchdogAction>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_AgentPresenceWatchdogAction 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_AgentPresenceWatchdogAction>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_AgentPresenceWatchdogAction class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_PolicyAction.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|