Module Import alias ImportFrom alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args defaults body Assign NameStore Dict Str Dict Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword Str keyword Str keyword Dict Str Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A unittest2 st2common.constants pack pack_constants st2common.models.db.policy PolicyTypeReference PolicyTypeDB PolicyDB st2common.models.system.common InvalidReferenceError st2common.persistence.policy PolicyType Policy st2tests DbModelTestCase PolicyTypeReferenceTest N/A N/A unittest2 TestCase N/A test_is_reference N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A PolicyTypeReference is_reference action.concurrency N/A N/A N/A self assertFalse N/A N/A PolicyTypeReference is_reference concurrency N/A N/A N/A self assertFalse N/A N/A PolicyTypeReference is_reference N/A N/A N/A self assertFalse N/A N/A PolicyTypeReference is_reference None N/A test_validate_resource_type N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A PolicyTypeReference validate_resource_type action action N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference validate_resource_type action.test N/A test_get_resource_type N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A PolicyTypeReference get_resource_type action.concurrency action N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_resource_type .abc N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_resource_type abc N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_resource_type N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_resource_type None N/A test_get_name N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A PolicyTypeReference get_name action.concurrency concurrency N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_name .abc N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_name abc N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_name N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference get_name None N/A test_to_string_reference N/A N/A self N/A N/A N/A ref N/A N/A PolicyTypeReference to_string_reference resource_type action name concurrency N/A N/A N/A self assertEqual ref action.concurrency N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type action.test name concurrency N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type None name concurrency N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type name concurrency N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type action name None N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type action name N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type None name None N/A N/A N/A self assertRaises ValueError N/A PolicyTypeReference to_string_reference resource_type name N/A test_from_string_reference N/A N/A self N/A N/A N/A ref N/A N/A PolicyTypeReference from_string_reference action.concurrency N/A N/A N/A self assertEqual N/A ref resource_type action N/A N/A N/A self assertEqual N/A ref name concurrency N/A N/A N/A self assertEqual N/A ref ref action.concurrency N/A ref N/A N/A PolicyTypeReference from_string_reference action.concurrency.targeted N/A N/A N/A self assertEqual N/A ref resource_type action N/A N/A N/A self assertEqual N/A ref name concurrency.targeted N/A N/A N/A self assertEqual N/A ref ref action.concurrency.targeted N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference from_string_reference .test N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference from_string_reference N/A N/A N/A self assertRaises InvalidReferenceError N/A PolicyTypeReference from_string_reference None N/A N/A PolicyTypeTest N/A DbModelTestCase N/A N/A access_type PolicyType _create_instance N/A N/A N/A N/A N/A parameters N/A threshold N/A type required integer True N/A instance N/A PolicyTypeDB name concurrency description TBD enabled None ref None resource_type action module st2action.policies.concurrency parameters parameters N/A instance N/A staticmethod test_crud N/A N/A self N/A N/A N/A instance N/A N/A self _create_instance N/A defaults N/A ref enabled action.concurrency True N/A updates N/A description Limits the concurrent executions for the action. N/A N/A N/A self _assert_crud instance defaults defaults updates updates N/A test_unique_key N/A N/A self N/A N/A N/A instance N/A N/A self _create_instance N/A N/A N/A self _assert_unique_key_constraint instance N/A N/A PolicyTest N/A DbModelTestCase N/A N/A access_type Policy _create_instance N/A N/A N/A N/A N/A instance N/A PolicyDB pack None name local.concurrency description TBD enabled None ref None resource_ref core.local policy_type action.concurrency parameters N/A threshold 25 N/A instance N/A staticmethod test_crud N/A N/A self N/A N/A N/A instance N/A N/A self _create_instance N/A defaults N/A pack ref enabled N/A pack_constants DEFAULT_PACK_NAME N/A %s.local.concurrency N/A pack_constants DEFAULT_PACK_NAME True N/A updates N/A description Limits the concurrent executions for the action "core.local". N/A N/A N/A self _assert_crud instance defaults defaults updates updates N/A test_ref N/A N/A self N/A N/A N/A instance N/A N/A self _create_instance N/A ref N/A N/A instance get_reference N/A N/A N/A self assertIsNotNone ref N/A N/A N/A self assertEqual N/A ref pack N/A instance pack N/A N/A N/A self assertEqual N/A ref name N/A instance name N/A N/A N/A self assertEqual N/A ref ref N/A N/A N/A instance pack . N/A instance name N/A N/A N/A self assertEqual N/A ref ref N/A instance ref N/A test_unique_key N/A N/A self N/A N/A N/A instance N/A N/A self _create_instance N/A N/A N/A self _assert_unique_key_constraint instance N/A N/A