2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.Auth import Auth
6 from PLC.Slices import Slice, Slices
7 from PLC.Methods.AddSlice import AddSlice
9 class SliceCreate(AddSlice):
11 Deprecated. See AddSlice.
22 returns = Parameter(int, 'New slice_id (> 0) if successful')
24 def call(self, auth, name, slice_fields = {}):
25 slice_fields['name'] = name
26 return AddSlice.call(self, auth, slice_fields)