code: def set_group_conditions(self, group_id, conditions, trigger_mode=None):
          
          data = self._serialize_object(conditions)
  
          if trigger_mode is not None:
              url = self._service_url(['triggers', 'groups', group_id, 'conditions', trigger_mode])
          else:
              url = self._service_url(['triggers', 'groups', group_id, 'conditions'])
  
          response = self._put(url, data)
          return Condition.list_to_object_list(response)
docs: Set the group conditions.
  
          This replaces any existing conditions on the group and member conditions for all trigger modes.
  
          :param group_id: Group to be updated
          :param conditions: New conditions to replace old ones
          :param trigger_mode: Optional TriggerMode used
          :type conditions: GroupConditionsInfo
          :type trigger_mode: TriggerMode
          :return: The new Group conditions