1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Roles import Role, Roles
5 from PLC.Auth import Auth
7 class GetRoles(Method):
9 Get an array of structs containing details about all roles.
12 roles = ['admin', 'pi', 'user', 'tech', 'node']
18 returns = [Role.fields]
21 return Roles(self.api)