code: public PagedList<ApplicationGatewayInner> listAll() {
          ServiceResponse<Page<ApplicationGatewayInner>> response = listAllSinglePageAsync().toBlocking().single();
          return new PagedList<ApplicationGatewayInner>(response.body()) {
              @Override
              public Page<ApplicationGatewayInner> nextPage(String nextPageLink) {
                  return listAllNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets all the application gateways in a subscription.
  
  @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;ApplicationGatewayInner&gt; object if successful.