//----------------------------------------------------------------------------
//
// 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
{
///
///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.
///
[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
{
///
/// Default constructor.
///
public CIM_SAPAvailableForElement() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_SAPAvailableForElement(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_SAPAvailableForElement(IWSManClient client): base(client)
{
}
///
/// Key, Required, The Service Access Point that is available.
///
[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));
}
}
///
/// Key, Required, The ManagedElement for which the SAP is available.
///
[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));
}
}
///
/// Enumerate instances of CIM_SAPAvailableForElement class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_SAPAvailableForElement objects
public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_SAPAvailableForElement class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_SAPAvailableForElement objects
public static Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_SAPAvailableForElement 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_SAPAvailableForElement class.
///
public new class CimKeys : CimBase.CimKeys
{
///
/// Key, Required, The Service Access Point that is available.
///
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);
}
}
///
/// Key, Required, The ManagedElement for which the SAP is available.
///
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);
}
}
}
}
}