173 lines
5.9 KiB
C#
173 lines
5.9 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_SAPAvailableForElement.cs
|
|
//
|
|
// Contents: CIM_SAPAvailableForElement conveys the semantics of a Service Access Point that is available for a ManagedElement. When CIM_SAPAvailableForElement is not instantiated, then the SAP is assumed to be generally available. If instantiated, the SAP is available only for the associated ManagedElements. For example, a device might provide management access through a URL. This association allows the URL to be advertised for the device.
|
|
// This file was automatically generated from CIM_SAPAvailableForElement.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>
|
|
///CIM_SAPAvailableForElement conveys the semantics of a Service Access Point that is available for a ManagedElement. When CIM_SAPAvailableForElement is not instantiated, then the SAP is assumed to be generally available. If instantiated, the SAP is available only for the associated ManagedElements. For example, a device might provide management access through a URL. This association allows the URL to be advertised for the device.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_SAPAvailableForElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement", IsNullable=false)]
|
|
public class CIM_SAPAvailableForElement : CimBase
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_SAPAvailableForElement() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_SAPAvailableForElement(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_SAPAvailableForElement(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The Service Access Point that is available.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public virtual CimReference AvailableSAP
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("AvailableSAP")[0];
|
|
CimReference epr = new CimReference("AvailableSAP", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AvailableSAP",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement for which the SAP is available.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public virtual CimReference ManagedElement
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("ManagedElement")[0];
|
|
CimReference epr = new CimReference("ManagedElement", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ManagedElement",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_SAPAvailableForElement 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_SAPAvailableForElement objects</returns>
|
|
public static Collection<CIM_SAPAvailableForElement> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_SAPAvailableForElement> ret = CimBase.Enumerate<CIM_SAPAvailableForElement>(client, cimKeys);
|
|
return new Collection<CIM_SAPAvailableForElement>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_SAPAvailableForElement class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_SAPAvailableForElement objects</returns>
|
|
public static Collection<CIM_SAPAvailableForElement> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_SAPAvailableForElement> ret = CimBase.Enumerate<CIM_SAPAvailableForElement>(client);
|
|
return new Collection<CIM_SAPAvailableForElement>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_SAPAvailableForElement 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 void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_SAPAvailableForElement>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_SAPAvailableForElement class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CimBase.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, The Service Access Point that is available.
|
|
/// </summary>
|
|
|
|
public virtual CimReference AvailableSAP
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("AvailableSAP");
|
|
CimReference epr = new CimReference("AvailableSAP", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("AvailableSAP", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement for which the SAP is available.
|
|
/// </summary>
|
|
|
|
public virtual CimReference ManagedElement
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("ManagedElement");
|
|
CimReference epr = new CimReference("ManagedElement", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("ManagedElement", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|