public Observable<VpnGatewayInner> getByResourceGroupAsync(String resourceGroupName, String gatewayName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1<ServiceResponse<VpnGatewayInner>, VpnGatewayInner>() {
            @Override
            public VpnGatewayInner call(ServiceResponse<VpnGatewayInner> response) {
                return response.body();
            }
        });
    }
public Observable < VpnGatewayInner > getByResourceGroupAsync ( String resourceGroupName , String gatewayName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , gatewayName ) . map ( new Func1 < ServiceResponse < VpnGatewayInner > , VpnGatewayInner > ( ) { @ Override public VpnGatewayInner call ( ServiceResponse < VpnGatewayInner > response ) { return response . body ( ) ; } } ) ; }
Retrieves the details of a virtual wan vpn gateway.

@param resourceGroupName The resource group name of the VpnGateway.
@param gatewayName The name of the gateway.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the VpnGatewayInner object