//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_ElementStatisticalData.cs
//
// Contents: CIM_ElementStatisticalData is an association that relates a ManagedElement to its StatisticalData. Note that the cardinality of the ManagedElement reference is Min(1), Max(1). This cardinality mandates the instantiation of the ElementStatisticalData association for the referenced instance of CIM_StatisticalData. ElementStatisticalData describes the existence requirements and context for the CIM_StatisticalData, relative to a specific ManagedElement.
// This file was automatically generated from CIM_ElementStatisticalData.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
{
///
///CIM_ElementStatisticalData is an association that relates a ManagedElement to its StatisticalData. Note that the cardinality of the ManagedElement reference is Min(1), Max(1). This cardinality mandates the instantiation of the ElementStatisticalData association for the referenced instance of CIM_StatisticalData. ElementStatisticalData describes the existence requirements and context for the CIM_StatisticalData, relative to a specific ManagedElement.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementStatisticalData")]
[System.Xml.Serialization.XmlRootAttribute("CIM_ElementStatisticalData", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementStatisticalData", IsNullable=false)]
public class CIM_ElementStatisticalData : CimBase
{
///
/// Default constructor.
///
public CIM_ElementStatisticalData() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_ElementStatisticalData(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_ElementStatisticalData(IWSManClient client): base(client)
{
}
///
/// Key, Required, The ManagedElement for which statistical or metric data is defined.
///
[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));
}
}
///
/// Key, Required, The statistic information/object.
///
[CimField(true, false)]
public virtual CimReference Stats
{
get
{
string innerXML = this.GetField("Stats")[0];
CimReference epr = new CimReference("Stats", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("Stats",value.Serialize(false));
}
}
///
/// Enumerate instances of CIM_ElementStatisticalData class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_ElementStatisticalData objects
public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_ElementStatisticalData class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_ElementStatisticalData objects
public static Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_ElementStatisticalData 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_ElementStatisticalData class.
///
public new class CimKeys : CimBase.CimKeys
{
///
/// Key, Required, The ManagedElement for which statistical or metric data is defined.
///
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_ElementStatisticalData", innerXML);
return epr;
}
set
{
SetOrAddKey("ManagedElement", value);
}
}
///
/// Key, Required, The statistic information/object.
///
public virtual CimReference Stats
{
get
{
string innerXML = GetKey("Stats");
CimReference epr = new CimReference("Stats", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ElementStatisticalData", innerXML);
return epr;
}
set
{
SetOrAddKey("Stats", value);
}
}
}
}
}