//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_ServiceAvailableToElement.cs // // Contents: CIM_ServiceAvailableToElement conveys the semantics of a Service that is available for the use of a ManagedElement. An example of an available Service is that a Processor and an enclosure (a PhysicalElement) can use AlertOnLAN Services to signal an incomplete or erroneous boot. In reality, AlertOnLAN is simply a HostedService on a computer system that is generally available for use and is not a dependency of the processor or enclosure. To describe that the use of this service might be restricted or have limited availability or applicability, the CIM_ServiceAvailableToElement association would be instantiated between the Service and specific CIM_Processors and CIM_Chassis. // This file was automatically generated from CIM_ServiceAvailableToElement.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_ServiceAvailableToElement conveys the semantics of a Service that is available for the use of a ManagedElement. An example of an available Service is that a Processor and an enclosure (a PhysicalElement) can use AlertOnLAN Services to signal an incomplete or erroneous boot. In reality, AlertOnLAN is simply a HostedService on a computer system that is generally available for use and is not a dependency of the processor or enclosure. To describe that the use of this service might be restricted or have limited availability or applicability, the CIM_ServiceAvailableToElement association would be instantiated between the Service and specific CIM_Processors and CIM_Chassis. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement")] [System.Xml.Serialization.XmlRootAttribute("CIM_ServiceAvailableToElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement", IsNullable=false)] public class CIM_ServiceAvailableToElement : CimBase { /// /// Default constructor. /// public CIM_ServiceAvailableToElement() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_ServiceAvailableToElement(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_ServiceAvailableToElement(IWSManClient client): base(client) { } /// /// Key, Required, The Service that is available. /// [CimField(true, false)] public virtual CimReference ServiceProvided { get { string innerXML = this.GetField("ServiceProvided")[0]; CimReference epr = new CimReference("ServiceProvided", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("ServiceProvided",value.Serialize(false)); } } /// /// Key, Required, The ManagedElement that can use the Service. /// [CimField(true, false)] public virtual CimReference UserOfService { get { string innerXML = this.GetField("UserOfService")[0]; CimReference epr = new CimReference("UserOfService", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("UserOfService",value.Serialize(false)); } } /// /// Enumerate instances of CIM_ServiceAvailableToElement class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_ServiceAvailableToElement objects public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_ServiceAvailableToElement class at an endpoint. /// /// WS-Management client /// Collection of CIM_ServiceAvailableToElement objects public static Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_ServiceAvailableToElement 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_ServiceAvailableToElement class. /// public new class CimKeys : CimBase.CimKeys { /// /// Key, Required, The Service that is available. /// public virtual CimReference ServiceProvided { get { string innerXML = GetKey("ServiceProvided"); CimReference epr = new CimReference("ServiceProvided", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement", innerXML); return epr; } set { SetOrAddKey("ServiceProvided", value); } } /// /// Key, Required, The ManagedElement that can use the Service. /// public virtual CimReference UserOfService { get { string innerXML = GetKey("UserOfService"); CimReference epr = new CimReference("UserOfService", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAvailableToElement", innerXML); return epr; } set { SetOrAddKey("UserOfService", value); } } } } }