174 lines
5.6 KiB
C#
174 lines
5.6 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_LogicalPortCapabilities.cs
|
|
//
|
|
// Contents: LogicalPortCapabilities describes the configuration capabilities for properties in LogicalPortSettings.
|
|
// This file was automatically generated from CIM_LogicalPortCapabilities.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>
|
|
///LogicalPortCapabilities describes the configuration capabilities for properties in LogicalPortSettings.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalPortCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_LogicalPortCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalPortCapabilities", IsNullable=false)]
|
|
public class CIM_LogicalPortCapabilities : CIM_EnabledLogicalElementCapabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_LogicalPortCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_LogicalPortCapabilities(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_LogicalPortCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove AutoSenseSpeedConfigurable field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveAutoSenseSpeedConfigurable()
|
|
{
|
|
RemoveField("AutoSenseSpeedConfigurable");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field AutoSenseSpeedConfigurable exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool AutoSenseSpeedConfigurableExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("AutoSenseSpeedConfigurable");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A boolean indicating whether the value in LogicalPortSettings.AutoSenseSpeed may be changed (TRUE), or may only be viewed (FALSE).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool AutoSenseSpeedConfigurable
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["AutoSenseSpeedConfigurable"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AutoSenseSpeedConfigurable",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RequestedSpeedsSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRequestedSpeedsSupported()
|
|
{
|
|
RemoveField("RequestedSpeedsSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RequestedSpeedsSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RequestedSpeedsSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RequestedSpeedsSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, List of supported port speeds that can be configured on LogicalPortSettings.RequestedSpeed.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ulong[] RequestedSpeedsSupported
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ulong>(this["RequestedSpeedsSupported"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ulong>(value);
|
|
this.SetOrAddField("RequestedSpeedsSupported", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_LogicalPortCapabilities 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_LogicalPortCapabilities objects</returns>
|
|
public static new Collection<CIM_LogicalPortCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_LogicalPortCapabilities> ret = CimBase.Enumerate<CIM_LogicalPortCapabilities>(client, cimKeys);
|
|
return new Collection<CIM_LogicalPortCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_LogicalPortCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_LogicalPortCapabilities objects</returns>
|
|
public static new Collection<CIM_LogicalPortCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_LogicalPortCapabilities> ret = CimBase.Enumerate<CIM_LogicalPortCapabilities>(client);
|
|
return new Collection<CIM_LogicalPortCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_LogicalPortCapabilities 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_LogicalPortCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_LogicalPortCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_EnabledLogicalElementCapabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|