<s> from boundary import ApiCli <EOL> import json <EOL> class SourceDelete ( ApiCli ) : <EOL> def __init__ ( self ) : <EOL> ApiCli . __init__ ( self ) <EOL> self . method = "<STR_LIT>" <EOL> self . path = "<STR_LIT>" <EOL> self . sources = None <EOL> def addArguments ( self ) : <EOL> ApiCli . addArguments ( self ) <EOL> self . parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , dest = '<STR_LIT>' , metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , required = True , help = '<STR_LIT>' ) <EOL> def getArguments ( self ) : <EOL> """<STR_LIT>""" <EOL> ApiCli . getArguments ( self ) <EOL> if self . args . sources is not None : <EOL> self . sources = self . args . sources <EOL> payload = { "<STR_LIT>" : [ ] } <EOL> if self . sources is not None : <EOL> source_list = str . split ( self . sources , '<STR_LIT:U+002C>' ) <EOL> for s in source_list : <EOL> payload [ '<STR_LIT>' ] . append ( s ) <EOL> self . data = json . dumps ( payload , sort_keys = True ) <EOL> self . headers = { '<STR_LIT:Content-Type>' : '<STR_LIT:application/json>' , "<STR_LIT>" : "<STR_LIT:application/json>" } <EOL> def getDescription ( self ) : <EOL> return "<STR_LIT>" </s>
