Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git] / trunk / PLC / Methods / SliceDelete.py
1 import re
2
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.DeleteSlice import DeleteSlice
9
10 class SliceDelete(DeleteSlice):
11     """
12     Deprecated. See DeleteSlice.
13
14     """
15
16     status = "deprecated"
17
18     roles = ['admin', 'pi']
19
20     accepts = [
21         Auth(),
22         Slice.fields['name']
23         ]
24
25     returns = Parameter(int, 'Returns 1 if successful, a fault otherwise.')
26
27     def call(self, auth, slice_name):
28
29         return DeleteSlice.call(self, auth, slice_name)