<s> from foam . sfa . util . method import Method <EOL> from foam . sfa . trust . credential import Credential <EOL> from foam . sfa . util . parameter import Parameter , Mixed <EOL> class ListSlices ( Method ) : <EOL> """<STR_LIT>""" <EOL> interfaces = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> accepts = [ <EOL> Mixed ( Parameter ( str , "<STR_LIT>" ) , <EOL> Parameter ( type ( [ str ] ) , "<STR_LIT>" ) ) , <EOL> Parameter ( dict , "<STR_LIT>" ) , <EOL> ] <EOL> returns = Parameter ( list , "<STR_LIT>" ) <EOL> def call ( self , creds , options ) : <EOL> valid_creds = self . api . auth . checkCredentials ( creds , '<STR_LIT>' ) <EOL> origin_hrn = Credential ( string = valid_creds [ <NUM_LIT:0> ] ) . get_gid_caller ( ) . get_hrn ( ) <EOL> self . api . logger . info ( "<STR_LIT>" % ( self . api . interface , origin_hrn , self . name ) ) <EOL> return self . api . manager . ListSlices ( self . api , creds , options ) </s>
