Commit iniziale
This commit is contained in:
28
node_modules/@azure/keyvault-keys/dist/commonjs/identifier.js
generated
vendored
Normal file
28
node_modules/@azure/keyvault-keys/dist/commonjs/identifier.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseKeyVaultKeyIdentifier = parseKeyVaultKeyIdentifier;
|
||||
const keyvault_common_1 = require("@azure/keyvault-common");
|
||||
/**
|
||||
* Parses the given Key Vault Key Id. An example is:
|
||||
*
|
||||
* https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>
|
||||
*
|
||||
* On parsing the above Id, this function returns:
|
||||
*```ts
|
||||
* {
|
||||
* sourceId: "https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>",
|
||||
* vaultUrl: "https://<keyvault-name>.vault.azure.net",
|
||||
* version: "<unique-version-id>",
|
||||
* name: "<key-name>"
|
||||
* }
|
||||
*```
|
||||
* @param id - The Id of the Key Vault Key.
|
||||
*/
|
||||
function parseKeyVaultKeyIdentifier(id) {
|
||||
const urlParts = id.split("/");
|
||||
const collection = urlParts[3];
|
||||
return Object.assign({ sourceId: id }, (0, keyvault_common_1.parseKeyVaultIdentifier)(collection, id));
|
||||
}
|
||||
//# sourceMappingURL=identifier.js.map
|
||||
Reference in New Issue
Block a user