'Sets or clears which host group a host is in.'

def set_host_group_for_host(self, host_ref, host_group_ref=utils.NULL_REF):

    data = {'groupId': host_group_ref}
    self.update_host(host_ref, data)
