code: public PagedList<ExpressRouteGatewayInner> list() {
          PageImpl1<ExpressRouteGatewayInner> page = new PageImpl1<>();
          page.setItems(listWithServiceResponseAsync().toBlocking().single().body());
          page.setNextPageLink(null);
          return new PagedList<ExpressRouteGatewayInner>(page) {
              @Override
              public Page<ExpressRouteGatewayInner> nextPage(String nextPageLink) {
                  return null;
              }
          };
      }
docs: Lists ExpressRoute gateways under a given subscription.
  
  @return the PagedList<ExpressRouteGatewayInner> object if successful.