code: public PagedList<ImageInner> listByResourceGroup(final String resourceGroupName) {
          ServiceResponse<Page<ImageInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
          return new PagedList<ImageInner>(response.body()) {
              @Override
              public Page<ImageInner> nextPage(String nextPageLink) {
                  return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets the list of images under a resource group.
  
  @param resourceGroupName The name of the resource group.
  @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;ImageInner&gt; object if successful.