lib/jamf/api/jamf_pro/mixins/change_log.rb in ruby-jss-3.0.0 vs lib/jamf/api/jamf_pro/mixins/change_log.rb in ruby-jss-3.1.0b1
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright 2022 Pixar
+# Copyright 2023 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
@@ -22,10 +22,11 @@
# language governing permissions and limitations under the Apache License.
#
#
module Jamf
+
# a mix-in module for Jamf::Resource subclasses.
#
# Many Jamf resources maintain an 'object history', available in the WebUI via
# the 'History' button at the bottom of a page. Ad-hoc history entries can
# be added containing textual notes, which is useful for objects that don't
@@ -86,11 +87,10 @@
SEARCH_RESULTS_OBJECT = Jamf::OAPISchemas::HistorySearchResultsV1
HISTORY_ENTRY_OBJECT = Jamf::ChangeLogEntry
POST_NOTE_OBJECT = Jamf::OAPISchemas::ObjectHistoryNote
-
# when this module is included, also extend our Class Methods
def self.included(includer)
Jamf.load_msg "--> #{includer} is including Jamf::ChangeLog"
includer.extend(ClassMethods)
end
@@ -140,10 +140,10 @@
# If this is an instance of a Collection Resource, this is always
# the connection from which it was fetched.
#
# @return [Array<Jamf::ChangeLogEntry>] The change log entries requested
#
- def change_log(id: nil, sort: nil, filter: nil, cnx: Jamf.cnx)
+ def change_log(id: nil, sort: nil, filter: nil, cnx: Jamf.cnx)
sort &&= Jamf::Sortable.parse_url_sort_param(sort)
filter &&= Jamf::Filterable.parse_url_filter_param(filter)
Jamf::Pager.all_pages(
list_path: history_path(id),