//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_System.cs // // Contents: CIM_System represents an entity made up of component parts (defined by the SystemComponent relationship), that operates as a 'functional whole'. Systems are top-level objects in the CIM hierarchy, requiring no scoping or weak relationships in order to exist and have context. It should be reasonable to uniquely name and manage a System at an enterprise level. For example, a ComputerSystem is a kind of System that can be uniquely named and independently managed in an enterprise. However, these qualities are not true for the power supply (or the power supply sub-'system') within the computer. // // Although a System can be viewed as a Collection, this view is not the correct model. A Collection is simply a 'bag' that 'holds' its members. A System is a higher-level abstraction, built out of its individual components. It is more than the sum of its parts. Note that System is a subclass of EnabledLogicalElement which allows the entire abstraction to be functionally enabled or disabled at a higher level than enabling or disabling its component parts. // This file was automatically generated from CIM_System.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 { /// ///CIM_System represents an entity made up of component parts (defined by the SystemComponent relationship), that operates as a 'functional whole'. Systems are top-level objects in the CIM hierarchy, requiring no scoping or weak relationships in order to exist and have context. It should be reasonable to uniquely name and manage a System at an enterprise level. For example, a ComputerSystem is a kind of System that can be uniquely named and independently managed in an enterprise. However, these qualities are not true for the power supply (or the power supply sub-'system') within the computer. ///Although a System can be viewed as a Collection, this view is not the correct model. A Collection is simply a 'bag' that 'holds' its members. A System is a higher-level abstraction, built out of its individual components. It is more than the sum of its parts. Note that System is a subclass of EnabledLogicalElement which allows the entire abstraction to be functionally enabled or disabled at a higher level than enabling or disabling its component parts. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_System")] [System.Xml.Serialization.XmlRootAttribute("CIM_System", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_System", IsNullable=false)] public class CIM_System : CIM_EnabledLogicalElement { /// /// Default constructor. /// public CIM_System() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_System(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_System(IWSManClient client): base(client) { } /// /// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified. /// [CimField(true, true)] public virtual string CreationClassName { get { return this.GetField("CreationClassName")[0]; } set { this.SetOrAddField("CreationClassName",value); } } /// /// Remove IdentifyingDescriptions field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveIdentifyingDescriptions() { RemoveField("IdentifyingDescriptions"); } /// /// Is true if the field IdentifyingDescriptions exists in the current object, /// otherwise is false. /// public virtual bool IdentifyingDescriptionsExist { get { return ContainsField("IdentifyingDescriptions"); } } /// /// Optional, An array of free-form strings providing explanations and details behind the entries in the OtherIdentifying Info array. Note, each entry of this array is related to the entry in OtherIdentifyingInfo that is located at the same index. /// [CimField(false, false)] public virtual string[] IdentifyingDescriptions { get { return CimTypesUtils.StringArrayToArray(this["IdentifyingDescriptions"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("IdentifyingDescriptions", arr); } } /// /// Key, Required, The inherited Name serves as the key of a System instance in an enterprise environment. /// [CimField(true, true)] public override string Name { get { return this.GetField("Name")[0]; } set { this.SetOrAddField("Name",value); } } /// /// Remove NameFormat field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveNameFormat() { RemoveField("NameFormat"); } /// /// Is true if the field NameFormat exists in the current object, /// otherwise is false. /// public virtual bool NameFormatExist { get { return ContainsField("NameFormat"); } } /// /// Optional, The System object and its derivatives are top-level objects of CIM. They provide the scope for numerous components. Having unique System keys is required. A heuristic can be defined in individual System subclasses to attempt to always generate the same System Name Key. The NameFormat property identifies how the System name was generated, using the heuristic of the subclass. /// [CimField(false, false)] public virtual string NameFormat { get { return this.GetField("NameFormat")[0]; } set { this.SetOrAddField("NameFormat",value); } } /// /// Remove OtherIdentifyingInfo field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOtherIdentifyingInfo() { RemoveField("OtherIdentifyingInfo"); } /// /// Is true if the field OtherIdentifyingInfo exists in the current object, /// otherwise is false. /// public virtual bool OtherIdentifyingInfoExist { get { return ContainsField("OtherIdentifyingInfo"); } } /// /// Optional, OtherIdentifyingInfo captures additional data, beyond System Name information, that could be used to identify a ComputerSystem. One example would be to hold the Fibre Channel World-Wide Name (WWN) of a node. Note that if only the Fibre Channel name is available and is unique (able to be used as the System key), then this property would be NULL and the WWN would become the System key, its data placed in the Name property. /// [CimField(false, false)] public virtual string[] OtherIdentifyingInfo { get { return CimTypesUtils.StringArrayToArray(this["OtherIdentifyingInfo"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("OtherIdentifyingInfo", arr); } } /// /// Remove PrimaryOwnerContact field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemovePrimaryOwnerContact() { RemoveField("PrimaryOwnerContact"); } /// /// Is true if the field PrimaryOwnerContact exists in the current object, /// otherwise is false. /// public virtual bool PrimaryOwnerContactExist { get { return ContainsField("PrimaryOwnerContact"); } } /// /// Optional, A string that provides information on how the primary system owner can be reached (for example, phone number, e-mail address, and so on). /// [CimField(false, false)] public virtual string PrimaryOwnerContact { get { return this.GetField("PrimaryOwnerContact")[0]; } set { this.SetOrAddField("PrimaryOwnerContact",value); } } /// /// Remove PrimaryOwnerName field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemovePrimaryOwnerName() { RemoveField("PrimaryOwnerName"); } /// /// Is true if the field PrimaryOwnerName exists in the current object, /// otherwise is false. /// public virtual bool PrimaryOwnerNameExist { get { return ContainsField("PrimaryOwnerName"); } } /// /// Optional, The name of the primary system owner. The system owner is the primary user of the system. /// [CimField(false, false)] public virtual string PrimaryOwnerName { get { return this.GetField("PrimaryOwnerName")[0]; } set { this.SetOrAddField("PrimaryOwnerName",value); } } /// /// Remove Roles field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRoles() { RemoveField("Roles"); } /// /// Is true if the field Roles exists in the current object, /// otherwise is false. /// public virtual bool RolesExist { get { return ContainsField("Roles"); } } /// /// Optional, An array (bag) of strings that specifies the administrator -defined roles this System plays in the managed environment. Examples might be 'Building 8 print server' or 'Boise user directories'. A single system may perform multiple roles. /// Note that the instrumentation view of the 'roles' of a System is defined by instantiating a specific subclass of System, or by properties in a subclass, or both. For example, the purpose of a ComputerSystem is defined using the Dedicated and OtherDedicatedDescription properties. /// [CimField(false, false)] public virtual string[] Roles { get { return CimTypesUtils.StringArrayToArray(this["Roles"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("Roles", arr); } } /// /// Enumerate instances of CIM_System class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_System 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_System class at an endpoint. /// /// WS-Management client /// Collection of CIM_System objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_System 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_System class. /// public new class CimKeys : CIM_EnabledLogicalElement.CimKeys { /// /// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified. /// public virtual string CreationClassName { get { return GetKey("CreationClassName"); } set { SetOrAddKey("CreationClassName", value); } } /// /// Key, Required, The inherited Name serves as the key of a System instance in an enterprise environment. /// public virtual string Name { get { return GetKey("Name"); } set { SetOrAddKey("Name", value); } } } } }