def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
      response = list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_job_history_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil)
      response = list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_job_history_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists job history.

 @param resource_group_name [String] The resource group name.
 @param job_collection_name [String] The job collection name.
 @param job_name [String] The job name.
 @param top [Integer] the number of job history to request, in the of range of
 [1..100].
 @param skip [Integer] The (0-based) index of the job history list from which
 to begin requesting entries.
 @param filter [String] The filter to apply on the job state.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [JobHistoryListResult] which provide lazy access to pages of the
 response.