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