//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: IPS_8021xCredentialContext.cs
//
// Contents: Association between an instance of IPS_IEEE8021xSettings and an instance of AMT_PublicKeyCertificate that it uses.
// This file was automatically generated from IPS_8021xCredentialContext.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
{
///
///Association between an instance of IPS_IEEE8021xSettings and an instance of AMT_PublicKeyCertificate that it uses.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_8021xCredentialContext")]
[System.Xml.Serialization.XmlRootAttribute("IPS_8021xCredentialContext", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_8021xCredentialContext", IsNullable=false)]
public class IPS_8021xCredentialContext : CIM_CredentialContext
{
///
/// Default constructor.
///
public IPS_8021xCredentialContext() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public IPS_8021xCredentialContext(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public IPS_8021xCredentialContext(IWSManClient client): base(client)
{
}
///
/// Key, Required, A certificate whose context is defined.
///
[CimField(true, false)]
public override CimReference ElementInContext
{
get
{
string innerXML = this.GetField("ElementInContext")[0];
CimReference epr = new CimReference("ElementInContext", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("ElementInContext",value.Serialize(false));
}
}
///
/// Key, Required, The IEEE8021xSettings that provides context or scope for the Credential.
///
[CimField(true, false)]
public override CimReference ElementProvidingContext
{
get
{
string innerXML = this.GetField("ElementProvidingContext")[0];
CimReference epr = new CimReference("ElementProvidingContext", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("ElementProvidingContext",value.Serialize(false));
}
}
///
/// Enumerate instances of IPS_8021xCredentialContext class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of IPS_8021xCredentialContext 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_8021xCredentialContext class at an endpoint.
///
/// WS-Management client
/// Collection of IPS_8021xCredentialContext objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of IPS_8021xCredentialContext 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_8021xCredentialContext class.
///
public new class CimKeys : CIM_CredentialContext.CimKeys
{
///
/// Key, Required, A certificate whose context is defined.
///
public virtual CimReference ElementInContext
{
get
{
string innerXML = GetKey("ElementInContext");
CimReference epr = new CimReference("ElementInContext", "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_8021xCredentialContext", innerXML);
return epr;
}
set
{
SetOrAddKey("ElementInContext", value);
}
}
///
/// Key, Required, The IEEE8021xSettings that provides context or scope for the Credential.
///
public virtual CimReference ElementProvidingContext
{
get
{
string innerXML = GetKey("ElementProvidingContext");
CimReference epr = new CimReference("ElementProvidingContext", "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_8021xCredentialContext", innerXML);
return epr;
}
set
{
SetOrAddKey("ElementProvidingContext", value);
}
}
}
}
}