code: public PagedList<SharedAccessAuthorizationRuleResourceInner> listAuthorizationRules(final String resourceGroupName, final String namespaceName) {
          ServiceResponse<Page<SharedAccessAuthorizationRuleResourceInner>> response = listAuthorizationRulesSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single();
          return new PagedList<SharedAccessAuthorizationRuleResourceInner>(response.body()) {
              @Override
              public Page<SharedAccessAuthorizationRuleResourceInner> nextPage(String nextPageLink) {
                  return listAuthorizationRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets the authorization rules for a namespace.
  
  @param resourceGroupName The name of the resource group.
  @param namespaceName The namespace name
  @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;SharedAccessAuthorizationRuleResourceInner&gt; object if successful.