@azure/keyvault-admin 4.4.0-beta.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +21 -14
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +2 -2
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/keyVaultClient.js.map +1 -1
- package/dist-esm/src/generated/keyVaultClientContext.js +1 -1
- package/dist-esm/src/generated/keyVaultClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +6 -6
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/settingsClient.js +11 -5
- package/dist-esm/src/settingsClient.js.map +1 -1
- package/dist-esm/src/settingsClientModels.js.map +1 -1
- package/package.json +8 -7
- package/types/keyvault-admin.d.ts +24 -31
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ The operations done by the `KeyVaultBackupClient` may take as much time as neede
|
|
|
103
103
|
|
|
104
104
|
The `KeyVaultBackupClient` offers three methods that execute long running operations:
|
|
105
105
|
|
|
106
|
-
- `beginBackup`, starts generating a backup of an Azure Key Vault on the specified Storage Blob account.
|
|
106
|
+
- `beginBackup`, starts generating a backup of an Azure Key Vault Managed HSM on the specified Storage Blob account.
|
|
107
107
|
- `beginRestore`, starts restoring all key materials using the SAS token pointing to a previously stored Azure Blob storage backup folder.
|
|
108
108
|
- `beginSelectiveRestore`, starts restoring all key versions of a given key using user supplied SAS token pointing to a previously stored Azure Blob storage backup folder.
|
|
109
109
|
|
package/dist/index.js
CHANGED
|
@@ -1323,7 +1323,7 @@ class KeyVaultClientContext extends coreClient__namespace.ServiceClient {
|
|
|
1323
1323
|
const defaults = {
|
|
1324
1324
|
requestContentType: "application/json; charset=utf-8"
|
|
1325
1325
|
};
|
|
1326
|
-
const packageDetails = `azsdk-js-keyvault-admin/4.4.0
|
|
1326
|
+
const packageDetails = `azsdk-js-keyvault-admin/4.4.0`;
|
|
1327
1327
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1328
1328
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1329
1329
|
: `${packageDetails}`;
|
|
@@ -1577,11 +1577,11 @@ const getSettingsOperationSpec = {
|
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Current version of the Key Vault Admin SDK.
|
|
1579
1579
|
*/
|
|
1580
|
-
const SDK_VERSION = "4.4.0
|
|
1580
|
+
const SDK_VERSION = "4.4.0";
|
|
1581
1581
|
/**
|
|
1582
1582
|
* The latest supported Key Vault service API version.
|
|
1583
1583
|
*/
|
|
1584
|
-
const LATEST_API_VERSION = "7.4
|
|
1584
|
+
const LATEST_API_VERSION = "7.4";
|
|
1585
1585
|
|
|
1586
1586
|
// Copyright (c) Microsoft Corporation.
|
|
1587
1587
|
/**
|
|
@@ -1988,12 +1988,12 @@ class KeyVaultAccessControlClient {
|
|
|
1988
1988
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1989
1989
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1990
1990
|
*/
|
|
1991
|
-
/** Known values of {@link
|
|
1992
|
-
var
|
|
1993
|
-
(function (
|
|
1994
|
-
/** Api Version '7.4
|
|
1995
|
-
|
|
1996
|
-
})(
|
|
1991
|
+
/** Known values of {@link ApiVersion74} that the service accepts. */
|
|
1992
|
+
var KnownApiVersion74;
|
|
1993
|
+
(function (KnownApiVersion74) {
|
|
1994
|
+
/** Api Version '7.4' */
|
|
1995
|
+
KnownApiVersion74["Seven4"] = "7.4";
|
|
1996
|
+
})(KnownApiVersion74 || (KnownApiVersion74 = {}));
|
|
1997
1997
|
/** Known values of {@link RoleType} that the service accepts. */
|
|
1998
1998
|
var KnownRoleType;
|
|
1999
1999
|
(function (KnownRoleType) {
|
|
@@ -2625,18 +2625,25 @@ class KeyVaultBackupClient {
|
|
|
2625
2625
|
function makeSetting(generatedSetting) {
|
|
2626
2626
|
if (generatedSetting.type === "boolean") {
|
|
2627
2627
|
return {
|
|
2628
|
+
kind: "boolean",
|
|
2628
2629
|
name: generatedSetting.name,
|
|
2629
2630
|
value: generatedSetting.value === "true" ? true : false,
|
|
2630
|
-
kind: "boolean",
|
|
2631
2631
|
};
|
|
2632
2632
|
}
|
|
2633
2633
|
else {
|
|
2634
2634
|
return {
|
|
2635
|
+
kind: generatedSetting.type,
|
|
2635
2636
|
name: generatedSetting.name,
|
|
2636
2637
|
value: generatedSetting.value,
|
|
2637
2638
|
};
|
|
2638
2639
|
}
|
|
2639
2640
|
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Determines whether a given {@link KeyVaultSetting} is a {@link BooleanKeyVaultSetting}, i.e. has a boolean value.
|
|
2643
|
+
*/
|
|
2644
|
+
function isBooleanSetting(setting) {
|
|
2645
|
+
return setting.kind === "boolean" && typeof setting.value === "boolean";
|
|
2646
|
+
}
|
|
2640
2647
|
/**
|
|
2641
2648
|
* The KeyVaultSettingsClient provides asynchronous methods to create, update, get and list
|
|
2642
2649
|
* settings for the Azure Key Vault.
|
|
@@ -2681,12 +2688,11 @@ class KeyVaultSettingsClient {
|
|
|
2681
2688
|
/**
|
|
2682
2689
|
* Updates the named account setting.
|
|
2683
2690
|
*
|
|
2684
|
-
* @param
|
|
2685
|
-
* @param value - the value of the pool setting.
|
|
2691
|
+
* @param setting - the setting to update. The name of the setting must be a valid settings option.
|
|
2686
2692
|
* @param options - the optional parameters.
|
|
2687
2693
|
*/
|
|
2688
|
-
async updateSetting(
|
|
2689
|
-
return makeSetting(await this.client.updateSetting(this.vaultUrl,
|
|
2694
|
+
async updateSetting(setting, options = {}) {
|
|
2695
|
+
return makeSetting(await this.client.updateSetting(this.vaultUrl, setting.name, String(setting.value), options));
|
|
2690
2696
|
}
|
|
2691
2697
|
/**
|
|
2692
2698
|
* Get the value of a specific account setting.
|
|
@@ -2714,4 +2720,5 @@ exports.KeyVaultBackupClient = KeyVaultBackupClient;
|
|
|
2714
2720
|
exports.KeyVaultSettingsClient = KeyVaultSettingsClient;
|
|
2715
2721
|
exports.LATEST_API_VERSION = LATEST_API_VERSION;
|
|
2716
2722
|
exports.SDK_VERSION = SDK_VERSION;
|
|
2723
|
+
exports.isBooleanSetting = isBooleanSetting;
|
|
2717
2724
|
//# sourceMappingURL=index.js.map
|