The ironic.objects.base Module

Ironic common internal object model

class ironic.objects.base.IronicObject(context=None, **kwargs)[source]

Bases: oslo_versionedobjects.base.VersionedObject

Base class and object factory.

This forms the base of all objects that can be remoted or instantiated via RPC. Simply defining a class that inherits from this base class will make it remotely instantiatable. Objects should implement the necessary “get” classmethod routines as well as “save” object methods as appropriate.

as_dict()[source]
obj_refresh(loaded_object)[source]

Applies updates for objects that inherit from base.IronicObject.

Checks for updated attributes in an object. Updates are applied from the loaded object column by column in comparison with the current object.

class ironic.objects.base.IronicObjectRegistry[source]

Bases: oslo_versionedobjects.base.VersionedObjectRegistry

registration_hook(cls, index)[source]
class ironic.objects.base.IronicObjectSerializer[source]

Bases: oslo_versionedobjects.base.VersionedObjectSerializer

OBJ_BASE_CLASS

alias of IronicObject

Project Source

This Page