173 lines
5.4 KiB
C#
173 lines
5.4 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///Association between an instance of IPS_IEEE8021xSettings and an instance of AMT_PublicKeyCertificate that it uses.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public IPS_8021xCredentialContext() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public IPS_8021xCredentialContext(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_8021xCredentialContext(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, A certificate whose context is defined.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The IEEE8021xSettings that provides context or scope for the Credential.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_8021xCredentialContext 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_8021xCredentialContext objects</returns>
|
|
public static new Collection<IPS_8021xCredentialContext> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<IPS_8021xCredentialContext> ret = CimBase.Enumerate<IPS_8021xCredentialContext>(client, cimKeys);
|
|
return new Collection<IPS_8021xCredentialContext>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_8021xCredentialContext class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of IPS_8021xCredentialContext objects</returns>
|
|
public static new Collection<IPS_8021xCredentialContext> Enumerate(IWSManClient client)
|
|
{
|
|
List<IPS_8021xCredentialContext> ret = CimBase.Enumerate<IPS_8021xCredentialContext>(client);
|
|
return new Collection<IPS_8021xCredentialContext>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of IPS_8021xCredentialContext 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_8021xCredentialContext>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the IPS_8021xCredentialContext class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_CredentialContext.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, A certificate whose context is defined.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The IEEE8021xSettings that provides context or scope for the Credential.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|