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