def api_modes=(*new_modes)
      new_modes = new_modes.first if new_modes.size == 1 && Array === new_modes.first
      @api_modes = new_modes.compact.collect(&:to_sym)
    end
def api_modes=(*new_modes)
      new_modes = new_modes.first if new_modes.size == 1 && Array === new_modes.first
      @api_modes = new_modes.compact.collect(&:to_sym)
    end
Replaces the non-interactive authentication modes.
 @param [List<#to_sym>] new_modes the names of the desired modes
 @return [void]