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