173 lines
6.3 KiB
C#
173 lines
6.3 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///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.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_DeviceSAPImplementation() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_DeviceSAPImplementation(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public CIM_DeviceSAPImplementation(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The LogicalDevice.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The ServiceAccessPoint implemented using the LogicalDevice.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_DeviceSAPImplementation class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_DeviceSAPImplementation objects</returns>
|
|
public static new Collection<CIM_DeviceSAPImplementation> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_DeviceSAPImplementation> ret = CimBase.Enumerate<CIM_DeviceSAPImplementation>(client, cimKeys);
|
|
return new Collection<CIM_DeviceSAPImplementation>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_DeviceSAPImplementation class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_DeviceSAPImplementation objects</returns>
|
|
public static new Collection<CIM_DeviceSAPImplementation> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_DeviceSAPImplementation> ret = CimBase.Enumerate<CIM_DeviceSAPImplementation>(client);
|
|
return new Collection<CIM_DeviceSAPImplementation>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_DeviceSAPImplementation if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_DeviceSAPImplementation>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_DeviceSAPImplementation class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Dependency.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Required, The LogicalDevice.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, The ServiceAccessPoint implemented using the LogicalDevice.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|