Policy¶
-
class
policyengine.models.
Policy
(*args, **kwargs)¶ -
kind
¶ Kind of policy (platform, constitution, or trigger).
-
filter
¶ The filter code of the policy.
-
initialize
¶ The initialize code of the policy.
-
notify
¶ The notify code of the policy.
-
success
¶ The pass code of the policy.
-
fail
¶ The fail code of the policy.
-
community
¶ The community which the policy belongs to.
-
action_types
¶ The action types that this policy applies to.
-
name
¶ The name of the policy.
-
description
¶ The description of the policy. May be empty.
-
is_active
¶ True if the policy is active. Default is True.
-
is_template
¶ True if the policy can be used as a template for other policies. Default is False.
-
modified_at
¶ Datetime object representing the last time the policy was modified.
-
bundled_policies
¶ Policies bundled inside this policy.
-
property
is_bundled
¶ True if the policy is part of a bundle
-
update_variables
(variable_data={})¶ Update related variables based on dict
-
copy_as_template
(variable_data={})¶ Make a copy of the policy object and designate it as a template
-
copy_to_community
(community=None, variable_data={})¶ Make a copy of the policy object and assign to a new community
-