'Ensures that there are no keys in the datastructure which do
not map to attributes for this object.'

def _validate_attributes(self, ds):

    valid_attrs = frozenset(self._valid_attrs.keys())
    for key in ds:
        if (key not in valid_attrs):
            raise AnsibleParserError(("'%s'    is    not    a    valid    attribute    for    a    %s" % (key, self.__class__.__name__)), obj=ds)
