282 lines
8.6 KiB
C#
282 lines
8.6 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_WiFiPort.cs
|
|
//
|
|
// Contents: WiFiPort is the logical representation of wireless local area network communications hardware that conforms to the IEEE 802.11 series of specifications. It embodies properties at the lowest layers of a network stack, such as the antennas used for transmission and reception, the address permanently embedded into the hardware, and the operational bandwidth of the device.
|
|
// This file was automatically generated from CIM_WiFiPort.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>
|
|
///WiFiPort is the logical representation of wireless local area network communications hardware that conforms to the IEEE 802.11 series of specifications. It embodies properties at the lowest layers of a network stack, such as the antennas used for transmission and reception, the address permanently embedded into the hardware, and the operational bandwidth of the device.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_WiFiPort")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_WiFiPort", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_WiFiPort", IsNullable=false)]
|
|
public class CIM_WiFiPort : CIM_NetworkPort
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_WiFiPort() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_WiFiPort(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_WiFiPort(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxSpeed field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemoveMaxSpeed()
|
|
{
|
|
RemoveField("MaxSpeed");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxSpeed exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool MaxSpeedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxSpeed");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Shall contain the maximum bandwidth relative to the current operating mode specified in PortType. For example, shall contain 11000000 if PortType contains 71 ("802.11b").
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override ulong MaxSpeed
|
|
{
|
|
get
|
|
{
|
|
return ulong.Parse(this["MaxSpeed"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxSpeed",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove NetworkAddresses field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemoveNetworkAddresses()
|
|
{
|
|
RemoveField("NetworkAddresses");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field NetworkAddresses exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool NetworkAddressesExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("NetworkAddresses");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, IEEE 802 EUI-48 MAC addresses, each formatted as twelve hexadecimal digits (for example, "010203040506"), with each pair representing one of the six octets of the MAC address in "canonical" bit order. (Therefore, the Group address bit is found in the low order bit of the first character of the string.)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override string[] NetworkAddresses
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["NetworkAddresses"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("NetworkAddresses", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PermanentAddress field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemovePermanentAddress()
|
|
{
|
|
RemoveField("PermanentAddress");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PermanentAddress exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool PermanentAddressExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PermanentAddress");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, IEEE 802 EUI-48 MAC address, formatted as twelve hexadecimal digits (for example, "010203040506"), with each pair representing one of the six octets of the MAC address in "canonical" bit order. (Therefore, the Group address bit is found in the low order bit of the first character of the string.)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override string PermanentAddress
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("PermanentAddress")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PermanentAddress",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PortType field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemovePortType()
|
|
{
|
|
RemoveField("PortType");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PortType exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool PortTypeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PortType");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, PortType shall contain the specific 802.11 operating mode that is currently enabled on the Port. All modes are specified in
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override ushort PortType
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["PortType"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PortType",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Speed field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemoveSpeed()
|
|
{
|
|
RemoveField("Speed");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Speed exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool SpeedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Speed");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The data rate at which the current PPDU (PLCP (Physical Layer Convergence Protocol) Protocol Data Unit) was received. This value is encoded in the first 4 bits of the PLCP header in each PLCP frame.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override ulong Speed
|
|
{
|
|
get
|
|
{
|
|
return ulong.Parse(this["Speed"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Speed",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_WiFiPort 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_WiFiPort objects</returns>
|
|
public static new Collection<CIM_WiFiPort> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_WiFiPort> ret = CimBase.Enumerate<CIM_WiFiPort>(client, cimKeys);
|
|
return new Collection<CIM_WiFiPort>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_WiFiPort class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_WiFiPort objects</returns>
|
|
public static new Collection<CIM_WiFiPort> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_WiFiPort> ret = CimBase.Enumerate<CIM_WiFiPort>(client);
|
|
return new Collection<CIM_WiFiPort>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_WiFiPort 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_WiFiPort>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_WiFiPort class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_NetworkPort.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|