173 lines
6.4 KiB
C#
173 lines
6.4 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///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.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_ServiceAvailableToElement() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_ServiceAvailableToElement(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_ServiceAvailableToElement(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The Service that is available.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement that can use the Service.
|
|
/// </summary>
|
|
[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));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ServiceAvailableToElement 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_ServiceAvailableToElement objects</returns>
|
|
public static Collection<CIM_ServiceAvailableToElement> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_ServiceAvailableToElement> ret = CimBase.Enumerate<CIM_ServiceAvailableToElement>(client, cimKeys);
|
|
return new Collection<CIM_ServiceAvailableToElement>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ServiceAvailableToElement class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_ServiceAvailableToElement objects</returns>
|
|
public static Collection<CIM_ServiceAvailableToElement> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_ServiceAvailableToElement> ret = CimBase.Enumerate<CIM_ServiceAvailableToElement>(client);
|
|
return new Collection<CIM_ServiceAvailableToElement>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_ServiceAvailableToElement 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_ServiceAvailableToElement>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_ServiceAvailableToElement class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CimBase.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, The Service that is available.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The ManagedElement that can use the Service.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|