public Observable<VnetGatewayInner> updateVnetGatewayAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope) {
        return updateVnetGatewayWithServiceResponseAsync(resourceGroupName, name, vnetName, gatewayName, connectionEnvelope).map(new Func1<ServiceResponse<VnetGatewayInner>, VnetGatewayInner>() {
            @Override
            public VnetGatewayInner call(ServiceResponse<VnetGatewayInner> response) {
                return response.body();
            }
        });
    }
public Observable < VnetGatewayInner > updateVnetGatewayAsync ( String resourceGroupName , String name , String vnetName , String gatewayName , VnetGatewayInner connectionEnvelope ) { return updateVnetGatewayWithServiceResponseAsync ( resourceGroupName , name , vnetName , gatewayName , connectionEnvelope ) . map ( new Func1 < ServiceResponse < VnetGatewayInner > , VnetGatewayInner > ( ) { @ Override public VnetGatewayInner call ( ServiceResponse < VnetGatewayInner > response ) { return response . body ( ) ; } } ) ; }
Update a Virtual Network gateway.
Update a Virtual Network gateway.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param name Name of the App Service plan.
@param vnetName Name of the Virtual Network.
@param gatewayName Name of the gateway. Only the 'primary' gateway is supported.
@param connectionEnvelope Definition of the gateway.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the VnetGatewayInner object