ironic.objects.node_inventory.NodeInventory(context=None, **kwargs)[source]¶Bases: ironic.objects.base.IronicObject, oslo_versionedobjects.base.VersionedObjectDictCompat
VERSION = '1.0'¶create(context=None)[source]¶Create a NodeInventory record in the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: NodeHistory(context)
created_at¶dbapi = <oslo_db.api.DBAPI object>¶destroy(context=None)[source]¶Delete the NodeInventory from the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: NodeInventory(context)
NodeInventoryNotFound
fields = {'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'inventory_data': FlexibleDict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'node_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'plugin_data': FlexibleDict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶get_by_node_id(context, node_id)[source]¶Get a NodeInventory object by its node ID.
cls – the NodeInventory
context – Security context
uuid – The UUID of a NodeInventory.
A NodeInventory object.
NodeInventoryNotFound
id¶inventory_data¶node_id¶plugin_data¶updated_at¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.