public Observable<ServiceResponse<DeletedVaultInner>> getDeletedWithServiceResponseAsync(String vaultName, String location) {
        if (vaultName == null) {
            throw new IllegalArgumentException("Parameter vaultName is required and cannot be null.");
        }
        if (location == null) {
            throw new IllegalArgumentException("Parameter location is required and cannot be null.");
        }
        if (this.client.subscriptionId() == null) {
            throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
        }
        if (this.client.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
        }
        return service.getDeleted(vaultName, location, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<DeletedVaultInner>>>() {
                @Override
                public Observable<ServiceResponse<DeletedVaultInner>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<DeletedVaultInner> clientResponse = getDeletedDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < DeletedVaultInner > > getDeletedWithServiceResponseAsync ( String vaultName , String location ) { if ( vaultName == null ) { throw new IllegalArgumentException ( "Parameter vaultName is required and cannot be null." ) ; } if ( location == null ) { throw new IllegalArgumentException ( "Parameter location is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } return service . getDeleted ( vaultName , location , this . client . subscriptionId ( ) , this . client . apiVersion ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < DeletedVaultInner > > > ( ) { @ Override public Observable < ServiceResponse < DeletedVaultInner > > call ( Response < ResponseBody > response ) { try { ServiceResponse < DeletedVaultInner > clientResponse = getDeletedDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Gets the deleted Azure key vault.

@param vaultName The name of the vault.
@param location The location of the deleted vault.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the DeletedVaultInner object