def list_by_group_as_lazy(resource_group_name, sql_virtual_machine_group_name, custom_headers:nil)
      response = list_by_group_async(resource_group_name, sql_virtual_machine_group_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_group_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_group_as_lazy(resource_group_name, sql_virtual_machine_group_name, custom_headers:nil)
      response = list_by_group_async(resource_group_name, sql_virtual_machine_group_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_group_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists all availability group listeners in a SQL virtual machine group.

 @param resource_group_name [String] Name of the resource group that contains
 the resource. You can obtain this value from the Azure Resource Manager API
 or the portal.
 @param sql_virtual_machine_group_name [String] Name of the SQL virtual
 machine group.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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