154 lines
4.7 KiB
C#
154 lines
4.7 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///Represents a Management Presence Remote Service Access Point (or an MPS) to be accessed by the Intel(R) AMT subsystem from remote.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_ManagementPresenceRemoteSAP() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_ManagementPresenceRemoteSAP(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_ManagementPresenceRemoteSAP(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove CN field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCN()
|
|
{
|
|
RemoveField("CN");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CN exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CNExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CN");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A common name used when AccessInfo is an IP address.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string CN
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CN")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CN",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The port to be used to establish a tunnel with the MPS.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual ushort Port
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["Port"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Port",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_ManagementPresenceRemoteSAP 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_ManagementPresenceRemoteSAP objects</returns>
|
|
public static new Collection<AMT_ManagementPresenceRemoteSAP> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_ManagementPresenceRemoteSAP> ret = CimBase.Enumerate<AMT_ManagementPresenceRemoteSAP>(client, cimKeys);
|
|
return new Collection<AMT_ManagementPresenceRemoteSAP>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_ManagementPresenceRemoteSAP class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_ManagementPresenceRemoteSAP objects</returns>
|
|
public static new Collection<AMT_ManagementPresenceRemoteSAP> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_ManagementPresenceRemoteSAP> ret = CimBase.Enumerate<AMT_ManagementPresenceRemoteSAP>(client);
|
|
return new Collection<AMT_ManagementPresenceRemoteSAP>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_ManagementPresenceRemoteSAP 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_ManagementPresenceRemoteSAP>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_ManagementPresenceRemoteSAP class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|