def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
      response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_linked_databases_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
      response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_linked_databases_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists databases linked to a sync agent.

 @param resource_group_name [String] The name of the resource group that
 contains the resource. You can obtain this value from the Azure Resource
 Manager API or the portal.
 @param server_name [String] The name of the server on which the sync agent is
 hosted.
 @param sync_agent_name [String] The name of the sync agent.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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