//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Memory.cs
//
// Contents: Capabilities and management of Memory-related LogicalDevices.
// This file was automatically generated from CIM_Memory.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
{
///
///Capabilities and management of Memory-related LogicalDevices.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Memory")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Memory", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Memory", IsNullable=false)]
public class CIM_Memory : CIM_StorageExtent
{
///
/// Default constructor.
///
public CIM_Memory() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_Memory(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_Memory(IWSManClient client): base(client)
{
}
///
/// Remove AdditionalErrorData field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAdditionalErrorData()
{
RemoveField("AdditionalErrorData");
}
///
/// Is true if the field AdditionalErrorData exists in the current object,
/// otherwise is false.
///
public virtual bool AdditionalErrorDataExist
{
get
{
return ContainsField("AdditionalErrorData");
}
}
///
/// Optional, An array of octets holding additional error information. An example is ECC Syndrome or the return of the check bits if a CRC-based ErrorMethodology is used. In the latter case, if a single bit error is recognized and the CRC algorithm is known, it is possible to determine the exact bit that failed. This type of data (ECC Syndrome, Check Bit or Parity Bit data, or other vendor supplied information) is included in this field. If the ErrorInfo property is equal to 3, "OK", then AdditionalErrorData has no meaning.
///
[CimField(false, false)]
public virtual byte[] AdditionalErrorData
{
get
{
return Convert.FromBase64String(this.GetField("AdditionalErrorData")[0]); }
set
{
this.SetOrAddField("AdditionalErrorData",Convert.ToBase64String(value));
}
}
///
/// Remove CorrectableError field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveCorrectableError()
{
RemoveField("CorrectableError");
}
///
/// Is true if the field CorrectableError exists in the current object,
/// otherwise is false.
///
public virtual bool CorrectableErrorExist
{
get
{
return ContainsField("CorrectableError");
}
}
///
/// Optional, Boolean indicating that the most recent error was correctable. If the ErrorInfo property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual bool CorrectableError
{
get
{
return bool.Parse(this["CorrectableError"][0]);
}
set
{
this.SetOrAddField("CorrectableError",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove EndingAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveEndingAddress()
{
RemoveField("EndingAddress");
}
///
/// Is true if the field EndingAddress exists in the current object,
/// otherwise is false.
///
public virtual bool EndingAddressExist
{
get
{
return ContainsField("EndingAddress");
}
}
///
/// Optional, The ending address, referenced by an application or operating system and mapped by a memory controller, for this Memory object. The ending address is specified in KBytes.
///
[CimField(false, false)]
public virtual ulong EndingAddress
{
get
{
return ulong.Parse(this["EndingAddress"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EndingAddress",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorAccess field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorAccess()
{
RemoveField("ErrorAccess");
}
///
/// Is true if the field ErrorAccess exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorAccessExist
{
get
{
return ContainsField("ErrorAccess");
}
}
///
/// Optional, An integer enumeration indicating the memory access operation that caused the last error. The type of error is described by the ErrorInfo property. If the ErrorInfo property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual ushort ErrorAccess
{
get
{
return ushort.Parse(this["ErrorAccess"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorAccess",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorAddress()
{
RemoveField("ErrorAddress");
}
///
/// Is true if the field ErrorAddress exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorAddressExist
{
get
{
return ContainsField("ErrorAddress");
}
}
///
/// Optional, Specifies the address of the last memory error. The type of error is described by the ErrorInfo property. If the ErrorInfo property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual ulong ErrorAddress
{
get
{
return ulong.Parse(this["ErrorAddress"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorAddress",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorData field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorData()
{
RemoveField("ErrorData");
}
///
/// Is true if the field ErrorData exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorDataExist
{
get
{
return ContainsField("ErrorData");
}
}
///
/// Optional, Data captured during the last erroneous mebmory access. The data occupies the first n octets of the array necessary to hold the number of bits specified by the ErrorTransferSize property. If ErrorTransferSize is 0, then this property has no meaning.
///
[CimField(false, false)]
public virtual byte[] ErrorData
{
get
{
return Convert.FromBase64String(this.GetField("ErrorData")[0]); }
set
{
this.SetOrAddField("ErrorData",Convert.ToBase64String(value));
}
}
///
/// Remove ErrorDataOrder field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorDataOrder()
{
RemoveField("ErrorDataOrder");
}
///
/// Is true if the field ErrorDataOrder exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorDataOrderExist
{
get
{
return ContainsField("ErrorDataOrder");
}
}
///
/// Optional, The ordering for data stored in the ErrorData property. "Least Significant Byte First" (value=1) or "Most Significant Byte First" (2) can be specified. If ErrorTransferSize is 0, then this property has no meaning.
///
[CimField(false, false)]
public virtual ushort ErrorDataOrder
{
get
{
return ushort.Parse(this["ErrorDataOrder"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorDataOrder",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorInfo field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorInfo()
{
RemoveField("ErrorInfo");
}
///
/// Is true if the field ErrorInfo exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorInfoExist
{
get
{
return ContainsField("ErrorInfo");
}
}
///
/// Optional, An integer enumeration describing the type of error that occurred most recently. For example, single (value=6) or double bit errors (7) can be specified using this property. The values, 12-14, are undefined in the CIM Schema since in DMI, they mix the semantics of the type of error and whether it was correctable or not. The latter is indicated in the property, CorrectableError.
///
[CimField(false, false)]
public virtual ushort ErrorInfo
{
get
{
return ushort.Parse(this["ErrorInfo"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorInfo",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorMethodology field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public override void RemoveErrorMethodology()
{
RemoveField("ErrorMethodology");
}
///
/// Is true if the field ErrorMethodology exists in the current object,
/// otherwise is false.
///
public override bool ErrorMethodologyExist
{
get
{
return ContainsField("ErrorMethodology");
}
}
///
/// Optional, ErrorMethodology for Memory is a string property that indicates whether parity or CRC algorithms, ECC or other mechanisms are used. Details on the algorithm can also be supplied.
///
[CimField(false, false)]
public override string ErrorMethodology
{
get
{
return this.GetField("ErrorMethodology")[0];
}
set
{
this.SetOrAddField("ErrorMethodology",value);
}
}
///
/// Remove ErrorResolution field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorResolution()
{
RemoveField("ErrorResolution");
}
///
/// Is true if the field ErrorResolution exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorResolutionExist
{
get
{
return ContainsField("ErrorResolution");
}
}
///
/// Optional, Specifies the range, in bytes, to which the last error can be resolved. For example, if error addresses are resolved to bit 11 (ie, on a typical page basis), then errors can be resolved to 4K boundaries and this property is set to 4000. If the ErrorInfo property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual ulong ErrorResolution
{
get
{
return ulong.Parse(this["ErrorResolution"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorResolution",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ErrorTime field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorTime()
{
RemoveField("ErrorTime");
}
///
/// Is true if the field ErrorTime exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorTimeExist
{
get
{
return ContainsField("ErrorTime");
}
}
///
/// Optional, The time that the last memory error occurred. The type of error is described by the ErrorInfo property. If the Error Info property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual CimDateTime ErrorTime
{
get
{
return CimDateTime.Parse(this["ErrorTime"][0]);
}
set
{
this.SetOrAddField("ErrorTime",value.ToString());
}
}
///
/// Remove ErrorTransferSize field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveErrorTransferSize()
{
RemoveField("ErrorTransferSize");
}
///
/// Is true if the field ErrorTransferSize exists in the current object,
/// otherwise is false.
///
public virtual bool ErrorTransferSizeExist
{
get
{
return ContainsField("ErrorTransferSize");
}
}
///
/// Optional, The size of the data transfer in bits that caused the last error. 0 indicates no error. If the ErrorInfo property is equal to 3, "OK", then this property should be set to 0.
///
[CimField(false, false)]
public virtual uint ErrorTransferSize
{
get
{
return uint.Parse(this["ErrorTransferSize"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ErrorTransferSize",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove OtherErrorDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveOtherErrorDescription()
{
RemoveField("OtherErrorDescription");
}
///
/// Is true if the field OtherErrorDescription exists in the current object,
/// otherwise is false.
///
public virtual bool OtherErrorDescriptionExist
{
get
{
return ContainsField("OtherErrorDescription");
}
}
///
/// Optional, Free form string providing more information if the Error Type property is set to 1, "Other". If not set to 1, this string has no meaning.
///
[CimField(false, false)]
public virtual string OtherErrorDescription
{
get
{
return this.GetField("OtherErrorDescription")[0];
}
set
{
this.SetOrAddField("OtherErrorDescription",value);
}
}
///
/// Remove StartingAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveStartingAddress()
{
RemoveField("StartingAddress");
}
///
/// Is true if the field StartingAddress exists in the current object,
/// otherwise is false.
///
public virtual bool StartingAddressExist
{
get
{
return ContainsField("StartingAddress");
}
}
///
/// Optional, The beginning address, referenced by an application or operating system and mapped by a memory controller, for this Memory object. The starting address is specified in KBytes.
///
[CimField(false, false)]
public virtual ulong StartingAddress
{
get
{
return ulong.Parse(this["StartingAddress"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("StartingAddress",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove SystemLevelAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSystemLevelAddress()
{
RemoveField("SystemLevelAddress");
}
///
/// Is true if the field SystemLevelAddress exists in the current object,
/// otherwise is false.
///
public virtual bool SystemLevelAddressExist
{
get
{
return ContainsField("SystemLevelAddress");
}
}
///
/// Optional, Boolean indicating whether the address information in the property, ErrorAddress, is a system-level address (TRUE) or a physical address (FALSE). If the ErrorInfo property is equal to 3, "OK", then this property has no meaning.
///
[CimField(false, false)]
public virtual bool SystemLevelAddress
{
get
{
return bool.Parse(this["SystemLevelAddress"][0]);
}
set
{
this.SetOrAddField("SystemLevelAddress",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove Volatile field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveVolatile()
{
RemoveField("Volatile");
}
///
/// Is true if the field Volatile exists in the current object,
/// otherwise is false.
///
public virtual bool VolatileExist
{
get
{
return ContainsField("Volatile");
}
}
///
/// Optional, Volatile is a property that indicates whether this memory is volatile or not.
///
[CimField(false, false)]
public virtual bool Volatile
{
get
{
return bool.Parse(this["Volatile"][0]);
}
set
{
this.SetOrAddField("Volatile",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_Memory class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_Memory objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_Memory class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_Memory objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_Memory 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 CIM_Memory class.
///
public new class CimKeys : CIM_StorageExtent.CimKeys
{
}
}
}