The sushy.resources.registry.message_registry Module

The sushy.resources.registry.message_registry Module

class sushy.resources.registry.message_registry.MessageDictionaryField(*args, **kwargs)

Bases: sushy.resources.base.DictionaryField

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

Indicates how and when the message is returned by the Redfish service

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

Template text of the message

Template can include placeholders for message arguments in form %<integer> where <integer> denotes a position passed from MessageArgs.

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

Number of arguments to be expected to be passed in as MessageArgs for this message

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

Mapped MessageArg types, in order, for the message

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

Suggestions on how to resolve the situation that caused the error

severity = <sushy.resources.base.MappedField object>

Mapped severity of the message

class sushy.resources.registry.message_registry.MessageRegistry(connector, path='', redfish_version=None, registries=None, reader=None)

Bases: sushy.resources.base.ResourceBase

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

Human-readable description of the message registry

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

The Message registry identity string

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

RFC 5646 compliant language code for the registry

messages = <sushy.resources.registry.message_registry.MessageDictionaryField object>

List of messages in this registry

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

The name of the message registry

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

Organization or company that publishes this registry

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

Prefix used in messageIDs which uniquely identifies all of the messages in this registry as belonging to this registry

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

Message registry version which is used in the middle portion of a messageID

sushy.resources.registry.message_registry.parse_message(message_registries, message_field)

Using message registries parse the message and substitute any parms

Parameters
  • message_registries – dict of Message Registries

  • message_field – settings.MessageListField to parse

Returns

parsed settings.MessageListField with missing attributes filled

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.