get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / GetSliceInstantiations.py
1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.SliceInstantiations import SliceInstantiation, SliceInstantiations
5 from PLC.Auth import Auth
6
7 class GetSliceInstantiations(Method):
8     """
9     Returns an array of all valid slice instantiation states.
10     """
11
12     roles = ['admin', 'pi', 'user', 'tech', 'node']
13
14     accepts = [
15         Auth()
16         ]
17
18     returns = [SliceInstantiation.fields['instantiation']]
19
20     def call(self, auth):
21         return [slice_instantiation['instantiation'] for slice_instantiation in SliceInstantiations(self.api)]