lib/jamf/api/mixins/change_log.rb
# Add a note to this resource's change log.
#
# If the change history has been cached already, the cache is
# flushed after adding the note.
#
# @param note[String] The note to add. It cannot be empty.
#
# @return [void]
#
Add a note to this resource's change log.
If the change history has been cached already, the cache is
flushed after adding the note.
Add a note to this resource ' s change log . If the change history has been cached already the cache is flushed after adding the note .
def add_change_log_note(note, cnx: Jamf.cnx)
      cnx = @cnx if @cnx
      note = Jamf::Validate.non_empty_string note
      note_to_send = { note: note }
      cnx.post change_log_rsrc, note_to_send
      @change_log = nil
    end
def add_change_log_note ( note , cnx : Jamf . cnx ) cnx = @cnx if @cnx note = Jamf :: Validate . non_empty_string note note_to_send = { note : note } cnx . post change_log_rsrc , note_to_send @change_log = nil end
Add a note to this resource's change log.
Add a note to this resource ' s change log .
# this should only be true for instances of CollectionResources # flush the cached data, force reload when next accessed, to get new note
None
void
note
The note to add. It cannot be empty.
The note to add . It cannot be empty .
cnx