//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_PhysicalComponent.cs // // Contents: The PhysicalComponent class represents any low-level or basic Component within a Package. A Component object either can not or does not need to be decomposed into its constituent parts. For example, an ASIC (or Chip) can not be further decomposed. A tape for data storage (PhysicalMedia) does not need to be decomposed. Any PhysicalElement that is not a Link, Connector, or Package is a descendent (or member) of this class. For example, the UART chipset on an internal modem Card would be a subclass (if additional properties or associations are defined) or an instance of PhysicalComponent. // This file was automatically generated from CIM_PhysicalComponent.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 PhysicalComponent class represents any low-level or basic Component within a Package. A Component object either can not or does not need to be decomposed into its constituent parts. For example, an ASIC (or Chip) can not be further decomposed. A tape for data storage (PhysicalMedia) does not need to be decomposed. Any PhysicalElement that is not a Link, Connector, or Package is a descendent (or member) of this class. For example, the UART chipset on an internal modem Card would be a subclass (if additional properties or associations are defined) or an instance of PhysicalComponent. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalComponent")] [System.Xml.Serialization.XmlRootAttribute("CIM_PhysicalComponent", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalComponent", IsNullable=false)] public class CIM_PhysicalComponent : CIM_PhysicalElement { /// /// Default constructor. /// public CIM_PhysicalComponent() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_PhysicalComponent(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_PhysicalComponent(IWSManClient client): base(client) { } /// /// Remove HotSwappable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveHotSwappable() { RemoveField("HotSwappable"); } /// /// Is true if the field HotSwappable exists in the current object, /// otherwise is false. /// public virtual bool HotSwappableExist { get { return ContainsField("HotSwappable"); } } /// /// Optional, The use of this property is being deprecated. Instead RemovalConditions should be used. The RemovalConditions property addresses whether a PhysicalComponent is removable with or without power being applied. /// /// A PhysicalComponent is HotSwappable if it is possible to replace the Element with a physically different but equivalent one while the containing Package has power applied to it (ie, is 'on'). For example, a fan Component may be designed to be HotSwappable. All HotSwappable Components are inherently Removable and Replaceable. /// [CimField(false, false)] public virtual bool HotSwappable { get { return bool.Parse(this["HotSwappable"][0]); } set { this.SetOrAddField("HotSwappable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove Removable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRemovable() { RemoveField("Removable"); } /// /// Is true if the field Removable exists in the current object, /// otherwise is false. /// public virtual bool RemovableExist { get { return ContainsField("Removable"); } } /// /// Optional, The use of this property is being deprecated. Instead RemovalConditions should be used. The RemovalConditions property addresses whether a PhysicalComponent is removable with or without power being applied. /// /// A PhysicalComponent is Removable if it is designed to be taken in and out of the physical container in which it is normally found, without impairing the function of the overall packaging. A Component can still be Removable if power must be 'off' in order to perform the removal. If power can be 'on' and the Component removed, then the Element is both Removable and HotSwappable. For example, an upgradeable Processor chip is Removable. /// [CimField(false, false)] public virtual bool Removable { get { return bool.Parse(this["Removable"][0]); } set { this.SetOrAddField("Removable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove RemovalConditions field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRemovalConditions() { RemoveField("RemovalConditions"); } /// /// Is true if the field RemovalConditions exists in the current object, /// otherwise is false. /// public virtual bool RemovalConditionsExist { get { return ContainsField("RemovalConditions"); } } /// /// Optional, The RemovalCapabilites property is used to describe the conditions under which a PhysicalPackage can be removed. Since all PhysicalPackages are not removable, this property defaults to 2, 'Not Applicable'. /// [CimField(false, false)] public virtual ushort RemovalConditions { get { return ushort.Parse(this["RemovalConditions"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RemovalConditions",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove Replaceable field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveReplaceable() { RemoveField("Replaceable"); } /// /// Is true if the field Replaceable exists in the current object, /// otherwise is false. /// public virtual bool ReplaceableExist { get { return ContainsField("Replaceable"); } } /// /// Optional, The use of this property is being deprecated because it is redundant with the FRU class and its associations. A PhysicalComponent is Replaceable if it is possible to replace (FRU or upgrade) the Element with a physically different one. For example, some ComputerSystems allow the main Processor chip to be upgraded to one of a higher clock rating. In this case, the Processor is said to be Replaceable. All Removable Components are inherently Replaceable. /// [CimField(false, false)] public virtual bool Replaceable { get { return bool.Parse(this["Replaceable"][0]); } set { this.SetOrAddField("Replaceable",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of CIM_PhysicalComponent class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_PhysicalComponent 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_PhysicalComponent class at an endpoint. /// /// WS-Management client /// Collection of CIM_PhysicalComponent objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_PhysicalComponent 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_PhysicalComponent class. /// public new class CimKeys : CIM_PhysicalElement.CimKeys { } } }