code: public PagedList<MediaServiceInner> listByResourceGroup(String resourceGroupName) {
          PageImpl<MediaServiceInner> page = new PageImpl<>();
          page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());
          page.setNextPageLink(null);
          return new PagedList<MediaServiceInner>(page) {
              @Override
              public Page<MediaServiceInner> nextPage(String nextPageLink) {
                  return null;
              }
          };
      }
docs: Lists all of the Media Services in a resource group.
  
  @param resourceGroupName Name of the resource group within the Azure subscription.
  @return the PagedList<MediaServiceInner> object if successful.