code: public ServiceFuture<List<SecurityRuleInner>> listAsync(final String resourceGroupName, final String networkSecurityGroupName, final ListOperationCallback<SecurityRuleInner> serviceCallback) {
          return AzureServiceFuture.fromPageResponse(
              listSinglePageAsync(resourceGroupName, networkSecurityGroupName),
              new Func1<String, Observable<ServiceResponse<Page<SecurityRuleInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<SecurityRuleInner>>> call(String nextPageLink) {
                      return listNextSinglePageAsync(nextPageLink);
                  }
              },
              serviceCallback);
      }
docs: Gets all security rules in a network security group.
  
  @param resourceGroupName The name of the resource group.
  @param networkSecurityGroupName The name of the network security group.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object