def list_by_manager_as_lazy(resource_group_name, manager_name, filter:nil, custom_headers:nil)
      response = list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_manager_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_manager_as_lazy(resource_group_name, manager_name, filter:nil, custom_headers:nil)
      response = list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_manager_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets all the jobs for the specified manager. With optional OData query
 parameters, a filtered set of jobs is returned.

 @param resource_group_name [String] The resource group name
 @param manager_name [String] The manager name
 @param filter [String] OData Filter options
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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