def name=(new_val)
      return nil if new_val == @name
      new_val = nil if new_val == ''
      raise JSS::MissingDataError, "Name can't be empty" unless new_val
      raise JSS::AlreadyExistsError, "A #{RSRC_OBJECT_KEY} already exists with the name '#{args[:name]}'" if JSS.send(LIST_METHOD).values.include?

      ### if the filename is the same, keep it the same
      @filename = new_val if @filename == @name
      @name = new_val

      ### if our REST resource is based on the name, update that too
      @rest_rsrc = "#{RSRC_BASE}/name/#{CGI.escape @name}" if @rest_rsrc.include? '/name/'
      @need_to_update = true
    end
def name=(new_val)
      return nil if new_val == @name
      new_val = nil if new_val == ''
      raise JSS::MissingDataError, "Name can't be empty" unless new_val
      raise JSS::AlreadyExistsError, "A #{RSRC_OBJECT_KEY} already exists with the name '#{args[:name]}'" if JSS.send(LIST_METHOD).values.include?

      ### if the filename is the same, keep it the same
      @filename = new_val if @filename == @name
      @name = new_val

      ### if our REST resource is based on the name, update that too
      @rest_rsrc = "#{RSRC_BASE}/name/#{CGI.escape @name}" if @rest_rsrc.include? '/name/'
      @need_to_update = true
    end
filename=
 Change the script's display name

 If the filename is the same as the name, the filename  will be changed also

 @param new_val[String] the new display name

 @return [void]