//----------------------------------------------------------------------------
//
// 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
{
///
///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.
///
[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
{
///
/// Default constructor.
///
public CIM_ElementConformsToProfile() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_ElementConformsToProfile(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_ElementConformsToProfile(IWSManClient client): base(client)
{
}
///
/// Key, Required, The RegisteredProfile to which the ManagedElement conforms.
///
[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));
}
}
///
/// Key, Required, The ManagedElement that conforms to the RegisteredProfile.
///
[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));
}
}
///
/// Enumerate instances of CIM_ElementConformsToProfile class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_ElementConformsToProfile objects
public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_ElementConformsToProfile class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_ElementConformsToProfile objects
public static Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_ElementConformsToProfile if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_ElementConformsToProfile class.
///
public new class CimKeys : CimBase.CimKeys
{
///
/// Key, Required, The RegisteredProfile to which the ManagedElement conforms.
///
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);
}
}
///
/// Key, Required, The ManagedElement that conforms to the RegisteredProfile.
///
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);
}
}
}
}
}