async restoreKeyBackup(backup, options = {}) {
        return withTrace$4(`restoreKeyBackup`, options, async (updatedOptions) => {
            const response = await this.client.restoreKey(this.vaultUrl, backup, updatedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
/**
     * Restores a backed up key, and all its versions, to a vault. This operation requires the
     * keys/restore permission.
     *
     * Example usage:
     * ```ts
     * let client = new KeyClient(url, credentials);
     * let backupContents = await client.backupKey("MyKey");
     * // ...
     * let key = await client.restoreKeyBackup(backupContents);
     * ```
     * Restores a backed up key to a vault.
     * @param backup - The backup blob associated with a key bundle.
     * @param options - The optional parameters.
     */
Restores a backed up key, and all its versions, to a vault. This operation requires the
keys/restore permission.


Restores a backed up key and all its versions to a vault . This operation requires the keys / restore permission .
async restoreKeyBackup(backup, options = {}) {
        return withTrace$4(`restoreKeyBackup`, options, async (updatedOptions) => {
            const response = await this.client.restoreKey(this.vaultUrl, backup, updatedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
async restoreKeyBackup ( backup , options = { } ) { return withTrace$4 ( ` ` , options , async ( updatedOptions ) => { const response = await this . client . restoreKey ( this . vaultUrl , backup , updatedOptions ) ; return getKeyFromKeyBundle ( response ) ; } ) ; }
Restores a backed up key, and all its versions, to a vault.
Restores a backed up key and all its versions to a vault .