public Observable<BgpPeerStatusListResultInner> beginGetBgpPeerStatusAsync(String resourceGroupName, String virtualNetworkGatewayName, String peer) {
        return beginGetBgpPeerStatusWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, peer).map(new Func1<ServiceResponse<BgpPeerStatusListResultInner>, BgpPeerStatusListResultInner>() {
            @Override
            public BgpPeerStatusListResultInner call(ServiceResponse<BgpPeerStatusListResultInner> response) {
                return response.body();
            }
        });
    }
public Observable < BgpPeerStatusListResultInner > beginGetBgpPeerStatusAsync ( String resourceGroupName , String virtualNetworkGatewayName , String peer ) { return beginGetBgpPeerStatusWithServiceResponseAsync ( resourceGroupName , virtualNetworkGatewayName , peer ) . map ( new Func1 < ServiceResponse < BgpPeerStatusListResultInner > , BgpPeerStatusListResultInner > ( ) { @ Override public BgpPeerStatusListResultInner call ( ServiceResponse < BgpPeerStatusListResultInner > response ) { return response . body ( ) ; } } ) ; }
The GetBgpPeerStatus operation retrieves the status of all BGP peers.

@param resourceGroupName The name of the resource group.
@param virtualNetworkGatewayName The name of the virtual network gateway.
@param peer The IP address of the peer to retrieve the status of.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the BgpPeerStatusListResultInner object