//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: AMT_ManagementPresenceRemoteSAP.cs // // Contents: Represents a Management Presence Remote Service Access Point (or an MPS) to be accessed by the Intel(R) AMT subsystem from remote. // This file was automatically generated from AMT_ManagementPresenceRemoteSAP.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 { /// ///Represents a Management Presence Remote Service Access Point (or an MPS) to be accessed by the Intel(R) AMT subsystem from remote. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP")] [System.Xml.Serialization.XmlRootAttribute("AMT_ManagementPresenceRemoteSAP", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_ManagementPresenceRemoteSAP", IsNullable=false)] public class AMT_ManagementPresenceRemoteSAP : CIM_RemoteServiceAccessPoint { /// /// Default constructor. /// public AMT_ManagementPresenceRemoteSAP() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_ManagementPresenceRemoteSAP(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_ManagementPresenceRemoteSAP(IWSManClient client): base(client) { } /// /// Remove CN field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCN() { RemoveField("CN"); } /// /// Is true if the field CN exists in the current object, /// otherwise is false. /// public virtual bool CNExist { get { return ContainsField("CN"); } } /// /// Optional, A common name used when AccessInfo is an IP address. /// [CimField(false, false)] public virtual string CN { get { return this.GetField("CN")[0]; } set { this.SetOrAddField("CN",value); } } /// /// Required, The port to be used to establish a tunnel with the MPS. /// [CimField(false, true)] public virtual ushort Port { get { return ushort.Parse(this["Port"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Port",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of AMT_ManagementPresenceRemoteSAP class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_ManagementPresenceRemoteSAP 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_ManagementPresenceRemoteSAP class at an endpoint. /// /// WS-Management client /// Collection of AMT_ManagementPresenceRemoteSAP objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_ManagementPresenceRemoteSAP 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_ManagementPresenceRemoteSAP class. /// public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys { } } }