//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_LANEndpoint.cs
//
// Contents: A communication endpoint which, when its associated interface device is connected to a LAN, may send and receive data frames. LANEndpoints include Ethernet, Token Ring and FDDI interfaces.
// This file was automatically generated from CIM_LANEndpoint.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
{
///
///A communication endpoint which, when its associated interface device is connected to a LAN, may send and receive data frames. LANEndpoints include Ethernet, Token Ring and FDDI interfaces.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LANEndpoint")]
[System.Xml.Serialization.XmlRootAttribute("CIM_LANEndpoint", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LANEndpoint", IsNullable=false)]
public class CIM_LANEndpoint : CIM_ProtocolEndpoint
{
///
/// Default constructor.
///
public CIM_LANEndpoint() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_LANEndpoint(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_LANEndpoint(IWSManClient client): base(client)
{
}
///
/// Remove AliasAddresses field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAliasAddresses()
{
RemoveField("AliasAddresses");
}
///
/// Is true if the field AliasAddresses exists in the current object,
/// otherwise is false.
///
public virtual bool AliasAddressesExist
{
get
{
return ContainsField("AliasAddresses");
}
}
///
/// Optional, Other unicast addresses that may be used to communicate with the LANEndpoint.
///
[CimField(false, false)]
public virtual string[] AliasAddresses
{
get
{
return CimTypesUtils.StringArrayToArray(this["AliasAddresses"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("AliasAddresses", arr);
}
}
///
/// Remove GroupAddresses field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveGroupAddresses()
{
RemoveField("GroupAddresses");
}
///
/// Is true if the field GroupAddresses exists in the current object,
/// otherwise is false.
///
public virtual bool GroupAddressesExist
{
get
{
return ContainsField("GroupAddresses");
}
}
///
/// Optional, Multicast addresses to which the LANEndpoint listens.
///
[CimField(false, false)]
public virtual string[] GroupAddresses
{
get
{
return CimTypesUtils.StringArrayToArray(this["GroupAddresses"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("GroupAddresses", arr);
}
}
///
/// Remove LANID field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveLANID()
{
RemoveField("LANID");
}
///
/// Is true if the field LANID exists in the current object,
/// otherwise is false.
///
public virtual bool LANIDExist
{
get
{
return ContainsField("LANID");
}
}
///
/// Optional, A label or identifier for the LAN Segment to which the Endpoint is connected. If the Endpoint is not currently active/connected or this information is not known, then LANID is NULL.
///
[CimField(false, false)]
public virtual string LANID
{
get
{
return this.GetField("LANID")[0];
}
set
{
this.SetOrAddField("LANID",value);
}
}
///
/// Remove LANType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveLANType()
{
RemoveField("LANType");
}
///
/// Is true if the field LANType exists in the current object,
/// otherwise is false.
///
public virtual bool LANTypeExist
{
get
{
return ContainsField("LANType");
}
}
///
/// Optional, An indication of the kind of technology used on the LAN. This property is deprecated in lieu of ProtocolType, which is an enumeration inherited from ProtocolEndpoint and which includes the Values specified here.
///
[CimField(false, false)]
public virtual ushort LANType
{
get
{
return ushort.Parse(this["LANType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("LANType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove MACAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMACAddress()
{
RemoveField("MACAddress");
}
///
/// Is true if the field MACAddress exists in the current object,
/// otherwise is false.
///
public virtual bool MACAddressExist
{
get
{
return ContainsField("MACAddress");
}
}
///
/// Optional, The principal unicast address used in communication with the LANEndpoint. The MAC address is formatted as twelve hexadecimal digits (e.g., "010203040506"), with each pair representing one of the six octets of the MAC address in "canonical" bit order according to RFC 2469.
///
[CimField(false, false)]
public virtual string MACAddress
{
get
{
return this.GetField("MACAddress")[0];
}
set
{
this.SetOrAddField("MACAddress",value);
}
}
///
/// Remove MaxDataSize field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMaxDataSize()
{
RemoveField("MaxDataSize");
}
///
/// Is true if the field MaxDataSize exists in the current object,
/// otherwise is false.
///
public virtual bool MaxDataSizeExist
{
get
{
return ContainsField("MaxDataSize");
}
}
///
/// Optional, The largest information field that may be sent or received by the LANEndpoint.
///
[CimField(false, false)]
public virtual uint MaxDataSize
{
get
{
return uint.Parse(this["MaxDataSize"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MaxDataSize",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove OtherLANType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveOtherLANType()
{
RemoveField("OtherLANType");
}
///
/// Is true if the field OtherLANType exists in the current object,
/// otherwise is false.
///
public virtual bool OtherLANTypeExist
{
get
{
return ContainsField("OtherLANType");
}
}
///
/// Optional, A free-form string that describes the type of technology used on the LAN when the value of the LANType property is equal to 1 (i.e., "Other"). This property is deprecated since its purpose overlaps with OtherTypeDescription, which which is inherited from ProtocolEndpoint.
///
[CimField(false, false)]
public virtual string OtherLANType
{
get
{
return this.GetField("OtherLANType")[0];
}
set
{
this.SetOrAddField("OtherLANType",value);
}
}
///
/// Enumerate instances of CIM_LANEndpoint class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_LANEndpoint 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_LANEndpoint class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_LANEndpoint objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_LANEndpoint 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_LANEndpoint class.
///
public new class CimKeys : CIM_ProtocolEndpoint.CimKeys
{
}
}
}