//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_ProvidesServiceToElement.cs
//
// Contents: Note: The use of the CIM_ProvidesServiceToElement class has been deprecated. Instead, ServiceAvailableToElement conveys the semantics of use, while the subclasses of ProvidesServiceToElement (or the ConcreteDependency association) describe dependency relationships. CIM_ProvidesServiceToElement was meant to generalize the ServiceServiceDependency association. This method indicates that ManagedElements can use the functionality provided by one or more Services. An example of the association 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 the service might be restricted or have limited availability or applicability, the CIM_ServiceAvailableToElement association would be instantiated.
// This file was automatically generated from CIM_ProvidesServiceToElement.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
{
///
///Note: The use of the CIM_ProvidesServiceToElement class has been deprecated. Instead, ServiceAvailableToElement conveys the semantics of use, while the subclasses of ProvidesServiceToElement (or the ConcreteDependency association) describe dependency relationships. CIM_ProvidesServiceToElement was meant to generalize the ServiceServiceDependency association. This method indicates that ManagedElements can use the functionality provided by one or more Services. An example of the association 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 the service might be restricted or have limited availability or applicability, the CIM_ServiceAvailableToElement association would be instantiated.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ProvidesServiceToElement")]
[System.Xml.Serialization.XmlRootAttribute("CIM_ProvidesServiceToElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ProvidesServiceToElement", IsNullable=false)]
public class CIM_ProvidesServiceToElement : CIM_Dependency
{
///
/// Default constructor.
///
public CIM_ProvidesServiceToElement() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_ProvidesServiceToElement(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_ProvidesServiceToElement(IWSManClient client): base(client)
{
}
///
/// Required, Note: The use of this element is deprecated. Deprecated description: The Service provided.
///
[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, Note: The use of this element is deprecated. Deprecated description: The ManagedElement that is dependent on the Service.
///
[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_ProvidesServiceToElement class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_ProvidesServiceToElement 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_ProvidesServiceToElement class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_ProvidesServiceToElement objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_ProvidesServiceToElement 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_ProvidesServiceToElement class.
///
public new class CimKeys : CIM_Dependency.CimKeys
{
///
/// Required, Note: The use of this element is deprecated. Deprecated description: The Service provided.
///
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_ProvidesServiceToElement", innerXML);
return epr;
}
set
{
SetOrAddKey("Antecedent", value);
}
}
///
/// Required, Note: The use of this element is deprecated. Deprecated description: The ManagedElement that is dependent on the Service.
///
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_ProvidesServiceToElement", innerXML);
return epr;
}
set
{
SetOrAddKey("Dependent", value);
}
}
}
}
}