//---------------------------------------------------------------------------- // // 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 { /// ///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. /// [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 { /// /// Default constructor. /// public CIM_Chassis() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_Chassis(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_Chassis(IWSManClient client): base(client) { } /// /// Remove ChassisPackageType field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveChassisPackageType() { RemoveField("ChassisPackageType"); } /// /// Is true if the field ChassisPackageType exists in the current object, /// otherwise is false. /// public virtual bool ChassisPackageTypeExist { get { return ContainsField("ChassisPackageType"); } } /// /// 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". /// [CimField(false, false)] public virtual ushort ChassisPackageType { get { return ushort.Parse(this["ChassisPackageType"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("ChassisPackageType",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove ChassisTypeDescription field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveChassisTypeDescription() { RemoveField("ChassisTypeDescription"); } /// /// Is true if the field ChassisTypeDescription exists in the current object, /// otherwise is false. /// public virtual bool ChassisTypeDescriptionExist { get { return ContainsField("ChassisTypeDescription"); } } /// /// Optional, A string providing more information on the ChassisPackageType. /// [CimField(false, false)] public virtual string ChassisTypeDescription { get { return this.GetField("ChassisTypeDescription")[0]; } set { this.SetOrAddField("ChassisTypeDescription",value); } } /// /// Remove ChassisTypes field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveChassisTypes() { RemoveField("ChassisTypes"); } /// /// Is true if the field ChassisTypes exists in the current object, /// otherwise is false. /// public virtual bool ChassisTypesExist { get { return ContainsField("ChassisTypes"); } } /// /// 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. /// [CimField(false, false)] public virtual ushort[] ChassisTypes { get { return CimTypesUtils.StringArrayToArray(this["ChassisTypes"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("ChassisTypes", arr); } } /// /// Remove CurrentRequiredOrProduced field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCurrentRequiredOrProduced() { RemoveField("CurrentRequiredOrProduced"); } /// /// Is true if the field CurrentRequiredOrProduced exists in the current object, /// otherwise is false. /// public virtual bool CurrentRequiredOrProducedExist { get { return ContainsField("CurrentRequiredOrProduced"); } } /// /// 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. /// [CimField(false, false)] public virtual short CurrentRequiredOrProduced { get { return short.Parse(this["CurrentRequiredOrProduced"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("CurrentRequiredOrProduced",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove HeatGeneration field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveHeatGeneration() { RemoveField("HeatGeneration"); } /// /// Is true if the field HeatGeneration exists in the current object, /// otherwise is false. /// public virtual bool HeatGenerationExist { get { return ContainsField("HeatGeneration"); } } /// /// Optional, Amount of heat generated by the Chassis in BTU/hour. /// [CimField(false, false)] public virtual ushort HeatGeneration { get { return ushort.Parse(this["HeatGeneration"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("HeatGeneration",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove MultipleSystemSupport field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveMultipleSystemSupport() { RemoveField("MultipleSystemSupport"); } /// /// Is true if the field MultipleSystemSupport exists in the current object, /// otherwise is false. /// public virtual bool MultipleSystemSupportExist { get { return ContainsField("MultipleSystemSupport"); } } /// /// Optional, MultipleSystemSupport indicates whether or not this chassis supports multiple systems, for example server blades. /// [CimField(false, false)] public virtual ushort MultipleSystemSupport { get { return ushort.Parse(this["MultipleSystemSupport"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("MultipleSystemSupport",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove NumberOfPowerCords field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveNumberOfPowerCords() { RemoveField("NumberOfPowerCords"); } /// /// Is true if the field NumberOfPowerCords exists in the current object, /// otherwise is false. /// public virtual bool NumberOfPowerCordsExist { get { return ContainsField("NumberOfPowerCords"); } } /// /// Optional, Integer indicating the number of power cords which must be connected to the Chassis, for all the componentry to operate. /// [CimField(false, false)] public virtual ushort NumberOfPowerCords { get { return ushort.Parse(this["NumberOfPowerCords"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("NumberOfPowerCords",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RackMountable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRackMountable() { RemoveField("RackMountable"); } /// /// Is true if the field RackMountable exists in the current object, /// otherwise is false. /// public virtual bool RackMountableExist { get { return ContainsField("RackMountable"); } } /// /// Optional, RackMountable indicates whether or not the chassis is Rack Mountable. /// [CimField(false, false)] public virtual ushort RackMountable { get { return ushort.Parse(this["RackMountable"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RackMountable",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove TypeDescriptions field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveTypeDescriptions() { RemoveField("TypeDescriptions"); } /// /// Is true if the field TypeDescriptions exists in the current object, /// otherwise is false. /// public virtual bool TypeDescriptionsExist { get { return ContainsField("TypeDescriptions"); } } /// /// 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. /// [CimField(false, false)] public virtual string[] TypeDescriptions { get { return CimTypesUtils.StringArrayToArray(this["TypeDescriptions"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("TypeDescriptions", arr); } } /// /// Enumerate instances of CIM_Chassis class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_Chassis 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_Chassis class at an endpoint. /// /// WS-Management client /// Collection of CIM_Chassis objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_Chassis 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_Chassis class. /// public new class CimKeys : CIM_PhysicalFrame.CimKeys { } } }