'Enable/Disable scheduling for a service.'

def _enable_disable(self, body, context, status, params_to_update):

    reason = params_to_update.get('disabled_reason')
    ret_value = {'service': {'host': body['host'], 'binary': body['binary'], 'status': status}}
    if reason:
        ret_value['service']['disabled_reason'] = reason
    self._update(context, body['host'], body['binary'], params_to_update)
    return ret_value
