@@ -614,7 +614,7 @@ An application using Azure credentials would look like, this time using
614
614
from pymongo.encryption_options import AutoEncryptionOpts
615
615
616
616
# The empty dictionary enables on-demand credentials.
617
- kms_providers = ( {" azure" : {}},)
617
+ kms_providers = {" azure" : {}}
618
618
key_vault_namespace = " keyvault.datakeys"
619
619
auto_encryption_opts = AutoEncryptionOpts(kms_providers, key_vault_namespace)
620
620
client = MongoClient(auto_encryption_opts = auto_encryption_opts)
@@ -647,7 +647,7 @@ as demonstrated by the following example:
647
647
import os
648
648
from bson.codec_options import CodecOptions
649
649
from pymongo import MongoClient
650
- from pymongo.encryption import Algorithm, ClientEncryption, QueryType
650
+ from pymongo.encryption import ClientEncryption
651
651
from pymongo.encryption_options import AutoEncryptionOpts
652
652
653
653
local_master_key = os.urandom(96 )
@@ -670,8 +670,6 @@ as demonstrated by the following example:
670
670
671
671
encrypted_fields_map = {
672
672
" default.encryptedCollection" : {
673
- " escCollection" : " encryptedCollection.esc" ,
674
- " ecocCollection" : " encryptedCollection.ecoc" ,
675
673
" fields" : [
676
674
{
677
675
" path" : " firstName" ,
@@ -768,8 +766,6 @@ using an ``encrypted_fields`` mapping, as demonstrated by the following example:
768
766
unindexed_key_id = client_encryption.create_data_key(" local" )
769
767
770
768
encrypted_fields = {
771
- " escCollection" : " enxcol_.default.esc" ,
772
- " ecocCollection" : " enxcol_.default.ecoc" ,
773
769
" fields" : [
774
770
{
775
771
" keyId" : indexed_key_id,
0 commit comments