public List<DatabaseInner> listByServer(String resourceGroupName, String serverName, String expand, String filter) {
        return listByServerWithServiceResponseAsync(resourceGroupName, serverName, expand, filter).toBlocking().single().body();
    }
public List < DatabaseInner > listByServer ( String resourceGroupName , String serverName , String expand , String filter ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName , expand , filter ) . toBlocking ( ) . single ( ) . body ( ) ; }
Returns a list of databases 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.
@param expand A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.
@param filter An OData filter expression that describes a subset of databases to return.
@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 List&lt;DatabaseInner&gt; object if successful.