cfme.modeling.base module¶
-
class
cfme.modeling.base.BaseCollection(parent, filters=NOTHING)[source]¶ Bases:
cfme.utils.appliance.NavigatableMixinClass for helping create consistent Collections
The BaseCollection class is responsible for ensuring two things:
- That the API consistently has the first argument passed to it
- That that first argument is an appliance instance
This class works in tandem with the entrypoint loader which ensures that the correct argument names have been used.
-
ENTITY= None¶
-
__eq__(other)¶ Automatically created by attrs.
-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Automatically created by attrs.
-
__repr__()¶ Automatically created by attrs.
-
appliance¶
-
filters= Attribute(name='filters', default=Factory(factory=<type 'dict'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
parent= Attribute(name='parent', default=NOTHING, validator=None, repr=False, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
class
cfme.modeling.base.BaseEntity(parent)[source]¶ Bases:
cfme.utils.appliance.NavigatableMixinClass for helping create consistent entitys
The BaseEntity class is responsible for ensuring two things:
- That the API consistently has the first argument passed to it
- That that first argument is a collection instance
This class works in tandem with the entrypoint loader which ensures that the correct argument names have been used.
-
__eq__(other)¶ Automatically created by attrs.
-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Automatically created by attrs.
-
__repr__()¶ Automatically created by attrs.
-
appliance¶
-
collections¶
-
parent= Attribute(name='parent', default=NOTHING, validator=None, repr=False, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
class
cfme.modeling.base.CollectionProperty(type_or_get_type)[source]¶ Bases:
object-
__eq__(other)¶ Automatically created by attrs.
-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Automatically created by attrs.
-
__repr__()¶ Automatically created by attrs.
-
type_or_get_type= Attribute(name='type_or_get_type', default=NOTHING, validator=<instance_of validator for type (<class '_abcoll.Callable'>, <type 'type'>)>, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
-
class
cfme.modeling.base.EntityCollections(parent, availiable_collections, filters=NOTHING)[source]¶ Bases:
objectCaches instances of collection objects for use by the collections accessor
The appliance object has a
collectionsattribute. This attribute is an instance of this class. It is initialized with an appliance object and locally stores a cache of all known good collections.-
__eq__(other)¶ Automatically created by attrs.
-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Automatically created by attrs.
-
__repr__()¶ Automatically created by attrs.
-