245 lines
7.1 KiB
C#
245 lines
7.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_AgentPresenceCapabilities.cs
|
|
//
|
|
// Contents: Represents the Agent Presence feature capabilities.
|
|
// This file was automatically generated from AMT_AgentPresenceCapabilities.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 feature capabilities.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_AgentPresenceCapabilities", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AgentPresenceCapabilities", IsNullable=false)]
|
|
public class AMT_AgentPresenceCapabilities : CIM_Capabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_AgentPresenceCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_AgentPresenceCapabilities(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_AgentPresenceCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxEacAgents field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaxEacAgents()
|
|
{
|
|
RemoveField("MaxEacAgents");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxEacAgents exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaxEacAgentsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxEacAgents");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum number of agents that registered on the Intel AMT device and configured with EAC action.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaxEacAgents
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaxEacAgents"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxEacAgents",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxTotalActions field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaxTotalActions()
|
|
{
|
|
RemoveField("MaxTotalActions");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxTotalActions exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaxTotalActionsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxTotalActions");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum number of actions that can be defined (altogether) on the Intel(R) AMT device.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaxTotalActions
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaxTotalActions"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxTotalActions",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxTotalAgents field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaxTotalAgents()
|
|
{
|
|
RemoveField("MaxTotalAgents");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxTotalAgents exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaxTotalAgentsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxTotalAgents");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The maximum number of agents that can be registered on the Intel(R) AMT device.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MaxTotalAgents
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MaxTotalAgents"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxTotalAgents",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MinGuaranteedActionListSize field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMinGuaranteedActionListSize()
|
|
{
|
|
RemoveField("MinGuaranteedActionListSize");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MinGuaranteedActionListSize exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MinGuaranteedActionListSizeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MinGuaranteedActionListSize");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The minimum number of actions that is guaranteed for every Agent on the Intel(R) AMT device.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint MinGuaranteedActionListSize
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["MinGuaranteedActionListSize"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MinGuaranteedActionListSize",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceCapabilities 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_AgentPresenceCapabilities objects</returns>
|
|
public static new Collection<AMT_AgentPresenceCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_AgentPresenceCapabilities> ret = CimBase.Enumerate<AMT_AgentPresenceCapabilities>(client, cimKeys);
|
|
return new Collection<AMT_AgentPresenceCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_AgentPresenceCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_AgentPresenceCapabilities objects</returns>
|
|
public static new Collection<AMT_AgentPresenceCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_AgentPresenceCapabilities> ret = CimBase.Enumerate<AMT_AgentPresenceCapabilities>(client);
|
|
return new Collection<AMT_AgentPresenceCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_AgentPresenceCapabilities 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_AgentPresenceCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_AgentPresenceCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Capabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|