4 from PLC.Faults import *
5 from PLC.Method import Method
6 from PLC.Parameter import Parameter, Mixed
7 from PLC.Slices import Slice, Slices
8 from PLC.Auth import Auth
9 from PLC.Methods.UpdateSlice import UpdateSlice
11 class SliceRenew(UpdateSlice):
13 Deprecated. See UpdateSlice.
19 roles = ['admin', 'pi', 'user']
24 Slice.fields['expires']
27 returns = Parameter(int, '1 if successful')
29 def call(self, auth, slice_name, slice_expires):
32 slice_fields['expires'] = slice_expires
34 return UpdateSlice.call(self, auth, slice_name, slice_fields)