Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad attr If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn Str SubscriptLoad NameLoad Index NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad ListLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore BinOpSub NameLoad Call NameLoad ListLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad AugAssignBitAnd NameStore NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore NameLoad body If CompareIn Str SubscriptLoad NameLoad Index NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad Call NameLoad NameLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad TupleLoad Call NameLoad NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A operator attrgetter N/A sqlalchemy sa nailgun.api.v1.validators.base BasicValidator nailgun.api.v1.validators.json_schema.assignment assignment_format_schema nailgun.api.v1.validators.json_schema.assignment unassignment_format_schema nailgun.db db nailgun.db.sqlalchemy.models Node nailgun errors nailgun.expression Expression nailgun objects AssignmentValidator N/A BasicValidator N/A N/A predicate None N/A done_error_msg_template None check_all_nodes N/A N/A nodes node_ids N/A N/A N/A not_found_node_ids N/A N/A set node_ids N/A set N/A N/A n id N/A n nodes N/A not_found_node_ids N/A N/A N/A N/A errors InvalidData N/A N/A Nodes with ids {0} were not found. format N/A N/A , join N/A map str not_found_node_ids log_message True N/A staticmethod check_if_already_done N/A N/A cls nodes N/A N/A N/A already_done_nodes N/A filter N/A cls predicate nodes N/A N/A any already_done_nodes N/A N/A N/A N/A errors InvalidData N/A N/A N/A cls done_error_msg_template format N/A N/A , join N/A map str already_done_nodes log_message True N/A classmethod check_unique_hostnames N/A N/A cls nodes cluster_id N/A N/A N/A hostnames N/A N/A node hostname N/A node nodes N/A conflicting_hostnames N/A N/A x N/A 0 N/A x N/A N/A N/A N/A N/A N/A db query N/A Node hostname filter N/A N/A sa and_ N/A N/A N/A Node hostname in_ hostnames N/A N/A Node cluster_id cluster_id all N/A conflicting_hostnames N/A N/A N/A N/A errors AlreadyExists N/A N/A Nodes with hostnames [{0}] already exist in cluster {1}. format N/A N/A , join conflicting_hostnames cluster_id N/A classmethod N/A NodeAssignmentValidator N/A AssignmentValidator N/A N/A predicate N/A attrgetter cluster N/A done_error_msg_template Nodes with ids {0} already assigned to environments. Nodes must be unassigned before they can be assigned again. validate_collection_update N/A N/A cls data cluster_id N/A None N/A N/A data N/A N/A cls validate_json data N/A N/A N/A cls validate_schema data assignment_format_schema N/A dict_data N/A dict N/A N/A N/A d N/A id N/A d N/A roles N/A d data N/A received_node_ids N/A N/A dict_data keys N/A nodes N/A N/A N/A N/A db query Node filter N/A N/A N/A Node id in_ received_node_ids N/A N/A N/A cls check_all_nodes nodes received_node_ids N/A N/A N/A cls check_if_already_done nodes N/A cluster N/A N/A N/A objects Cluster get_by_uid cluster_id fail_if_not_found True N/A N/A N/A cls check_unique_hostnames nodes cluster_id N/A node_id received_node_ids N/A N/A N/A N/A cls validate_roles cluster N/A dict_data N/A node_id N/A dict_data N/A classmethod validate_roles N/A N/A cls cluster roles N/A N/A N/A available_roles N/A N/A N/A objects Cluster get_roles cluster N/A roles N/A set roles N/A not_valid_roles N/A roles N/A set available_roles N/A not_valid_roles N/A N/A N/A N/A errors InvalidData N/A N/A {0} are not valid roles for node in environment {1} format N/A N/A ,  join not_valid_roles N/A cluster id log_message True N/A N/A N/A cls check_roles_for_conflicts roles available_roles N/A N/A N/A cls check_roles_requirement roles available_roles N/A settings cluster N/A N/A cluster attributes editable cluster N/A classmethod check_roles_for_conflicts N/A N/A cls roles roles_metadata N/A N/A N/A all_roles N/A set N/A N/A roles_metadata keys N/A role roles N/A N/A N/A conflicts N/A roles_metadata N/A role N/A N/A other_roles N/A roles N/A set N/A role N/A conflicting_roles N/A N/A roles_metadata N/A role N/A conflicts N/A N/A conflicting_roles * N/A N/A conflicting_roles N/A all_roles N/A set N/A role N/A N/A conflicting_roles N/A set conflicting_roles N/A conflicting_roles other_roles N/A conflicting_roles N/A N/A N/A N/A errors InvalidData N/A N/A Role "{0}" in conflict with role {1} format role N/A N/A ,  join conflicting_roles log_message True N/A classmethod check_roles_requirement N/A N/A cls roles roles_metadata models N/A N/A N/A role roles N/A N/A N/A depends N/A roles_metadata N/A role N/A N/A depends N/A N/A roles_metadata N/A role N/A depends N/A condition depends N/A N/A expression N/A condition N/A condition N/A N/A N/A N/A N/A Expression expression models evaluate N/A N/A N/A N/A errors InvalidData N/A condition N/A warning N/A classmethod N/A NodeUnassignmentValidator N/A AssignmentValidator N/A N/A done_error_msg_template Can't unassign nodes with ids {0} if they not assigned. predicate N/A N/A node N/A N/A N/A N/A N/A N/A node cluster N/A node pending_deletion N/A staticmethod validate_collection_update N/A N/A cls data cluster_id N/A None N/A N/A list_data N/A N/A cls validate_json data N/A N/A N/A cls validate_schema list_data unassignment_format_schema N/A node_ids_set N/A set N/A N/A n N/A id N/A n list_data N/A nodes N/A N/A N/A N/A db query Node filter N/A N/A N/A Node id in_ node_ids_set N/A node_id_cluster_map N/A dict N/A N/A N/A n id N/A n cluster_id N/A n N/A N/A N/A N/A db query N/A Node id N/A Node cluster_id filter N/A N/A N/A Node id in_ node_ids_set N/A other_cluster_ids_set N/A N/A set N/A N/A node_id_cluster_map values N/A set N/A N/A int cluster_id N/A other_cluster_ids_set N/A N/A N/A N/A errors InvalidData N/A N/A Nodes [{0}] are not members of environment {1}. format N/A N/A ,  join N/A N/A str n_id N/A N/A n_id c_id N/A N/A node_id_cluster_map iteritems N/A c_id other_cluster_ids_set cluster_id log_message True N/A N/A N/A cls check_all_nodes nodes node_ids_set N/A N/A N/A cls check_if_already_done nodes N/A nodes N/A classmethod N/A