//----------------------------------------------------------------------------
//
// 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
{
///
///CIM_IEEE8021xCapabilities describes the IEEE 802.1x security capabilities of a layer 2 ProtocolEndpoint.
///
[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
{
///
/// Default constructor.
///
public CIM_IEEE8021xCapabilities() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_IEEE8021xCapabilities(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_IEEE8021xCapabilities(IWSManClient client): base(client)
{
}
///
/// Remove FastRoamingSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveFastRoamingSupported()
{
RemoveField("FastRoamingSupported");
}
///
/// Is true if the field FastRoamingSupported exists in the current object,
/// otherwise is false.
///
public virtual bool FastRoamingSupportedExist
{
get
{
return ContainsField("FastRoamingSupported");
}
}
///
/// Optional, Indicates whether the associated ProtocolEndpoint supports fast reconnection of an IEEE 802.1x session when it roams from one access point to another.
///
[CimField(false, false)]
public virtual bool FastRoamingSupported
{
get
{
return bool.Parse(this["FastRoamingSupported"][0]);
}
set
{
this.SetOrAddField("FastRoamingSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove RoamingSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRoamingSupported()
{
RemoveField("RoamingSupported");
}
///
/// Is true if the field RoamingSupported exists in the current object,
/// otherwise is false.
///
public virtual bool RoamingSupportedExist
{
get
{
return ContainsField("RoamingSupported");
}
}
///
/// Optional, Indicates whether the associated ProtocolEndpoint supports moving a session due to roaming.
///
[CimField(false, false)]
public virtual bool RoamingSupported
{
get
{
return bool.Parse(this["RoamingSupported"][0]);
}
set
{
this.SetOrAddField("RoamingSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove SupportedAuthenticationProtocols field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSupportedAuthenticationProtocols()
{
RemoveField("SupportedAuthenticationProtocols");
}
///
/// Is true if the field SupportedAuthenticationProtocols exists in the current object,
/// otherwise is false.
///
public virtual bool SupportedAuthenticationProtocolsExist
{
get
{
return ContainsField("SupportedAuthenticationProtocols");
}
}
///
/// Optional, The IEEE 802.1x Extensible Authentication Protocol types supported by the associated ProtocolEndpoint. See AuthenticationProtocol description in CIM_IEEE8021xSettings for more information.
///
[CimField(false, false)]
public virtual ushort[] SupportedAuthenticationProtocols
{
get
{
return CimTypesUtils.StringArrayToArray(this["SupportedAuthenticationProtocols"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("SupportedAuthenticationProtocols", arr);
}
}
///
/// Enumerate instances of CIM_IEEE8021xCapabilities class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_IEEE8021xCapabilities objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_IEEE8021xCapabilities class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_IEEE8021xCapabilities objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_IEEE8021xCapabilities if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_IEEE8021xCapabilities class.
///
public new class CimKeys : CIM_Capabilities.CimKeys
{
}
}
}