2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.Roles import Role, Roles
6 from PLC.Auth import Auth
8 class GetRoles(Method):
10 Get an array of structs containing details about all roles.
13 roles = ['admin', 'pi', 'user', 'tech', 'node']
19 returns = [Role.fields]
22 return Roles(self.api)