@classmethod<EOL><INDENT>def extract_pool_attr(cls, req):<DEDENT>
attr = {}<EOL>if '<STR_LIT:id>' in req:<EOL><INDENT>attr['<STR_LIT:id>'] = int(req['<STR_LIT:id>'])<EOL><DEDENT>if '<STR_LIT:name>' in req:<EOL><INDENT>attr['<STR_LIT:name>'] = req['<STR_LIT:name>']<EOL><DEDENT>if '<STR_LIT:description>' in req:<EOL><INDENT>attr['<STR_LIT:description>'] = req['<STR_LIT:description>']<EOL><DEDENT>if '<STR_LIT>' in req:<EOL><INDENT>attr['<STR_LIT>'] = req['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in req:<EOL><INDENT>attr['<STR_LIT>'] = int(req['<STR_LIT>'])<EOL><DEDENT>if '<STR_LIT>' in req:<EOL><INDENT>attr['<STR_LIT>'] = int(req['<STR_LIT>'])<EOL><DEDENT>return attr<EOL>
Extract pool attributes from arbitary dict.