def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:nil)
      response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_events_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:nil)
      response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_events_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists recent events for the specified webhook.

 @param resource_group_name [String] The name of the resource group to which
 the container registry belongs.
 @param registry_name [String] The name of the container registry.
 @param webhook_name [String] The name of the webhook.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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