def __repr__(self):
if self.value:<EOL><INDENT>base = '<STR_LIT>' % (self.agg_type, self.value)<EOL><DEDENT>else:<EOL><INDENT>base = '<STR_LIT:%s>' % self.agg_type<EOL><DEDENT>if self.children:<EOL><INDENT>if isinstance(self.children, six.string_types):<EOL><INDENT>return '<STR_LIT>' % (base, self.children)<EOL><DEDENT>elif isinstance(self.children, AggregationDef):<EOL><INDENT>return '<STR_LIT>' % (base, self.children.__repr__())<EOL><DEDENT>else: <EOL><INDENT>kids = []<EOL>for child in self.children:<EOL><INDENT>kids.append(child.__repr__())<EOL><DEDENT>kids_str = '<STR_LIT>' % '<STR_LIT:U+002C>'.join(kids)<EOL>return '<STR_LIT>' % (base, kids_str)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return base<EOL><DEDENT>
Creates a string representation of an aggregation definition suitable for use in VectorServices calls

        Returns:
            A string representation of an aggregation definition suitable for use in VectorServices calls