f  ddlmZddlmZddlmZddlmZddlmZy#e$rEGddeZGdd eZGd d eZGd d eZGddeZGddeZYywxYw))BulkWriteResult) DeleteResult)InsertManyResult)InsertOneResult) UpdateResultc$eZdZddZedZy) _WriteResultc||_yN_WriteResult__acknowledged)self acknowledgeds Z/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/mongomock/results.py__init__z_WriteResult.__init__ s ".D c|jSr r rs rrz_WriteResult.acknowledged && &rNT)__name__ __module__ __qualname__rpropertyrrrr r s /  '  'rr c4eZdZdZdfd ZedZxZS)r) __inserted_id__acknowledgedc:||_tt||yr )_InsertOneResult__inserted_idsuperrr)r inserted_idr __class__s rrzInsertOneResult.__init__s!,D  /4 1, ?rc|jSr )r rs rr"zInsertOneResult.inserted_ids%% %rr)rrr __slots__rrr" __classcell__r#s@rrrs"7  @  &  &rrc4eZdZdZdfd ZedZxZS)r)__inserted_idsrc:||_tt||yr )_InsertManyResult__inserted_idsr!rr)r inserted_idsrr#s rrzInsertManyResult.__init__!s".D  "D 2< @rc|jSr )r+rs rr,zInsertManyResult.inserted_ids%rrr)rrrr%rrr,r&r's@rrrs"8  A  '  'rrcdeZdZdZdfd ZedZedZedZedZ xZ S)r __raw_resultrc:||_tt||yr )_UpdateResult__raw_resultr!rrr raw_resultrr#s rrzUpdateResult.__init__- *D  , .| rRrs rrAzBulkWriteResult.modified_countgrTrc8|jjdS)NnRemovedrRrs rrIzBulkWriteResult.deleted_countkrWrc8|jjdS)N nUpsertedrRrs rupserted_countzBulkWriteResult.upserted_countorTrcZ|jrtd|jdDSy)Nc30K|]}|d|dfyw)index_idNr).0upserts r z/BulkWriteResult.upserted_ids..vs'L &$G_fUm<LsrC)rMdictrNrs r upserted_idszBulkWriteResult.upserted_idsss9%%L*.*>*>z*JLLL&r)rrrr%rrrNrSr<rArIr]rfr&r's@rrrSs;  @  *  *  ;  ;  :  :  ;  ;  :  :  ;  ;  L  LrrN) pymongo.resultsrrrrr ImportErrorobjectr rrrrjsyvL/,0/,pL'v' &, & '< '5|541|1 $L,$LYpLs!AA+*A+