lib/jamf/api/mixins/change_log.rb
def first_change_log_page(page_size, sort, filter, cnx)
      page_size ||= Jamf::Pageable::DFT_PAGE_SIZE
      raise ArgumentError, "page_size must be an Integer from #{MIN_PAGE_SIZE} to #{MAX_PAGE_SIZE}" unless Jamf::Pageable::PAGE_SIZE_RANGE.include? page_size

      # set all these values then call for the next page
      @change_log_paged_cnx = cnx
      @change_log_page = :first
      @change_log_page_size = page_size
      @change_log_sort = sort
      @change_log_filter = filter
      @change_log_paged_fetched_count = 0
      next_page_of_change_log
    end
# get the first page of a paged change log request, and set up for
# getting later pages
#
# @param page_size [Integer] how many items per page
#
# @param sort [String,Array<String>] server-side sorting parameters
#
# @param filter [String] RSQL String limiting the result set
#
# @param cnx [Jamf::Connection] The API connection to use
#
# @return [Array<Object>] The first page of the change logs for this resource
#
get the first page of a paged change log request, and set up for
getting later pages
get the first page of a paged change log request and set up for getting later pages
def first_change_log_page(page_size, sort, filter, cnx)
      page_size ||= Jamf::Pageable::DFT_PAGE_SIZE
      raise ArgumentError, "page_size must be an Integer from #{MIN_PAGE_SIZE} to #{MAX_PAGE_SIZE}" unless Jamf::Pageable::PAGE_SIZE_RANGE.include? page_size
      @change_log_paged_cnx = cnx
      @change_log_page = :first
      @change_log_page_size = page_size
      @change_log_sort = sort
      @change_log_filter = filter
      @change_log_paged_fetched_count = 0
      next_page_of_change_log
    end
def first_change_log_page ( page_size , sort , filter , cnx ) page_size ||= Jamf :: Pageable :: DFT_PAGE_SIZE raise ArgumentError , "page_size must be an Integer from #{MIN_PAGE_SIZE} to #{MAX_PAGE_SIZE}" unless Jamf :: Pageable :: PAGE_SIZE_RANGE . include? page_size @change_log_paged_cnx = cnx @change_log_page = :first @change_log_page_size = page_size @change_log_sort = sort @change_log_filter = filter @change_log_paged_fetched_count = 0 next_page_of_change_log end
get the first page of a paged change log request, and set up for
getting later pages
get the first page of a paged change log request and set up for getting later pages
# set all these values then call for the next page
The first page of the change logs for this resource
The first page of the change logs for this resource
Array<Object>
page_size
None
sort
server-side sorting parameters
server - side sorting parameters
filter
RSQL String limiting the result set
RSQL String limiting the result set
cnx
The API connection to use
The API connection to use