3 from PLC.Faults import *
4 from PLC.Method import Method
5 from PLC.Parameter import Parameter, Mixed
6 from PLC.NodeTypes import NodeType, NodeTypes
7 from PLC.Auth import Auth
9 class GetNodeTypes(Method):
11 Returns an array of all valid node node types.
14 roles = ['admin', 'pi', 'user', 'tech', 'node']
20 returns = [NodeType.fields['node_type']]
24 return [node_type['node_type'] for node_type in NodeTypes(self.api)]