def list_by_device(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil)
      first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_device(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil)
      first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers)
      first_page.get_all_items
    end
Gets all the jobs for specified device. With optional OData query parameters,
 a filtered set of jobs is returned.

 @param device_name [String] The device name
 @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 [Array<Job>] operation results.