//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_ManagedElement.cs // // Contents: ManagedElement is an abstract class that provides a common superclass (or top of the inheritance tree) for the non-association classes in the CIM Schema. // This file was automatically generated from CIM_ManagedElement.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 { /// ///ManagedElement is an abstract class that provides a common superclass (or top of the inheritance tree) for the non-association classes in the CIM Schema. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedElement")] [System.Xml.Serialization.XmlRootAttribute("CIM_ManagedElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedElement", IsNullable=false)] public class CIM_ManagedElement : CimBase { /// /// Default constructor. /// public CIM_ManagedElement() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_ManagedElement(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_ManagedElement(IWSManClient client): base(client) { } /// /// Remove Caption field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCaption() { RemoveField("Caption"); } /// /// Is true if the field Caption exists in the current object, /// otherwise is false. /// public virtual bool CaptionExist { get { return ContainsField("Caption"); } } /// /// Optional, The Caption property is a short textual description (one- line string) of the object. /// [CimField(false, false)] public virtual string Caption { get { return this.GetField("Caption")[0]; } set { this.SetOrAddField("Caption",value); } } /// /// Remove Description field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveDescription() { RemoveField("Description"); } /// /// Is true if the field Description exists in the current object, /// otherwise is false. /// public virtual bool DescriptionExist { get { return ContainsField("Description"); } } /// /// Optional, The Description property provides a textual description of the object. /// [CimField(false, false)] public virtual string Description { get { return this.GetField("Description")[0]; } set { this.SetOrAddField("Description",value); } } /// /// Remove ElementName field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveElementName() { RemoveField("ElementName"); } /// /// Is true if the field ElementName exists in the current object, /// otherwise is false. /// public virtual bool ElementNameExist { get { return ContainsField("ElementName"); } } /// /// Optional, A user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information. /// Note that the Name property of ManagedSystemElement is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user-friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information can be present in both the Name and ElementName properties. Note that if there is an associated instance of CIM_EnabledLogicalElementCapabilities, restrictions on this properties may exist as defined in ElementNameMask and MaxElementNameLen properties defined in that class. /// [CimField(false, false)] public virtual string ElementName { get { return this.GetField("ElementName")[0]; } set { this.SetOrAddField("ElementName",value); } } /// /// Remove InstanceID field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveInstanceID() { RemoveField("InstanceID"); } /// /// Is true if the field InstanceID exists in the current object, /// otherwise is false. /// public virtual bool InstanceIDExist { get { return ContainsField("InstanceID"); } } /// /// Optional, InstanceID is an optional property that may be used to opaquely and uniquely identify an instance of this class within the scope of the instantiating Namespace. Various subclasses of this class may override this property to make it required, or a key. Such subclasses may also modify the preferred algorithms for ensuring uniqueness that are defined below. /// To ensure uniqueness within the NameSpace, the value of InstanceID should be constructed using the following "preferred" algorithm: /// <OrgID>:<LocalID> /// Where <OrgID> and <LocalID> are separated by a colon (:), and where <OrgID> must include a copyrighted, trademarked, or otherwise unique name that is owned by the business entity that is creating or defining the InstanceID or that is a registered ID assigned to the business entity by a recognized global authority. (This requirement is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness, <OrgID> must not contain a colon (:). When using this algorithm, the first colon to appear in InstanceID must appear between <OrgID> and <LocalID>. /// <LocalID> is chosen by the business entity and should not be reused to identify different underlying (real-world) elements. If not null and the above "preferred" algorithm is not used, the defining entity must assure that the resulting InstanceID is not reused across any InstanceIDs produced by this or other providers for the NameSpace of this instance. /// If not set to null for DMTF-defined instances, the "preferred" algorithm must be used with the <OrgID> set to CIM. /// [CimField(false, false)] public virtual string InstanceID { get { return this.GetField("InstanceID")[0]; } set { this.SetOrAddField("InstanceID",value); } } /// /// Enumerate instances of CIM_ManagedElement class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_ManagedElement objects public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_ManagedElement class at an endpoint. /// /// WS-Management client /// Collection of CIM_ManagedElement objects public static Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_ManagedElement if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the CIM_ManagedElement class. /// public new class CimKeys : CimBase.CimKeys { } } }