2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.KeyTypes import KeyType, KeyTypes
6 from PLC.Auth import Auth
8 class GetKeyTypes(Method):
10 Returns an array of all valid key types.
13 roles = ['admin', 'pi', 'user', 'tech', 'node']
19 returns = [KeyType.fields['key_type']]
23 return [key_type['key_type'] for key_type in KeyTypes(self.api)]