def gce_list_aggregated(service=None, key_name='<STR_LIT:name>', **kwargs):
resp_list = []<EOL>req = service.aggregatedList(**kwargs)<EOL>while req is not None:<EOL><INDENT>resp = req.execute()<EOL>for location, item in resp['<STR_LIT>'].items():<EOL><INDENT>if key_name in item:<EOL><INDENT>resp_list.extend(item[key_name])<EOL><DEDENT><DEDENT>req = service.aggregatedList_next(previous_request=req,<EOL>previous_response=resp)<EOL><DEDENT>return resp_list<EOL>
General aggregated list function for the GCE service.