def associate(computer)
      if computer =~ /^d+$/
        raise JSS::NoSuchItemError, "No computer in the JSS with id #{computer}" unless JSS::Computer.all_ids(api: @api).include? computer
        @computer_id = computer
      else
        raise JSS::NoSuchItemError, "No computer in the JSS with name #{computer}" unless JSS::Computer.all_names(api: @api).include? computer
        @computer_id = JSS::Computer.map_all_ids_to(:name, api: @api).invert[computer]
      end
      @need_to_update = true
    end
def associate(computer)
      if computer =~ /^d+$/
        raise JSS::NoSuchItemError, "No computer in the JSS with id #{computer}" unless JSS::Computer.all_ids(api: @api).include? computer
        @computer_id = computer
      else
        raise JSS::NoSuchItemError, "No computer in the JSS with name #{computer}" unless JSS::Computer.all_names(api: @api).include? computer
        @computer_id = JSS::Computer.map_all_ids_to(:name, api: @api).invert[computer]
      end
      @need_to_update = true
    end
Associate this peripheral with a computer.

 @param computer[String,Integer] the name or id of a computer in the JSS

 @return [void]