The ooi.occi.core.entity
Module¶
-
class
ooi.occi.core.entity.
Entity
(title, mixins, id=None)¶ Bases:
object
OCCI Entity.
Entity is an abstract type, which both Resource and Link inherit. Each sub-type of Entity is identified by a unique Kind instance
-
actions
= None¶
-
attributes
= <ooi.occi.core.attribute.AttributeCollection object>¶
-
id
¶
-
kind
= <ooi.occi.core.kind.Kind object>¶
-
location
¶
-
title
¶
-
-
class
ooi.occi.core.entity.
EntityMeta
(*args)¶ Bases:
type
Meta class for Entity classes.
Following OCCI Core model, all the Entity subclasses will have its own attributes, as long as they parent’s ones.
For example the Entity class defines “occi.core.id” and “occi.core.title” attributes, and the resource Resource class (that is a subclass of Entity) defines “occi.core.summary” as attributes. Therefore, the Resource class and all the objects should have all three attributes.
This metaclass does this, by updating the attributes to those of the base class.