def list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
      response = list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_site_detectors_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
      response = list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_site_detectors_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Get Detectors

 Get Detectors

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param site_name [String] Site Name
 @param diagnostic_category [String] Diagnostic Category
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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