docs: public PagedList<ServiceEndpointPolicyDefinitionInner> listByResourceGroup(final String resourceGroupName, final String serviceEndpointPolicyName) {
          ServiceResponse<Page<ServiceEndpointPolicyDefinitionInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName, serviceEndpointPolicyName).toBlocking().single();
          return new PagedList<ServiceEndpointPolicyDefinitionInner>(response.body()) {
              @Override
              public Page<ServiceEndpointPolicyDefinitionInner> nextPage(String nextPageLink) {
                  return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }