public Observable<List<ElasticPoolInner>> listByServerAsync(String resourceGroupName, String serverName) {
        return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ElasticPoolInner>>, List<ElasticPoolInner>>() {
            @Override
            public List<ElasticPoolInner> call(ServiceResponse<List<ElasticPoolInner>> response) {
                return response.body();
            }
        });
    }
public Observable < List < ElasticPoolInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < ElasticPoolInner > > , List < ElasticPoolInner > > ( ) { @ Override public List < ElasticPoolInner > call ( ServiceResponse < List < ElasticPoolInner > > response ) { return response . body ( ) ; } } ) ; }
Returns a list of elastic pools in a server.

@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the List&lt;ElasticPoolInner&gt; object