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