'Convert a generic volume group object to a cg object.'

def from_group_snapshot(self, group_snapshot):

    self.id = group_snapshot.id
    self.consistencygroup_id = group_snapshot.group_id
    self.user_id = group_snapshot.user_id
    self.project_id = group_snapshot.project_id
    self.name = group_snapshot.name
    self.description = group_snapshot.description
    self.status = group_snapshot.status
