210 lines
6.5 KiB
C#
210 lines
6.5 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_IEEE8021xCapabilities.cs
|
|
//
|
|
// Contents: CIM_IEEE8021xCapabilities describes the IEEE 802.1x security capabilities of a layer 2 ProtocolEndpoint.
|
|
// This file was automatically generated from CIM_IEEE8021xCapabilities.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_IEEE8021xCapabilities describes the IEEE 802.1x security capabilities of a layer 2 ProtocolEndpoint.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_IEEE8021xCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_IEEE8021xCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_IEEE8021xCapabilities", IsNullable=false)]
|
|
public class CIM_IEEE8021xCapabilities : CIM_Capabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_IEEE8021xCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_IEEE8021xCapabilities(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_IEEE8021xCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove FastRoamingSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveFastRoamingSupported()
|
|
{
|
|
RemoveField("FastRoamingSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field FastRoamingSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool FastRoamingSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("FastRoamingSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the associated ProtocolEndpoint supports fast reconnection of an IEEE 802.1x session when it roams from one access point to another.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool FastRoamingSupported
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["FastRoamingSupported"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("FastRoamingSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RoamingSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRoamingSupported()
|
|
{
|
|
RemoveField("RoamingSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RoamingSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RoamingSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RoamingSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the associated ProtocolEndpoint supports moving a session due to roaming.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool RoamingSupported
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["RoamingSupported"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("RoamingSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SupportedAuthenticationProtocols field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSupportedAuthenticationProtocols()
|
|
{
|
|
RemoveField("SupportedAuthenticationProtocols");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SupportedAuthenticationProtocols exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SupportedAuthenticationProtocolsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SupportedAuthenticationProtocols");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The IEEE 802.1x Extensible Authentication Protocol types supported by the associated ProtocolEndpoint. See AuthenticationProtocol description in CIM_IEEE8021xSettings for more information.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] SupportedAuthenticationProtocols
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["SupportedAuthenticationProtocols"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("SupportedAuthenticationProtocols", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_IEEE8021xCapabilities 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_IEEE8021xCapabilities objects</returns>
|
|
public static new Collection<CIM_IEEE8021xCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_IEEE8021xCapabilities> ret = CimBase.Enumerate<CIM_IEEE8021xCapabilities>(client, cimKeys);
|
|
return new Collection<CIM_IEEE8021xCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_IEEE8021xCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_IEEE8021xCapabilities objects</returns>
|
|
public static new Collection<CIM_IEEE8021xCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_IEEE8021xCapabilities> ret = CimBase.Enumerate<CIM_IEEE8021xCapabilities>(client);
|
|
return new Collection<CIM_IEEE8021xCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_IEEE8021xCapabilities 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<CIM_IEEE8021xCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_IEEE8021xCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Capabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|