245 lines
7.8 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_RemoteAccessPolicyAppliesToMPS.cs
//
// Contents: This class associates a Management Presence Server with a Remote Access Policy rule. When a Policy Rule is triggered, the Intel(R) AMT subsystem will attempt to connect to the MpServers associated with the triggered policy in the order by which the associations were created. This order is indicated in the OrderOfAccess field where lower numbers indicate a higher priority.
// This file was automatically generated from AMT_RemoteAccessPolicyAppliesToMPS.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>
///This class associates a Management Presence Server with a Remote Access Policy rule. When a Policy Rule is triggered, the Intel(R) AMT subsystem will attempt to connect to the MpServers associated with the triggered policy in the order by which the associations were created. This order is indicated in the OrderOfAccess field where lower numbers indicate a higher priority.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyAppliesToMPS")]
[System.Xml.Serialization.XmlRootAttribute("AMT_RemoteAccessPolicyAppliesToMPS", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyAppliesToMPS", IsNullable=false)]
public class AMT_RemoteAccessPolicyAppliesToMPS : CIM_PolicySetAppliesToElement
{
/// <summary>
/// Default constructor.
/// </summary>
public AMT_RemoteAccessPolicyAppliesToMPS() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public AMT_RemoteAccessPolicyAppliesToMPS(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_RemoteAccessPolicyAppliesToMPS(IWSManClient client): base(client)
{
}
/// <summary>
/// Key, Required, The MpServer to which the policy applies.
/// </summary>
[CimField(true, false)]
public override 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>
/// Remove MpsType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveMpsType()
{
RemoveField("MpsType");
}
/// <summary>
/// Is true if the field MpsType exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool MpsTypeExist
{
get
{
return ContainsField("MpsType");
}
}
/// <summary>
/// Optional, This field indicates if the MpServer is to be used inside or outside of the organization, or both. Default is outside (0).
/// </summary>
[CimField(false, false)]
public virtual ushort MpsType
{
get
{
return ushort.Parse(this["MpsType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MpsType",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove OrderOfAccess field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveOrderOfAccess()
{
RemoveField("OrderOfAccess");
}
/// <summary>
/// Is true if the field OrderOfAccess exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool OrderOfAccessExist
{
get
{
return ContainsField("OrderOfAccess");
}
}
/// <summary>
/// Optional, This field indicates in what order will the Intel(R) AMT subsystem attempt to connect to the referenced MpServer when the referenced Remote Access policy is triggered.
/// </summary>
[CimField(false, false)]
public virtual ushort OrderOfAccess
{
get
{
return ushort.Parse(this["OrderOfAccess"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("OrderOfAccess",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Key, Required, The Remote Access policy rule that is currently applied to the MpServer.
/// </summary>
[CimField(true, false)]
public override CimReference PolicySet
{
get
{
string innerXML = this.GetField("PolicySet")[0];
CimReference epr = new CimReference("PolicySet", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("PolicySet",value.Serialize(false));
}
}
/// <summary>
/// Enumerate instances of AMT_RemoteAccessPolicyAppliesToMPS 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_RemoteAccessPolicyAppliesToMPS objects</returns>
public static new Collection<AMT_RemoteAccessPolicyAppliesToMPS> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<AMT_RemoteAccessPolicyAppliesToMPS> ret = CimBase.Enumerate<AMT_RemoteAccessPolicyAppliesToMPS>(client, cimKeys);
return new Collection<AMT_RemoteAccessPolicyAppliesToMPS>(ret);
}
/// <summary>
/// Enumerate instances of AMT_RemoteAccessPolicyAppliesToMPS class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of AMT_RemoteAccessPolicyAppliesToMPS objects</returns>
public static new Collection<AMT_RemoteAccessPolicyAppliesToMPS> Enumerate(IWSManClient client)
{
List<AMT_RemoteAccessPolicyAppliesToMPS> ret = CimBase.Enumerate<AMT_RemoteAccessPolicyAppliesToMPS>(client);
return new Collection<AMT_RemoteAccessPolicyAppliesToMPS>(ret);
}
/// <summary>
/// Delete the instance of AMT_RemoteAccessPolicyAppliesToMPS 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_RemoteAccessPolicyAppliesToMPS>(client);
}
/// <summary>
/// Represents the keys of the AMT_RemoteAccessPolicyAppliesToMPS class.
/// </summary>
public new class CimKeys : CIM_PolicySetAppliesToElement.CimKeys
{
/// <summary>
/// Key, Required, The MpServer to which the policy applies.
/// </summary>
public virtual CimReference ManagedElement
{
get
{
string innerXML = GetKey("ManagedElement");
CimReference epr = new CimReference("ManagedElement", "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyAppliesToMPS", innerXML);
return epr;
}
set
{
SetOrAddKey("ManagedElement", value);
}
}
/// <summary>
/// Key, Required, The Remote Access policy rule that is currently applied to the MpServer.
/// </summary>
public virtual CimReference PolicySet
{
get
{
string innerXML = GetKey("PolicySet");
CimReference epr = new CimReference("PolicySet", "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RemoteAccessPolicyAppliesToMPS", innerXML);
return epr;
}
set
{
SetOrAddKey("PolicySet", value);
}
}
}
}
}