157 lines
5.4 KiB
C#
157 lines
5.4 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_AgentPresenceService.cs
|
|
//
|
|
// Contents: Represents the Agent Presence Service in the Intel(R) AMT subsystem.
|
|
// This file was automatically generated from AMT_AgentPresenceService.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>
|
|
///Represents the Agent Presence Service in the Intel(R) AMT subsystem.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceService")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_AgentPresenceService", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceService", IsNullable=false)]
|
|
public class AMT_AgentPresenceService : CIM_Service
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_AgentPresenceService() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_AgentPresenceService(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 AMT_AgentPresenceService(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
///This routine is used to enable or disable automatic platform reset.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceService", IsNullable=false)]
|
|
private class EnableHostResetAction_INPUT : CimParams
|
|
{
|
|
public EnableHostResetAction_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required, This flag indicates whether the requested operation is enable or disable.
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual bool Enable
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("Enable",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///This routine is used to enable or disable automatic platform reset.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceService", IsNullable=false)]
|
|
private class EnableHostResetAction_OUTPUT : CimParams
|
|
{
|
|
public EnableHostResetAction_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///This routine is used to enable or disable automatic platform reset.
|
|
/// </summary>
|
|
/// <param name="inEnable">Required, IN -This flag indicates whether the requested operation is enable or disable.</param>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// Completed with No Error : 0
|
|
/// Not Supported : 1
|
|
/// Failed : 2
|
|
/// </returns>
|
|
public virtual uint EnableHostResetAction(bool? inEnable)
|
|
{
|
|
EnableHostResetAction_INPUT input = new EnableHostResetAction_INPUT(this.XmlNamespace);
|
|
if (inEnable.HasValue)
|
|
input.Enable=inEnable.Value;
|
|
EnableHostResetAction_OUTPUT output = new EnableHostResetAction_OUTPUT();
|
|
uint returnValue = base.Invoke("EnableHostResetAction",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceService class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of AMT_AgentPresenceService objects</returns>
|
|
public static new Collection<AMT_AgentPresenceService> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_AgentPresenceService> ret = CimBase.Enumerate<AMT_AgentPresenceService>(client, cimKeys);
|
|
return new Collection<AMT_AgentPresenceService>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceService class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_AgentPresenceService objects</returns>
|
|
public static new Collection<AMT_AgentPresenceService> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_AgentPresenceService> ret = CimBase.Enumerate<AMT_AgentPresenceService>(client);
|
|
return new Collection<AMT_AgentPresenceService>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_AgentPresenceService 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<AMT_AgentPresenceService>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_AgentPresenceService class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Service.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|