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