'create rules from an array'

@staticmethod
def parse_rules(inc_rules):

    results = []
    for rule in inc_rules:
        results.append(Rule(rule.get('apiGroups', ['']), rule.get('attributeRestrictions', None), rule.get('resources', []), rule.get('verbs', [])))
    return results
