def __frontend_limit_rules_descriptor(self, api_info):
if not api_info.frontend_limits.rules:<EOL><INDENT>return None<EOL><DEDENT>rules = []<EOL>for rule in api_info.frontend_limits.rules:<EOL><INDENT>descriptor = {}<EOL>for propname, descname in (('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>if getattr(rule, propname) is not None:<EOL><INDENT>descriptor[descname] = getattr(rule, propname)<EOL><DEDENT><DEDENT>if descriptor:<EOL><INDENT>rules.append(descriptor)<EOL><DEDENT><DEDENT>return rules<EOL>
Builds a frontend limit rules descriptor from API info.

        Args:
          api_info: An _ApiInfo object.

        Returns:
          A list of dictionaries with frontend limit rules information.