Reads all client action requests available for a given client_id.

def ReadAllClientActionRequests(self, client_id):
    """Reads all client action requests available for a given client_id."""
    res = []
    for key, orig_request in iteritems(self.client_action_requests):
      request_client_id, _, _ = key
      if request_client_id != client_id:
        continue

      request = orig_request.Copy()
      current_lease = self.client_action_request_leases.get(key)
      request.ttl = db.Database.CLIENT_MESSAGES_TTL
      if current_lease is not None:
        request.leased_until, request.leased_by, leased_count = current_lease
        request.ttl -= leased_count
      else:
        request.leased_until = None
        request.leased_by = None
      res.append(request)

    return res