<s> from openflow . optin_manager . sfa . util . xrn import Xrn <EOL> from openflow . optin_manager . sfa . util . method import Method <EOL> from openflow . optin_manager . sfa . trust . credential import Credential <EOL> from openflow . optin_manager . sfa . util . parameter import Parameter , Mixed <EOL> class Remove ( Method ) : <EOL> """<STR_LIT>""" <EOL> interfaces = [ '<STR_LIT>' ] <EOL> accepts = [ <EOL> Parameter ( str , "<STR_LIT>" ) , <EOL> Mixed ( Parameter ( str , "<STR_LIT>" ) , <EOL> Parameter ( type ( [ str ] ) , "<STR_LIT>" ) ) , <EOL> Mixed ( Parameter ( str , "<STR_LIT>" ) , <EOL> Parameter ( None , "<STR_LIT>" ) ) , <EOL> ] <EOL> returns = Parameter ( int , "<STR_LIT>" ) <EOL> def call ( self , xrn , creds , type ) : <EOL> xrn = Xrn ( xrn , type = type ) <EOL> valid_creds = self . api . auth . checkCredentials ( creds , "<STR_LIT>" ) <EOL> self . api . auth . verify_object_permission ( xrn . get_hrn ( ) ) <EOL> origin_hrn = Credential ( string = valid_creds [ <NUM_LIT:0> ] ) . get_gid_caller ( ) . get_hrn ( ) <EOL> self . api . logger . info ( "<STR_LIT>" % ( <EOL> self . api . interface , self . name , origin_hrn , xrn . get_urn ( ) ) ) <EOL> return self . api . manager . Remove ( self . api , xrn ) </s>
