def get_ua_account_summaries(management_api):
  """Get a list of UA account summaries.

  Args:
    management_api: The Analytics Management API object.

  Returns:
    A list of the GA account summaries.
  """
  account_summaries = (
      management_api.management().accountSummaries().list().execute())
  return account_summaries['items']