245 lines
7.6 KiB
C#
245 lines
7.6 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_Controller.cs
|
|
//
|
|
// Contents: Controller is a superclass for grouping the miscellaneous control-related Devices that provide a classic bus master interface. Examples of Controllers are USBControllers, SerialControllers, and so on. The Controller class is an abstraction for Devices with a single protocol stack, which exist to control communications (data, control, and reset) to downstream devices. Note that a new abstract class (ProtocolController) has been created to model more complex interface controllers such as SCSI.
|
|
// This file was automatically generated from CIM_Controller.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>
|
|
///Controller is a superclass for grouping the miscellaneous control-related Devices that provide a classic bus master interface. Examples of Controllers are USBControllers, SerialControllers, and so on. The Controller class is an abstraction for Devices with a single protocol stack, which exist to control communications (data, control, and reset) to downstream devices. Note that a new abstract class (ProtocolController) has been created to model more complex interface controllers such as SCSI.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Controller")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_Controller", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Controller", IsNullable=false)]
|
|
public class CIM_Controller : CIM_LogicalDevice
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_Controller() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_Controller(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_Controller(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxNumberControlled field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaxNumberControlled()
|
|
{
|
|
RemoveField("MaxNumberControlled");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxNumberControlled exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaxNumberControlledExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxNumberControlled");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Maximum number of directly addressable entities that are supported by this Controller. A value of 0 should be used if the number is unknown or unlimited.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaxNumberControlled
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaxNumberControlled"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxNumberControlled",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ProtocolDescription field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveProtocolDescription()
|
|
{
|
|
RemoveField("ProtocolDescription");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ProtocolDescription exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ProtocolDescriptionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ProtocolDescription");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A free-form string that provides more information that is related to the ProtocolSupported by the Controller.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ProtocolDescription
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ProtocolDescription")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ProtocolDescription",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ProtocolSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveProtocolSupported()
|
|
{
|
|
RemoveField("ProtocolSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ProtocolSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ProtocolSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ProtocolSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The protocol used by the Controller to access controlled Devices.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort ProtocolSupported
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["ProtocolSupported"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ProtocolSupported",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove TimeOfLastReset field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveTimeOfLastReset()
|
|
{
|
|
RemoveField("TimeOfLastReset");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field TimeOfLastReset exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool TimeOfLastResetExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("TimeOfLastReset");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Time of last reset of the Controller.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual CimDateTime TimeOfLastReset
|
|
{
|
|
get
|
|
{
|
|
return CimDateTime.Parse(this["TimeOfLastReset"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("TimeOfLastReset",value.ToString());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_Controller 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_Controller objects</returns>
|
|
public static new Collection<CIM_Controller> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_Controller> ret = CimBase.Enumerate<CIM_Controller>(client, cimKeys);
|
|
return new Collection<CIM_Controller>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_Controller class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_Controller objects</returns>
|
|
public static new Collection<CIM_Controller> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_Controller> ret = CimBase.Enumerate<CIM_Controller>(client);
|
|
return new Collection<CIM_Controller>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_Controller 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_Controller>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_Controller class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_LogicalDevice.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|