//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: AMT_AgentPresenceInterfacePolicy.cs // // Contents: An existing association implies that a System Defense Policy may be activated on the specified interface. A management console may create an instance of this class in order to set a global Agent Presence configuration that should enable a policy in case of a corresponding Agent Presence state change. // This file was automatically generated from AMT_AgentPresenceInterfacePolicy.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 { /// ///An existing association implies that a System Defense Policy may be activated on the specified interface. A management console may create an instance of this class in order to set a global Agent Presence configuration that should enable a policy in case of a corresponding Agent Presence state change. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceInterfacePolicy")] [System.Xml.Serialization.XmlRootAttribute("AMT_AgentPresenceInterfacePolicy", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceInterfacePolicy", IsNullable=false)] public class AMT_AgentPresenceInterfacePolicy : AMT_InterfacePolicy { /// /// Default constructor. /// public AMT_AgentPresenceInterfacePolicy() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_AgentPresenceInterfacePolicy(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_AgentPresenceInterfacePolicy(IWSManClient client): base(client) { } /// /// Remove Enabled field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveEnabled() { RemoveField("Enabled"); } /// /// Is true if the field Enabled exists in the current object, /// otherwise is false. /// public virtual bool EnabledExist { get { return ContainsField("Enabled"); } } /// /// Optional, Specifies whether Agent Presence enabled this policy on the interface. /// [CimField(false, false)] public virtual bool Enabled { get { return bool.Parse(this["Enabled"][0]); } set { this.SetOrAddField("Enabled",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of AMT_AgentPresenceInterfacePolicy class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_AgentPresenceInterfacePolicy objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of AMT_AgentPresenceInterfacePolicy class at an endpoint. /// /// WS-Management client /// Collection of AMT_AgentPresenceInterfacePolicy objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_AgentPresenceInterfacePolicy if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the AMT_AgentPresenceInterfacePolicy class. /// public new class CimKeys : AMT_InterfacePolicy.CimKeys { } } }