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