//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_ProtocolEndpoint.cs
//
// Contents: A communication point from which data can be sent or received. ProtocolEndpoints link system or computer interfaces to LogicalNetworks.
// This file was automatically generated from CIM_ProtocolEndpoint.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 point from which data can be sent or received. ProtocolEndpoints link system or computer interfaces to LogicalNetworks.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ProtocolEndpoint")]
[System.Xml.Serialization.XmlRootAttribute("CIM_ProtocolEndpoint", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ProtocolEndpoint", IsNullable=false)]
public class CIM_ProtocolEndpoint : CIM_ServiceAccessPoint
{
///
/// Default constructor.
///
public CIM_ProtocolEndpoint() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_ProtocolEndpoint(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_ProtocolEndpoint(IWSManClient client): base(client)
{
}
///
/// Remove Description field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public override void RemoveDescription()
{
RemoveField("Description");
}
///
/// Is true if the field Description exists in the current object,
/// otherwise is false.
///
public override bool DescriptionExist
{
get
{
return ContainsField("Description");
}
}
///
/// Optional,
///
[CimField(false, false)]
public override string Description
{
get
{
return this.GetField("Description")[0];
}
set
{
this.SetOrAddField("Description",value);
}
}
///
/// Remove EnabledState field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public override void RemoveEnabledState()
{
RemoveField("EnabledState");
}
///
/// Is true if the field EnabledState exists in the current object,
/// otherwise is false.
///
public override bool EnabledStateExist
{
get
{
return ContainsField("EnabledState");
}
}
///
/// Optional,
///
[CimField(false, false)]
public override ushort EnabledState
{
get
{
return ushort.Parse(this["EnabledState"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("EnabledState",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Required, A string that identifies this ProtocolEndpoint with either a port or an interface on a device. To ensure uniqueness, the Name property should be prepended or appended with information from the Type or OtherTypeDescription properties. The method selected is described in the NameFormat property of this class.
///
[CimField(true, true)]
public override string Name
{
get
{
return this.GetField("Name")[0];
}
set
{
this.SetOrAddField("Name",value);
}
}
///
/// Remove NameFormat field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveNameFormat()
{
RemoveField("NameFormat");
}
///
/// Is true if the field NameFormat exists in the current object,
/// otherwise is false.
///
public virtual bool NameFormatExist
{
get
{
return ContainsField("NameFormat");
}
}
///
/// Optional, NameFormat contains the naming heuristic that is selected to ensure that the value of the Name property is unique. For example, you might choose to prepend the name of the port or interface with the Type of ProtocolEndpoint (for example, IPv4) of this instance followed by an underscore.
///
[CimField(false, false)]
public virtual string NameFormat
{
get
{
return this.GetField("NameFormat")[0];
}
set
{
this.SetOrAddField("NameFormat",value);
}
}
///
/// Remove OperationalStatus field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public override void RemoveOperationalStatus()
{
RemoveField("OperationalStatus");
}
///
/// Is true if the field OperationalStatus exists in the current object,
/// otherwise is false.
///
public override bool OperationalStatusExist
{
get
{
return ContainsField("OperationalStatus");
}
}
///
/// Optional,
///
[CimField(false, false)]
public override ushort[] OperationalStatus
{
get
{
return CimTypesUtils.StringArrayToArray(this["OperationalStatus"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("OperationalStatus", arr);
}
}
///
/// Remove OtherTypeDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveOtherTypeDescription()
{
RemoveField("OtherTypeDescription");
}
///
/// Is true if the field OtherTypeDescription exists in the current object,
/// otherwise is false.
///
public virtual bool OtherTypeDescriptionExist
{
get
{
return ContainsField("OtherTypeDescription");
}
}
///
/// Optional, A string that describes the type of ProtocolEndpoint when the Type property of this class (or any of its subclasses) is set to 1 (Other). This property should be set to null when the Type property is any value other than 1.
///
[CimField(false, false)]
public virtual string OtherTypeDescription
{
get
{
return this.GetField("OtherTypeDescription")[0];
}
set
{
this.SetOrAddField("OtherTypeDescription",value);
}
}
///
/// Remove ProtocolIFType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveProtocolIFType()
{
RemoveField("ProtocolIFType");
}
///
/// Is true if the field ProtocolIFType exists in the current object,
/// otherwise is false.
///
public virtual bool ProtocolIFTypeExist
{
get
{
return ContainsField("ProtocolIFType");
}
}
///
/// Optional, ProtocolIFType is an enumeration that is synchronized with the IANA ifType MIB. The ifType MIB is maintained at the URL, http://www.iana.org/assignments/ianaiftype-mib. Also, additional values defined by the DMTF are included. The property is used to categorize and classify instances of the ProtocolEndpoint class. Note that if the ProtocolIFType is set to 1 (Other), then the type information should be provided in the OtherTypeDescription string property.
///
[CimField(false, false)]
public virtual ushort ProtocolIFType
{
get
{
return ushort.Parse(this["ProtocolIFType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ProtocolIFType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ProtocolType field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveProtocolType()
{
RemoveField("ProtocolType");
}
///
/// Is true if the field ProtocolType exists in the current object,
/// otherwise is false.
///
public virtual bool ProtocolTypeExist
{
get
{
return ContainsField("ProtocolType");
}
}
///
/// Optional, Note: This property is deprecated in lieu of the ProtocolIFType enumeration. This deprecation was done to have better alignment between the IF-MIB of the IETF and this CIM class.
/// Deprecated description: ProtocolType is an enumeration that provides information to categorize and classify different instances of this class. For most instances, information in this enumeration and the definition of the subclass overlap. However, there are several cases where a specific subclass of ProtocolEndpoint is not required (for example, there is no Fibre Channel subclass of ProtocolEndpoint). Therefore, this property is needed to define the type of Endpoint.
///
[CimField(false, false)]
public virtual ushort ProtocolType
{
get
{
return ushort.Parse(this["ProtocolType"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ProtocolType",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TimeOfLastStateChange field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public override void RemoveTimeOfLastStateChange()
{
RemoveField("TimeOfLastStateChange");
}
///
/// Is true if the field TimeOfLastStateChange exists in the current object,
/// otherwise is false.
///
public override bool TimeOfLastStateChangeExist
{
get
{
return ContainsField("TimeOfLastStateChange");
}
}
///
/// Optional,
///
[CimField(false, false)]
public override CimDateTime TimeOfLastStateChange
{
get
{
return CimDateTime.Parse(this["TimeOfLastStateChange"][0]);
}
set
{
this.SetOrAddField("TimeOfLastStateChange",value.ToString());
}
}
///
/// Enumerate instances of CIM_ProtocolEndpoint class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_ProtocolEndpoint 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_ProtocolEndpoint class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_ProtocolEndpoint objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_ProtocolEndpoint 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_ProtocolEndpoint class.
///
public new class CimKeys : CIM_ServiceAccessPoint.CimKeys
{
///
/// Required, A string that identifies this ProtocolEndpoint with either a port or an interface on a device. To ensure uniqueness, the Name property should be prepended or appended with information from the Type or OtherTypeDescription properties. The method selected is described in the NameFormat property of this class.
///
public virtual string Name
{
get
{
return GetKey("Name");
}
set
{
SetOrAddKey("Name", value);
}
}
}
}
}