'Calculate the difference between this definition and a previous one.
Return a Diff object that can be used to establish differences between
this definition and a previous definition of the same resource.'

def __sub__(self, previous):

    if (not isinstance(previous, ResourceDefinition)):
        return NotImplemented
    return self.Diff(previous, self)
