173 lines
5.1 KiB
C#
173 lines
5.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_AssignedIdentity.cs
|
|
//
|
|
// Contents: This relationship associates an Identity to a specific ManagedElement, whose trust is represented.
|
|
// This file was automatically generated from CIM_AssignedIdentity.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>
|
|
///This relationship associates an Identity to a specific ManagedElement, whose trust is represented.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssignedIdentity")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_AssignedIdentity", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssignedIdentity", IsNullable=false)]
|
|
public class CIM_AssignedIdentity : CimBase
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_AssignedIdentity() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_AssignedIdentity(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 CIM_AssignedIdentity(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, An Identity of the referenced ManagedElement.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public virtual CimReference IdentityInfo
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("IdentityInfo")[0];
|
|
CimReference epr = new CimReference("IdentityInfo", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IdentityInfo",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement assigned to a specific Identity.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public virtual CimReference ManagedElement
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("ManagedElement")[0];
|
|
CimReference epr = new CimReference("ManagedElement", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ManagedElement",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_AssignedIdentity class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_AssignedIdentity objects</returns>
|
|
public static Collection<CIM_AssignedIdentity> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_AssignedIdentity> ret = CimBase.Enumerate<CIM_AssignedIdentity>(client, cimKeys);
|
|
return new Collection<CIM_AssignedIdentity>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_AssignedIdentity class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_AssignedIdentity objects</returns>
|
|
public static Collection<CIM_AssignedIdentity> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_AssignedIdentity> ret = CimBase.Enumerate<CIM_AssignedIdentity>(client);
|
|
return new Collection<CIM_AssignedIdentity>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_AssignedIdentity 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 void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_AssignedIdentity>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_AssignedIdentity class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CimBase.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, An Identity of the referenced ManagedElement.
|
|
/// </summary>
|
|
|
|
public virtual CimReference IdentityInfo
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("IdentityInfo");
|
|
CimReference epr = new CimReference("IdentityInfo", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssignedIdentity", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("IdentityInfo", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement assigned to a specific Identity.
|
|
/// </summary>
|
|
|
|
public virtual CimReference ManagedElement
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("ManagedElement");
|
|
CimReference epr = new CimReference("ManagedElement", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssignedIdentity", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("ManagedElement", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|