173 lines
5.9 KiB
C#
173 lines
5.9 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///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.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_ElementStatisticalData() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_ElementStatisticalData(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_ElementStatisticalData(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement for which statistical or metric data is defined.
|
|
/// </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>
|
|
/// Key, Required, The statistic information/object.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ElementStatisticalData 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_ElementStatisticalData objects</returns>
|
|
public static Collection<CIM_ElementStatisticalData> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_ElementStatisticalData> ret = CimBase.Enumerate<CIM_ElementStatisticalData>(client, cimKeys);
|
|
return new Collection<CIM_ElementStatisticalData>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ElementStatisticalData class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_ElementStatisticalData objects</returns>
|
|
public static Collection<CIM_ElementStatisticalData> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_ElementStatisticalData> ret = CimBase.Enumerate<CIM_ElementStatisticalData>(client);
|
|
return new Collection<CIM_ElementStatisticalData>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_ElementStatisticalData 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_ElementStatisticalData>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_ElementStatisticalData class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CimBase.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement for which statistical or metric data is defined.
|
|
/// </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_ElementStatisticalData", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("ManagedElement", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The statistic information/object.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|