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