173 lines
5.4 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: IPS_SolSessionUsingPort.cs
//
// Contents: The IPS_SolSessionUsingPort is an association between the AMT_RedirectionService that manages the SOL session and the AMT_EthernetPortSettings instance that describes the I/F port through which the session is managed
// This file was automatically generated from IPS_SolSessionUsingPort.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>
///The IPS_SolSessionUsingPort is an association between the AMT_RedirectionService that manages the SOL session and the AMT_EthernetPortSettings instance that describes the I/F port through which the session is managed
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_SolSessionUsingPort")]
[System.Xml.Serialization.XmlRootAttribute("IPS_SolSessionUsingPort", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_SolSessionUsingPort", IsNullable=false)]
public class IPS_SolSessionUsingPort : IPS_SessionUsingPort
{
/// <summary>
/// Default constructor.
/// </summary>
public IPS_SolSessionUsingPort() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public IPS_SolSessionUsingPort(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 IPS_SolSessionUsingPort(IWSManClient client): base(client)
{
}
/// <summary>
/// Required, The settings of the port through which the session is performed.
/// </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 Service that represents the management session.
/// </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 IPS_SolSessionUsingPort class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <param name="cimKeys">Keys for selecting the instances</param>
/// <returns>Collection of IPS_SolSessionUsingPort objects</returns>
public static new Collection<IPS_SolSessionUsingPort> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<IPS_SolSessionUsingPort> ret = CimBase.Enumerate<IPS_SolSessionUsingPort>(client, cimKeys);
return new Collection<IPS_SolSessionUsingPort>(ret);
}
/// <summary>
/// Enumerate instances of IPS_SolSessionUsingPort class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of IPS_SolSessionUsingPort objects</returns>
public static new Collection<IPS_SolSessionUsingPort> Enumerate(IWSManClient client)
{
List<IPS_SolSessionUsingPort> ret = CimBase.Enumerate<IPS_SolSessionUsingPort>(client);
return new Collection<IPS_SolSessionUsingPort>(ret);
}
/// <summary>
/// Delete the instance of IPS_SolSessionUsingPort 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<IPS_SolSessionUsingPort>(client);
}
/// <summary>
/// Represents the keys of the IPS_SolSessionUsingPort class.
/// </summary>
public new class CimKeys : IPS_SessionUsingPort.CimKeys
{
/// <summary>
/// Required, The settings of the port through which the session is performed.
/// </summary>
public virtual CimReference Antecedent
{
get
{
string innerXML = GetKey("Antecedent");
CimReference epr = new CimReference("Antecedent", "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_SolSessionUsingPort", innerXML);
return epr;
}
set
{
SetOrAddKey("Antecedent", value);
}
}
/// <summary>
/// Required, The Service that represents the management session.
/// </summary>
public virtual CimReference Dependent
{
get
{
string innerXML = GetKey("Dependent");
CimReference epr = new CimReference("Dependent", "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_SolSessionUsingPort", innerXML);
return epr;
}
set
{
SetOrAddKey("Dependent", value);
}
}
}
}
}