//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_DeviceSAPImplementation.cs // // Contents: An association between a ServiceAccessPoint (SAP) and how it is implemented. The cardinality of this association is many-to-many. A SAP can be provided by more than one LogicalDevice, operating in conjunction. And, any Device can provide more than one ServiceAccessPoint. When many LogicalDevices are associated with a single SAP, it is assumed that these elements operate in conjunction to provide the AccessPoint. If different implementations of a SAP exist, each of these implementations would result in individual instantiations of the ServiceAccessPoint object. These individual instantiations would then have associations to the unique implementations. // This file was automatically generated from CIM_DeviceSAPImplementation.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 { /// ///An association between a ServiceAccessPoint (SAP) and how it is implemented. The cardinality of this association is many-to-many. A SAP can be provided by more than one LogicalDevice, operating in conjunction. And, any Device can provide more than one ServiceAccessPoint. When many LogicalDevices are associated with a single SAP, it is assumed that these elements operate in conjunction to provide the AccessPoint. If different implementations of a SAP exist, each of these implementations would result in individual instantiations of the ServiceAccessPoint object. These individual instantiations would then have associations to the unique implementations. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_DeviceSAPImplementation")] [System.Xml.Serialization.XmlRootAttribute("CIM_DeviceSAPImplementation", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_DeviceSAPImplementation", IsNullable=false)] public class CIM_DeviceSAPImplementation : CIM_Dependency { /// /// Default constructor. /// public CIM_DeviceSAPImplementation() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_DeviceSAPImplementation(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_DeviceSAPImplementation(IWSManClient client): base(client) { } /// /// Required, The LogicalDevice. /// [CimField(true, false)] public override CimReference Antecedent { get { string innerXML = this.GetField("Antecedent")[0]; CimReference epr = new CimReference("Antecedent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Antecedent",value.Serialize(false)); } } /// /// Required, The ServiceAccessPoint implemented using the LogicalDevice. /// [CimField(true, false)] public override CimReference Dependent { get { string innerXML = this.GetField("Dependent")[0]; CimReference epr = new CimReference("Dependent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Dependent",value.Serialize(false)); } } /// /// Enumerate instances of CIM_DeviceSAPImplementation class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_DeviceSAPImplementation 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_DeviceSAPImplementation class at an endpoint. /// /// WS-Management client /// Collection of CIM_DeviceSAPImplementation objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_DeviceSAPImplementation 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_DeviceSAPImplementation class. /// public new class CimKeys : CIM_Dependency.CimKeys { /// /// Required, The LogicalDevice. /// public virtual CimReference Antecedent { get { string innerXML = GetKey("Antecedent"); CimReference epr = new CimReference("Antecedent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_DeviceSAPImplementation", innerXML); return epr; } set { SetOrAddKey("Antecedent", value); } } /// /// Required, The ServiceAccessPoint implemented using the LogicalDevice. /// public virtual CimReference Dependent { get { string innerXML = GetKey("Dependent"); CimReference epr = new CimReference("Dependent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_DeviceSAPImplementation", innerXML); return epr; } set { SetOrAddKey("Dependent", value); } } } } }