public Observable<ServiceResponse<CertificateBundle>> restoreCertificateWithServiceResponseAsync(String vaultBaseUrl, byte[] certificateBundleBackup) {
        if (vaultBaseUrl == null) {
            throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null.");
        }
        if (this.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null.");
        }
        if (certificateBundleBackup == null) {
            throw new IllegalArgumentException("Parameter certificateBundleBackup is required and cannot be null.");
        }
        CertificateRestoreParameters parameters = new CertificateRestoreParameters();
        parameters.withCertificateBundleBackup(certificateBundleBackup);
        String parameterizedHost = Joiner.on(", ").join("{vaultBaseUrl}", vaultBaseUrl);
        return service.restoreCertificate(this.apiVersion(), this.acceptLanguage(), parameters, parameterizedHost, this.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<CertificateBundle>>>() {
                @Override
                public Observable<ServiceResponse<CertificateBundle>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<CertificateBundle> clientResponse = restoreCertificateDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < CertificateBundle > > restoreCertificateWithServiceResponseAsync ( String vaultBaseUrl , byte [ ] certificateBundleBackup ) { if ( vaultBaseUrl == null ) { throw new IllegalArgumentException ( "Parameter vaultBaseUrl is required and cannot be null." ) ; } if ( this . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.apiVersion() is required and cannot be null." ) ; } if ( certificateBundleBackup == null ) { throw new IllegalArgumentException ( "Parameter certificateBundleBackup is required and cannot be null." ) ; } CertificateRestoreParameters parameters = new CertificateRestoreParameters ( ) ; parameters . withCertificateBundleBackup ( certificateBundleBackup ) ; String parameterizedHost = Joiner . on ( ", " ) . join ( "{vaultBaseUrl}" , vaultBaseUrl ) ; return service . restoreCertificate ( this . apiVersion ( ) , this . acceptLanguage ( ) , parameters , parameterizedHost , this . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < CertificateBundle > > > ( ) { @ Override public Observable < ServiceResponse < CertificateBundle > > call ( Response < ResponseBody > response ) { try { ServiceResponse < CertificateBundle > clientResponse = restoreCertificateDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Restores a backed up certificate to a vault.
Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission.

@param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
@param certificateBundleBackup The backup blob associated with a certificate bundle.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the CertificateBundle object