public Observable<VirtualNetworkInner> getByResourceGroupAsync(String resourceGroupName, String virtualNetworkName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualNetworkName).map(new Func1<ServiceResponse<VirtualNetworkInner>, VirtualNetworkInner>() {
            @Override
            public VirtualNetworkInner call(ServiceResponse<VirtualNetworkInner> response) {
                return response.body();
            }
        });
    }
public Observable < VirtualNetworkInner > getByResourceGroupAsync ( String resourceGroupName , String virtualNetworkName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , virtualNetworkName ) . map ( new Func1 < ServiceResponse < VirtualNetworkInner > , VirtualNetworkInner > ( ) { @ Override public VirtualNetworkInner call ( ServiceResponse < VirtualNetworkInner > response ) { return response . body ( ) ; } } ) ; }
Gets the specified virtual network by resource group.

@param resourceGroupName The name of the resource group.
@param virtualNetworkName The name of the virtual network.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the VirtualNetworkInner object