def list_by_site_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil)
      response = list_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_site_slot_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_site_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil)
      response = list_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_site_slot_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets the category of ResourceHealthMetadata to use for the given site as a
 collection

 Gets the category of ResourceHealthMetadata to use for the given site as a
 collection

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param name [String] Name of web app.
 @param slot [String] Name of web app slot. If not specified then will default
 to production slot.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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