@azure/keyvault-keys 4.3.0-beta.1 → 4.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA6B;IAC3D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,GAAG,EAAE;gBACH,cAAc,EAAE,KAAK;gBACrB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,eAAe;iBAC3B;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;YACD,KAAK,EAAE;gBACL,cAAc,EAAE,KAAK;gBACrB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ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,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,kCACV,SAAS,CAAC,IAAI,CAAC,eAAe,KACjC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE,oBAAoB;gBACpC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,EACD,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA6B;IACtD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gBAAgB;QAC3B,eAAe,kCACV,OAAO,CAAC,IAAI,CAAC,eAAe,KAC/B,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE,oBAAoB;gBACpC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,EACD,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,GACF;KACF;CACF,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 coreHttp from \"@azure/core-http\";\n\nexport const KeyCreateParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyCreateParameters\",\n modelProperties: {\n kty: {\n serializedName: \"kty\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n keySize: {\n serializedName: \"key_size\",\n type: {\n name: \"Number\"\n }\n },\n publicExponent: {\n serializedName: \"public_exponent\",\n type: {\n name: \"Number\"\n }\n },\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n curve: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n },\n releasePolicy: {\n serializedName: \"release_policy\",\n type: {\n name: \"Composite\",\n className: \"KeyReleasePolicy\"\n }\n }\n }\n }\n};\n\nexport const Attributes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Attributes\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n notBefore: {\n serializedName: \"nbf\",\n type: {\n name: \"UnixTime\"\n }\n },\n expires: {\n serializedName: \"exp\",\n type: {\n name: \"UnixTime\"\n }\n },\n created: {\n serializedName: \"created\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n updated: {\n serializedName: \"updated\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n\nexport const KeyReleasePolicy: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyReleasePolicy\",\n modelProperties: {\n contentType: {\n defaultValue: \"application/json; charset=utf-8\",\n serializedName: \"contentType\",\n type: {\n name: \"String\"\n }\n },\n data: {\n serializedName: \"data\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyBundle: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyBundle\",\n modelProperties: {\n key: {\n serializedName: \"key\",\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\"\n }\n },\n attributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n managed: {\n serializedName: \"managed\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n },\n releasePolicy: {\n serializedName: \"release_policy\",\n type: {\n name: \"Composite\",\n className: \"KeyReleasePolicy\"\n }\n }\n }\n }\n};\n\nexport const JsonWebKey: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n type: {\n name: \"String\"\n }\n },\n kty: {\n serializedName: \"kty\",\n type: {\n name: \"String\"\n }\n },\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n n: {\n serializedName: \"n\",\n type: {\n name: \"Base64Url\"\n }\n },\n e: {\n serializedName: \"e\",\n type: {\n name: \"Base64Url\"\n }\n },\n d: {\n serializedName: \"d\",\n type: {\n name: \"Base64Url\"\n }\n },\n dp: {\n serializedName: \"dp\",\n type: {\n name: \"Base64Url\"\n }\n },\n dq: {\n serializedName: \"dq\",\n type: {\n name: \"Base64Url\"\n }\n },\n qi: {\n serializedName: \"qi\",\n type: {\n name: \"Base64Url\"\n }\n },\n p: {\n serializedName: \"p\",\n type: {\n name: \"Base64Url\"\n }\n },\n q: {\n serializedName: \"q\",\n type: {\n name: \"Base64Url\"\n }\n },\n k: {\n serializedName: \"k\",\n type: {\n name: \"Base64Url\"\n }\n },\n t: {\n serializedName: \"key_hsm\",\n type: {\n name: \"Base64Url\"\n }\n },\n crv: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n },\n x: {\n serializedName: \"x\",\n type: {\n name: \"Base64Url\"\n }\n },\n y: {\n serializedName: \"y\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVaultError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVaultError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const KeyImportParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyImportParameters\",\n modelProperties: {\n hsm: {\n serializedName: \"Hsm\",\n type: {\n name: \"Boolean\"\n }\n },\n key: {\n serializedName: \"key\",\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\"\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n releasePolicy: {\n serializedName: \"release_policy\",\n type: {\n name: \"Composite\",\n className: \"KeyReleasePolicy\"\n }\n }\n }\n }\n};\n\nexport const KeyUpdateParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyUpdateParameters\",\n modelProperties: {\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n releasePolicy: {\n serializedName: \"release_policy\",\n type: {\n name: \"Composite\",\n className: \"KeyReleasePolicy\"\n }\n }\n }\n }\n};\n\nexport const KeyListResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"KeyItem\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyItem: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyItem\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n type: {\n name: \"String\"\n }\n },\n attributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n managed: {\n serializedName: \"managed\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const BackupKeyResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"BackupKeyResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyRestoreParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyRestoreParameters\",\n modelProperties: {\n keyBundleBackup: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyOperationsParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyOperationsParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n },\n iv: {\n serializedName: \"iv\",\n type: {\n name: \"Base64Url\"\n }\n },\n additionalAuthenticatedData: {\n serializedName: \"aad\",\n type: {\n name: \"Base64Url\"\n }\n },\n authenticationTag: {\n serializedName: \"tag\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyOperationResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyOperationResult\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n result: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n iv: {\n serializedName: \"iv\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n authenticationTag: {\n serializedName: \"tag\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n additionalAuthenticatedData: {\n serializedName: \"aad\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeySignParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeySignParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVerifyParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVerifyParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n digest: {\n serializedName: \"digest\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n },\n signature: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVerifyResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVerifyResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const KeyExportParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyExportParameters\",\n modelProperties: {\n wrappingKey: {\n serializedName: \"wrappingKey\",\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\"\n }\n },\n wrappingKid: {\n serializedName: \"wrappingKid\",\n type: {\n name: \"String\"\n }\n },\n enc: {\n serializedName: \"enc\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyReleaseParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyReleaseParameters\",\n modelProperties: {\n target: {\n constraints: {\n MinLength: 1\n },\n serializedName: \"target\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n nonce: {\n serializedName: \"nonce\",\n type: {\n name: \"String\"\n }\n },\n enc: {\n serializedName: \"enc\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyReleaseResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyReleaseResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyListResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyItem\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyRotationPolicy: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyRotationPolicy\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n lifetimeActions: {\n serializedName: \"lifetimeActions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LifetimeActions\"\n }\n }\n }\n },\n attributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyRotationPolicyAttributes\"\n }\n }\n }\n }\n};\n\nexport const LifetimeActions: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LifetimeActions\",\n modelProperties: {\n trigger: {\n serializedName: \"trigger\",\n type: {\n name: \"Composite\",\n className: \"LifetimeActionsTrigger\"\n }\n },\n action: {\n serializedName: \"action\",\n type: {\n name: \"Composite\",\n className: \"LifetimeActionsType\"\n }\n }\n }\n }\n};\n\nexport const LifetimeActionsTrigger: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LifetimeActionsTrigger\",\n modelProperties: {\n timeAfterCreate: {\n serializedName: \"timeAfterCreate\",\n type: {\n name: \"String\"\n }\n },\n timeBeforeExpiry: {\n serializedName: \"timeBeforeExpiry\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const LifetimeActionsType: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LifetimeActionsType\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"rotate\", \"notify\"]\n }\n }\n }\n }\n};\n\nexport const KeyRotationPolicyAttributes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyRotationPolicyAttributes\",\n modelProperties: {\n expiryTime: {\n serializedName: \"expiryTime\",\n type: {\n name: \"String\"\n }\n },\n created: {\n serializedName: \"created\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n updated: {\n serializedName: \"updated\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n\nexport const GetRandomBytesRequest: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GetRandomBytesRequest\",\n modelProperties: {\n count: {\n constraints: {\n InclusiveMaximum: 128,\n InclusiveMinimum: 1\n },\n serializedName: \"count\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const RandomBytes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RandomBytes\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyProperties: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyProperties\",\n modelProperties: {\n exportable: {\n serializedName: \"exportable\",\n type: {\n name: \"Boolean\"\n }\n },\n keyType: {\n serializedName: \"kty\",\n type: {\n name: \"String\"\n }\n },\n keySize: {\n serializedName: \"key_size\",\n type: {\n name: \"Number\"\n }\n },\n reuseKey: {\n serializedName: \"reuse_key\",\n type: {\n name: \"Boolean\"\n }\n },\n curve: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyAttributes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\",\n modelProperties: {\n ...Attributes.type.modelProperties,\n recoverableDays: {\n serializedName: \"recoverableDays\",\n readOnly: true,\n type: {\n name: \"Number\"\n }\n },\n recoveryLevel: {\n serializedName: \"recoveryLevel\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n exportable: {\n serializedName: \"exportable\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyBundle: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyBundle\",\n modelProperties: {\n ...KeyBundle.type.modelProperties,\n recoveryId: {\n serializedName: \"recoveryId\",\n type: {\n name: \"String\"\n }\n },\n scheduledPurgeDate: {\n serializedName: \"scheduledPurgeDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n deletedDate: {\n serializedName: \"deletedDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyItem: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyItem\",\n modelProperties: {\n ...KeyItem.type.modelProperties,\n recoveryId: {\n serializedName: \"recoveryId\",\n type: {\n name: \"String\"\n }\n },\n scheduledPurgeDate: {\n serializedName: \"scheduledPurgeDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n deletedDate: {\n serializedName: \"deletedDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA6B;IAC3D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,GAAG,EAAE;gBACH,cAAc,EAAE,KAAK;gBACrB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,eAAe;iBAC3B;aACF;YAC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gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,GACF;KACF;CACF,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 coreHttp from \"@azure/core-http\";\n\nexport const KeyCreateParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyCreateParameters\",\n modelProperties: {\n kty: {\n serializedName: \"kty\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n keySize: {\n serializedName: \"key_size\",\n type: {\n name: \"Number\"\n }\n },\n publicExponent: {\n serializedName: \"public_exponent\",\n type: {\n name: \"Number\"\n }\n },\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n curve: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Attributes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Attributes\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n notBefore: {\n serializedName: \"nbf\",\n type: {\n name: \"UnixTime\"\n }\n },\n expires: {\n serializedName: \"exp\",\n type: {\n name: \"UnixTime\"\n }\n },\n created: {\n serializedName: \"created\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n updated: {\n serializedName: \"updated\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n\nexport const KeyBundle: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyBundle\",\n modelProperties: {\n key: {\n serializedName: \"key\",\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\"\n }\n },\n attributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n managed: {\n serializedName: \"managed\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const JsonWebKey: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n type: {\n name: \"String\"\n }\n },\n kty: {\n serializedName: \"kty\",\n type: {\n name: \"String\"\n }\n },\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n n: {\n serializedName: \"n\",\n type: {\n name: \"Base64Url\"\n }\n },\n e: {\n serializedName: \"e\",\n type: {\n name: \"Base64Url\"\n }\n },\n d: {\n serializedName: \"d\",\n type: {\n name: \"Base64Url\"\n }\n },\n dp: {\n serializedName: \"dp\",\n type: {\n name: \"Base64Url\"\n }\n },\n dq: {\n serializedName: \"dq\",\n type: {\n name: \"Base64Url\"\n }\n },\n qi: {\n serializedName: \"qi\",\n type: {\n name: \"Base64Url\"\n }\n },\n p: {\n serializedName: \"p\",\n type: {\n name: \"Base64Url\"\n }\n },\n q: {\n serializedName: \"q\",\n type: {\n name: \"Base64Url\"\n }\n },\n k: {\n serializedName: \"k\",\n type: {\n name: \"Base64Url\"\n }\n },\n t: {\n serializedName: \"key_hsm\",\n type: {\n name: \"Base64Url\"\n }\n },\n crv: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n },\n x: {\n serializedName: \"x\",\n type: {\n name: \"Base64Url\"\n }\n },\n y: {\n serializedName: \"y\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVaultError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVaultError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const KeyImportParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyImportParameters\",\n modelProperties: {\n hsm: {\n serializedName: \"Hsm\",\n type: {\n name: \"Boolean\"\n }\n },\n key: {\n serializedName: \"key\",\n type: {\n name: \"Composite\",\n className: \"JsonWebKey\"\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const KeyUpdateParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyUpdateParameters\",\n modelProperties: {\n keyOps: {\n serializedName: \"key_ops\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n keyAttributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const KeyListResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"KeyItem\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyItem: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyItem\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n type: {\n name: \"String\"\n }\n },\n attributes: {\n serializedName: \"attributes\",\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n managed: {\n serializedName: \"managed\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const BackupKeyResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"BackupKeyResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyRestoreParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyRestoreParameters\",\n modelProperties: {\n keyBundleBackup: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyOperationsParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyOperationsParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n },\n iv: {\n serializedName: \"iv\",\n type: {\n name: \"Base64Url\"\n }\n },\n additionalAuthenticatedData: {\n serializedName: \"aad\",\n type: {\n name: \"Base64Url\"\n }\n },\n authenticationTag: {\n serializedName: \"tag\",\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyOperationResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyOperationResult\",\n modelProperties: {\n kid: {\n serializedName: \"kid\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n result: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n iv: {\n serializedName: \"iv\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n authenticationTag: {\n serializedName: \"tag\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n },\n additionalAuthenticatedData: {\n serializedName: \"aad\",\n readOnly: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeySignParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeySignParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVerifyParameters: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVerifyParameters\",\n modelProperties: {\n algorithm: {\n serializedName: \"alg\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n digest: {\n serializedName: \"digest\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n },\n signature: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Base64Url\"\n }\n }\n }\n }\n};\n\nexport const KeyVerifyResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyVerifyResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyListResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyItem\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyProperties: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyProperties\",\n modelProperties: {\n exportable: {\n serializedName: \"exportable\",\n type: {\n name: \"Boolean\"\n }\n },\n keyType: {\n serializedName: \"kty\",\n type: {\n name: \"String\"\n }\n },\n keySize: {\n serializedName: \"key_size\",\n type: {\n name: \"Number\"\n }\n },\n reuseKey: {\n serializedName: \"reuse_key\",\n type: {\n name: \"Boolean\"\n }\n },\n curve: {\n serializedName: \"crv\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const KeyAttributes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"KeyAttributes\",\n modelProperties: {\n ...Attributes.type.modelProperties,\n recoverableDays: {\n serializedName: \"recoverableDays\",\n readOnly: true,\n type: {\n name: \"Number\"\n }\n },\n recoveryLevel: {\n serializedName: \"recoveryLevel\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyBundle: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyBundle\",\n modelProperties: {\n ...KeyBundle.type.modelProperties,\n recoveryId: {\n serializedName: \"recoveryId\",\n type: {\n name: \"String\"\n }\n },\n scheduledPurgeDate: {\n serializedName: \"scheduledPurgeDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n deletedDate: {\n serializedName: \"deletedDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n\nexport const DeletedKeyItem: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeletedKeyItem\",\n modelProperties: {\n ...KeyItem.type.modelProperties,\n recoveryId: {\n serializedName: \"recoveryId\",\n type: {\n name: \"String\"\n }\n },\n scheduledPurgeDate: {\n serializedName: \"scheduledPurgeDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n },\n deletedDate: {\n serializedName: \"deletedDate\",\n readOnly: true,\n type: {\n name: \"UnixTime\"\n }\n }\n }\n }\n};\n"]}
@@ -5,7 +5,7 @@
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
- import { KeyCreateParameters as KeyCreateParametersMapper, KeyImportParameters as KeyImportParametersMapper, KeyUpdateParameters as KeyUpdateParametersMapper, KeyRestoreParameters as KeyRestoreParametersMapper, KeyOperationsParameters as KeyOperationsParametersMapper, KeySignParameters as KeySignParametersMapper, KeyVerifyParameters as KeyVerifyParametersMapper, KeyExportParameters as KeyExportParametersMapper, KeyReleaseParameters as KeyReleaseParametersMapper, KeyRotationPolicy as KeyRotationPolicyMapper, GetRandomBytesRequest as GetRandomBytesRequestMapper } from "../models/mappers";
8
+ import { KeyCreateParameters as KeyCreateParametersMapper, KeyImportParameters as KeyImportParametersMapper, KeyUpdateParameters as KeyUpdateParametersMapper, KeyRestoreParameters as KeyRestoreParametersMapper, KeyOperationsParameters as KeyOperationsParametersMapper, KeySignParameters as KeySignParametersMapper, KeyVerifyParameters as KeyVerifyParametersMapper } from "../models/mappers";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -56,10 +56,6 @@ export const curve = {
56
56
  parameterPath: ["options", "curve"],
57
57
  mapper: KeyCreateParametersMapper
58
58
  };
59
- export const releasePolicy = {
60
- parameterPath: ["options", "releasePolicy"],
61
- mapper: KeyCreateParametersMapper
62
- };
63
59
  export const vaultBaseUrl = {
64
60
  parameterPath: "vaultBaseUrl",
65
61
  mapper: {
@@ -110,10 +106,6 @@ export const tags1 = {
110
106
  parameterPath: ["options", "tags"],
111
107
  mapper: KeyImportParametersMapper
112
108
  };
113
- export const releasePolicy1 = {
114
- parameterPath: ["options", "releasePolicy"],
115
- mapper: KeyImportParametersMapper
116
- };
117
109
  export const keyName1 = {
118
110
  parameterPath: "keyName",
119
111
  mapper: {
@@ -136,10 +128,6 @@ export const tags2 = {
136
128
  parameterPath: ["options", "tags"],
137
129
  mapper: KeyUpdateParametersMapper
138
130
  };
139
- export const releasePolicy2 = {
140
- parameterPath: ["options", "releasePolicy"],
141
- mapper: KeyUpdateParametersMapper
142
- };
143
131
  export const keyVersion = {
144
132
  parameterPath: "keyVersion",
145
133
  mapper: {
@@ -207,38 +195,6 @@ export const signature = {
207
195
  parameterPath: "signature",
208
196
  mapper: KeyVerifyParametersMapper
209
197
  };
210
- export const wrappingKey = {
211
- parameterPath: ["options", "wrappingKey"],
212
- mapper: KeyExportParametersMapper
213
- };
214
- export const wrappingKid = {
215
- parameterPath: ["options", "wrappingKid"],
216
- mapper: KeyExportParametersMapper
217
- };
218
- export const enc = {
219
- parameterPath: ["options", "enc"],
220
- mapper: KeyExportParametersMapper
221
- };
222
- export const target = {
223
- parameterPath: "target",
224
- mapper: KeyReleaseParametersMapper
225
- };
226
- export const nonce = {
227
- parameterPath: ["options", "nonce"],
228
- mapper: KeyReleaseParametersMapper
229
- };
230
- export const enc1 = {
231
- parameterPath: ["options", "enc"],
232
- mapper: KeyReleaseParametersMapper
233
- };
234
- export const keyRotationPolicy = {
235
- parameterPath: "keyRotationPolicy",
236
- mapper: KeyRotationPolicyMapper
237
- };
238
- export const count = {
239
- parameterPath: "count",
240
- mapper: GetRandomBytesRequestMapper
241
- };
242
198
  export const nextLink = {
243
199
  parameterPath: "nextLink",
244
200
  mapper: {
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,oBAAoB,IAAI,0BAA0B,EAClD,uBAAuB,IAAI,6BAA6B,EACxD,iBAAiB,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2B;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-http\";\nimport {\n KeyCreateParameters as KeyCreateParametersMapper,\n KeyImportParameters as KeyImportParametersMapper,\n KeyUpdateParameters as KeyUpdateParametersMapper,\n KeyRestoreParameters as KeyRestoreParametersMapper,\n KeyOperationsParameters as KeyOperationsParametersMapper,\n KeySignParameters as KeySignParametersMapper,\n KeyVerifyParameters as KeyVerifyParametersMapper,\n KeyExportParameters as KeyExportParametersMapper,\n KeyReleaseParameters as KeyReleaseParametersMapper,\n KeyRotationPolicy as KeyRotationPolicyMapper,\n GetRandomBytesRequest as GetRandomBytesRequestMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const kty: OperationParameter = {\n parameterPath: \"kty\",\n mapper: KeyCreateParametersMapper\n};\n\nexport const keySize: OperationParameter = {\n parameterPath: [\"options\", \"keySize\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const publicExponent: OperationParameter = {\n parameterPath: [\"options\", \"publicExponent\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const keyOps: OperationParameter = {\n parameterPath: [\"options\", \"keyOps\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const keyAttributes: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const tags: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const curve: OperationParameter = {\n parameterPath: [\"options\", \"curve\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const releasePolicy: OperationParameter = {\n parameterPath: [\"options\", \"releasePolicy\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const vaultBaseUrl: OperationURLParameter = {\n parameterPath: \"vaultBaseUrl\",\n mapper: {\n serializedName: \"vaultBaseUrl\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const keyName: OperationURLParameter = {\n parameterPath: \"keyName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[0-9a-zA-Z-]+$\")\n },\n serializedName: \"key-name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n serializedName: \"api-version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const hsm: OperationParameter = {\n parameterPath: [\"options\", \"hsm\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const key: OperationParameter = {\n parameterPath: \"key\",\n mapper: KeyImportParametersMapper\n};\n\nexport const keyAttributes1: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const tags1: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const releasePolicy1: OperationParameter = {\n parameterPath: [\"options\", \"releasePolicy\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const keyName1: OperationURLParameter = {\n parameterPath: \"keyName\",\n mapper: {\n serializedName: \"key-name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const keyOps1: OperationParameter = {\n parameterPath: [\"options\", \"keyOps\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const keyAttributes2: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const tags2: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const releasePolicy2: OperationParameter = {\n parameterPath: [\"options\", \"releasePolicy\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const keyVersion: OperationURLParameter = {\n parameterPath: \"keyVersion\",\n mapper: {\n serializedName: \"key-version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const maxresults: OperationQueryParameter = {\n parameterPath: [\"options\", \"maxresults\"],\n mapper: {\n constraints: {\n InclusiveMaximum: 25,\n InclusiveMinimum: 1\n },\n serializedName: \"maxresults\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const keyBundleBackup: OperationParameter = {\n parameterPath: \"keyBundleBackup\",\n mapper: KeyRestoreParametersMapper\n};\n\nexport const algorithm: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeyOperationsParametersMapper\n};\n\nexport const value: OperationParameter = {\n parameterPath: \"value\",\n mapper: KeyOperationsParametersMapper\n};\n\nexport const iv: OperationParameter = {\n parameterPath: [\"options\", \"iv\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const additionalAuthenticatedData: OperationParameter = {\n parameterPath: [\"options\", \"additionalAuthenticatedData\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const authenticationTag: OperationParameter = {\n parameterPath: [\"options\", \"authenticationTag\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const algorithm1: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeySignParametersMapper\n};\n\nexport const value1: OperationParameter = {\n parameterPath: \"value\",\n mapper: KeySignParametersMapper\n};\n\nexport const algorithm2: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const digest: OperationParameter = {\n parameterPath: \"digest\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const signature: OperationParameter = {\n parameterPath: \"signature\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const wrappingKey: OperationParameter = {\n parameterPath: [\"options\", \"wrappingKey\"],\n mapper: KeyExportParametersMapper\n};\n\nexport const wrappingKid: OperationParameter = {\n parameterPath: [\"options\", \"wrappingKid\"],\n mapper: KeyExportParametersMapper\n};\n\nexport const enc: OperationParameter = {\n parameterPath: [\"options\", \"enc\"],\n mapper: KeyExportParametersMapper\n};\n\nexport const target: OperationParameter = {\n parameterPath: \"target\",\n mapper: KeyReleaseParametersMapper\n};\n\nexport const nonce: OperationParameter = {\n parameterPath: [\"options\", \"nonce\"],\n mapper: KeyReleaseParametersMapper\n};\n\nexport const enc1: OperationParameter = {\n parameterPath: [\"options\", \"enc\"],\n mapper: KeyReleaseParametersMapper\n};\n\nexport const keyRotationPolicy: OperationParameter = {\n parameterPath: \"keyRotationPolicy\",\n mapper: KeyRotationPolicyMapper\n};\n\nexport const count: OperationParameter = {\n parameterPath: \"count\",\n mapper: GetRandomBytesRequestMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,oBAAoB,IAAI,0BAA0B,EAClD,uBAAuB,IAAI,6BAA6B,EACxD,iBAAiB,IAAI,uBAAuB,EAC5C,mBAAmB,IAAI,yBAAyB,E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ourcesContent":["/*\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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-http\";\nimport {\n KeyCreateParameters as KeyCreateParametersMapper,\n KeyImportParameters as KeyImportParametersMapper,\n KeyUpdateParameters as KeyUpdateParametersMapper,\n KeyRestoreParameters as KeyRestoreParametersMapper,\n KeyOperationsParameters as KeyOperationsParametersMapper,\n KeySignParameters as KeySignParametersMapper,\n KeyVerifyParameters as KeyVerifyParametersMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const kty: OperationParameter = {\n parameterPath: \"kty\",\n mapper: KeyCreateParametersMapper\n};\n\nexport const keySize: OperationParameter = {\n parameterPath: [\"options\", \"keySize\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const publicExponent: OperationParameter = {\n parameterPath: [\"options\", \"publicExponent\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const keyOps: OperationParameter = {\n parameterPath: [\"options\", \"keyOps\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const keyAttributes: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const tags: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const curve: OperationParameter = {\n parameterPath: [\"options\", \"curve\"],\n mapper: KeyCreateParametersMapper\n};\n\nexport const vaultBaseUrl: OperationURLParameter = {\n parameterPath: \"vaultBaseUrl\",\n mapper: {\n serializedName: \"vaultBaseUrl\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const keyName: OperationURLParameter = {\n parameterPath: \"keyName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[0-9a-zA-Z-]+$\")\n },\n serializedName: \"key-name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n serializedName: \"api-version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const hsm: OperationParameter = {\n parameterPath: [\"options\", \"hsm\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const key: OperationParameter = {\n parameterPath: \"key\",\n mapper: KeyImportParametersMapper\n};\n\nexport const keyAttributes1: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const tags1: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyImportParametersMapper\n};\n\nexport const keyName1: OperationURLParameter = {\n parameterPath: \"keyName\",\n mapper: {\n serializedName: \"key-name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const keyOps1: OperationParameter = {\n parameterPath: [\"options\", \"keyOps\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const keyAttributes2: OperationParameter = {\n parameterPath: [\"options\", \"keyAttributes\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const tags2: OperationParameter = {\n parameterPath: [\"options\", \"tags\"],\n mapper: KeyUpdateParametersMapper\n};\n\nexport const keyVersion: OperationURLParameter = {\n parameterPath: \"keyVersion\",\n mapper: {\n serializedName: \"key-version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const maxresults: OperationQueryParameter = {\n parameterPath: [\"options\", \"maxresults\"],\n mapper: {\n constraints: {\n InclusiveMaximum: 25,\n InclusiveMinimum: 1\n },\n serializedName: \"maxresults\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const keyBundleBackup: OperationParameter = {\n parameterPath: \"keyBundleBackup\",\n mapper: KeyRestoreParametersMapper\n};\n\nexport const algorithm: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeyOperationsParametersMapper\n};\n\nexport const value: OperationParameter = {\n parameterPath: \"value\",\n mapper: KeyOperationsParametersMapper\n};\n\nexport const iv: OperationParameter = {\n parameterPath: [\"options\", \"iv\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const additionalAuthenticatedData: OperationParameter = {\n parameterPath: [\"options\", \"additionalAuthenticatedData\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const authenticationTag: OperationParameter = {\n parameterPath: [\"options\", \"authenticationTag\"],\n mapper: KeyOperationsParametersMapper\n};\n\nexport const algorithm1: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeySignParametersMapper\n};\n\nexport const value1: OperationParameter = {\n parameterPath: \"value\",\n mapper: KeySignParametersMapper\n};\n\nexport const algorithm2: OperationParameter = {\n parameterPath: \"algorithm\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const digest: OperationParameter = {\n parameterPath: \"digest\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const signature: OperationParameter = {\n parameterPath: \"signature\",\n mapper: KeyVerifyParametersMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
@@ -11,12 +11,12 @@ import { SDK_VERSION } from "./constants";
11
11
  import { challengeBasedAuthenticationPolicy } from "../../keyvault-common/src";
12
12
  import { DeleteKeyPoller } from "./lro/delete/poller";
13
13
  import { RecoverDeletedKeyPoller } from "./lro/recover/poller";
14
- import { KnownKeyOperations, LATEST_API_VERSION } from "./keysModels";
14
+ import { LATEST_API_VERSION } from "./keysModels";
15
15
  import { CryptographyClient } from "./cryptographyClient";
16
16
  import { parseKeyVaultKeyIdentifier } from "./identifier";
17
17
  import { getDeletedKeyFromDeletedKeyItem, getKeyFromKeyBundle, getKeyPropertiesFromKeyItem } from "./transformations";
18
18
  import { createTraceFunction } from "../../keyvault-common/src";
19
- export { CryptographyClient, KnownKeyOperations, parseKeyVaultKeyIdentifier, logger };
19
+ export { CryptographyClient, parseKeyVaultKeyIdentifier, logger };
20
20
  const withTrace = createTraceFunction("Azure.KeyVault.Keys.KeyClient");
21
21
  /**
22
22
  * The KeyClient provides methods to manage {@link KeyVaultKey} in the
@@ -393,23 +393,6 @@ export class KeyClient {
393
393
  return getKeyFromKeyBundle(response);
394
394
  });
395
395
  }
396
- /**
397
- * Gets the requested number of bytes containing random values from a managed HSM.
398
- *
399
- * Example usage:
400
- * ```ts
401
- * let client = new KeyClient(vaultUrl, credentials);
402
- * let bytes = await client.getRandomBytes(10);
403
- * ```
404
- * @param count - The number of bytes to generate between 1 and 128 inclusive.
405
- * @param options - The optional parameters.
406
- */
407
- getRandomBytes(count, options = {}) {
408
- return withTrace("getRandomBytes", options, async (updatedOptions) => {
409
- const response = await this.client.getRandomBytes(this.vaultUrl, count, updatedOptions);
410
- return response.value;
411
- });
412
- }
413
396
  /**
414
397
  * @internal
415
398
  * @hidden
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,kDAAkD;AAClD,4CAA4C;;AAE5C,OAAO,EAGL,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,oBAAoB,CAAC;AAU5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAE/E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yB,IAAA,KAAA,cAAA,IAAI,CAAC,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA,IAAA;oBAAlD,MAAM,IAAI,WAAA,CAAA;oBACnB,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE;wBACvB,oBAAM,IAAI,CAAA,CAAC;qBACZ;iBACF;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;OAaG;IACI,eAAe,CACpB,UAAkC,EAAE;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE9C,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,WAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC;SACrF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/* eslint @typescript-eslint/member-ordering: 0 */\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n PipelineOptions,\n TokenCredential,\n createPipelineFromOptions,\n isTokenCredential,\n signingPolicy\n} from \"@azure/core-http\";\n\nimport { logger } from \"./log\";\n\nimport \"@azure/core-paging\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\n\nimport {\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n KeyVaultClientGetKeysOptionalParams,\n KnownJsonWebKeyType\n} from \"./generated/models\";\nimport { KeyVaultClient } from \"./generated/keyVaultClient\";\nimport { SDK_VERSION } from \"./constants\";\nimport { challengeBasedAuthenticationPolicy } from \"../../keyvault-common/src\";\n\nimport { DeleteKeyPoller } from \"./lro/delete/poller\";\nimport { RecoverDeletedKeyPoller } from \"./lro/recover/poller\";\n\nimport {\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CryptographyOptions,\n DeletedKey,\n GetDeletedKeyOptions,\n GetKeyOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyOperation,\n KnownKeyOperations,\n KeyPollerOptions,\n KeyType,\n KnownKeyTypes,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n KeyVaultKey,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n UpdateKeyPropertiesOptions,\n KeyClientOptions,\n CryptographyClientOptions,\n LATEST_API_VERSION,\n CreateOctKeyOptions,\n GetRandomBytesOptions\n} from \"./keysModels\";\n\nimport { CryptographyClient } from \"./cryptographyClient\";\n\nimport {\n DecryptResult,\n KeyCurveName,\n KnownKeyCurveNames,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyWrapAlgorithm,\n SignResult,\n UnwrapResult,\n VerifyResult,\n WrapResult,\n EncryptResult,\n DecryptOptions,\n EncryptOptions,\n SignOptions,\n UnwrapKeyOptions,\n VerifyOptions,\n WrapKeyOptions,\n EncryptParameters,\n DecryptParameters,\n RsaEncryptionAlgorithm,\n RsaEncryptParameters,\n AesGcmEncryptionAlgorithm,\n AesCbcEncryptionAlgorithm,\n AesCbcEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcDecryptParameters,\n AesGcmDecryptParameters,\n RsaDecryptParameters,\n VerifyDataOptions\n} from \"./cryptographyClientModels\";\n\nimport { KeyVaultKeyIdentifier, parseKeyVaultKeyIdentifier } from \"./identifier\";\nimport {\n getDeletedKeyFromDeletedKeyItem,\n getKeyFromKeyBundle,\n getKeyPropertiesFromKeyItem\n} from \"./transformations\";\nimport { createTraceFunction } from \"../../keyvault-common/src\";\n\nexport {\n CryptographyClientOptions,\n KeyClientOptions,\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CreateOctKeyOptions,\n CryptographyClient,\n CryptographyOptions,\n RsaEncryptionAlgorithm,\n RsaDecryptParameters,\n AesGcmEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesCbcEncryptionAlgorithm,\n AesCbcDecryptParameters,\n DecryptParameters,\n DecryptOptions,\n DecryptResult,\n DeletedKey,\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n RsaEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcEncryptParameters,\n EncryptParameters,\n EncryptOptions,\n EncryptResult,\n GetDeletedKeyOptions,\n GetKeyOptions,\n GetRandomBytesOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyCurveName,\n KnownKeyCurveNames,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KeyOperation,\n KnownKeyOperations,\n KeyType,\n KnownKeyTypes,\n KeyPollerOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyVaultKey,\n KeyWrapAlgorithm,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PageSettings,\n PagedAsyncIterableIterator,\n KeyVaultKeyIdentifier,\n parseKeyVaultKeyIdentifier,\n PipelineOptions,\n PollOperationState,\n PollerLike,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n SignOptions,\n SignResult,\n UnwrapKeyOptions,\n UnwrapResult,\n UpdateKeyPropertiesOptions,\n VerifyOptions,\n VerifyDataOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n logger\n};\n\nconst withTrace = createTraceFunction(\"Azure.KeyVault.Keys.KeyClient\");\n\n/**\n * The KeyClient provides methods to manage {@link KeyVaultKey} in the\n * Azure Key Vault. The client supports creating, retrieving, updating,\n * deleting, purging, backing up, restoring and listing KeyVaultKeys. The\n * client also supports listing {@link DeletedKey} for a soft-delete enabled Azure Key\n * Vault.\n */\nexport class KeyClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n /**\n * @internal\n * @hidden\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of KeyClient.\n *\n * Example usage:\n * ```ts\n * import { KeyClient } from \"@azure/keyvault-keys\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * let vaultUrl = `https://<MY KEYVAULT HERE>.vault.azure.net`;\n * let credentials = new DefaultAzureCredential();\n *\n * let client = new KeyClient(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`\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 pipelineOptions - Pipeline options used to configure Key Vault API requests. Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n pipelineOptions: KeyClientOptions = {}\n ) {\n this.vaultUrl = vaultUrl;\n\n const libInfo = `azsdk-js-keyvault-keys/${SDK_VERSION}`;\n\n const userAgentOptions = pipelineOptions.userAgentOptions;\n\n pipelineOptions.userAgentOptions = {\n userAgentPrefix:\n userAgentOptions && userAgentOptions.userAgentPrefix\n ? `${userAgentOptions.userAgentPrefix} ${libInfo}`\n : libInfo\n };\n\n const authPolicy = isTokenCredential(credential)\n ? challengeBasedAuthenticationPolicy(credential)\n : signingPolicy(credential);\n\n const internalPipelineOptions = {\n ...pipelineOptions,\n loggingOptions: {\n logger: logger.info,\n allowedHeaderNames: [\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(\n pipelineOptions.serviceVersion || LATEST_API_VERSION,\n createPipelineFromOptions(internalPipelineOptions, authPolicy)\n );\n }\n\n /**\n * The create key operation can be used to create any key type in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * // Create an elliptic-curve key:\n * let result = await client.createKey(\"MyKey\", \"EC\");\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param keyType - The type of the key. One of the following: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'.\n * @param options - The optional parameters.\n */\n public createKey(\n name: string,\n keyType: KeyType,\n options?: CreateKeyOptions\n ): Promise<KeyVaultKey> {\n let unflattenedOptions = {};\n\n if (options) {\n const { enabled, notBefore, expiresOn: expires, ...remainingOptions } = options;\n unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires\n }\n };\n }\n return withTrace(\"createKey\", unflattenedOptions, async (updatedOptions) => {\n const response = await this.client.createKey(this.vaultUrl, name, keyType, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The createEcKey method creates a new elliptic curve key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createEcKey(\"MyKey\", { curve: \"P-256\" });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createEcKey(name: string, options?: CreateEcKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.ECHSM : KnownJsonWebKeyType.EC;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createRSAKey method creates a new RSA key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createRsaKey(\"MyKey\", { keySize: 2048 });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.RSAHSM : KnownJsonWebKeyType.RSA;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createOctKey method creates a new OCT key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createOctKey(\"MyKey\", { hsm: true });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createOctKey(name: string, options?: CreateOctKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.OctHSM : KnownJsonWebKeyType.Oct;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The import key operation may be used to import any key type into an Azure Key Vault. If the\n * named key already exists, Azure Key Vault creates a new version of the key. This operation\n * requires the keys/import permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * // Key contents in myKeyContents\n * let result = await client.importKey(\"MyKey\", myKeyContents);\n * ```\n * Imports an externally created key, stores it, and returns key parameters and properties\n * to the client.\n * @param name - Name for the imported key.\n * @param key - The JSON web key.\n * @param options - The optional parameters.\n */\n public importKey(\n name: string,\n key: JsonWebKey,\n options?: ImportKeyOptions\n ): Promise<KeyVaultKey> {\n let unflattenedOptions = {};\n\n if (options) {\n const {\n enabled,\n notBefore,\n expiresOn: expires,\n hardwareProtected: hsm,\n ...remainingOptions\n } = options;\n unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires,\n hsm\n }\n };\n }\n\n return withTrace(`importKey`, unflattenedOptions, async (updatedOptions) => {\n const response = await this.client.importKey(this.vaultUrl, name, key, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The delete operation applies to any key stored in Azure Key Vault. Individual versions\n * of a key can not be deleted, only all versions of a given key at once.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.\n *\n * This operation requires the keys/delete permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * await client.createKey(\"MyKey\", \"EC\");\n * const poller = await client.beginDeleteKey(\"MyKey\");\n *\n * // Serializing the poller\n * const serialized = poller.toString();\n * // A new poller can be created with:\n * // await client.beginDeleteKey(\"MyKey\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const deletedKey = await poller.pollUntilDone();\n * console.log(deletedKey);\n * ```\n * Deletes a key from a specified key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async beginDeleteKey(\n name: string,\n options: BeginDeleteKeyOptions = {}\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new DeleteKeyPoller({\n name,\n vaultUrl: this.vaultUrl,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options\n });\n\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n\n return poller;\n }\n\n /**\n * The updateKeyProperties method changes specified properties of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts\n * let keyName = \"MyKey\";\n * let client = new KeyClient(url, credentials);\n * let key = await client.getKey(keyName);\n * let result = await client.updateKeyProperties(keyName, key.properties.version, { enabled: false });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n keyVersion: string,\n options: UpdateKeyPropertiesOptions = {}\n ): Promise<KeyVaultKey> {\n return withTrace(`updateKeyProperties`, options, async (updatedOptions) => {\n const { enabled, notBefore, expiresOn: expires, ...remainingOptions } = updatedOptions;\n const unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires\n }\n };\n const response = await this.client.updateKey(\n this.vaultUrl,\n name,\n keyVersion,\n unflattenedOptions\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getKey method gets a specified key and is applicable to any key stored in Azure Key Vault.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let key = await client.getKey(\"MyKey\");\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKey(name: string, options: GetKeyOptions = {}): Promise<KeyVaultKey> {\n return withTrace(`getKey`, options, async (updatedOptions) => {\n const response = await this.client.getKey(\n this.vaultUrl,\n name,\n options && options.version ? options.version : \"\",\n updatedOptions\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getDeletedKey method returns the specified deleted key along with its properties.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let key = await client.getDeletedKey(\"MyDeletedKey\");\n * ```\n * Gets the specified deleted key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getDeletedKey(name: string, options: GetDeletedKeyOptions = {}): Promise<DeletedKey> {\n return withTrace(`getDeletedKey`, options, async (updatedOptions) => {\n const response = await this.client.getDeletedKey(this.vaultUrl, name, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The purge deleted key operation removes the key permanently, without the possibility of\n * recovery. This operation can only be enabled on a soft-delete enabled vault. This operation\n * requires the keys/purge permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * const deletePoller = await client.beginDeleteKey(\"MyKey\")\n * await deletePoller.pollUntilDone();\n * await client.purgeDeletedKey(\"MyKey\");\n * ```\n * Permanently deletes the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public purgeDeletedKey(name: string, options: PurgeDeletedKeyOptions = {}): Promise<void> {\n return withTrace(`purgeDeletedKey`, options, async (updatedOptions) => {\n await this.client.purgeDeletedKey(this.vaultUrl, name, updatedOptions);\n });\n }\n\n /**\n * Recovers the deleted key in the specified vault. This operation can only be performed on a\n * soft-delete enabled vault.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the deleted key is recovered.\n *\n * This operation requires the keys/recover permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * await client.createKey(\"MyKey\", \"EC\");\n * const deletePoller = await client.beginDeleteKey(\"MyKey\");\n * await deletePoller.pollUntilDone();\n * const poller = await client.beginRecoverDeletedKey(\"MyKey\");\n *\n * // Serializing the poller\n * const serialized = poller.toString();\n * // A new poller can be created with:\n * // await client.beginRecoverDeletedKey(\"MyKey\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const key = await poller.pollUntilDone();\n * console.log(key);\n * ```\n * Recovers the deleted key to the latest version.\n * @param name - The name of the deleted key.\n * @param options - The optional parameters.\n */\n public async beginRecoverDeletedKey(\n name: string,\n options: BeginRecoverDeletedKeyOptions = {}\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new RecoverDeletedKeyPoller({\n name,\n vaultUrl: this.vaultUrl,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options\n });\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n return poller;\n }\n\n /**\n * Requests that a backup of the specified key be downloaded to the client. All versions of the\n * key will be downloaded. This operation requires the keys/backup permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let backupContents = await client.backupKey(\"MyKey\");\n * ```\n * Backs up the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public backupKey(name: string, options: BackupKeyOptions = {}): Promise<Uint8Array | undefined> {\n return withTrace(`backupKey`, options, async (updatedOptions) => {\n const response = await this.client.backupKey(this.vaultUrl, name, updatedOptions);\n return response.value;\n });\n }\n\n /**\n * Restores a backed up key, and all its versions, to a vault. This operation requires the\n * keys/restore permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let backupContents = await client.backupKey(\"MyKey\");\n * // ...\n * let key = await client.restoreKeyBackup(backupContents);\n * ```\n * Restores a backed up key to a vault.\n * @param backup - The backup blob associated with a key bundle.\n * @param options - The optional parameters.\n */\n public async restoreKeyBackup(\n backup: Uint8Array,\n options: RestoreKeyBackupOptions = {}\n ): Promise<KeyVaultKey> {\n return withTrace(`restoreKeyBackup`, options, async (updatedOptions) => {\n const response = await this.client.restoreKey(this.vaultUrl, backup, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * Gets the requested number of bytes containing random values from a managed HSM.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(vaultUrl, credentials);\n * let bytes = await client.getRandomBytes(10);\n * ```\n * @param count - The number of bytes to generate between 1 and 128 inclusive.\n * @param options - The optional parameters.\n */\n public getRandomBytes(count: number, options: GetRandomBytesOptions = {}): Promise<Uint8Array> {\n return withTrace(\"getRandomBytes\", options, async (updatedOptions) => {\n const response = await this.client.getRandomBytes(this.vaultUrl, count, updatedOptions);\n return response.value!;\n });\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listPropertiesOfKeyVersions}.\n * @param name - The name of the Key Vault Key.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeyVersionsPage(\n name: string,\n continuationState: PageSettings,\n options?: ListPropertiesOfKeyVersionsOptions\n ): AsyncIterableIterator<KeyProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeyVersionsPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getKeyVersions(this.vaultUrl, name, updatedOptions)\n );\n\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeyVersionsPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getKeyVersions(continuationState.continuationToken!, name, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listPropertiesOfKeyVersions}.\n * @param name - The name of the Key Vault Key.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeyVersionsAll(\n name: string,\n options?: ListPropertiesOfKeyVersionsOptions\n ): AsyncIterableIterator<KeyProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfKeyVersionsPage(name, f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates all versions of the given key in the vault. The full key identifier, properties, and tags are provided\n * in the response. This operation requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const keyProperties of client.listPropertiesOfKeyVersions(\"MyKey\")) {\n * const key = await client.getKey(keyProperties.name);\n * console.log(\"key version: \", key);\n * }\n * ```\n * @param name - Name of the key to fetch versions for\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeyVersions(\n name: string,\n options: ListPropertiesOfKeyVersionsOptions = {}\n ): PagedAsyncIterableIterator<KeyProperties> {\n const iter = this.listPropertiesOfKeyVersionsAll(name, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfKeyVersionsPage(name, settings, options)\n };\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listPropertiesOfKeys}.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeysPage(\n continuationState: PageSettings,\n options?: ListPropertiesOfKeysOptions\n ): AsyncIterableIterator<KeyProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeysPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getKeys(this.vaultUrl, updatedOptions)\n );\n\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"KeysClient.listPropertiesOfKeysPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getKeys(continuationState.continuationToken!, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listPropertiesOfKeys}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeysAll(\n options?: ListPropertiesOfKeysOptions\n ): AsyncIterableIterator<KeyProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfKeysPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates the latest version of all keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * const key = await client.getKey(keyProperties.name);\n * console.log(\"key: \", key);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeys(\n options: ListPropertiesOfKeysOptions = {}\n ): PagedAsyncIterableIterator<KeyProperties> {\n const iter = this.listPropertiesOfKeysAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listPropertiesOfKeysPage(settings, options)\n };\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listDeletedKeys}.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listDeletedKeysPage(\n continuationState: PageSettings,\n options?: ListDeletedKeysOptions\n ): AsyncIterableIterator<DeletedKey[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listDeletedKeysPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getDeletedKeys(this.vaultUrl, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedKeyFromDeletedKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"listDeletedKeysPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getDeletedKeys(continuationState.continuationToken!, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedKeyFromDeletedKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listDeletedKeys}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listDeletedKeysAll(\n options?: ListDeletedKeysOptions\n ): AsyncIterableIterator<DeletedKey> {\n const f = {};\n\n for await (const page of this.listDeletedKeysPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates the deleted keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"deleted key: \", deletedKey);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listDeletedKeys(\n options: ListDeletedKeysOptions = {}\n ): PagedAsyncIterableIterator<DeletedKey> {\n const iter = this.listDeletedKeysAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listDeletedKeysPage(settings, options)\n };\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,kDAAkD;AAClD,4CAA4C;;AAE5C,OAAO,EAGL,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,oBAAoB,CAAC;AAU5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EA4BL,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAoC1D,OAAO,EAAyB,0BAA0B,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAQL,kBAAkB,EA8ClB,0BAA0B,EAgB1B,MAAM,EACP,CAAC;AAEF,MAAM,SAAS,GA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c,CAAC,CACnF,CAAA,CAAC;gBACF,iBAAiB,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,QAAQ,CAAC;gBAClE,IAAI,kBAAkB,CAAC,KAAK,EAAE;oBAC5B,oBAAM,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,+BAA+B,EAAE,IAAI,CAAC,CAAA,CAAC;iBAC3E;qBAAM;oBACL,MAAM;iBACP;aACF;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACY,kBAAkB,CAC/B,OAAgC;;;YAEhC,MAAM,CAAC,GAAG,EAAE,CAAC;;gBAEb,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA,IAAA;oBAAlD,MAAM,IAAI,WAAA,CAAA;oBACnB,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE;wBACvB,oBAAM,IAAI,CAAA,CAAC;qBACZ;iBACF;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;OAaG;IACI,eAAe,CACpB,UAAkC,EAAE;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE9C,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,WAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC;SACrF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/* eslint @typescript-eslint/member-ordering: 0 */\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n PipelineOptions,\n TokenCredential,\n createPipelineFromOptions,\n isTokenCredential,\n signingPolicy\n} from \"@azure/core-http\";\n\nimport { logger } from \"./log\";\n\nimport \"@azure/core-paging\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\n\nimport {\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n KeyVaultClientGetKeysOptionalParams,\n KnownJsonWebKeyType\n} from \"./generated/models\";\nimport { KeyVaultClient } from \"./generated/keyVaultClient\";\nimport { SDK_VERSION } from \"./constants\";\nimport { challengeBasedAuthenticationPolicy } from \"../../keyvault-common/src\";\n\nimport { DeleteKeyPoller } from \"./lro/delete/poller\";\nimport { RecoverDeletedKeyPoller } from \"./lro/recover/poller\";\n\nimport {\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CryptographyOptions,\n DeletedKey,\n GetDeletedKeyOptions,\n GetKeyOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyOperation,\n KnownKeyOperations,\n KeyPollerOptions,\n KeyType,\n KnownKeyTypes,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n KeyVaultKey,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n UpdateKeyPropertiesOptions,\n KeyClientOptions,\n CryptographyClientOptions,\n LATEST_API_VERSION,\n CreateOctKeyOptions\n} from \"./keysModels\";\n\nimport { CryptographyClient } from \"./cryptographyClient\";\n\nimport {\n DecryptResult,\n KeyCurveName,\n KnownKeyCurveNames,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyWrapAlgorithm,\n SignResult,\n UnwrapResult,\n VerifyResult,\n WrapResult,\n EncryptResult,\n DecryptOptions,\n EncryptOptions,\n SignOptions,\n UnwrapKeyOptions,\n VerifyOptions,\n WrapKeyOptions,\n EncryptParameters,\n DecryptParameters,\n RsaEncryptionAlgorithm,\n RsaEncryptParameters,\n AesGcmEncryptionAlgorithm,\n AesCbcEncryptionAlgorithm,\n AesCbcEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcDecryptParameters,\n AesGcmDecryptParameters,\n RsaDecryptParameters,\n VerifyDataOptions\n} from \"./cryptographyClientModels\";\n\nimport { KeyVaultKeyIdentifier, parseKeyVaultKeyIdentifier } from \"./identifier\";\nimport {\n getDeletedKeyFromDeletedKeyItem,\n getKeyFromKeyBundle,\n getKeyPropertiesFromKeyItem\n} from \"./transformations\";\nimport { createTraceFunction } from \"../../keyvault-common/src\";\n\nexport {\n CryptographyClientOptions,\n KeyClientOptions,\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CreateOctKeyOptions,\n CryptographyClient,\n CryptographyOptions,\n RsaEncryptionAlgorithm,\n RsaDecryptParameters,\n AesGcmEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesCbcEncryptionAlgorithm,\n AesCbcDecryptParameters,\n DecryptParameters,\n DecryptOptions,\n DecryptResult,\n DeletedKey,\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n RsaEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcEncryptParameters,\n EncryptParameters,\n EncryptOptions,\n EncryptResult,\n GetDeletedKeyOptions,\n GetKeyOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyCurveName,\n KnownKeyCurveNames,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KeyOperation,\n KnownKeyOperations,\n KeyType,\n KnownKeyTypes,\n KeyPollerOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyVaultKey,\n KeyWrapAlgorithm,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PageSettings,\n PagedAsyncIterableIterator,\n KeyVaultKeyIdentifier,\n parseKeyVaultKeyIdentifier,\n PipelineOptions,\n PollOperationState,\n PollerLike,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n SignOptions,\n SignResult,\n UnwrapKeyOptions,\n UnwrapResult,\n UpdateKeyPropertiesOptions,\n VerifyOptions,\n VerifyDataOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n logger\n};\n\nconst withTrace = createTraceFunction(\"Azure.KeyVault.Keys.KeyClient\");\n\n/**\n * The KeyClient provides methods to manage {@link KeyVaultKey} in the\n * Azure Key Vault. The client supports creating, retrieving, updating,\n * deleting, purging, backing up, restoring and listing KeyVaultKeys. The\n * client also supports listing {@link DeletedKey} for a soft-delete enabled Azure Key\n * Vault.\n */\nexport class KeyClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n /**\n * @internal\n * @hidden\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of KeyClient.\n *\n * Example usage:\n * ```ts\n * import { KeyClient } from \"@azure/keyvault-keys\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * let vaultUrl = `https://<MY KEYVAULT HERE>.vault.azure.net`;\n * let credentials = new DefaultAzureCredential();\n *\n * let client = new KeyClient(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`\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 pipelineOptions - Pipeline options used to configure Key Vault API requests. Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n pipelineOptions: KeyClientOptions = {}\n ) {\n this.vaultUrl = vaultUrl;\n\n const libInfo = `azsdk-js-keyvault-keys/${SDK_VERSION}`;\n\n const userAgentOptions = pipelineOptions.userAgentOptions;\n\n pipelineOptions.userAgentOptions = {\n userAgentPrefix:\n userAgentOptions && userAgentOptions.userAgentPrefix\n ? `${userAgentOptions.userAgentPrefix} ${libInfo}`\n : libInfo\n };\n\n const authPolicy = isTokenCredential(credential)\n ? challengeBasedAuthenticationPolicy(credential)\n : signingPolicy(credential);\n\n const internalPipelineOptions = {\n ...pipelineOptions,\n loggingOptions: {\n logger: logger.info,\n allowedHeaderNames: [\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(\n pipelineOptions.serviceVersion || LATEST_API_VERSION,\n createPipelineFromOptions(internalPipelineOptions, authPolicy)\n );\n }\n\n /**\n * The create key operation can be used to create any key type in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * // Create an elliptic-curve key:\n * let result = await client.createKey(\"MyKey\", \"EC\");\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param keyType - The type of the key. One of the following: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'.\n * @param options - The optional parameters.\n */\n public createKey(\n name: string,\n keyType: KeyType,\n options?: CreateKeyOptions\n ): Promise<KeyVaultKey> {\n let unflattenedOptions = {};\n\n if (options) {\n const { enabled, notBefore, expiresOn: expires, ...remainingOptions } = options;\n unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires\n }\n };\n }\n return withTrace(\"createKey\", unflattenedOptions, async (updatedOptions) => {\n const response = await this.client.createKey(this.vaultUrl, name, keyType, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The createEcKey method creates a new elliptic curve key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createEcKey(\"MyKey\", { curve: \"P-256\" });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createEcKey(name: string, options?: CreateEcKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.ECHSM : KnownJsonWebKeyType.EC;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createRSAKey method creates a new RSA key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createRsaKey(\"MyKey\", { keySize: 2048 });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.RSAHSM : KnownJsonWebKeyType.RSA;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createOctKey method creates a new OCT key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let result = await client.createOctKey(\"MyKey\", { hsm: true });\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createOctKey(name: string, options?: CreateOctKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownJsonWebKeyType.OctHSM : KnownJsonWebKeyType.Oct;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The import key operation may be used to import any key type into an Azure Key Vault. If the\n * named key already exists, Azure Key Vault creates a new version of the key. This operation\n * requires the keys/import permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * // Key contents in myKeyContents\n * let result = await client.importKey(\"MyKey\", myKeyContents);\n * ```\n * Imports an externally created key, stores it, and returns key parameters and properties\n * to the client.\n * @param name - Name for the imported key.\n * @param key - The JSON web key.\n * @param options - The optional parameters.\n */\n public importKey(\n name: string,\n key: JsonWebKey,\n options?: ImportKeyOptions\n ): Promise<KeyVaultKey> {\n let unflattenedOptions = {};\n\n if (options) {\n const {\n enabled,\n notBefore,\n expiresOn: expires,\n hardwareProtected: hsm,\n ...remainingOptions\n } = options;\n unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires,\n hsm\n }\n };\n }\n\n return withTrace(`importKey`, unflattenedOptions, async (updatedOptions) => {\n const response = await this.client.importKey(this.vaultUrl, name, key, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The delete operation applies to any key stored in Azure Key Vault. Individual versions\n * of a key can not be deleted, only all versions of a given key at once.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.\n *\n * This operation requires the keys/delete permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * await client.createKey(\"MyKey\", \"EC\");\n * const poller = await client.beginDeleteKey(\"MyKey\");\n *\n * // Serializing the poller\n * const serialized = poller.toString();\n * // A new poller can be created with:\n * // await client.beginDeleteKey(\"MyKey\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const deletedKey = await poller.pollUntilDone();\n * console.log(deletedKey);\n * ```\n * Deletes a key from a specified key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async beginDeleteKey(\n name: string,\n options: BeginDeleteKeyOptions = {}\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new DeleteKeyPoller({\n name,\n vaultUrl: this.vaultUrl,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options\n });\n\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n\n return poller;\n }\n\n /**\n * The updateKeyProperties method changes specified properties of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts\n * let keyName = \"MyKey\";\n * let client = new KeyClient(url, credentials);\n * let key = await client.getKey(keyName);\n * let result = await client.updateKeyProperties(keyName, key.properties.version, { enabled: false });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n keyVersion: string,\n options: UpdateKeyPropertiesOptions = {}\n ): Promise<KeyVaultKey> {\n return withTrace(`updateKeyProperties`, options, async (updatedOptions) => {\n const { enabled, notBefore, expiresOn: expires, ...remainingOptions } = updatedOptions;\n const unflattenedOptions = {\n ...remainingOptions,\n keyAttributes: {\n enabled,\n notBefore,\n expires\n }\n };\n const response = await this.client.updateKey(\n this.vaultUrl,\n name,\n keyVersion,\n unflattenedOptions\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getKey method gets a specified key and is applicable to any key stored in Azure Key Vault.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let key = await client.getKey(\"MyKey\");\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKey(name: string, options: GetKeyOptions = {}): Promise<KeyVaultKey> {\n return withTrace(`getKey`, options, async (updatedOptions) => {\n const response = await this.client.getKey(\n this.vaultUrl,\n name,\n options && options.version ? options.version : \"\",\n updatedOptions\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getDeletedKey method returns the specified deleted key along with its properties.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let key = await client.getDeletedKey(\"MyDeletedKey\");\n * ```\n * Gets the specified deleted key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getDeletedKey(name: string, options: GetDeletedKeyOptions = {}): Promise<DeletedKey> {\n return withTrace(`getDeletedKey`, options, async (updatedOptions) => {\n const response = await this.client.getDeletedKey(this.vaultUrl, name, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The purge deleted key operation removes the key permanently, without the possibility of\n * recovery. This operation can only be enabled on a soft-delete enabled vault. This operation\n * requires the keys/purge permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * const deletePoller = await client.beginDeleteKey(\"MyKey\")\n * await deletePoller.pollUntilDone();\n * await client.purgeDeletedKey(\"MyKey\");\n * ```\n * Permanently deletes the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public purgeDeletedKey(name: string, options: PurgeDeletedKeyOptions = {}): Promise<void> {\n return withTrace(`purgeDeletedKey`, options, async (updatedOptions) => {\n await this.client.purgeDeletedKey(this.vaultUrl, name, updatedOptions);\n });\n }\n\n /**\n * Recovers the deleted key in the specified vault. This operation can only be performed on a\n * soft-delete enabled vault.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the deleted key is recovered.\n *\n * This operation requires the keys/recover permission.\n *\n * Example usage:\n * ```ts\n * const client = new KeyClient(url, credentials);\n * await client.createKey(\"MyKey\", \"EC\");\n * const deletePoller = await client.beginDeleteKey(\"MyKey\");\n * await deletePoller.pollUntilDone();\n * const poller = await client.beginRecoverDeletedKey(\"MyKey\");\n *\n * // Serializing the poller\n * const serialized = poller.toString();\n * // A new poller can be created with:\n * // await client.beginRecoverDeletedKey(\"MyKey\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const key = await poller.pollUntilDone();\n * console.log(key);\n * ```\n * Recovers the deleted key to the latest version.\n * @param name - The name of the deleted key.\n * @param options - The optional parameters.\n */\n public async beginRecoverDeletedKey(\n name: string,\n options: BeginRecoverDeletedKeyOptions = {}\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new RecoverDeletedKeyPoller({\n name,\n vaultUrl: this.vaultUrl,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options\n });\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n return poller;\n }\n\n /**\n * Requests that a backup of the specified key be downloaded to the client. All versions of the\n * key will be downloaded. This operation requires the keys/backup permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let backupContents = await client.backupKey(\"MyKey\");\n * ```\n * Backs up the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public backupKey(name: string, options: BackupKeyOptions = {}): Promise<Uint8Array | undefined> {\n return withTrace(`backupKey`, options, async (updatedOptions) => {\n const response = await this.client.backupKey(this.vaultUrl, name, updatedOptions);\n return response.value;\n });\n }\n\n /**\n * Restores a backed up key, and all its versions, to a vault. This operation requires the\n * keys/restore permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * let backupContents = await client.backupKey(\"MyKey\");\n * // ...\n * let key = await client.restoreKeyBackup(backupContents);\n * ```\n * Restores a backed up key to a vault.\n * @param backup - The backup blob associated with a key bundle.\n * @param options - The optional parameters.\n */\n public async restoreKeyBackup(\n backup: Uint8Array,\n options: RestoreKeyBackupOptions = {}\n ): Promise<KeyVaultKey> {\n return withTrace(`restoreKeyBackup`, options, async (updatedOptions) => {\n const response = await this.client.restoreKey(this.vaultUrl, backup, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listPropertiesOfKeyVersions}.\n * @param name - The name of the Key Vault Key.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeyVersionsPage(\n name: string,\n continuationState: PageSettings,\n options?: ListPropertiesOfKeyVersionsOptions\n ): AsyncIterableIterator<KeyProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeyVersionsPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getKeyVersions(this.vaultUrl, name, updatedOptions)\n );\n\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeyVersionsPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getKeyVersions(continuationState.continuationToken!, name, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listPropertiesOfKeyVersions}.\n * @param name - The name of the Key Vault Key.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeyVersionsAll(\n name: string,\n options?: ListPropertiesOfKeyVersionsOptions\n ): AsyncIterableIterator<KeyProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfKeyVersionsPage(name, f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates all versions of the given key in the vault. The full key identifier, properties, and tags are provided\n * in the response. This operation requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const keyProperties of client.listPropertiesOfKeyVersions(\"MyKey\")) {\n * const key = await client.getKey(keyProperties.name);\n * console.log(\"key version: \", key);\n * }\n * ```\n * @param name - Name of the key to fetch versions for\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeyVersions(\n name: string,\n options: ListPropertiesOfKeyVersionsOptions = {}\n ): PagedAsyncIterableIterator<KeyProperties> {\n const iter = this.listPropertiesOfKeyVersionsAll(name, options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfKeyVersionsPage(name, settings, options)\n };\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listPropertiesOfKeys}.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeysPage(\n continuationState: PageSettings,\n options?: ListPropertiesOfKeysOptions\n ): AsyncIterableIterator<KeyProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listPropertiesOfKeysPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getKeys(this.vaultUrl, updatedOptions)\n );\n\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"KeysClient.listPropertiesOfKeysPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getKeys(continuationState.continuationToken!, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getKeyPropertiesFromKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listPropertiesOfKeys}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listPropertiesOfKeysAll(\n options?: ListPropertiesOfKeysOptions\n ): AsyncIterableIterator<KeyProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfKeysPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates the latest version of all keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * const key = await client.getKey(keyProperties.name);\n * console.log(\"key: \", key);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeys(\n options: ListPropertiesOfKeysOptions = {}\n ): PagedAsyncIterableIterator<KeyProperties> {\n const iter = this.listPropertiesOfKeysAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listPropertiesOfKeysPage(settings, options)\n };\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the pagination of {@link listDeletedKeys}.\n * @param continuationState - An object that indicates the position of the paginated request.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listDeletedKeysPage(\n continuationState: PageSettings,\n options?: ListDeletedKeysOptions\n ): AsyncIterableIterator<DeletedKey[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: KeyVaultClientGetKeysOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options\n };\n const currentSetResponse = await withTrace(\n \"listDeletedKeysPage\",\n optionsComplete,\n async (updatedOptions) => this.client.getDeletedKeys(this.vaultUrl, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedKeyFromDeletedKeyItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await withTrace(\n \"listDeletedKeysPage\",\n options || {},\n async (updatedOptions) =>\n this.client.getDeletedKeys(continuationState.continuationToken!, updatedOptions)\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedKeyFromDeletedKeyItem, this);\n } else {\n break;\n }\n }\n }\n\n /**\n * @internal\n * @hidden\n * Deals with the iteration of all the available results of {@link listDeletedKeys}.\n * @param options - Common options for the iterative endpoints.\n */\n private async *listDeletedKeysAll(\n options?: ListDeletedKeysOptions\n ): AsyncIterableIterator<DeletedKey> {\n const f = {};\n\n for await (const page of this.listDeletedKeysPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Iterates the deleted keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts\n * let client = new KeyClient(url, credentials);\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"deleted key: \", deletedKey);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listDeletedKeys(\n options: ListDeletedKeysOptions = {}\n ): PagedAsyncIterableIterator<DeletedKey> {\n const iter = this.listDeletedKeysAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listDeletedKeysPage(settings, options)\n };\n }\n}\n"]}
@@ -3,23 +3,5 @@
3
3
  /**
4
4
  * The latest supported Key Vault service API version
5
5
  */
6
- export const LATEST_API_VERSION = "7.3-preview";
7
- /** Known values of {@link KeyOperation} that the service accepts. */
8
- export var KnownKeyOperations;
9
- (function (KnownKeyOperations) {
10
- /** Key operation - encrypt */
11
- KnownKeyOperations["Encrypt"] = "encrypt";
12
- /** Key operation - encrypt */
13
- KnownKeyOperations["Decrypt"] = "decrypt";
14
- /** Key operation - encrypt */
15
- KnownKeyOperations["Sign"] = "sign";
16
- /** Key operation - encrypt */
17
- KnownKeyOperations["Verify"] = "verify";
18
- /** Key operation - encrypt */
19
- KnownKeyOperations["WrapKey"] = "wrapKey";
20
- /** Key operation - encrypt */
21
- KnownKeyOperations["UnwrapKey"] = "unwrapKey";
22
- /** Key operation - encrypt */
23
- KnownKeyOperations["Import"] = "import";
24
- })(KnownKeyOperations || (KnownKeyOperations = {}));
6
+ export const LATEST_API_VERSION = "7.2";
25
7
  //# sourceMappingURL=keysModels.js.map