def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
      response = list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_type_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
      response = list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_type_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists the record sets of a specified type in a DNS zone.

 @param resource_group_name [String] The name of the resource group. The name
 is case insensitive.
 @param zone_name [String] The name of the DNS zone (without a terminating
 dot).
 @param record_type [RecordType] The type of record sets to enumerate.
 Possible values include: 'A', 'AAAA', 'CAA', 'CNAME', 'MX', 'NS', 'PTR',
 'SOA', 'SRV', 'TXT'
 @param top [Integer] The maximum number of record sets to return. If not
 specified, returns up to 100 record sets.
 @param recordsetnamesuffix [String] The suffix label of the record set name
 that has to be used to filter the record set enumerations. If this parameter
 is specified, Enumeration will return only records that end with
 .<recordSetNameSuffix>
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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