code: public PagedList<FirewallRuleInner> listFirewallRules(final String resourceGroupName, final String accountName) {
          ServiceResponse<Page<FirewallRuleInner>> response = listFirewallRulesSinglePageAsync(resourceGroupName, accountName).toBlocking().single();
          return new PagedList<FirewallRuleInner>(response.body()) {
              @Override
              public Page<FirewallRuleInner> nextPage(String nextPageLink) {
                  return listFirewallRulesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists the Data Lake Store firewall rules within the specified Data Lake Store account.
  
  @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account.
  @param accountName The name of the Data Lake Store account from which to get the firewall rules.
  @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;FirewallRuleInner&gt; object if successful.