<s> from foam . sfa . util . xrn import urn_to_hrn <EOL> from foam . sfa . util . method import Method <EOL> from foam . sfa . util . parameter import Parameter , Mixed <EOL> from foam . sfa . trust . auth import Auth <EOL> from foam . sfa . trust . credential import Credential <EOL> class DeleteSliver : <EOL> def __init__ ( self , xrn , creds , options , ** kwargs ) : <EOL> ( hrn , type ) = urn_to_hrn ( xrn ) <EOL> valid_creds = Auth ( ) . checkCredentials ( creds , '<STR_LIT>' , hrn ) <EOL> origin_hrn = Credential ( string = valid_creds [ <NUM_LIT:0> ] ) . get_gid_caller ( ) . get_hrn ( ) <EOL> return </s>
