sushy.oem.dell.resources 包

子包

子模块

sushy.oem.dell.resources.attributes 模块

class sushy.oem.dell.resources.attributes.DellAttributes(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None, root=None)

基类: ResourceBase

attributes = <sushy.resources.base.Field object>

特定于供应商的 DellAttributes 有效键值对字典

不能直接更新。要更新,请使用 set_attribute()set_attributes()

description = <sushy.resources.base.Field object>

DellAttributes 资源的易读描述

get_attribute_registry(language='en')

获取与此资源关联的属性注册表

参数:

language – RFC 5646 语言代码,用于消息注册表。指示要使用的注册表的语言。默认为“en”。

返回值:

DellAttributes 属性注册表

identity = <sushy.resources.base.Field object>

DellAttributes 资源标识字符串

name = <sushy.resources.base.Field object>

资源的名称

set_attribute(key, value)

更新属性

属性更新不是立即生效的,需要系统重启。已提交的属性可以在 pending_attributes 属性中检查

参数:
  • key – 属性名称

  • value – 属性值

set_attributes(value)

一次更新多个属性

属性更新不是立即生效的,需要系统重启。已提交的属性可以在 pending_attributes 属性中检查

参数:
  • value – 属性名称和值的键值对

  • apply_time – When to update the attributes. Optional. An sushy.ApplyTime value.

模块内容