cfme.generic_objects.definition package¶
Submodules¶
Module contents¶
-
class
cfme.generic_objects.definition.
GenericObjectDefinition
(parent, name, description, attributes=None, associations=None, methods=None)[source]¶ Bases:
cfme.modeling.base.BaseEntity
,cfme.utils.update.Updateable
,sentaku.modeling.ElementMixin
Generic Objects Definition class to context switch between UI and REST.
Read/Update/Delete functionality.
-
__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.
-
associations
= Attribute(name='associations', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
attributes
= Attribute(name='attributes', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
delete
¶ descriptor for implementing context sensitive methods and registration of their implementations
class Example(Element): action = ContextualMethod() @action.implemented_for("db") def action(self): pass @action.implemented_for("test") def action(self): pass
-
description
= Attribute(name='description', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
exists
¶
-
methods
= Attribute(name='methods', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
name
= Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
rest_response
= Attribute(name='rest_response', default=None, validator=None, repr=True, cmp=True, hash=None, init=False, convert=None, metadata=mappingproxy({}))¶
-
update
¶ descriptor for implementing context sensitive methods and registration of their implementations
class Example(Element): action = ContextualMethod() @action.implemented_for("db") def action(self): pass @action.implemented_for("test") def action(self): pass
-
-
class
cfme.generic_objects.definition.
GenericObjectDefinitionCollection
(parent, filters=NOTHING)[source]¶ Bases:
cfme.modeling.base.BaseCollection
,sentaku.modeling.ElementMixin
-
ENTITY
¶ alias of
GenericObjectDefinition
-
__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.
-
create
¶ descriptor for implementing context sensitive methods and registration of their implementations
class Example(Element): action = ContextualMethod() @action.implemented_for("db") def action(self): pass @action.implemented_for("test") def action(self): pass
-