The sushy.resources.registry.message_registry_file
Module¶
-
class
sushy.resources.registry.message_registry_file.
LocationListField
(*args, **kwargs)¶ Bases:
sushy.resources.base.ListField
Location for each registry file of languages supported
There are 3 options where the file can be hosted:
locally as a single file,
locally as a part of archive (zip or other),
publicly on the Internet.
-
archive_file
= <sushy.resources.base.Field object>¶ File name for registry if using archive_uri
-
archive_uri
= <sushy.resources.base.Field object>¶ Location URI for archive file
-
language
= <sushy.resources.base.Field object>¶ File’s RFC5646 language code or the string ‘default’
-
publication_uri
= <sushy.resources.base.Field object>¶ Location URI of publicly available schema
-
uri
= <sushy.resources.base.Field object>¶ Location URI for co-located registry file with the Redfish service
-
class
sushy.resources.registry.message_registry_file.
MessageRegistryFile
(connector, path='', redfish_version=None, registries=None, reader=None)¶ Bases:
sushy.resources.base.ResourceBase
-
description
= <sushy.resources.base.Field object>¶ Description of Message Registry file resource
-
get_message_registry
(language, public_connector)¶ Load message registry file depending on its source
Will try to find MessageRegistry based on odata.type property and provided language. If desired language is not found, will pick a registry that has ‘default’ language.
- Parameters
language – RFC 5646 language code for registry files
public_connector – connector to use when downloading registry from the Internet
-
identity
= <sushy.resources.base.Field object>¶ Identity of Message Registry file resource
-
languages
= <sushy.resources.base.Field object>¶ List of RFC 5646 language codes supported by this resource
-
location
= <sushy.resources.registry.message_registry_file.LocationListField object>¶ List of locations of Registry files for each supported language
-
name
= <sushy.resources.base.Field object>¶ Name of Message Registry file resource
-
registry
= <sushy.resources.base.Field object>¶ Prefix for MessageId used for messages from this resource
This attribute is in form Registry_name.Major_version.Minor_version
-
-
class
sushy.resources.registry.message_registry_file.
MessageRegistryFileCollection
(connector, path, redfish_version=None, registries=None)¶ Bases:
sushy.resources.base.ResourceCollectionBase
Collection of Message Registry Files
-
class
sushy.resources.registry.message_registry_file.
RegistryType
(connector, path='', redfish_version=None, registries=None, reader=None)¶