//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_PhysicalFrame.cs
//
// Contents: PhysicalFrame is a superclass of Rack, Chassis and other frame enclosures, as they are defined in extension classes. Properties like visible or audible alarm, and data related to security breaches are in this superclass.
// This file was automatically generated from CIM_PhysicalFrame.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
{
///
///PhysicalFrame is a superclass of Rack, Chassis and other frame enclosures, as they are defined in extension classes. Properties like visible or audible alarm, and data related to security breaches are in this superclass.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalFrame")]
[System.Xml.Serialization.XmlRootAttribute("CIM_PhysicalFrame", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalFrame", IsNullable=false)]
public class CIM_PhysicalFrame : CIM_PhysicalPackage
{
///
/// Default constructor.
///
public CIM_PhysicalFrame() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_PhysicalFrame(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_PhysicalFrame(IWSManClient client): base(client)
{
}
///
/// Remove AudibleAlarm field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAudibleAlarm()
{
RemoveField("AudibleAlarm");
}
///
/// Is true if the field AudibleAlarm exists in the current object,
/// otherwise is false.
///
public virtual bool AudibleAlarmExist
{
get
{
return ContainsField("AudibleAlarm");
}
}
///
/// Optional, Boolean indicating whether the Frame is equipped with an audible alarm.
///
[CimField(false, false)]
public virtual bool AudibleAlarm
{
get
{
return bool.Parse(this["AudibleAlarm"][0]);
}
set
{
this.SetOrAddField("AudibleAlarm",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove BreachDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveBreachDescription()
{
RemoveField("BreachDescription");
}
///
/// Is true if the field BreachDescription exists in the current object,
/// otherwise is false.
///
public virtual bool BreachDescriptionExist
{
get
{
return ContainsField("BreachDescription");
}
}
///
/// Optional, BreachDescription is a free-form string providing more information if the SecurityBreach property indicates that a breach or some other security-related event occurred.
///
[CimField(false, false)]
public virtual string BreachDescription
{
get
{
return this.GetField("BreachDescription")[0];
}
set
{
this.SetOrAddField("BreachDescription",value);
}
}
///
/// Remove CableManagementStrategy field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveCableManagementStrategy()
{
RemoveField("CableManagementStrategy");
}
///
/// Is true if the field CableManagementStrategy exists in the current object,
/// otherwise is false.
///
public virtual bool CableManagementStrategyExist
{
get
{
return ContainsField("CableManagementStrategy");
}
}
///
/// Optional, CableManagementStrategy is a free-form string that contains information on how the various cables are connected and bundled for the Frame. With many networking, storage-related and power cables, cable management can be a complex and challenging endeavor. This string property contains information to aid in assembly and service of the Frame.
///
[CimField(false, false)]
public virtual string CableManagementStrategy
{
get
{
return this.GetField("CableManagementStrategy")[0];
}
set
{
this.SetOrAddField("CableManagementStrategy",value);
}
}
///
/// Remove IsLocked field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIsLocked()
{
RemoveField("IsLocked");
}
///
/// Is true if the field IsLocked exists in the current object,
/// otherwise is false.
///
public virtual bool IsLockedExist
{
get
{
return ContainsField("IsLocked");
}
}
///
/// Optional, Boolean indicating that the Frame is currently locked.
///
[CimField(false, false)]
public virtual bool IsLocked
{
get
{
return bool.Parse(this["IsLocked"][0]);
}
set
{
this.SetOrAddField("IsLocked",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove LockPresent field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveLockPresent()
{
RemoveField("LockPresent");
}
///
/// Is true if the field LockPresent exists in the current object,
/// otherwise is false.
///
public virtual bool LockPresentExist
{
get
{
return ContainsField("LockPresent");
}
}
///
/// Optional, Boolean indicating whether the Frame is protected with a lock.
///
[CimField(false, false)]
public virtual bool LockPresent
{
get
{
return bool.Parse(this["LockPresent"][0]);
}
set
{
this.SetOrAddField("LockPresent",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove SecurityBreach field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSecurityBreach()
{
RemoveField("SecurityBreach");
}
///
/// Is true if the field SecurityBreach exists in the current object,
/// otherwise is false.
///
public virtual bool SecurityBreachExist
{
get
{
return ContainsField("SecurityBreach");
}
}
///
/// Optional, SecurityBreach is an enumerated, integer-valued property indicating whether a physical breach of the Frame was attempted but unsuccessful (value=4) or attempted and successful (5). Also, the values, "Unknown", "Other" or "No Breach", can be specified.
///
[CimField(false, false)]
public virtual ushort SecurityBreach
{
get
{
return ushort.Parse(this["SecurityBreach"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("SecurityBreach",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ServiceDescriptions field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveServiceDescriptions()
{
RemoveField("ServiceDescriptions");
}
///
/// Is true if the field ServiceDescriptions exists in the current object,
/// otherwise is false.
///
public virtual bool ServiceDescriptionsExist
{
get
{
return ContainsField("ServiceDescriptions");
}
}
///
/// Optional, An array of free-form strings providing more detailed explanations for any of the entries in the Service Philosophy array. Note, each entry of this array is related to the entry in ServicePhilosophy that is located at the same index.
///
[CimField(false, false)]
public virtual string[] ServiceDescriptions
{
get
{
return CimTypesUtils.StringArrayToArray(this["ServiceDescriptions"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("ServiceDescriptions", arr);
}
}
///
/// Remove ServicePhilosophy field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveServicePhilosophy()
{
RemoveField("ServicePhilosophy");
}
///
/// Is true if the field ServicePhilosophy exists in the current object,
/// otherwise is false.
///
public virtual bool ServicePhilosophyExist
{
get
{
return ContainsField("ServicePhilosophy");
}
}
///
/// Optional, ServicePhilosophy is an enumerated, integer-valued array that indicates whether the Frame is serviced from the top (value=2), front (3), back (4) or side (5), whether it has sliding trays (6) or removable sides (7), and/or whether the Frame is moveable (8), for example, having rollers.
///
[CimField(false, false)]
public virtual ushort[] ServicePhilosophy
{
get
{
return CimTypesUtils.StringArrayToArray(this["ServicePhilosophy"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("ServicePhilosophy", arr);
}
}
///
/// Remove VisibleAlarm field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveVisibleAlarm()
{
RemoveField("VisibleAlarm");
}
///
/// Is true if the field VisibleAlarm exists in the current object,
/// otherwise is false.
///
public virtual bool VisibleAlarmExist
{
get
{
return ContainsField("VisibleAlarm");
}
}
///
/// Optional, Boolean indicating that the equipment includes a visible alarm.
///
[CimField(false, false)]
public virtual bool VisibleAlarm
{
get
{
return bool.Parse(this["VisibleAlarm"][0]);
}
set
{
this.SetOrAddField("VisibleAlarm",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_PhysicalFrame class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_PhysicalFrame 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_PhysicalFrame class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_PhysicalFrame objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_PhysicalFrame 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_PhysicalFrame class.
///
public new class CimKeys : CIM_PhysicalPackage.CimKeys
{
}
}
}