code: public Observable<Page<AgentPoolInner>> listAsync(final String resourceGroupName, final String managedClusterName) {
          return listWithServiceResponseAsync(resourceGroupName, managedClusterName)
              .map(new Func1<ServiceResponse<Page<AgentPoolInner>>, Page<AgentPoolInner>>() {
                  @Override
                  public Page<AgentPoolInner> call(ServiceResponse<Page<AgentPoolInner>> response) {
                      return response.body();
                  }
              });
      }
docs: Gets a list of agent pools in the specified managed cluster.
  Gets a list of agent pools in the specified managed cluster. The operation returns properties of each agent pool.
  
  @param resourceGroupName The name of the resource group.
  @param managedClusterName The name of the managed cluster resource.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;AgentPoolInner&gt; object