def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil)
      response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_jobs_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil)
      response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_jobs_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Get a list of all the jobs in an IoT hub. For more information, see:
 https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

 Get a list of all the jobs in an IoT hub. For more information, see:
 https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

 @param resource_group_name [String] The name of the resource group that
 contains the IoT hub.
 @param resource_name [String] The name of the IoT hub.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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