def get_osupgrade_history_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
      response = get_osupgrade_history_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_osupgrade_history_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def get_osupgrade_history_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
      response = get_osupgrade_history_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_osupgrade_history_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets list of OS upgrades on a VM scale set instance.

 @param resource_group_name [String] The name of the resource group.
 @param vm_scale_set_name [String] The name of the VM scale set.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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