def group_set(self, rule_id, session, add_groups=None, delete_groups=None):
        '''taobao.crm.rule.group.set 设置规则适用的分组
        
        将规则应用或取消应用到分组上，add_groups和delete_groups，两个参数最少填写一个。'''
        request = TOPRequest('taobao.crm.rule.delete')
        request['rule_id'] = rule_id
        if add_groups!=None: request['add_groups'] = add_groups
        if delete_groups!=None: request['delete_groups'] = delete_groups
        self.create(self.execute(request, session))
        return self.is_success