parameters: (request)
return_statement: return items
docstring: List instances.
docstring_summary: List instances.
docstring_tokens: List instances .
function: def list_instances(request):
      """List instances."""
      compute = compute_api()
      items = []
      locations = get_locations()
      zones = [zone for l, z in locations.iteritems() for zone in z["zones"]]
      for zone in zones:
        resp = compute.instances().list(project=PROJECT_ID,
                                        zone=zone).execute()
        items.append(resp)
      return items
function_tokens: def list_instances ( request ) : compute = compute_api ( ) items = [ ] locations = get_locations ( ) zones = [ zone for l , z in locations . iteritems ( ) for zone in z [ "zones" ] ] for zone in zones : resp = compute . instances ( ) . list ( project = PROJECT_ID , zone = zone ) . execute ( ) items . append ( resp ) return items