'Make an object representation compatible with a target version.'

def obj_make_compatible(self, primitive, target_version):

    super(Snapshot, self).obj_make_compatible(primitive, target_version)
    target_version = versionutils.convert_version_to_tuple(target_version)
    backport_statuses = (((1, 3), (c_fields.SnapshotStatus.UNMANAGING, c_fields.SnapshotStatus.DELETING)), ((1, 4), (c_fields.SnapshotStatus.BACKING_UP, c_fields.SnapshotStatus.AVAILABLE)), ((1, 5), (c_fields.SnapshotStatus.RESTORING, c_fields.SnapshotStatus.AVAILABLE)))
    for (version, status) in backport_statuses:
        if (target_version < version):
            if (primitive.get('status') == status[0]):
                primitive['status'] = status[1]
