283 lines
8.3 KiB
C#
283 lines
8.3 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_NetworkPortCapabilities.cs
|
|
//
|
|
// Contents: NetworkPortCapabilities describes the capabilities supported for properties that are configurable in NetworkPort.
|
|
// This file was automatically generated from CIM_NetworkPortCapabilities.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>
|
|
///NetworkPortCapabilities describes the capabilities supported for properties that are configurable in NetworkPort.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NetworkPortCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_NetworkPortCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NetworkPortCapabilities", IsNullable=false)]
|
|
public class CIM_NetworkPortCapabilities : CIM_LogicalPortCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_NetworkPortCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_NetworkPortCapabilities(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_NetworkPortCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove LinkTechnologiesSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveLinkTechnologiesSupported()
|
|
{
|
|
RemoveField("LinkTechnologiesSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field LinkTechnologiesSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool LinkTechnologiesSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("LinkTechnologiesSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, List of the LinkTechnologies supported by the the NetworkPort.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] LinkTechnologiesSupported
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["LinkTechnologiesSupported"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("LinkTechnologiesSupported", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove NetworkIDsConfigurable field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveNetworkIDsConfigurable()
|
|
{
|
|
RemoveField("NetworkIDsConfigurable");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field NetworkIDsConfigurable exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool NetworkIDsConfigurableExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("NetworkIDsConfigurable");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Boolean indicating whether the NetworkPort can be configured to connect to specific Networks.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool NetworkIDsConfigurable
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["NetworkIDsConfigurable"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("NetworkIDsConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove NetworkIDsFormat field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveNetworkIDsFormat()
|
|
{
|
|
RemoveField("NetworkIDsFormat");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field NetworkIDsFormat exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool NetworkIDsFormatExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("NetworkIDsFormat");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The format that is expected to populate the NetworkIds for the associated NetworkPortSettings.list of supported LinkTechnologies of the NetworkPort is defined in the NetworkPortCapabilities.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort NetworkIDsFormat
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["NetworkIDsFormat"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("NetworkIDsFormat",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PortSpeedsSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePortSpeedsSupported()
|
|
{
|
|
RemoveField("PortSpeedsSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PortSpeedsSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PortSpeedsSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PortSpeedsSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, List of supported port speeds that can be configured on NetworkPort.Speed.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ulong[] PortSpeedsSupported
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ulong>(this["PortSpeedsSupported"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ulong>(value);
|
|
this.SetOrAddField("PortSpeedsSupported", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SpeedConfigurable field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSpeedConfigurable()
|
|
{
|
|
RemoveField("SpeedConfigurable");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SpeedConfigurable exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SpeedConfigurableExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SpeedConfigurable");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Boolean that indicates whether the Speed can be configured.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool SpeedConfigurable
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["SpeedConfigurable"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SpeedConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_NetworkPortCapabilities 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_NetworkPortCapabilities objects</returns>
|
|
public static new Collection<CIM_NetworkPortCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_NetworkPortCapabilities> ret = CimBase.Enumerate<CIM_NetworkPortCapabilities>(client, cimKeys);
|
|
return new Collection<CIM_NetworkPortCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_NetworkPortCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_NetworkPortCapabilities objects</returns>
|
|
public static new Collection<CIM_NetworkPortCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_NetworkPortCapabilities> ret = CimBase.Enumerate<CIM_NetworkPortCapabilities>(client);
|
|
return new Collection<CIM_NetworkPortCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_NetworkPortCapabilities 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_NetworkPortCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_NetworkPortCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_LogicalPortCapabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|