cfme.modeling.base module

class cfme.modeling.base.BaseCollection(parent, filters=NOTHING)[source]

Bases: cfme.utils.appliance.NavigatableMixin

Class for helping create consistent Collections

The BaseCollection class is responsible for ensuring two things:

  1. That the API consistently has the first argument passed to it
  2. 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
__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)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

appliance
filter(filter)[source]
classmethod for_appliance(appliance, *k, **kw)[source]
classmethod for_entity(obj, *k, **kw)[source]
classmethod for_entity_with_filter(obj, filt, *k, **kw)[source]
instantiate(*args, **kwargs)[source]
class cfme.modeling.base.BaseEntity(parent)[source]

Bases: cfme.utils.appliance.NavigatableMixin

Class for helping create consistent entitys

The BaseEntity class is responsible for ensuring two things:

  1. That the API consistently has the first argument passed to it
  2. 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.

__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)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

appliance
collections
classmethod from_collection(collection, *k, **kw)[source]
class cfme.modeling.base.CollectionProperty(type_or_get_type)[source]

Bases: object

__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)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

class cfme.modeling.base.EntityCollections(parent, availiable_collections, filters=NOTHING)[source]

Bases: object

Caches instances of collection objects for use by the collections accessor

The appliance object has a collections attribute. 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.

__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)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

classmethod declared(**spec)[source]

returns a cached property named collections for use in entities

classmethod for_appliance(appliance)[source]
classmethod for_entity(entity, collections)[source]
cfme.modeling.base.load_appliance_collections()[source]
cfme.modeling.base.parent_of_type(obj, klass)[source]