@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.
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * Current version of the Key Vault Admin SDK.
5
5
  */
6
- export const SDK_VERSION = "4.4.0-beta.1";
6
+ export const SDK_VERSION = "4.4.0";
7
7
  /**
8
8
  * The latest supported Key Vault service API version.
9
9
  */
10
- export const LATEST_API_VERSION = "7.4-preview.1";
10
+ export const LATEST_API_VERSION = "7.4";
11
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Current version of the Key Vault Admin SDK.\n */\nexport const SDK_VERSION: string = \"4.4.0-beta.1\";\n\n/**\n * The latest supported Key Vault service API version.\n */\nexport const LATEST_API_VERSION = \"7.4-preview.1\";\n\n/**\n * Supported API versions\n */\nexport type SUPPORTED_API_VERSIONS = \"7.2\" | \"7.3\" | \"7.4-preview.1\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Current version of the Key Vault Admin SDK.\n */\nexport const SDK_VERSION: string = \"4.4.0\";\n\n/**\n * The latest supported Key Vault service API version.\n */\nexport const LATEST_API_VERSION = \"7.4\";\n\n/**\n * Supported API versions\n */\nexport type SUPPORTED_API_VERSIONS = \"7.2\" | \"7.3\" | \"7.4\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"keyVaultClient.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAsBhE,MAAM,OAAO,cAAe,SAAQ,qBAAqB;IACvD;;;;OAIG;IACH,YACE,UAAgC,EAChC,OAAsC;QAEtC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,UAAU,CACR,YAAoB,EACpB,OAAkC;QAElC,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,YAAY,EAAE,OAAO,EAAE,EACzB,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CACd,YAAoB,EACpB,KAAa,EACb,OAAwC;QAExC,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAChC,6BAA6B,CAC9B,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAClB,YAAoB,EACpB,OAA4C;QAE5C,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,YAAY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oft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { RoleDefinitionsImpl, RoleAssignmentsImpl } from \"./operations\";\nimport { RoleDefinitions, RoleAssignments } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { KeyVaultClientContext } from \"./keyVaultClientContext\";\nimport {\n KeyVaultClientOptionalParams,\n ApiVersion74Preview1,\n FullBackupOptionalParams,\n FullBackupResponse,\n FullBackupStatusOptionalParams,\n FullBackupStatusResponse,\n FullRestoreOperationOptionalParams,\n FullRestoreOperationResponse,\n RestoreStatusOptionalParams,\n RestoreStatusResponse,\n SelectiveKeyRestoreOperationOptionalParams,\n SelectiveKeyRestoreOperationResponse,\n UpdateSettingOptionalParams,\n UpdateSettingResponse,\n GetSettingOptionalParams,\n GetSettingResponse,\n GetSettingsOptionalParams,\n GetSettingsResponse\n} from \"./models\";\n\nexport class KeyVaultClient extends KeyVaultClientContext {\n /**\n * Initializes a new instance of the KeyVaultClient class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion74Preview1,\n options?: KeyVaultClientOptionalParams\n ) {\n super(apiVersion, options);\n this.roleDefinitions = new RoleDefinitionsImpl(this);\n this.roleAssignments = new RoleAssignmentsImpl(this);\n }\n\n /**\n * Creates a full backup using a user-provided SAS token to an Azure blob storage container.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n fullBackup(\n vaultBaseUrl: string,\n options?: FullBackupOptionalParams\n ): Promise<FullBackupResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n fullBackupOperationSpec\n );\n }\n\n /**\n * Returns the status of full backup operation\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param jobId The id returned as part of the backup request\n * @param options The options parameters.\n */\n fullBackupStatus(\n vaultBaseUrl: string,\n jobId: string,\n options?: FullBackupStatusOptionalParams\n ): Promise<FullBackupStatusResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, jobId, options },\n fullBackupStatusOperationSpec\n );\n }\n\n /**\n * Restores all key materials using the SAS token pointing to a previously stored Azure Blob storage\n * backup folder\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n fullRestoreOperation(\n vaultBaseUrl: string,\n options?: FullRestoreOperationOptionalParams\n ): Promise<FullRestoreOperationResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n fullRestoreOperationOperationSpec\n );\n }\n\n /**\n * Returns the status of restore operation\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param jobId The Job Id returned part of the restore operation\n * @param options The options parameters.\n */\n restoreStatus(\n vaultBaseUrl: string,\n jobId: string,\n options?: RestoreStatusOptionalParams\n ): Promise<RestoreStatusResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, jobId, options },\n restoreStatusOperationSpec\n );\n }\n\n /**\n * Restores all key versions of a given key using user supplied SAS token pointing to a previously\n * stored Azure Blob storage backup folder\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param keyName The name of the key to be restored from the user supplied backup\n * @param options The options parameters.\n */\n selectiveKeyRestoreOperation(\n vaultBaseUrl: string,\n keyName: string,\n options?: SelectiveKeyRestoreOperationOptionalParams\n ): Promise<SelectiveKeyRestoreOperationResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, keyName, options },\n selectiveKeyRestoreOperationOperationSpec\n );\n }\n\n /**\n * Description of the pool setting to be updated\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param settingName The name of the account setting. Must be a valid settings option.\n * @param value The value of the pool setting.\n * @param options The options parameters.\n */\n updateSetting(\n vaultBaseUrl: string,\n settingName: string,\n value: string,\n options?: UpdateSettingOptionalParams\n ): Promise<UpdateSettingResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, settingName, value, options },\n updateSettingOperationSpec\n );\n }\n\n /**\n * Retrieves the setting object of a specified setting name.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param settingName The name of the account setting. Must be a valid settings option.\n * @param options The options parameters.\n */\n getSetting(\n vaultBaseUrl: string,\n settingName: string,\n options?: GetSettingOptionalParams\n ): Promise<GetSettingResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, settingName, options },\n getSettingOperationSpec\n );\n }\n\n /**\n * Retrieves a list of all the available account settings that can be configured.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n getSettings(\n vaultBaseUrl: string,\n options?: GetSettingsOptionalParams\n ): Promise<GetSettingsResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n getSettingsOperationSpec\n );\n }\n\n roleDefinitions: RoleDefinitions;\n roleAssignments: RoleAssignments;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst fullBackupOperationSpec: coreClient.OperationSpec = {\n path: \"/backup\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.FullBackupOperation,\n headersMapper: Mappers.KeyVaultClientFullBackupHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.azureStorageBlobContainerUri,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst fullBackupStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/backup/{jobId}/pending\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FullBackupOperation\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.jobId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst fullRestoreOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/restore\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n bodyMapper: Mappers.RestoreOperation,\n headersMapper: Mappers.KeyVaultClientFullRestoreOperationHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.restoreBlobDetails,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst restoreStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/restore/{jobId}/pending\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RestoreOperation\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.jobId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst selectiveKeyRestoreOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/keys/{keyName}/restore\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n bodyMapper: Mappers.SelectiveKeyRestoreOperation,\n headersMapper: Mappers.KeyVaultClientSelectiveKeyRestoreOperationHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.restoreBlobDetails1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.keyName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateSettingOperationSpec: coreClient.OperationSpec = {\n path: \"/settings/{setting-name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Setting\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: {\n parameterPath: { value: [\"value\"] },\n mapper: { ...Mappers.UpdateSettingRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.settingName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getSettingOperationSpec: coreClient.OperationSpec = {\n path: \"/settings/{setting-name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Setting\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.settingName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getSettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/settings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SettingsListResult\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"keyVaultClient.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAsBhE,MAAM,OAAO,cAAe,SAAQ,qBAAqB;IACvD;;;;OAIG;IACH,YACE,UAAwB,EACxB,OAAsC;QAEtC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,UAAU,CACR,YAAoB,E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C;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IACxC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { RoleDefinitionsImpl, RoleAssignmentsImpl } from \"./operations\";\nimport { RoleDefinitions, RoleAssignments } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { KeyVaultClientContext } from \"./keyVaultClientContext\";\nimport {\n KeyVaultClientOptionalParams,\n ApiVersion74,\n FullBackupOptionalParams,\n FullBackupResponse,\n FullBackupStatusOptionalParams,\n FullBackupStatusResponse,\n FullRestoreOperationOptionalParams,\n FullRestoreOperationResponse,\n RestoreStatusOptionalParams,\n RestoreStatusResponse,\n SelectiveKeyRestoreOperationOptionalParams,\n SelectiveKeyRestoreOperationResponse,\n UpdateSettingOptionalParams,\n UpdateSettingResponse,\n GetSettingOptionalParams,\n GetSettingResponse,\n GetSettingsOptionalParams,\n GetSettingsResponse\n} from \"./models\";\n\nexport class KeyVaultClient extends KeyVaultClientContext {\n /**\n * Initializes a new instance of the KeyVaultClient class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion74,\n options?: KeyVaultClientOptionalParams\n ) {\n super(apiVersion, options);\n this.roleDefinitions = new RoleDefinitionsImpl(this);\n this.roleAssignments = new RoleAssignmentsImpl(this);\n }\n\n /**\n * Creates a full backup using a user-provided SAS token to an Azure blob storage container.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n fullBackup(\n vaultBaseUrl: string,\n options?: FullBackupOptionalParams\n ): Promise<FullBackupResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n fullBackupOperationSpec\n );\n }\n\n /**\n * Returns the status of full backup operation\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param jobId The id returned as part of the backup request\n * @param options The options parameters.\n */\n fullBackupStatus(\n vaultBaseUrl: string,\n jobId: string,\n options?: FullBackupStatusOptionalParams\n ): Promise<FullBackupStatusResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, jobId, options },\n fullBackupStatusOperationSpec\n );\n }\n\n /**\n * Restores all key materials using the SAS token pointing to a previously stored Azure Blob storage\n * backup folder\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n fullRestoreOperation(\n vaultBaseUrl: string,\n options?: FullRestoreOperationOptionalParams\n ): Promise<FullRestoreOperationResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n fullRestoreOperationOperationSpec\n );\n }\n\n /**\n * Returns the status of restore operation\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param jobId The Job Id returned part of the restore operation\n * @param options The options parameters.\n */\n restoreStatus(\n vaultBaseUrl: string,\n jobId: string,\n options?: RestoreStatusOptionalParams\n ): Promise<RestoreStatusResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, jobId, options },\n restoreStatusOperationSpec\n );\n }\n\n /**\n * Restores all key versions of a given key using user supplied SAS token pointing to a previously\n * stored Azure Blob storage backup folder\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param keyName The name of the key to be restored from the user supplied backup\n * @param options The options parameters.\n */\n selectiveKeyRestoreOperation(\n vaultBaseUrl: string,\n keyName: string,\n options?: SelectiveKeyRestoreOperationOptionalParams\n ): Promise<SelectiveKeyRestoreOperationResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, keyName, options },\n selectiveKeyRestoreOperationOperationSpec\n );\n }\n\n /**\n * Description of the pool setting to be updated\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param settingName The name of the account setting. Must be a valid settings option.\n * @param value The value of the pool setting.\n * @param options The options parameters.\n */\n updateSetting(\n vaultBaseUrl: string,\n settingName: string,\n value: string,\n options?: UpdateSettingOptionalParams\n ): Promise<UpdateSettingResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, settingName, value, options },\n updateSettingOperationSpec\n );\n }\n\n /**\n * Retrieves the setting object of a specified setting name.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param settingName The name of the account setting. Must be a valid settings option.\n * @param options The options parameters.\n */\n getSetting(\n vaultBaseUrl: string,\n settingName: string,\n options?: GetSettingOptionalParams\n ): Promise<GetSettingResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, settingName, options },\n getSettingOperationSpec\n );\n }\n\n /**\n * Retrieves a list of all the available account settings that can be configured.\n * @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.\n * @param options The options parameters.\n */\n getSettings(\n vaultBaseUrl: string,\n options?: GetSettingsOptionalParams\n ): Promise<GetSettingsResponse> {\n return this.sendOperationRequest(\n { vaultBaseUrl, options },\n getSettingsOperationSpec\n );\n }\n\n roleDefinitions: RoleDefinitions;\n roleAssignments: RoleAssignments;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst fullBackupOperationSpec: coreClient.OperationSpec = {\n path: \"/backup\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.FullBackupOperation,\n headersMapper: Mappers.KeyVaultClientFullBackupHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.azureStorageBlobContainerUri,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst fullBackupStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/backup/{jobId}/pending\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FullBackupOperation\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.jobId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst fullRestoreOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/restore\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n bodyMapper: Mappers.RestoreOperation,\n headersMapper: Mappers.KeyVaultClientFullRestoreOperationHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.restoreBlobDetails,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst restoreStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/restore/{jobId}/pending\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RestoreOperation\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.jobId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst selectiveKeyRestoreOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/keys/{keyName}/restore\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n bodyMapper: Mappers.SelectiveKeyRestoreOperation,\n headersMapper: Mappers.KeyVaultClientSelectiveKeyRestoreOperationHeaders\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: Parameters.restoreBlobDetails1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.keyName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateSettingOperationSpec: coreClient.OperationSpec = {\n path: \"/settings/{setting-name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Setting\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n requestBody: {\n parameterPath: { value: [\"value\"] },\n mapper: { ...Mappers.UpdateSettingRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.settingName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getSettingOperationSpec: coreClient.OperationSpec = {\n path: \"/settings/{setting-name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Setting\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl, Parameters.settingName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getSettingsOperationSpec: coreClient.OperationSpec = {\n path: \"/settings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SettingsListResult\n },\n default: {\n bodyMapper: Mappers.KeyVaultError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.vaultBaseUrl],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -23,7 +23,7 @@ export class KeyVaultClientContext extends coreClient.ServiceClient {
23
23
  const defaults = {
24
24
  requestContentType: "application/json; charset=utf-8"
25
25
  };
26
- const packageDetails = `azsdk-js-keyvault-admin/4.4.0-beta.1`;
26
+ const packageDetails = `azsdk-js-keyvault-admin/4.4.0`;
27
27
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
28
28
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
29
29
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"keyVaultClientContext.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IAGjE;;;;OAIG;IACH,YACE,UAAgC,EAChC,OAAsC;QAEtC,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAiC;YAC7C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,GAC9C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { ApiVersion74Preview1, KeyVaultClientOptionalParams } from \"./models\";\n\nexport class KeyVaultClientContext extends coreClient.ServiceClient {\n apiVersion: ApiVersion74Preview1;\n\n /**\n * Initializes a new instance of the KeyVaultClientContext class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion74Preview1,\n options?: KeyVaultClientOptionalParams\n ) {\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-keyvault-admin/4.4.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{vaultBaseUrl}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.apiVersion = apiVersion;\n }\n}\n"]}
1
+ {"version":3,"file":"keyVaultClientContext.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IAGjE;;;;OAIG;IACH,YACE,UAAwB,EACxB,OAAsC;QAEtC,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAiC;YAC7C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,+BAA+B,CAAC;QACvD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,GAC9C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { ApiVersion74, KeyVaultClientOptionalParams } from \"./models\";\n\nexport class KeyVaultClientContext extends coreClient.ServiceClient {\n apiVersion: ApiVersion74;\n\n /**\n * Initializes a new instance of the KeyVaultClientContext class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion74,\n options?: KeyVaultClientOptionalParams\n ) {\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-keyvault-admin/4.4.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{vaultBaseUrl}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.apiVersion = apiVersion;\n }\n}\n"]}
@@ -5,12 +5,12 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- /** Known values of {@link ApiVersion74Preview1} that the service accepts. */
9
- export var KnownApiVersion74Preview1;
10
- (function (KnownApiVersion74Preview1) {
11
- /** Api Version '7.4-preview.1' */
12
- KnownApiVersion74Preview1["Seven4Preview1"] = "7.4-preview.1";
13
- })(KnownApiVersion74Preview1 || (KnownApiVersion74Preview1 = {}));
8
+ /** Known values of {@link ApiVersion74} that the service accepts. */
9
+ export var KnownApiVersion74;
10
+ (function (KnownApiVersion74) {
11
+ /** Api Version '7.4' */
12
+ KnownApiVersion74["Seven4"] = "7.4";
13
+ })(KnownApiVersion74 || (KnownApiVersion74 = {}));
14
14
  /** Known values of {@link RoleType} that the service accepts. */
15
15
  export var KnownRoleType;
16
16
  (function (KnownRoleType) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2RH,6EAA6E;AAC7E,MAAM,CAAN,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,kCAAkC;IAClC,6DAAgC,CAAA;AAClC,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC;AAWD,iEAAiE;AACjE,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qBAAqB;IACrB,+CAA8B,CAAA;IAC9B,mBAAmB;IACnB,0CAAyB,CAAA;AAC3B,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAYD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAqEX;AArED,WAAY,eAAe;IACzB,6BAA6B;IAC7B,gFAA6D,CAAA;IAC7D,yBAAyB;IACzB,kFAA+D,CAAA;IAC/D,4BAA4B;IAC5B,mGAAgF,CAAA;IAChF,+BAA+B;IAC/B,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,iBAAiB;IACjB,gCAAc,CAAA;AAChB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAYD,2EAA2E;AAC3E,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,4GAAiF,CAAA;AACnF,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AAWD,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;AACrB,CAAC,EAFW,oBAAoB,KAApB,oBAAoB,QAE/B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly error?: ErrorModel;\n}\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ErrorModel;\n}\n\n/** Role definition create parameters. */\nexport interface RoleDefinitionCreateParameters {\n /** Role definition properties. */\n properties: RoleDefinitionProperties;\n}\n\n/** Role definition properties. */\nexport interface RoleDefinitionProperties {\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\n/** Role definition permissions. */\nexport interface Permission {\n /** Action permissions that are granted. */\n actions?: string[];\n /** Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notActions?: string[];\n /** Data action permissions that are granted. */\n dataActions?: DataAction[];\n /** Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notDataActions?: DataAction[];\n}\n\n/** Role definition. */\nexport interface RoleDefinition {\n /**\n * The role definition ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The role definition name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The role definition type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: RoleDefinitionType;\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\n/** Role definition list operation result. */\nexport interface RoleDefinitionListResult {\n /** Role definition list. */\n value?: RoleDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** Role assignment create parameters. */\nexport interface RoleAssignmentCreateParameters {\n /** Role assignment properties. */\n properties: RoleAssignmentProperties;\n}\n\n/** Role assignment properties. */\nexport interface RoleAssignmentProperties {\n /** The role definition ID used in the role assignment. */\n roleDefinitionId: string;\n /** The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. */\n principalId: string;\n}\n\n/** Role Assignments */\nexport interface RoleAssignment {\n /**\n * The role assignment ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The role assignment name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The role assignment type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Role assignment properties. */\n properties?: RoleAssignmentPropertiesWithScope;\n}\n\n/** Role assignment properties with scope. */\nexport interface RoleAssignmentPropertiesWithScope {\n /** The role scope. */\n scope?: RoleScope;\n /** The role definition ID. */\n roleDefinitionId?: string;\n /** The principal ID. */\n principalId?: string;\n}\n\n/** Role assignment list operation result. */\nexport interface RoleAssignmentListResult {\n /** Role assignment list. */\n value?: RoleAssignment[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport interface SASTokenParameter {\n /** Azure Blob storage container Uri */\n storageResourceUri: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token: string;\n}\n\n/** Full backup operation */\nexport interface FullBackupOperation {\n /** Status of the backup operation. */\n status?: string;\n /** The status details of backup operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the full backup operation. */\n error?: ErrorModel;\n /** The start time of the backup operation in UTC */\n startTime?: Date;\n /** The end time of the backup operation in UTC */\n endTime?: Date;\n /** Identifier for the full backup operation. */\n jobId?: string;\n /** The Azure blob storage container Uri which contains the full backup */\n azureStorageBlobContainerUri?: string;\n}\n\nexport interface RestoreOperationParameters {\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore: string;\n}\n\n/** Restore operation */\nexport interface RestoreOperation {\n /** Status of the restore operation. */\n status?: string;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the restore operation. */\n error?: ErrorModel;\n /** Identifier for the restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\nexport interface SelectiveKeyRestoreOperationParameters {\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folder: string;\n}\n\n/** Selective Key Restore operation */\nexport interface SelectiveKeyRestoreOperation {\n /** Status of the restore operation. */\n status?: string;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the selective key restore operation. */\n error?: ErrorModel;\n /** Identifier for the selective key restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\n/** The update settings request object. */\nexport interface UpdateSettingRequest {\n /** The value of the pool setting. */\n value: string;\n}\n\nexport interface Setting {\n /** The account setting to be updated */\n name: string;\n /** The value of the pool setting. */\n value: string;\n /** The type specifier of the value. */\n type?: SettingTypeEnum;\n}\n\n/** The settings list result. */\nexport interface SettingsListResult {\n /**\n * A response message containing a list of account settings with their associated value.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly settings?: Setting[];\n}\n\n/** Role Assignments filter */\nexport interface RoleAssignmentFilter {\n /** Returns role assignment of the specific principal. */\n principalId?: string;\n}\n\n/** Role Definitions filter */\nexport interface RoleDefinitionFilter {\n /** Returns role definition with the specific name. */\n roleName?: string;\n}\n\n/** Defines headers for KeyVaultClient_fullBackup operation. */\nexport interface KeyVaultClientFullBackupHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Defines headers for KeyVaultClient_fullRestoreOperation operation. */\nexport interface KeyVaultClientFullRestoreOperationHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Defines headers for KeyVaultClient_selectiveKeyRestoreOperation operation. */\nexport interface KeyVaultClientSelectiveKeyRestoreOperationHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Known values of {@link ApiVersion74Preview1} that the service accepts. */\nexport enum KnownApiVersion74Preview1 {\n /** Api Version '7.4-preview.1' */\n Seven4Preview1 = \"7.4-preview.1\"\n}\n\n/**\n * Defines values for ApiVersion74Preview1. \\\n * {@link KnownApiVersion74Preview1} can be used interchangeably with ApiVersion74Preview1,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **7.4-preview.1**: Api Version '7.4-preview.1'\n */\nexport type ApiVersion74Preview1 = string;\n\n/** Known values of {@link RoleType} that the service accepts. */\nexport enum KnownRoleType {\n /** Built in role. */\n BuiltInRole = \"AKVBuiltInRole\",\n /** Custom role. */\n CustomRole = \"CustomRole\"\n}\n\n/**\n * Defines values for RoleType. \\\n * {@link KnownRoleType} can be used interchangeably with RoleType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AKVBuiltInRole**: Built in role. \\\n * **CustomRole**: Custom role.\n */\nexport type RoleType = string;\n\n/** Known values of {@link DataAction} that the service accepts. */\nexport enum KnownDataAction {\n /** Read HSM key metadata. */\n ReadHsmKey = \"Microsoft.KeyVault/managedHsm/keys/read/action\",\n /** Update an HSM key. */\n WriteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/write/action\",\n /** Read deleted HSM key. */\n ReadDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action\",\n /** Recover deleted HSM key. */\n RecoverDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action\",\n /** Backup HSM keys. */\n BackupHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/backup/action\",\n /** Restore HSM keys. */\n RestoreHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/restore/action\",\n /** Delete role assignment. */\n DeleteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/delete/action\",\n /** Get role assignment. */\n GetRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/read/action\",\n /** Create or update role assignment. */\n WriteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/write/action\",\n /** Get role definition. */\n ReadRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/read/action\",\n /** Create or update role definition. */\n WriteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/write/action\",\n /** Delete role definition. */\n DeleteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action\",\n /** Encrypt using an HSM key. */\n EncryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/encrypt/action\",\n /** Decrypt using an HSM key. */\n DecryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/decrypt/action\",\n /** Wrap using an HSM key. */\n WrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/wrap/action\",\n /** Unwrap using an HSM key. */\n UnwrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/unwrap/action\",\n /** Sign using an HSM key. */\n SignHsmKey = \"Microsoft.KeyVault/managedHsm/keys/sign/action\",\n /** Verify using an HSM key. */\n VerifyHsmKey = \"Microsoft.KeyVault/managedHsm/keys/verify/action\",\n /** Create an HSM key. */\n CreateHsmKey = \"Microsoft.KeyVault/managedHsm/keys/create\",\n /** Delete an HSM key. */\n DeleteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/delete\",\n /** Export an HSM key. */\n ExportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/export/action\",\n /** Release an HSM key using Secure Key Release. */\n ReleaseKey = \"Microsoft.KeyVault/managedHsm/keys/release/action\",\n /** Import an HSM key. */\n ImportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/import/action\",\n /** Purge a deleted HSM key. */\n PurgeDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete\",\n /** Download an HSM security domain. */\n DownloadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/download/action\",\n /** Check status of HSM security domain download. */\n DownloadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/download/read\",\n /** Upload an HSM security domain. */\n UploadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/action\",\n /** Check the status of the HSM security domain exchange file. */\n ReadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/read\",\n /** Download an HSM security domain transfer key. */\n ReadHsmSecurityDomainTransferKey = \"Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read\",\n /** Start an HSM backup. */\n StartHsmBackup = \"Microsoft.KeyVault/managedHsm/backup/start/action\",\n /** Start an HSM restore. */\n StartHsmRestore = \"Microsoft.KeyVault/managedHsm/restore/start/action\",\n /** Read an HSM backup status. */\n ReadHsmBackupStatus = \"Microsoft.KeyVault/managedHsm/backup/status/action\",\n /** Read an HSM restore status. */\n ReadHsmRestoreStatus = \"Microsoft.KeyVault/managedHsm/restore/status/action\",\n /** Generate random numbers. */\n RandomNumbersGenerate = \"Microsoft.KeyVault/managedHsm/rng/action\"\n}\n\n/**\n * Defines values for DataAction. \\\n * {@link KnownDataAction} can be used interchangeably with DataAction,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/read\\/action**: Read HSM key metadata. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/write\\/action**: Update an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/read\\/action**: Read deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/recover\\/action**: Recover deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/backup\\/action**: Backup HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/restore\\/action**: Restore HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/delete\\/action**: Delete role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/read\\/action**: Get role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/write\\/action**: Create or update role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/read\\/action**: Get role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/write\\/action**: Create or update role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/delete\\/action**: Delete role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/encrypt\\/action**: Encrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/decrypt\\/action**: Decrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/wrap\\/action**: Wrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/unwrap\\/action**: Unwrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/sign\\/action**: Sign using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/verify\\/action**: Verify using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/create**: Create an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/delete**: Delete an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/export\\/action**: Export an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/release\\/action**: Release an HSM key using Secure Key Release. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/import\\/action**: Import an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/delete**: Purge a deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/action**: Download an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/read**: Check status of HSM security domain download. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/action**: Upload an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/read**: Check the status of the HSM security domain exchange file. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/transferkey\\/read**: Download an HSM security domain transfer key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/start\\/action**: Start an HSM backup. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/start\\/action**: Start an HSM restore. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/status\\/action**: Read an HSM backup status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/status\\/action**: Read an HSM restore status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/rng\\/action**: Generate random numbers.\n */\nexport type DataAction = string;\n\n/** Known values of {@link RoleScope} that the service accepts. */\nexport enum KnownRoleScope {\n /** Global scope */\n Global = \"/\",\n /** Keys scope */\n Keys = \"/keys\"\n}\n\n/**\n * Defines values for RoleScope. \\\n * {@link KnownRoleScope} can be used interchangeably with RoleScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **\\/**: Global scope \\\n * **\\/keys**: Keys scope\n */\nexport type RoleScope = string;\n\n/** Known values of {@link RoleDefinitionType} that the service accepts. */\nexport enum KnownRoleDefinitionType {\n MicrosoftAuthorizationRoleDefinitions = \"Microsoft.Authorization/roleDefinitions\"\n}\n\n/**\n * Defines values for RoleDefinitionType. \\\n * {@link KnownRoleDefinitionType} can be used interchangeably with RoleDefinitionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Authorization\\/roleDefinitions**\n */\nexport type RoleDefinitionType = string;\n\n/** Known values of {@link SettingTypeEnum} that the service accepts. */\nexport enum KnownSettingTypeEnum {\n Boolean = \"boolean\"\n}\n\n/**\n * Defines values for SettingTypeEnum. \\\n * {@link KnownSettingTypeEnum} can be used interchangeably with SettingTypeEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **boolean**\n */\nexport type SettingTypeEnum = string;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface RoleDefinitionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type RoleDefinitionsGetResponse = RoleDefinition;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsListOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. */\n filter?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type RoleDefinitionsListResponse = RoleDefinitionListResult;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsListNextOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. */\n filter?: string;\n}\n\n/** Contains response data for the listNext operation. */\nexport type RoleDefinitionsListNextResponse = RoleDefinitionListResult;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface RoleAssignmentsCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type RoleAssignmentsCreateResponse = RoleAssignment;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type RoleAssignmentsGetResponse = RoleAssignment;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsListForScopeOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. */\n filter?: string;\n}\n\n/** Contains response data for the listForScope operation. */\nexport type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsListForScopeNextOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. */\n filter?: string;\n}\n\n/** Contains response data for the listForScopeNext operation. */\nexport type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult;\n\n/** Optional parameters. */\nexport interface FullBackupOptionalParams extends coreClient.OperationOptions {\n /** Azure blob shared access signature token pointing to a valid Azure blob container where full backup needs to be stored. This token needs to be valid for at least next 24 hours from the time of making this call */\n azureStorageBlobContainerUri?: SASTokenParameter;\n}\n\n/** Contains response data for the fullBackup operation. */\nexport type FullBackupResponse = KeyVaultClientFullBackupHeaders &\n FullBackupOperation;\n\n/** Optional parameters. */\nexport interface FullBackupStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the fullBackupStatus operation. */\nexport type FullBackupStatusResponse = FullBackupOperation;\n\n/** Optional parameters. */\nexport interface FullRestoreOperationOptionalParams\n extends coreClient.OperationOptions {\n /** The Azure blob SAS token pointing to a folder where the previous successful full backup was stored */\n restoreBlobDetails?: RestoreOperationParameters;\n}\n\n/** Contains response data for the fullRestoreOperation operation. */\nexport type FullRestoreOperationResponse = KeyVaultClientFullRestoreOperationHeaders &\n RestoreOperation;\n\n/** Optional parameters. */\nexport interface RestoreStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the restoreStatus operation. */\nexport type RestoreStatusResponse = RestoreOperation;\n\n/** Optional parameters. */\nexport interface SelectiveKeyRestoreOperationOptionalParams\n extends coreClient.OperationOptions {\n /** The Azure blob SAS token pointing to a folder where the previous successful full backup was stored */\n restoreBlobDetails?: SelectiveKeyRestoreOperationParameters;\n}\n\n/** Contains response data for the selectiveKeyRestoreOperation operation. */\nexport type SelectiveKeyRestoreOperationResponse = KeyVaultClientSelectiveKeyRestoreOperationHeaders &\n SelectiveKeyRestoreOperation;\n\n/** Optional parameters. */\nexport interface UpdateSettingOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the updateSetting operation. */\nexport type UpdateSettingResponse = Setting;\n\n/** Optional parameters. */\nexport interface GetSettingOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSetting operation. */\nexport type GetSettingResponse = Setting;\n\n/** Optional parameters. */\nexport interface GetSettingsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSettings operation. */\nexport type GetSettingsResponse = SettingsListResult;\n\n/** Optional parameters. */\nexport interface KeyVaultClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2RH,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wBAAwB;IACxB,mCAAc,CAAA;AAChB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAWD,iEAAiE;AACjE,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qBAAqB;IACrB,+CAA8B,CAAA;IAC9B,mBAAmB;IACnB,0CAAyB,CAAA;AAC3B,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAYD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAqEX;AArED,WAAY,eAAe;IACzB,6BAA6B;IAC7B,gFAA6D,CAAA;IAC7D,yBAAyB;IACzB,kFAA+D,CAAA;IAC/D,4BAA4B;IAC5B,mGAAgF,CAAA;IAChF,+BAA+B;IAC/B,yGAAsF,CAAA;IACtF,uBAAuB;IACvB,qFAAkE,CAAA;IAClE,wBAAwB;IACxB,uFAAoE,CAAA;IACpE,8BAA8B;IAC9B,uGAAoF,CAAA;IACpF,2BAA2B;IAC3B,kGAA+E,CAAA;IAC/E,wCAAwC;IACxC,qGAAkF,CAAA;IAClF,2BAA2B;IAC3B,mGAAgF,CAAA;IAChF,wCAAwC;IACxC,qGAAkF,CAAA;IAClF,8BAA8B;IAC9B,uGAAoF,CAAA;IACpF,gCAAgC;IAChC,sFAAmE,CAAA;IACnE,gCAAgC;IAChC,sFAAmE,CAAA;IACnE,6BAA6B;IAC7B,gFAA6D,CAAA;IAC7D,+BAA+B;IAC/B,oFAAiE,CAAA;IACjE,6BAA6B;IAC7B,gFAA6D,CAAA;IAC7D,+BAA+B;IAC/B,oFAAiE,CAAA;IACjE,yBAAyB;IACzB,6EAA0D,CAAA;IAC1D,yBAAyB;IACzB,6EAA0D,CAAA;IAC1D,yBAAyB;IACzB,oFAAiE,CAAA;IACjE,mDAAmD;IACnD,mFAAgE,CAAA;IAChE,yBAAyB;IACzB,oFAAiE,CAAA;IACjE,+BAA+B;IAC/B,+FAA4E,CAAA;IAC5E,uCAAuC;IACvC,6GAA0F,CAAA;IAC1F,oDAAoD;IACpD,iHAA8F,CAAA;IAC9F,qCAAqC;IACrC,yGAAsF,CAAA;IACtF,iEAAiE;IACjE,2GAAwF,CAAA;IACxF,oDAAoD;IACpD,qHAAkG,CAAA;IAClG,2BAA2B;IAC3B,uFAAoE,CAAA;IACpE,4BAA4B;IAC5B,yFAAsE,CAAA;IACtE,iCAAiC;IACjC,6FAA0E,CAAA;IAC1E,kCAAkC;IAClC,+FAA4E,CAAA;IAC5E,+BAA+B;IAC/B,qFAAkE,CAAA;AACpE,CAAC,EArEW,eAAe,KAAf,eAAe,QAqE1B;AA4CD,kEAAkE;AAClE,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,mBAAmB;IACnB,8BAAY,CAAA;IACZ,iBAAiB;IACjB,gCAAc,CAAA;AAChB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAYD,2EAA2E;AAC3E,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,4GAAiF,CAAA;AACnF,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AAWD,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;AACrB,CAAC,EAFW,oBAAoB,KAApB,oBAAoB,QAE/B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly error?: ErrorModel;\n}\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ErrorModel;\n}\n\n/** Role definition create parameters. */\nexport interface RoleDefinitionCreateParameters {\n /** Role definition properties. */\n properties: RoleDefinitionProperties;\n}\n\n/** Role definition properties. */\nexport interface RoleDefinitionProperties {\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\n/** Role definition permissions. */\nexport interface Permission {\n /** Action permissions that are granted. */\n actions?: string[];\n /** Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notActions?: string[];\n /** Data action permissions that are granted. */\n dataActions?: DataAction[];\n /** Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notDataActions?: DataAction[];\n}\n\n/** Role definition. */\nexport interface RoleDefinition {\n /**\n * The role definition ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The role definition name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The role definition type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: RoleDefinitionType;\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\n/** Role definition list operation result. */\nexport interface RoleDefinitionListResult {\n /** Role definition list. */\n value?: RoleDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** Role assignment create parameters. */\nexport interface RoleAssignmentCreateParameters {\n /** Role assignment properties. */\n properties: RoleAssignmentProperties;\n}\n\n/** Role assignment properties. */\nexport interface RoleAssignmentProperties {\n /** The role definition ID used in the role assignment. */\n roleDefinitionId: string;\n /** The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. */\n principalId: string;\n}\n\n/** Role Assignments */\nexport interface RoleAssignment {\n /**\n * The role assignment ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The role assignment name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The role assignment type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Role assignment properties. */\n properties?: RoleAssignmentPropertiesWithScope;\n}\n\n/** Role assignment properties with scope. */\nexport interface RoleAssignmentPropertiesWithScope {\n /** The role scope. */\n scope?: RoleScope;\n /** The role definition ID. */\n roleDefinitionId?: string;\n /** The principal ID. */\n principalId?: string;\n}\n\n/** Role assignment list operation result. */\nexport interface RoleAssignmentListResult {\n /** Role assignment list. */\n value?: RoleAssignment[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport interface SASTokenParameter {\n /** Azure Blob storage container Uri */\n storageResourceUri: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token: string;\n}\n\n/** Full backup operation */\nexport interface FullBackupOperation {\n /** Status of the backup operation. */\n status?: string;\n /** The status details of backup operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the full backup operation. */\n error?: ErrorModel;\n /** The start time of the backup operation in UTC */\n startTime?: Date;\n /** The end time of the backup operation in UTC */\n endTime?: Date;\n /** Identifier for the full backup operation. */\n jobId?: string;\n /** The Azure blob storage container Uri which contains the full backup */\n azureStorageBlobContainerUri?: string;\n}\n\nexport interface RestoreOperationParameters {\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore: string;\n}\n\n/** Restore operation */\nexport interface RestoreOperation {\n /** Status of the restore operation. */\n status?: string;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the restore operation. */\n error?: ErrorModel;\n /** Identifier for the restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\nexport interface SelectiveKeyRestoreOperationParameters {\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folder: string;\n}\n\n/** Selective Key Restore operation */\nexport interface SelectiveKeyRestoreOperation {\n /** Status of the restore operation. */\n status?: string;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the selective key restore operation. */\n error?: ErrorModel;\n /** Identifier for the selective key restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\n/** The update settings request object. */\nexport interface UpdateSettingRequest {\n /** The value of the pool setting. */\n value: string;\n}\n\nexport interface Setting {\n /** The account setting to be updated */\n name: string;\n /** The value of the pool setting. */\n value: string;\n /** The type specifier of the value. */\n type?: SettingTypeEnum;\n}\n\n/** The settings list result. */\nexport interface SettingsListResult {\n /**\n * A response message containing a list of account settings with their associated value.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly settings?: Setting[];\n}\n\n/** Role Assignments filter */\nexport interface RoleAssignmentFilter {\n /** Returns role assignment of the specific principal. */\n principalId?: string;\n}\n\n/** Role Definitions filter */\nexport interface RoleDefinitionFilter {\n /** Returns role definition with the specific name. */\n roleName?: string;\n}\n\n/** Defines headers for KeyVaultClient_fullBackup operation. */\nexport interface KeyVaultClientFullBackupHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Defines headers for KeyVaultClient_fullRestoreOperation operation. */\nexport interface KeyVaultClientFullRestoreOperationHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Defines headers for KeyVaultClient_selectiveKeyRestoreOperation operation. */\nexport interface KeyVaultClientSelectiveKeyRestoreOperationHeaders {\n /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */\n retryAfter?: number;\n /** The URI to poll for completion status. */\n azureAsyncOperation?: string;\n}\n\n/** Known values of {@link ApiVersion74} that the service accepts. */\nexport enum KnownApiVersion74 {\n /** Api Version '7.4' */\n Seven4 = \"7.4\"\n}\n\n/**\n * Defines values for ApiVersion74. \\\n * {@link KnownApiVersion74} can be used interchangeably with ApiVersion74,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **7.4**: Api Version '7.4'\n */\nexport type ApiVersion74 = string;\n\n/** Known values of {@link RoleType} that the service accepts. */\nexport enum KnownRoleType {\n /** Built in role. */\n BuiltInRole = \"AKVBuiltInRole\",\n /** Custom role. */\n CustomRole = \"CustomRole\"\n}\n\n/**\n * Defines values for RoleType. \\\n * {@link KnownRoleType} can be used interchangeably with RoleType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AKVBuiltInRole**: Built in role. \\\n * **CustomRole**: Custom role.\n */\nexport type RoleType = string;\n\n/** Known values of {@link DataAction} that the service accepts. */\nexport enum KnownDataAction {\n /** Read HSM key metadata. */\n ReadHsmKey = \"Microsoft.KeyVault/managedHsm/keys/read/action\",\n /** Update an HSM key. */\n WriteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/write/action\",\n /** Read deleted HSM key. */\n ReadDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action\",\n /** Recover deleted HSM key. */\n RecoverDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action\",\n /** Backup HSM keys. */\n BackupHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/backup/action\",\n /** Restore HSM keys. */\n RestoreHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/restore/action\",\n /** Delete role assignment. */\n DeleteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/delete/action\",\n /** Get role assignment. */\n GetRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/read/action\",\n /** Create or update role assignment. */\n WriteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/write/action\",\n /** Get role definition. */\n ReadRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/read/action\",\n /** Create or update role definition. */\n WriteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/write/action\",\n /** Delete role definition. */\n DeleteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action\",\n /** Encrypt using an HSM key. */\n EncryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/encrypt/action\",\n /** Decrypt using an HSM key. */\n DecryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/decrypt/action\",\n /** Wrap using an HSM key. */\n WrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/wrap/action\",\n /** Unwrap using an HSM key. */\n UnwrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/unwrap/action\",\n /** Sign using an HSM key. */\n SignHsmKey = \"Microsoft.KeyVault/managedHsm/keys/sign/action\",\n /** Verify using an HSM key. */\n VerifyHsmKey = \"Microsoft.KeyVault/managedHsm/keys/verify/action\",\n /** Create an HSM key. */\n CreateHsmKey = \"Microsoft.KeyVault/managedHsm/keys/create\",\n /** Delete an HSM key. */\n DeleteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/delete\",\n /** Export an HSM key. */\n ExportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/export/action\",\n /** Release an HSM key using Secure Key Release. */\n ReleaseKey = \"Microsoft.KeyVault/managedHsm/keys/release/action\",\n /** Import an HSM key. */\n ImportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/import/action\",\n /** Purge a deleted HSM key. */\n PurgeDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete\",\n /** Download an HSM security domain. */\n DownloadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/download/action\",\n /** Check status of HSM security domain download. */\n DownloadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/download/read\",\n /** Upload an HSM security domain. */\n UploadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/action\",\n /** Check the status of the HSM security domain exchange file. */\n ReadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/read\",\n /** Download an HSM security domain transfer key. */\n ReadHsmSecurityDomainTransferKey = \"Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read\",\n /** Start an HSM backup. */\n StartHsmBackup = \"Microsoft.KeyVault/managedHsm/backup/start/action\",\n /** Start an HSM restore. */\n StartHsmRestore = \"Microsoft.KeyVault/managedHsm/restore/start/action\",\n /** Read an HSM backup status. */\n ReadHsmBackupStatus = \"Microsoft.KeyVault/managedHsm/backup/status/action\",\n /** Read an HSM restore status. */\n ReadHsmRestoreStatus = \"Microsoft.KeyVault/managedHsm/restore/status/action\",\n /** Generate random numbers. */\n RandomNumbersGenerate = \"Microsoft.KeyVault/managedHsm/rng/action\"\n}\n\n/**\n * Defines values for DataAction. \\\n * {@link KnownDataAction} can be used interchangeably with DataAction,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/read\\/action**: Read HSM key metadata. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/write\\/action**: Update an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/read\\/action**: Read deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/recover\\/action**: Recover deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/backup\\/action**: Backup HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/restore\\/action**: Restore HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/delete\\/action**: Delete role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/read\\/action**: Get role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/write\\/action**: Create or update role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/read\\/action**: Get role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/write\\/action**: Create or update role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/delete\\/action**: Delete role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/encrypt\\/action**: Encrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/decrypt\\/action**: Decrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/wrap\\/action**: Wrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/unwrap\\/action**: Unwrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/sign\\/action**: Sign using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/verify\\/action**: Verify using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/create**: Create an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/delete**: Delete an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/export\\/action**: Export an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/release\\/action**: Release an HSM key using Secure Key Release. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/import\\/action**: Import an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/delete**: Purge a deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/action**: Download an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/read**: Check status of HSM security domain download. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/action**: Upload an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/read**: Check the status of the HSM security domain exchange file. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/transferkey\\/read**: Download an HSM security domain transfer key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/start\\/action**: Start an HSM backup. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/start\\/action**: Start an HSM restore. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/status\\/action**: Read an HSM backup status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/status\\/action**: Read an HSM restore status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/rng\\/action**: Generate random numbers.\n */\nexport type DataAction = string;\n\n/** Known values of {@link RoleScope} that the service accepts. */\nexport enum KnownRoleScope {\n /** Global scope */\n Global = \"/\",\n /** Keys scope */\n Keys = \"/keys\"\n}\n\n/**\n * Defines values for RoleScope. \\\n * {@link KnownRoleScope} can be used interchangeably with RoleScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **\\/**: Global scope \\\n * **\\/keys**: Keys scope\n */\nexport type RoleScope = string;\n\n/** Known values of {@link RoleDefinitionType} that the service accepts. */\nexport enum KnownRoleDefinitionType {\n MicrosoftAuthorizationRoleDefinitions = \"Microsoft.Authorization/roleDefinitions\"\n}\n\n/**\n * Defines values for RoleDefinitionType. \\\n * {@link KnownRoleDefinitionType} can be used interchangeably with RoleDefinitionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Authorization\\/roleDefinitions**\n */\nexport type RoleDefinitionType = string;\n\n/** Known values of {@link SettingTypeEnum} that the service accepts. */\nexport enum KnownSettingTypeEnum {\n Boolean = \"boolean\"\n}\n\n/**\n * Defines values for SettingTypeEnum. \\\n * {@link KnownSettingTypeEnum} can be used interchangeably with SettingTypeEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **boolean**\n */\nexport type SettingTypeEnum = string;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface RoleDefinitionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type RoleDefinitionsCreateOrUpdateResponse = RoleDefinition;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type RoleDefinitionsGetResponse = RoleDefinition;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsListOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. */\n filter?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type RoleDefinitionsListResponse = RoleDefinitionListResult;\n\n/** Optional parameters. */\nexport interface RoleDefinitionsListNextOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. */\n filter?: string;\n}\n\n/** Contains response data for the listNext operation. */\nexport type RoleDefinitionsListNextResponse = RoleDefinitionListResult;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface RoleAssignmentsCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type RoleAssignmentsCreateResponse = RoleAssignment;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type RoleAssignmentsGetResponse = RoleAssignment;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsListForScopeOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. */\n filter?: string;\n}\n\n/** Contains response data for the listForScope operation. */\nexport type RoleAssignmentsListForScopeResponse = RoleAssignmentListResult;\n\n/** Optional parameters. */\nexport interface RoleAssignmentsListForScopeNextOptionalParams\n extends coreClient.OperationOptions {\n /** The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. */\n filter?: string;\n}\n\n/** Contains response data for the listForScopeNext operation. */\nexport type RoleAssignmentsListForScopeNextResponse = RoleAssignmentListResult;\n\n/** Optional parameters. */\nexport interface FullBackupOptionalParams extends coreClient.OperationOptions {\n /** Azure blob shared access signature token pointing to a valid Azure blob container where full backup needs to be stored. This token needs to be valid for at least next 24 hours from the time of making this call */\n azureStorageBlobContainerUri?: SASTokenParameter;\n}\n\n/** Contains response data for the fullBackup operation. */\nexport type FullBackupResponse = KeyVaultClientFullBackupHeaders &\n FullBackupOperation;\n\n/** Optional parameters. */\nexport interface FullBackupStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the fullBackupStatus operation. */\nexport type FullBackupStatusResponse = FullBackupOperation;\n\n/** Optional parameters. */\nexport interface FullRestoreOperationOptionalParams\n extends coreClient.OperationOptions {\n /** The Azure blob SAS token pointing to a folder where the previous successful full backup was stored */\n restoreBlobDetails?: RestoreOperationParameters;\n}\n\n/** Contains response data for the fullRestoreOperation operation. */\nexport type FullRestoreOperationResponse = KeyVaultClientFullRestoreOperationHeaders &\n RestoreOperation;\n\n/** Optional parameters. */\nexport interface RestoreStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the restoreStatus operation. */\nexport type RestoreStatusResponse = RestoreOperation;\n\n/** Optional parameters. */\nexport interface SelectiveKeyRestoreOperationOptionalParams\n extends coreClient.OperationOptions {\n /** The Azure blob SAS token pointing to a folder where the previous successful full backup was stored */\n restoreBlobDetails?: SelectiveKeyRestoreOperationParameters;\n}\n\n/** Contains response data for the selectiveKeyRestoreOperation operation. */\nexport type SelectiveKeyRestoreOperationResponse = KeyVaultClientSelectiveKeyRestoreOperationHeaders &\n SelectiveKeyRestoreOperation;\n\n/** Optional parameters. */\nexport interface UpdateSettingOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the updateSetting operation. */\nexport type UpdateSettingResponse = Setting;\n\n/** Optional parameters. */\nexport interface GetSettingOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSetting operation. */\nexport type GetSettingResponse = Setting;\n\n/** Optional parameters. */\nexport interface GetSettingsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSettings operation. */\nexport type GetSettingsResponse = SettingsListResult;\n\n/** Optional parameters. */\nexport interface KeyVaultClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -8,18 +8,25 @@ import { logger } from "./log";
8
8
  function makeSetting(generatedSetting) {
9
9
  if (generatedSetting.type === "boolean") {
10
10
  return {
11
+ kind: "boolean",
11
12
  name: generatedSetting.name,
12
13
  value: generatedSetting.value === "true" ? true : false,
13
- kind: "boolean",
14
14
  };
15
15
  }
16
16
  else {
17
17
  return {
18
+ kind: generatedSetting.type,
18
19
  name: generatedSetting.name,
19
20
  value: generatedSetting.value,
20
21
  };
21
22
  }
22
23
  }
24
+ /**
25
+ * Determines whether a given {@link KeyVaultSetting} is a {@link BooleanKeyVaultSetting}, i.e. has a boolean value.
26
+ */
27
+ export function isBooleanSetting(setting) {
28
+ return setting.kind === "boolean" && typeof setting.value === "boolean";
29
+ }
23
30
  /**
24
31
  * The KeyVaultSettingsClient provides asynchronous methods to create, update, get and list
25
32
  * settings for the Azure Key Vault.
@@ -64,12 +71,11 @@ export class KeyVaultSettingsClient {
64
71
  /**
65
72
  * Updates the named account setting.
66
73
  *
67
- * @param settingName - the name of the account setting. Must be a valid settings option.
68
- * @param value - the value of the pool setting.
74
+ * @param setting - the setting to update. The name of the setting must be a valid settings option.
69
75
  * @param options - the optional parameters.
70
76
  */
71
- async updateSetting(settingName, value, options = {}) {
72
- return makeSetting(await this.client.updateSetting(this.vaultUrl, settingName, String(value), options));
77
+ async updateSetting(setting, options = {}) {
78
+ return makeSetting(await this.client.updateSetting(this.vaultUrl, setting.name, String(setting.value), options));
73
79
  }
74
80
  /**
75
81
  * Get the value of a specific account setting.
@@ -1 +1 @@
1
- {"version":3,"file":"settingsClient.js","sourceRoot":"","sources":["../../src/settingsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,cAAc,EAA+B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAU/B,SAAS,WAAW,CAAC,gBAAkC;IACrD,IAAI,gBAAgB,CAAC,IAAI,KAAK,SAAS,EAAE;QACvC,OAAO;YACL,IAAI,EAAE,gBAAgB,CAAC,IAAI;YAC3B,KAAK,EAAE,gBAAgB,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YACvD,IAAI,EAAE,SAAS;SAChB,CAAC;KACH;SAAM;QACL,OAAO;YACL,IAAI,EAAE,gBAAgB,CAAC,IAAI;YAC3B,KAAK,EAAE,gBAAgB,CAAC,KAAK;SAC9B,CAAC;KACH;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,OAAO,sBAAsB;IAWjC;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,QAAgB,EAAE,UAA2B,EAAE,UAAiC,EAAE;QAC5F,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,IAAI,kBA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xD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { createKeyVaultChallengeCallbacks } from \"@azure/keyvault-common\";\nimport { LATEST_API_VERSION } from \"./constants\";\nimport { KeyVaultClient, Setting as GeneratedSetting } from \"./generated\";\nimport { logger } from \"./log\";\nimport {\n UpdateSettingOptions,\n GetSettingOptions,\n ListSettingsOptions,\n ListSettingsResponse,\n KeyVaultSetting,\n SettingsClientOptions,\n} from \"./settingsClientModels\";\n\nfunction makeSetting(generatedSetting: GeneratedSetting): KeyVaultSetting {\n if (generatedSetting.type === \"boolean\") {\n return {\n name: generatedSetting.name,\n value: generatedSetting.value === \"true\" ? true : false,\n kind: \"boolean\",\n };\n } else {\n return {\n name: generatedSetting.name,\n value: generatedSetting.value,\n };\n }\n}\n\n/**\n * The KeyVaultSettingsClient provides asynchronous methods to create, update, get and list\n * settings for the Azure Key Vault.\n */\nexport class KeyVaultSettingsClient {\n /**\n * The base URL to the vault.\n */\n public readonly vaultUrl: string;\n\n /**\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of the KeyVaultSettingsClient.\n *\n * Example usage:\n * ```ts\n * import { KeyVaultSettingsClient } from \"@azure/keyvault-admin\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * let vaultUrl = `https://<MY KEY VAULT HERE>.vault.azure.net`;\n * let credentials = new DefaultAzureCredential();\n *\n * let client = new KeyVaultSettingsClient(vaultUrl, credentials);\n * ```\n * @param vaultUrl - the URL of the Key Vault. It should have this shape: `https://${your-key-vault-name}.vault.azure.net`. You should validate that this URL references a valid Key Vault or Managed HSM resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param options - options used to configure Key Vault API requests.\n\n */\n constructor(vaultUrl: string, credential: TokenCredential, options: SettingsClientOptions = {}) {\n this.vaultUrl = vaultUrl;\n\n const apiVersion = options.serviceVersion || LATEST_API_VERSION;\n\n const clientOptions = {\n ...options,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.client = new KeyVaultClient(apiVersion, clientOptions);\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: [],\n challengeCallbacks: createKeyVaultChallengeCallbacks(options),\n })\n );\n }\n\n /**\n * Updates the named account setting.\n *\n * @param settingName - the name of the account setting. Must be a valid settings option.\n * @param value - the value of the pool setting.\n * @param options - the optional parameters.\n */\n async updateSetting(\n settingName: string,\n value: boolean,\n options: UpdateSettingOptions = {}\n ): Promise<KeyVaultSetting> {\n return makeSetting(\n await this.client.updateSetting(this.vaultUrl, settingName, String(value), options)\n );\n }\n\n /**\n * Get the value of a specific account setting.\n *\n * @param settingName - the name of the setting.\n * @param options - the optional parameters.\n */\n async getSetting(settingName: string, options: GetSettingOptions = {}): Promise<KeyVaultSetting> {\n return makeSetting(await this.client.getSetting(this.vaultUrl, settingName, options));\n }\n\n /**\n * List the account's settings.\n *\n * @param options - the optional parameters.\n */\n async getSettings(options: ListSettingsOptions = {}): Promise<ListSettingsResponse> {\n const { settings } = await this.client.getSettings(this.vaultUrl, options);\n return { settings: settings?.map(makeSetting) ?? [] };\n }\n}\n"]}
1
+ {"version":3,"file":"settingsClient.js","sourceRoot":"","sources":["../../src/settingsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aA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AAS,CAC5B,+BAA+B,CAAC;YAC9B,UAAU;YACV,MAAM,EAAE,EAAE;YACV,kBAAkB,EAAE,gCAAgC,CAAC,OAAO,CAAC;SAC9D,CAAC,CACH,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwB,EACxB,UAAgC,EAAE;QAElC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAC7F,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,UAA6B,EAAE;QACnE,OAAO,WAAW,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IACxF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW,CAAC,UAA+B,EAAE;;QACjD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO,EAAE,QAAQ,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,WAAW,CAAC,mCAAI,EAAE,EAAE,CAAC;IACxD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { createKeyVaultChallengeCallbacks } from \"@azure/keyvault-common\";\nimport { LATEST_API_VERSION } from \"./constants\";\nimport { KeyVaultClient, Setting as GeneratedSetting } from \"./generated\";\nimport { logger } from \"./log\";\nimport {\n UpdateSettingOptions,\n GetSettingOptions,\n ListSettingsOptions,\n ListSettingsResponse,\n KeyVaultSetting,\n SettingsClientOptions,\n BooleanKeyVaultSetting,\n} from \"./settingsClientModels\";\n\nfunction makeSetting(generatedSetting: GeneratedSetting): KeyVaultSetting {\n if (generatedSetting.type === \"boolean\") {\n return {\n kind: \"boolean\",\n name: generatedSetting.name,\n value: generatedSetting.value === \"true\" ? true : false,\n };\n } else {\n return {\n kind: generatedSetting.type,\n name: generatedSetting.name,\n value: generatedSetting.value,\n };\n }\n}\n\n/**\n * Determines whether a given {@link KeyVaultSetting} is a {@link BooleanKeyVaultSetting}, i.e. has a boolean value.\n */\nexport function isBooleanSetting(setting: KeyVaultSetting): setting is BooleanKeyVaultSetting {\n return setting.kind === \"boolean\" && typeof setting.value === \"boolean\";\n}\n\n/**\n * The KeyVaultSettingsClient provides asynchronous methods to create, update, get and list\n * settings for the Azure Key Vault.\n */\nexport class KeyVaultSettingsClient {\n /**\n * The base URL to the vault.\n */\n public readonly vaultUrl: string;\n\n /**\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of the KeyVaultSettingsClient.\n *\n * Example usage:\n * ```ts\n * import { KeyVaultSettingsClient } from \"@azure/keyvault-admin\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * let vaultUrl = `https://<MY KEY VAULT HERE>.vault.azure.net`;\n * let credentials = new DefaultAzureCredential();\n *\n * let client = new KeyVaultSettingsClient(vaultUrl, credentials);\n * ```\n * @param vaultUrl - the URL of the Key Vault. It should have this shape: `https://${your-key-vault-name}.vault.azure.net`. You should validate that this URL references a valid Key Vault or Managed HSM resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param options - options used to configure Key Vault API requests.\n\n */\n constructor(vaultUrl: string, credential: TokenCredential, options: SettingsClientOptions = {}) {\n this.vaultUrl = vaultUrl;\n\n const apiVersion = options.serviceVersion || LATEST_API_VERSION;\n\n const clientOptions = {\n ...options,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.client = new KeyVaultClient(apiVersion, clientOptions);\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: [],\n challengeCallbacks: createKeyVaultChallengeCallbacks(options),\n })\n );\n }\n\n /**\n * Updates the named account setting.\n *\n * @param setting - the setting to update. The name of the setting must be a valid settings option.\n * @param options - the optional parameters.\n */\n async updateSetting(\n setting: KeyVaultSetting,\n options: UpdateSettingOptions = {}\n ): Promise<KeyVaultSetting> {\n return makeSetting(\n await this.client.updateSetting(this.vaultUrl, setting.name, String(setting.value), options)\n );\n }\n\n /**\n * Get the value of a specific account setting.\n *\n * @param settingName - the name of the setting.\n * @param options - the optional parameters.\n */\n async getSetting(settingName: string, options: GetSettingOptions = {}): Promise<KeyVaultSetting> {\n return makeSetting(await this.client.getSetting(this.vaultUrl, settingName, options));\n }\n\n /**\n * List the account's settings.\n *\n * @param options - the optional parameters.\n */\n async getSettings(options: ListSettingsOptions = {}): Promise<ListSettingsResponse> {\n const { settings } = await this.client.getSettings(this.vaultUrl, options);\n return { settings: settings?.map(makeSetting) ?? [] };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"settingsClientModels.js","sourceRoot":"","sources":["../../src/settingsClientModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport type { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport { SUPPORTED_API_VERSIONS } from \"./constants\";\n\n/**\n * The optional parameters accepted by the KeyVaultSettingsClient.\n */\nexport interface SettingsClientOptions extends CommonClientOptions {\n /**\n * The accepted versions of the Key Vault's service API.\n */\n serviceVersion?: SUPPORTED_API_VERSIONS;\n\n /**\n * Whether to disable verification that the authentication challenge resource matches the Key Vault or Managed HSM domain.\n * Defaults to false.\n */\n disableChallengeResourceVerification?: boolean;\n}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.updateSetting}\n */\nexport interface UpdateSettingOptions extends OperationOptions {}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.getSetting}\n */\nexport interface GetSettingOptions extends OperationOptions {}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.listSettings}\n */\nexport interface ListSettingsOptions extends OperationOptions {}\n\n/**\n * Common attributes shared by Key Vault settings of all kinds.\n */\nexport interface KeyVaultSettingCommon {\n /**\n * The name of the setting.\n */\n name: string;\n}\n\n/**\n * A Key Vault setting for which the type of the value is unknown.\n */\nexport interface UnknownKeyVaultSetting extends KeyVaultSettingCommon {\n /**\n * The value of the setting.\n */\n value: unknown;\n\n /**\n * The kind of the setting.\n */\n kind?: never;\n}\n\n/**\n * A Key Vault setting with a boolean value.\n */\nexport interface BooleanKeyVaultSetting extends KeyVaultSettingCommon {\n /**\n * The value of the setting.\n */\n value: boolean;\n\n /**\n * The kind of the setting.\n */\n kind: \"boolean\";\n}\n\n/**\n * A Key Vault setting.\n */\nexport type KeyVaultSetting = UnknownKeyVaultSetting | BooleanKeyVaultSetting;\n\n/**\n * An interface representing the response returned by {@link KeyVaultSettingsClient.listSettings}\n */\nexport interface ListSettingsResponse {\n /**\n * The account's settings.\n */\n settings: KeyVaultSetting[];\n}\n"]}
1
+ {"version":3,"file":"settingsClientModels.js","sourceRoot":"","sources":["../../src/settingsClientModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport type { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport { SUPPORTED_API_VERSIONS } from \"./constants\";\n\n/**\n * The optional parameters accepted by the KeyVaultSettingsClient.\n */\nexport interface SettingsClientOptions extends CommonClientOptions {\n /**\n * The accepted versions of the Key Vault's service API.\n */\n serviceVersion?: SUPPORTED_API_VERSIONS;\n\n /**\n * Whether to disable verification that the authentication challenge resource matches the Key Vault or Managed HSM domain.\n * Defaults to false.\n */\n disableChallengeResourceVerification?: boolean;\n}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.updateSetting}\n */\nexport interface UpdateSettingOptions extends OperationOptions {}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.getSetting}\n */\nexport interface GetSettingOptions extends OperationOptions {}\n\n/**\n * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.listSettings}\n */\nexport interface ListSettingsOptions extends OperationOptions {}\n\n/**\n * A Key Vault setting.\n */\nexport interface KeyVaultSetting {\n /**\n * The kind of the setting.\n */\n kind?: string;\n\n /**\n * The name of the setting.\n */\n name: string;\n\n /**\n * The value of a setting. The type of the value depends on the value of the kind property.\n */\n value: unknown;\n}\n\n/**\n * A Key Vault setting of boolean type. To check if a given KeyVaultSetting is a boolean, use {@link isBooleanSetting}.\n */\nexport interface BooleanKeyVaultSetting extends KeyVaultSetting {\n /**\n * The kind of the setting.\n */\n kind: \"boolean\";\n\n /**\n * The value of the setting as a boolean.\n */\n value: boolean;\n}\n\n/**\n * An interface representing the response returned by {@link KeyVaultSettingsClient.listSettings}\n */\nexport interface ListSettingsResponse {\n /**\n * The account's settings.\n */\n settings: KeyVaultSetting[];\n}\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure/keyvault-admin",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "4.4.0-beta.1",
5
+ "version": "4.4.0",
6
6
  "license": "MIT",
7
7
  "description": "Isomorphic client library for Azure KeyVault's administrative functions.",
8
8
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/keyvault/keyvault-admin/README.md",
@@ -56,7 +56,7 @@
56
56
  "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
57
57
  "generate:client": "autorest --typescript swagger/README.md",
58
58
  "integration-test:browser": "echo skipped",
59
- "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"dist-esm/**/*.spec.js\"",
59
+ "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"",
60
60
  "integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace \"dist-esm/**/*.spec.js\"",
61
61
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
62
62
  "lint:fix": "eslint package.json src --ext .ts --fix --fix-type [problem,suggestion]",
@@ -66,7 +66,7 @@
66
66
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
67
67
  "test": "npm run clean && npm run build:test && npm run unit-test",
68
68
  "unit-test:browser": "echo skipped",
69
- "unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
69
+ "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 180000 --exclude \"test/**/*.browser.spec.ts\" \"test/**/*.spec.ts\"",
70
70
  "unit-test": "npm run unit-test:node && npm run unit-test:browser"
71
71
  },
72
72
  "//metadata": {
@@ -108,7 +108,7 @@
108
108
  "@azure/core-paging": "^1.1.1",
109
109
  "@azure/core-rest-pipeline": "^1.1.0",
110
110
  "@azure/core-tracing": "^1.0.0",
111
- "@azure/keyvault-common": "^1.0.0-beta.1",
111
+ "@azure/keyvault-common": "^1.0.0",
112
112
  "@azure/logger": "^1.0.0",
113
113
  "@types/uuid": "^8.0.0",
114
114
  "tslib": "^2.2.0",
@@ -122,13 +122,14 @@
122
122
  "@azure/identity": "^2.0.1",
123
123
  "@azure/keyvault-keys": "^4.2.1",
124
124
  "@azure/test-utils": "^1.0.0",
125
- "@azure-tools/test-recorder": "^1.0.0",
126
- "@microsoft/api-extractor": "^7.31.1",
125
+ "@azure-tools/test-credential": "^1.0.0",
126
+ "@azure-tools/test-recorder": "^3.0.0",
127
+ "@microsoft/api-extractor": "^7.31.11",
127
128
  "@types/mocha": "^7.0.2",
128
129
  "@types/node": "^14.0.0",
129
130
  "@types/sinon": "^9.0.4",
130
131
  "cross-env": "^7.0.2",
131
- "dotenv": "^8.2.0",
132
+ "dotenv": "^16.0.0",
132
133
  "eslint": "^8.0.0",
133
134
  "esm": "^3.2.18",
134
135
  "mocha": "^7.1.1",
@@ -23,17 +23,17 @@ export declare interface AccessControlClientOptions extends CommonClientOptions
23
23
  }
24
24
 
25
25
  /**
26
- * A Key Vault setting with a boolean value.
26
+ * A Key Vault setting of boolean type. To check if a given KeyVaultSetting is a boolean, use {@link isBooleanSetting}.
27
27
  */
28
- export declare interface BooleanKeyVaultSetting extends KeyVaultSettingCommon {
29
- /**
30
- * The value of the setting.
31
- */
32
- value: boolean;
28
+ export declare interface BooleanKeyVaultSetting extends KeyVaultSetting {
33
29
  /**
34
30
  * The kind of the setting.
35
31
  */
36
32
  kind: "boolean";
33
+ /**
34
+ * The value of the setting as a boolean.
35
+ */
36
+ value: boolean;
37
37
  }
38
38
 
39
39
  /**
@@ -75,6 +75,11 @@ export declare interface GetRoleDefinitionOptions extends OperationOptions {
75
75
  export declare interface GetSettingOptions extends OperationOptions {
76
76
  }
77
77
 
78
+ /**
79
+ * Determines whether a given {@link KeyVaultSetting} is a {@link BooleanKeyVaultSetting}, i.e. has a boolean value.
80
+ */
81
+ export declare function isBooleanSetting(setting: KeyVaultSetting): setting is BooleanKeyVaultSetting;
82
+
78
83
  /**
79
84
  * The KeyVaultAccessControlClient provides methods to manage
80
85
  * access control and role assignments in any given Azure Key Vault instance.
@@ -686,16 +691,19 @@ export declare interface KeyVaultSelectiveKeyRestoreResult {
686
691
  /**
687
692
  * A Key Vault setting.
688
693
  */
689
- export declare type KeyVaultSetting = UnknownKeyVaultSetting | BooleanKeyVaultSetting;
690
-
691
- /**
692
- * Common attributes shared by Key Vault settings of all kinds.
693
- */
694
- export declare interface KeyVaultSettingCommon {
694
+ export declare interface KeyVaultSetting {
695
+ /**
696
+ * The kind of the setting.
697
+ */
698
+ kind?: string;
695
699
  /**
696
700
  * The name of the setting.
697
701
  */
698
702
  name: string;
703
+ /**
704
+ * The value of a setting. The type of the value depends on the value of the kind property.
705
+ */
706
+ value: unknown;
699
707
  }
700
708
 
701
709
  /**
@@ -733,11 +741,10 @@ export declare class KeyVaultSettingsClient {
733
741
  /**
734
742
  * Updates the named account setting.
735
743
  *
736
- * @param settingName - the name of the account setting. Must be a valid settings option.
737
- * @param value - the value of the pool setting.
744
+ * @param setting - the setting to update. The name of the setting must be a valid settings option.
738
745
  * @param options - the optional parameters.
739
746
  */
740
- updateSetting(settingName: string, value: boolean, options?: UpdateSettingOptions): Promise<KeyVaultSetting>;
747
+ updateSetting(setting: KeyVaultSetting, options?: UpdateSettingOptions): Promise<KeyVaultSetting>;
741
748
  /**
742
749
  * Get the value of a specific account setting.
743
750
  *
@@ -836,7 +843,7 @@ export declare enum KnownKeyVaultRoleScope {
836
843
  /**
837
844
  * The latest supported Key Vault service API version.
838
845
  */
839
- export declare const LATEST_API_VERSION = "7.4-preview.1";
846
+ export declare const LATEST_API_VERSION = "7.4";
840
847
 
841
848
  /**
842
849
  * An interface representing optional parameters passed to {@link listRoleAssignments}.
@@ -937,21 +944,7 @@ export declare interface SettingsClientOptions extends CommonClientOptions {
937
944
  /**
938
945
  * Supported API versions
939
946
  */
940
- export declare type SUPPORTED_API_VERSIONS = "7.2" | "7.3" | "7.4-preview.1";
941
-
942
- /**
943
- * A Key Vault setting for which the type of the value is unknown.
944
- */
945
- export declare interface UnknownKeyVaultSetting extends KeyVaultSettingCommon {
946
- /**
947
- * The value of the setting.
948
- */
949
- value: unknown;
950
- /**
951
- * The kind of the setting.
952
- */
953
- kind?: never;
954
- }
947
+ export declare type SUPPORTED_API_VERSIONS = "7.2" | "7.3" | "7.4";
955
948
 
956
949
  /**
957
950
  * An interface representing the optional parameters that can be passed to {@link KeyVaultSettingsClient.updateSetting}