code: public PagedList<EventInner> listEvents(final String resourceGroupName, final String registryName, final String webhookName) {
          ServiceResponse<Page<EventInner>> response = listEventsSinglePageAsync(resourceGroupName, registryName, webhookName).toBlocking().single();
          return new PagedList<EventInner>(response.body()) {
              @Override
              public Page<EventInner> nextPage(String nextPageLink) {
                  return listEventsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists recent events for the specified webhook.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param webhookName The name of the webhook.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;EventInner&gt; object if successful.