'Evaluates rules held in the rule set.
Args:
objects: A dict that maps fd.urn to fd for all file descriptors fd
corresponding to the aff4 paths returned by the GetPathsToCheck
method of this object.
client_id: An aff4 client id object.
Returns:
A bool value of the evaluation.
Raises:
ValueError: The match mode is of unknown value.'

def Evaluate(self, objects, client_id):

    if (self.match_mode == ForemanClientRuleSet.MatchMode.MATCH_ALL):
        quantifier = all
    elif (self.match_mode == ForemanClientRuleSet.MatchMode.MATCH_ANY):
        quantifier = any
    else:
        raise ValueError(('Unexpected    match    mode    value:    %s' % self.match_mode))
    return quantifier((rule.Evaluate(objects, client_id) for rule in self.rules))
