1 ### $Id: get_ticket.py 18584 2010-08-05 22:46:52Z tmack $
2 ### $URL: http://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/get_ticket.py $
4 from sfa.util.faults import *
5 from sfa.util.namespace import *
6 from sfa.util.method import Method
7 from sfa.util.parameter import Parameter, Mixed
8 from sfa.methods.GetTicket import GetTicket
10 class get_ticket(GetTicket):
12 Deprecated. Use GetTicket instead.
14 Retrieve a ticket. This operation is currently implemented on PLC
15 only (see SFA, engineering decisions); it is not implemented on
18 The ticket is filled in with information from the PLC database. This
19 information includes resources, and attributes such as user keys and
22 @param cred credential string
23 @param name name of the slice to retrieve a ticket for (hrn or urn)
24 @param rspec resource specification dictionary
26 @return the string representation of a ticket object
29 interfaces = ['aggregate', 'slicemgr']
32 Parameter(str, "Credential string"),
33 Parameter(str, "Human readable name of slice to retrive a ticket for (hrn or urn)"),
34 Parameter(str, "Resource specification (rspec)"),
35 Mixed(Parameter(str, "Human readable name of the original caller"),
36 Parameter(None, "Origin hrn not specified"))
39 returns = Parameter(str, "String represeneation of a ticket object")
41 def call(self, cred, xrn, rspec, origin_hrn=None):
43 return GetTicket.call(self, xrn, cred, rspec, None)