101 lines
3.3 KiB
C#
101 lines
3.3 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_Collection.cs
|
|
//
|
|
// Contents: Collection is an abstract class that provides a common superclass for data elements that represent collections of ManagedElements and its subclasses.
|
|
// This file was automatically generated from CIM_Collection.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>
|
|
///Collection is an abstract class that provides a common superclass for data elements that represent collections of ManagedElements and its subclasses.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Collection")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_Collection", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Collection", IsNullable=false)]
|
|
public class CIM_Collection : CIM_ManagedElement
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_Collection() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_Collection(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_Collection(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_Collection 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_Collection objects</returns>
|
|
public static new Collection<CIM_Collection> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_Collection> ret = CimBase.Enumerate<CIM_Collection>(client, cimKeys);
|
|
return new Collection<CIM_Collection>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_Collection class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_Collection objects</returns>
|
|
public static new Collection<CIM_Collection> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_Collection> ret = CimBase.Enumerate<CIM_Collection>(client);
|
|
return new Collection<CIM_Collection>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_Collection 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 new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_Collection>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_Collection class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_ManagedElement.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|