code: public PagedList<EndpointServiceResultInner> list(final String location) {
          ServiceResponse<Page<EndpointServiceResultInner>> response = listSinglePageAsync(location).toBlocking().single();
          return new PagedList<EndpointServiceResultInner>(response.body()) {
              @Override
              public Page<EndpointServiceResultInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: List what values of endpoint services are available for use.
  
  @param location The location to check available endpoint services.
  @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;EndpointServiceResultInner&gt; object if successful.