//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_PETCapabilities.cs
//
// Contents: describes the attributes associated with a single logical sensor which can cause to event alerting. The logical model classifies sensors according to type regardless of the physical devices that implement them. Thus, a single physical sensor device can implement logical sensors of different types, such as temperature and voltage sensors.
// This file was automatically generated from AMT_PETCapabilities.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
{
///
///describes the attributes associated with a single logical sensor which can cause to event alerting. The logical model classifies sensors according to type regardless of the physical devices that implement them. Thus, a single physical sensor device can implement logical sensors of different types, such as temperature and voltage sensors.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_PETCapabilities")]
[System.Xml.Serialization.XmlRootAttribute("AMT_PETCapabilities", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_PETCapabilities", IsNullable=false)]
public class AMT_PETCapabilities : CIM_Capabilities
{
///
/// Default constructor.
///
public AMT_PETCapabilities() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public AMT_PETCapabilities(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public AMT_PETCapabilities(IWSManClient client): base(client)
{
}
///
/// Remove AssertionEvent field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAssertionEvent()
{
RemoveField("AssertionEvent");
}
///
/// Is true if the field AssertionEvent exists in the current object,
/// otherwise is false.
///
public virtual bool AssertionEventExist
{
get
{
return ContainsField("AssertionEvent");
}
}
///
/// Optional, True if the assertion event is sent internally to the event handler. The event handler manages policies regarding whether the resulting event is sent in a PET frame and/or logged in the NV event log.
///
[CimField(false, false)]
public virtual bool AssertionEvent
{
get
{
return bool.Parse(this["AssertionEvent"][0]);
}
set
{
this.SetOrAddField("AssertionEvent",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove DeassertionEvent field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDeassertionEvent()
{
RemoveField("DeassertionEvent");
}
///
/// Is true if the field DeassertionEvent exists in the current object,
/// otherwise is false.
///
public virtual bool DeassertionEventExist
{
get
{
return ContainsField("DeassertionEvent");
}
}
///
/// Optional, True if the de-assertion event is sent internally to the event handler. The event handler manages policies regarding whether the resulting event is sent in a PET frame and/or logged in the NV event log
///
[CimField(false, false)]
public virtual bool DeassertionEvent
{
get
{
return bool.Parse(this["DeassertionEvent"][0]);
}
set
{
this.SetOrAddField("DeassertionEvent",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove DeviceAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDeviceAddress()
{
RemoveField("DeviceAddress");
}
///
/// Is true if the field DeviceAddress exists in the current object,
/// otherwise is false.
///
public virtual bool DeviceAddressExist
{
get
{
return ContainsField("DeviceAddress");
}
}
///
/// Optional, The SMBus address of the physical sensor device that implements the logical sensor.
///
[CimField(false, false)]
public virtual byte DeviceAddress
{
get
{
return byte.Parse(this["DeviceAddress"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("DeviceAddress",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Entity field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEntity()
{
RemoveField("Entity");
}
///
/// Is true if the field Entity exists in the current object,
/// otherwise is false.
///
public virtual bool EntityExist
{
get
{
return ContainsField("Entity");
}
}
///
/// Optional, The value to be set into the alert's Entity field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte Entity
{
get
{
return byte.Parse(this["Entity"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Entity",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EntityInstance field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEntityInstance()
{
RemoveField("EntityInstance");
}
///
/// Is true if the field EntityInstance exists in the current object,
/// otherwise is false.
///
public virtual bool EntityInstanceExist
{
get
{
return ContainsField("EntityInstance");
}
}
///
/// Optional, The value to be set into the alert's Entity Instance field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte EntityInstance
{
get
{
return byte.Parse(this["EntityInstance"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EntityInstance",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EventOffset field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEventOffset()
{
RemoveField("EventOffset");
}
///
/// Is true if the field EventOffset exists in the current object,
/// otherwise is false.
///
public virtual bool EventOffsetExist
{
get
{
return ContainsField("EventOffset");
}
}
///
/// Optional, The value of the alert's Event Offset field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte EventOffset
{
get
{
return byte.Parse(this["EventOffset"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EventOffset",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EventSensorType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEventSensorType()
{
RemoveField("EventSensorType");
}
///
/// Is true if the field EventSensorType exists in the current object,
/// otherwise is false.
///
public virtual bool EventSensorTypeExist
{
get
{
return ContainsField("EventSensorType");
}
}
///
/// Optional, The value of the alert's Event Sensor Type field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte EventSensorType
{
get
{
return byte.Parse(this["EventSensorType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EventSensorType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EventSeverity field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEventSeverity()
{
RemoveField("EventSeverity");
}
///
/// Is true if the field EventSeverity exists in the current object,
/// otherwise is false.
///
public virtual bool EventSeverityExist
{
get
{
return ContainsField("EventSeverity");
}
}
///
/// Optional, The value of the alert's Event Severity field. The severity values are based on the 'DMI' severity values used for the generic sensor event/reading type code.
///
[CimField(false, false)]
public virtual byte EventSeverity
{
get
{
return byte.Parse(this["EventSeverity"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EventSeverity",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EventSourceType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEventSourceType()
{
RemoveField("EventSourceType");
}
///
/// Is true if the field EventSourceType exists in the current object,
/// otherwise is false.
///
public virtual bool EventSourceTypeExist
{
get
{
return ContainsField("EventSourceType");
}
}
///
/// Optional, The value of the alert's Event Source Type field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte EventSourceType
{
get
{
return byte.Parse(this["EventSourceType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EventSourceType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove EventType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEventType()
{
RemoveField("EventType");
}
///
/// Is true if the field EventType exists in the current object,
/// otherwise is false.
///
public virtual bool EventTypeExist
{
get
{
return ContainsField("EventType");
}
}
///
/// Optional, The value of the alert's Event Type field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte EventType
{
get
{
return byte.Parse(this["EventType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EventType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove Index field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIndex()
{
RemoveField("Index");
}
///
/// Is true if the field Index exists in the current object,
/// otherwise is false.
///
public virtual bool IndexExist
{
get
{
return ContainsField("Index");
}
}
///
/// Optional, If this is a legacy sensor, then this field contains the 0-based index of the ASF_ALERTDATA structure in the Device Array of the ASF_ALRT structure in the ACPI 'ASF!' structure. If this is an ASF sensor, then this field contains the value of the Event Status Index required for a Get Event Status cycle on the SMBus. The value in this field is used in determining how to poll the status of the device on the SMBus. Supported for backwards compatibility.
///
[CimField(false, false)]
public virtual byte Index
{
get
{
return byte.Parse(this["Index"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Index",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove IsLegacySensor field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIsLegacySensor()
{
RemoveField("IsLegacySensor");
}
///
/// Is true if the field IsLegacySensor exists in the current object,
/// otherwise is false.
///
public virtual bool IsLegacySensorExist
{
get
{
return ContainsField("IsLegacySensor");
}
}
///
/// Optional, The value in this field is TRUE if this is a legacy sensor described in the ACPI 'ASF!' table or FALSE if this is an ASF sensor. The value in this field is used in determining how to poll the status of the device on the SMBus.Supported for backwards compatibility.
///
[CimField(false, false)]
public virtual bool IsLegacySensor
{
get
{
return bool.Parse(this["IsLegacySensor"][0]);
}
set
{
this.SetOrAddField("IsLegacySensor",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove SensorNumber field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSensorNumber()
{
RemoveField("SensorNumber");
}
///
/// Is true if the field SensorNumber exists in the current object,
/// otherwise is false.
///
public virtual bool SensorNumberExist
{
get
{
return ContainsField("SensorNumber");
}
}
///
/// Optional, The value of the alert's Sensor Number field (see PET specification for definitions.)
///
[CimField(false, false)]
public virtual byte SensorNumber
{
get
{
return byte.Parse(this["SensorNumber"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("SensorNumber",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of AMT_PETCapabilities class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of AMT_PETCapabilities objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of AMT_PETCapabilities class at an endpoint.
///
/// WS-Management client
/// Collection of AMT_PETCapabilities objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of AMT_PETCapabilities if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the AMT_PETCapabilities class.
///
public new class CimKeys : CIM_Capabilities.CimKeys
{
}
}
}