cfme.control.explorer.policies module¶
Page model for Control / Explorer
-
class
cfme.control.explorer.policies.
BasePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.modeling.base.BaseEntity
,cfme.utils.update.Updateable
,cfme.utils.pretty.Pretty
This class represents a Policy.
Example
>>> from cfme.control.explorer.policy import VMCompliancePolicy >>> policy = VMCompliancePolicy("policy_description") >>> policy.create() >>> policy.delete()
Parameters: - description – Policy name.
- active – Whether the policy active or not.
- scope – Policy scope.
- notes – Policy notes.
-
PRETTY
= None¶
-
TREE_NODE
= None¶
-
TYPE
= 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.
-
active
= Attribute(name='active', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
assign_actions_to_event
(event, actions)[source]¶ This method takes a list or dict of actions, goes into the policy event and assigns them. Actions can be passed both as the objects, but they can be passed also as a string. If the specified event is not assigned to the policy, it will be assigned.
Parameters: - event – Name of the event under which the actions will be assigned.
- actions – If
list
(or similar), all of these actions will be set under TRUE section. Ifdict
, the action is key and value specifies its placement. If it’s True, then it will be put in the TRUE section and so on.
-
assign_conditions
(*conditions)[source]¶ Assign conditions to this Policy.
Parameters: conditions – Conditions which need to be assigned.
-
assign_events
(*events, **kwargs)[source]¶ Assign events to this Policy.
Parameters: - events – Events which need to be assigned.
- extend – Do not uncheck existing events.
-
assigned_events
¶
-
copy
(cancel=False)[source]¶ Copy this Policy in UI.
Parameters: cancel – Whether to cancel the copying (default False).
-
delete
(cancel=False)[source]¶ Delete this Policy in UI.
Parameters: cancel – Whether to cancel the deletion (default False).
-
description
= Attribute(name='description', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
exists
¶
-
name_for_policy_profile
¶
-
notes
= Attribute(name='notes', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
scope
= Attribute(name='scope', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
class
cfme.control.explorer.policies.
ConditionDetailsView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
-
is_displayed
¶
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
ContainerImageCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Container Image'¶
-
TREE_NODE
= 'Container Image'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
ContainerImageControlPolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Container Image'¶
-
TREE_NODE
= 'Container Image'¶
-
TYPE
= 'Control'¶
-
-
class
cfme.control.explorer.policies.
ContainerNodeCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Node'¶
-
TREE_NODE
= 'Container Node'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
ContainerNodeControlPolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Node'¶
-
TREE_NODE
= 'Container Node'¶
-
TYPE
= 'Control'¶
-
-
class
cfme.control.explorer.policies.
EditEventView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
false_actions
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
true_actions
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
class
cfme.control.explorer.policies.
EditPolicyConditionAssignments
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
conditions
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
class
cfme.control.explorer.policies.
EditPolicyEventAssignments
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
events
¶ A class that implements the version picking functionality.
Basic usage is a descriptor in which you place instances of
VersionPick
in a view. Whenever is this instance accessed from an instance, it automatically picks the correct variant based on product_version defined in thewidgetastic.browser.Browser
.You can also use this separately using the
pick()
method.Example:
class MyView(View): something_version_dependent = VersionPick({ '1.0.0': Foo('bar'), '2.5.0': Bar('baz'), })
This sample will resolve the correct (Foo or Bar) kind of item and returns it.
Parameters: version_dict – Dictionary of version_introduced: item
-
is_displayed
¶
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
class
cfme.control.explorer.policies.
EditPolicyView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.policies.PolicyFormCommon
-
is_displayed
¶
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
EventDetailsToolbar
(parent, logger=None, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Toolbar widgets on the event details page
-
configuration
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
EventDetailsView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
-
false_actions
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
toolbar
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
true_actions
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
HostCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Host / Node'¶
-
TREE_NODE
= 'Host'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
HostControlPolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Host / Node'¶
-
TREE_NODE
= 'Host'¶
-
TYPE
= 'Control'¶
-
-
class
cfme.control.explorer.policies.
MiddlewareServerCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Middleware Server'¶
-
TREE_NODE
= 'Middleware Server'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
NewPolicyView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.policies.PolicyFormCommon
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
class
cfme.control.explorer.policies.
PodCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Pod'¶
-
TREE_NODE
= 'Pod'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
PodControlPolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Pod'¶
-
TREE_NODE
= 'Pod'¶
-
TYPE
= 'Control'¶
-
-
class
cfme.control.explorer.policies.
PoliciesAllView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
-
is_displayed
¶
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
PolicyAll
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
PoliciesAllView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.control.explorer.policies.
PolicyCollection
(parent, filters=NOTHING)[source]¶ Bases:
cfme.modeling.base.BaseCollection
-
ENTITY
¶ alias of
BasePolicy
-
__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.
-
-
class
cfme.control.explorer.policies.
PolicyDetails
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
PolicyDetailsView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.control.explorer.policies.
PolicyDetailsView
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
-
analysis_profile
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
type
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
PolicyEdit
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
EditPolicyView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.control.explorer.policies.
PolicyEventDetails
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
EventDetailsView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.control.explorer.policies.
PolicyFormCommon
(parent, logger=None, **kwargs)[source]¶ Bases:
cfme.control.explorer.ControlExplorerView
-
active
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
description
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
notes
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
scope
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.control.explorer.policies.
PolicyNew
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
NewPolicyView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.control.explorer.policies.
ReplicatorCompliancePolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Replicator'¶
-
TREE_NODE
= 'Replicator'¶
-
TYPE
= 'Compliance'¶
-
-
class
cfme.control.explorer.policies.
ReplicatorControlPolicy
(parent, description, active=None, scope=None, notes=None)[source]¶ Bases:
cfme.control.explorer.policies.BasePolicy
-
PRETTY
= 'Replicator'¶
-
TREE_NODE
= 'Replicator'¶
-
TYPE
= 'Control'¶
-