- 修复RouteService中错误过滤home路由的问题 - 后端现在正确返回所有用户有权限的路由 - 添加设备管理相关功能(列表、在线监控、电源管理、远程监控) - 添加详细的修复文档和重启脚本 - 更新权限配置脚本 问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单 解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
175 lines
5.7 KiB
C#
175 lines
5.7 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_BIOSFeature.cs
|
|
//
|
|
// Contents: BIOSFeature represents the capabilities of the low-level software that is used to bring up and configure a Computer System.
|
|
// This file was automatically generated from CIM_BIOSFeature.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>
|
|
///BIOSFeature represents the capabilities of the low-level software that is used to bring up and configure a Computer System.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BIOSFeature")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_BIOSFeature", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BIOSFeature", IsNullable=false)]
|
|
public class CIM_BIOSFeature : CIM_SoftwareFeature
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_BIOSFeature() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_BIOSFeature(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_BIOSFeature(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove CharacteristicDescriptions field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCharacteristicDescriptions()
|
|
{
|
|
RemoveField("CharacteristicDescriptions");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CharacteristicDescriptions exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CharacteristicDescriptionsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CharacteristicDescriptions");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of free-form strings providing more detailed explanations for any of the BIOS features indicated in the Characteristics array. Note, each entry of this array is related to the entry in the Characteristics array that is located at the same index.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string[] CharacteristicDescriptions
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["CharacteristicDescriptions"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("CharacteristicDescriptions", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove Characteristics field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCharacteristics()
|
|
{
|
|
RemoveField("Characteristics");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Characteristics exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CharacteristicsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Characteristics");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of integers that specify the features supported by the BIOS. For example, one can specify that PnP capabilities are provided (value=9) or that infrared devices are supported (21). Values specified in the enumeration are taken from both DMI and SMBIOS (the Type 0 structure, the BIOS Characteristics and BIOS Characteristics Extension Bytes attributes.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] Characteristics
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["Characteristics"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("Characteristics", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_BIOSFeature 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_BIOSFeature objects</returns>
|
|
public static new Collection<CIM_BIOSFeature> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_BIOSFeature> ret = CimBase.Enumerate<CIM_BIOSFeature>(client, cimKeys);
|
|
return new Collection<CIM_BIOSFeature>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_BIOSFeature class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_BIOSFeature objects</returns>
|
|
public static new Collection<CIM_BIOSFeature> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_BIOSFeature> ret = CimBase.Enumerate<CIM_BIOSFeature>(client);
|
|
return new Collection<CIM_BIOSFeature>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_BIOSFeature 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_BIOSFeature>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_BIOSFeature class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SoftwareFeature.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|