173 lines
6.1 KiB
C#
173 lines
6.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_ElementConformsToProfile.cs
|
|
//
|
|
// Contents: The CIM_ElementConformsToProfile association defines the RegisteredProfiles to which the referenced ManagedElement is conformant. Note: This association may apply to any Managed Element. Typical usage will apply it to a higher level instance, such as a System, NameSpace, or Service. When applied to a higher level instance, all constituent parts MUST behave appropriately in support of the ManagedElement's conformance to the named RegisteredProfile.
|
|
// This file was automatically generated from CIM_ElementConformsToProfile.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>
|
|
///The CIM_ElementConformsToProfile association defines the RegisteredProfiles to which the referenced ManagedElement is conformant. Note: This association may apply to any Managed Element. Typical usage will apply it to a higher level instance, such as a System, NameSpace, or Service. When applied to a higher level instance, all constituent parts MUST behave appropriately in support of the ManagedElement's conformance to the named RegisteredProfile.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementConformsToProfile")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_ElementConformsToProfile", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementConformsToProfile", IsNullable=false)]
|
|
public class CIM_ElementConformsToProfile : CimBase
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_ElementConformsToProfile() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_ElementConformsToProfile(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_ElementConformsToProfile(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The RegisteredProfile to which the ManagedElement conforms.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public virtual CimReference ConformantStandard
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("ConformantStandard")[0];
|
|
CimReference epr = new CimReference("ConformantStandard", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConformantStandard",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement that conforms to the RegisteredProfile.
|
|
/// </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_ElementConformsToProfile 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_ElementConformsToProfile objects</returns>
|
|
public static Collection<CIM_ElementConformsToProfile> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_ElementConformsToProfile> ret = CimBase.Enumerate<CIM_ElementConformsToProfile>(client, cimKeys);
|
|
return new Collection<CIM_ElementConformsToProfile>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ElementConformsToProfile class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_ElementConformsToProfile objects</returns>
|
|
public static Collection<CIM_ElementConformsToProfile> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_ElementConformsToProfile> ret = CimBase.Enumerate<CIM_ElementConformsToProfile>(client);
|
|
return new Collection<CIM_ElementConformsToProfile>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_ElementConformsToProfile 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_ElementConformsToProfile>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_ElementConformsToProfile class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CimBase.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, The RegisteredProfile to which the ManagedElement conforms.
|
|
/// </summary>
|
|
|
|
public virtual CimReference ConformantStandard
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("ConformantStandard");
|
|
CimReference epr = new CimReference("ConformantStandard", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementConformsToProfile", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("ConformantStandard", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement that conforms to the RegisteredProfile.
|
|
/// </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_ElementConformsToProfile", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("ManagedElement", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|