gemd.entity.object.has_spec module

For entities that have specs.

class gemd.entity.object.has_spec.HasSpec(spec: Optional[Union[HasTemplate, LinkByUID]] = None)

Bases: HasDependencies

Mix-in trait for objects that can be assigned specs.

property spec: Union[HasTemplate, LinkByUID]

A spec, which expresses the anticipated or aspirational behavior of this object.

property template: Optional[Union[BaseTemplate, LinkByUID]]

Get the template associated with the spec.