//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: AMT_8021xCredentialContext.cs // // Contents: Association between an instance of AMT_8021XProfile and an instance of AMT_PublicKeyCertificate that it uses. // This file was automatically generated from AMT_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 AMT_8021XProfile and an instance of AMT_PublicKeyCertificate that it uses. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_8021xCredentialContext")] [System.Xml.Serialization.XmlRootAttribute("AMT_8021xCredentialContext", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_8021xCredentialContext", IsNullable=false)] public class AMT_8021xCredentialContext : CIM_CredentialContext { /// /// Default constructor. /// public AMT_8021xCredentialContext() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_8021xCredentialContext(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_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 8021XProfile 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 AMT_8021xCredentialContext class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_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 AMT_8021xCredentialContext class at an endpoint. /// /// WS-Management client /// Collection of AMT_8021xCredentialContext objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_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 AMT_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/amt-schema/1/AMT_8021xCredentialContext", innerXML); return epr; } set { SetOrAddKey("ElementInContext", value); } } /// /// Key, Required, The 8021XProfile 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/amt-schema/1/AMT_8021xCredentialContext", innerXML); return epr; } set { SetOrAddKey("ElementProvidingContext", value); } } } } }