//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_InstalledSoftwareIdentity.cs // // Contents: The InstalledSoftwareIdentity association identifies the System on which a SoftwareIdentity is installed. This class is a corollary to InstalledSoftwareElement, but deals with the asset aspects of software (as indicated by SoftwareIdentity), versus the deployment aspects (as indicated by SoftwareElement). // This file was automatically generated from CIM_InstalledSoftwareIdentity.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 InstalledSoftwareIdentity association identifies the System on which a SoftwareIdentity is installed. This class is a corollary to InstalledSoftwareElement, but deals with the asset aspects of software (as indicated by SoftwareIdentity), versus the deployment aspects (as indicated by SoftwareElement). /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_InstalledSoftwareIdentity")] [System.Xml.Serialization.XmlRootAttribute("CIM_InstalledSoftwareIdentity", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_InstalledSoftwareIdentity", IsNullable=false)] public class CIM_InstalledSoftwareIdentity : CimBase { /// /// Default constructor. /// public CIM_InstalledSoftwareIdentity() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_InstalledSoftwareIdentity(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_InstalledSoftwareIdentity(IWSManClient client): base(client) { } /// /// Key, Required, The SoftwareIdentity that is installed. /// [CimField(true, false)] public virtual CimReference InstalledSoftware { get { string innerXML = this.GetField("InstalledSoftware")[0]; CimReference epr = new CimReference("InstalledSoftware", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("InstalledSoftware",value.Serialize(false)); } } /// /// Key, Required, The system on which the software is installed. /// [CimField(true, false)] public virtual CimReference System { get { string innerXML = this.GetField("System")[0]; CimReference epr = new CimReference("System", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("System",value.Serialize(false)); } } /// /// Enumerate instances of CIM_InstalledSoftwareIdentity class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_InstalledSoftwareIdentity objects public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_InstalledSoftwareIdentity class at an endpoint. /// /// WS-Management client /// Collection of CIM_InstalledSoftwareIdentity objects public static Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_InstalledSoftwareIdentity 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_InstalledSoftwareIdentity class. /// public new class CimKeys : CimBase.CimKeys { /// /// Key, Required, The SoftwareIdentity that is installed. /// public virtual CimReference InstalledSoftware { get { string innerXML = GetKey("InstalledSoftware"); CimReference epr = new CimReference("InstalledSoftware", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_InstalledSoftwareIdentity", innerXML); return epr; } set { SetOrAddKey("InstalledSoftware", value); } } /// /// Key, Required, The system on which the software is installed. /// public virtual CimReference System { get { string innerXML = GetKey("System"); CimReference epr = new CimReference("System", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_InstalledSoftwareIdentity", innerXML); return epr; } set { SetOrAddKey("System", value); } } } } }