5 from PLC.Faults import *
6 from PLC.Method import Method
7 from PLC.Parameter import Parameter, Mixed
8 from PLC.Slices import Slice, Slices
9 from PLC.Auth import Auth
10 from PLC.Methods.UpdateSlice import UpdateSlice
12 class SliceRenew(UpdateSlice):
14 Deprecated. See UpdateSlice.
20 roles = ['admin', 'pi', 'user']
25 Slice.fields['expires']
28 returns = Parameter(int, '1 if successful')
30 def call(self, auth, slice_name, slice_expires):
33 slice_fields['expires'] = slice_expires
35 return UpdateSlice.call(self, auth, slice_name, slice_fields)