UNPKG

@azure/cosmos

Version:
28 lines 1.02 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * stores partitionKeyPaths, all the pathsToEncrypt, and encryption settings (cekId, encryption type, and algorithm) for each property. * see {@link EncryptionSettingForProperty} * @hidden */ export class EncryptionSettings { id; // databaseRid + '/' + containerRid containerRid; partitionKeyPaths; pathsToEncrypt = []; // key is property path encryptionSettingForProperties = {}; // getContainerRid constructor(id, containerRid, partitionKeyPaths) { this.id = id; this.containerRid = containerRid; this.partitionKeyPaths = partitionKeyPaths; } setEncryptionSettingForProperty(key, encryptionSettingForProperty) { this.encryptionSettingForProperties[key] = encryptionSettingForProperty; } getEncryptionSettingForProperty(propertyName) { return this.encryptionSettingForProperties[propertyName]; } } //# sourceMappingURL=EncryptionSettings.js.map