//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_SoftwareFeatureSoftwareElements.cs // // Contents: SoftwareFeatureSoftwareElements identifies the Software Elements that make up a particular SoftwareFeature. // This file was automatically generated from CIM_SoftwareFeatureSoftwareElements.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 { /// ///SoftwareFeatureSoftwareElements identifies the Software Elements that make up a particular SoftwareFeature. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareFeatureSoftwareElements")] [System.Xml.Serialization.XmlRootAttribute("CIM_SoftwareFeatureSoftwareElements", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareFeatureSoftwareElements", IsNullable=false)] public class CIM_SoftwareFeatureSoftwareElements : CIM_Component { /// /// Default constructor. /// public CIM_SoftwareFeatureSoftwareElements() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_SoftwareFeatureSoftwareElements(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_SoftwareFeatureSoftwareElements(IWSManClient client): base(client) { } /// /// Required, The SoftwareFeature that groups the SoftwareElement. /// [CimField(true, false)] public override CimReference GroupComponent { get { string innerXML = this.GetField("GroupComponent")[0]; CimReference epr = new CimReference("GroupComponent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("GroupComponent",value.Serialize(false)); } } /// /// Required, The SoftwareElement that makes up the Feature. /// [CimField(true, false)] public override CimReference PartComponent { get { string innerXML = this.GetField("PartComponent")[0]; CimReference epr = new CimReference("PartComponent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("PartComponent",value.Serialize(false)); } } /// /// Enumerate instances of CIM_SoftwareFeatureSoftwareElements class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_SoftwareFeatureSoftwareElements 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_SoftwareFeatureSoftwareElements class at an endpoint. /// /// WS-Management client /// Collection of CIM_SoftwareFeatureSoftwareElements objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_SoftwareFeatureSoftwareElements 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_SoftwareFeatureSoftwareElements class. /// public new class CimKeys : CIM_Component.CimKeys { /// /// Required, The SoftwareFeature that groups the SoftwareElement. /// public virtual CimReference GroupComponent { get { string innerXML = GetKey("GroupComponent"); CimReference epr = new CimReference("GroupComponent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareFeatureSoftwareElements", innerXML); return epr; } set { SetOrAddKey("GroupComponent", value); } } /// /// Required, The SoftwareElement that makes up the Feature. /// public virtual CimReference PartComponent { get { string innerXML = GetKey("PartComponent"); CimReference epr = new CimReference("PartComponent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareFeatureSoftwareElements", innerXML); return epr; } set { SetOrAddKey("PartComponent", value); } } } } }