430 lines
12 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Chassis.cs
//
// Contents: The Chassis class represents the PhysicalElements that enclose other Elements and provide definable functionality, such as a desktop, processing node, UPS, disk or tape storage, or a combination of these.
// This file was automatically generated from CIM_Chassis.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>
///The Chassis class represents the PhysicalElements that enclose other Elements and provide definable functionality, such as a desktop, processing node, UPS, disk or tape storage, or a combination of these.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Chassis")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Chassis", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Chassis", IsNullable=false)]
public class CIM_Chassis : CIM_PhysicalFrame
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_Chassis() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_Chassis(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_Chassis(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove ChassisPackageType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveChassisPackageType()
{
RemoveField("ChassisPackageType");
}
/// <summary>
/// Is true if the field ChassisPackageType exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool ChassisPackageTypeExist
{
get
{
return ContainsField("ChassisPackageType");
}
}
/// <summary>
/// Optional, ChassisPackageType indicates the physical form factor for the type of Chassis. This property may have a value when the PackageType property contains the value 3 "Chassis Frame".
/// A value of 28 "Blade Enclosure" shall indicate the Chassis is designed to contain one or more PhysicalPackage(s) of PackageType 16 "Blade" or PackageType 17 "Blade Expansion".
/// </summary>
[CimField(false, false)]
public virtual ushort ChassisPackageType
{
get
{
return ushort.Parse(this["ChassisPackageType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ChassisPackageType",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove ChassisTypeDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveChassisTypeDescription()
{
RemoveField("ChassisTypeDescription");
}
/// <summary>
/// Is true if the field ChassisTypeDescription exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool ChassisTypeDescriptionExist
{
get
{
return ContainsField("ChassisTypeDescription");
}
}
/// <summary>
/// Optional, A string providing more information on the ChassisPackageType.
/// </summary>
[CimField(false, false)]
public virtual string ChassisTypeDescription
{
get
{
return this.GetField("ChassisTypeDescription")[0];
}
set
{
this.SetOrAddField("ChassisTypeDescription",value);
}
}
/// <summary>
/// Remove ChassisTypes field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveChassisTypes()
{
RemoveField("ChassisTypes");
}
/// <summary>
/// Is true if the field ChassisTypes exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool ChassisTypesExist
{
get
{
return ContainsField("ChassisTypes");
}
}
/// <summary>
/// Optional, The use of this property is deprecated in lieu of ChassisPackageType. A physical package should not have multiple form factors. Therefore, this property is being deprecated in lieu of a single value property.
/// An enumerated, integer-valued array indicating the type of Chassis.
/// </summary>
[CimField(false, false)]
public virtual ushort[] ChassisTypes
{
get
{
return CimTypesUtils.StringArrayToArray<ushort>(this["ChassisTypes"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
this.SetOrAddField("ChassisTypes", arr);
}
}
/// <summary>
/// Remove CurrentRequiredOrProduced field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveCurrentRequiredOrProduced()
{
RemoveField("CurrentRequiredOrProduced");
}
/// <summary>
/// Is true if the field CurrentRequiredOrProduced exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool CurrentRequiredOrProducedExist
{
get
{
return ContainsField("CurrentRequiredOrProduced");
}
}
/// <summary>
/// Optional, Current required by the Chassis at 120V. If power is provided by the Chassis (as in the case of a UPS), this property may indicate the amperage produced, as a negative number.
/// </summary>
[CimField(false, false)]
public virtual short CurrentRequiredOrProduced
{
get
{
return short.Parse(this["CurrentRequiredOrProduced"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("CurrentRequiredOrProduced",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove HeatGeneration field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveHeatGeneration()
{
RemoveField("HeatGeneration");
}
/// <summary>
/// Is true if the field HeatGeneration exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool HeatGenerationExist
{
get
{
return ContainsField("HeatGeneration");
}
}
/// <summary>
/// Optional, Amount of heat generated by the Chassis in BTU/hour.
/// </summary>
[CimField(false, false)]
public virtual ushort HeatGeneration
{
get
{
return ushort.Parse(this["HeatGeneration"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("HeatGeneration",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove MultipleSystemSupport field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveMultipleSystemSupport()
{
RemoveField("MultipleSystemSupport");
}
/// <summary>
/// Is true if the field MultipleSystemSupport exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool MultipleSystemSupportExist
{
get
{
return ContainsField("MultipleSystemSupport");
}
}
/// <summary>
/// Optional, MultipleSystemSupport indicates whether or not this chassis supports multiple systems, for example server blades.
/// </summary>
[CimField(false, false)]
public virtual ushort MultipleSystemSupport
{
get
{
return ushort.Parse(this["MultipleSystemSupport"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MultipleSystemSupport",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove NumberOfPowerCords field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveNumberOfPowerCords()
{
RemoveField("NumberOfPowerCords");
}
/// <summary>
/// Is true if the field NumberOfPowerCords exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool NumberOfPowerCordsExist
{
get
{
return ContainsField("NumberOfPowerCords");
}
}
/// <summary>
/// Optional, Integer indicating the number of power cords which must be connected to the Chassis, for all the componentry to operate.
/// </summary>
[CimField(false, false)]
public virtual ushort NumberOfPowerCords
{
get
{
return ushort.Parse(this["NumberOfPowerCords"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("NumberOfPowerCords",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove RackMountable field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveRackMountable()
{
RemoveField("RackMountable");
}
/// <summary>
/// Is true if the field RackMountable exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool RackMountableExist
{
get
{
return ContainsField("RackMountable");
}
}
/// <summary>
/// Optional, RackMountable indicates whether or not the chassis is Rack Mountable.
/// </summary>
[CimField(false, false)]
public virtual ushort RackMountable
{
get
{
return ushort.Parse(this["RackMountable"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("RackMountable",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove TypeDescriptions field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveTypeDescriptions()
{
RemoveField("TypeDescriptions");
}
/// <summary>
/// Is true if the field TypeDescriptions exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool TypeDescriptionsExist
{
get
{
return ContainsField("TypeDescriptions");
}
}
/// <summary>
/// Optional, The use of this property is deprecated in lieu of a single value property, ChassisTypeDescription.
/// An array of free-form strings providing more information on the ChassisTypes array entries. Note, each entry of this array is related to the entry in ChassisTypes that is located at the same index.
/// </summary>
[CimField(false, false)]
public virtual string[] TypeDescriptions
{
get
{
return CimTypesUtils.StringArrayToArray<string>(this["TypeDescriptions"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
this.SetOrAddField("TypeDescriptions", arr);
}
}
/// <summary>
/// Enumerate instances of CIM_Chassis 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_Chassis objects</returns>
public static new Collection<CIM_Chassis> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_Chassis> ret = CimBase.Enumerate<CIM_Chassis>(client, cimKeys);
return new Collection<CIM_Chassis>(ret);
}
/// <summary>
/// Enumerate instances of CIM_Chassis class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_Chassis objects</returns>
public static new Collection<CIM_Chassis> Enumerate(IWSManClient client)
{
List<CIM_Chassis> ret = CimBase.Enumerate<CIM_Chassis>(client);
return new Collection<CIM_Chassis>(ret);
}
/// <summary>
/// Delete the instance of CIM_Chassis 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_Chassis>(client);
}
/// <summary>
/// Represents the keys of the CIM_Chassis class.
/// </summary>
public new class CimKeys : CIM_PhysicalFrame.CimKeys
{
}
}
}