3 from PLC.Faults import *
4 from PLC.Method import Method
5 from PLC.Parameter import Parameter, Mixed
6 from PLC.NetworkMethods import NetworkMethod, NetworkMethods
7 from PLC.Auth import Auth
9 class GetNetworkMethods(Method):
11 Returns a list of all valid network methods.
14 roles = ['admin', 'pi', 'user', 'tech', 'node']
20 returns = [NetworkMethod.fields['method']]
24 return [network_method['method'] for network_method in NetworkMethods(self.api)]