aepp 0.4.0__tar.gz → 0.4.0.post1__tar.gz
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.
- {aepp-0.4.0/aepp.egg-info → aepp-0.4.0.post1}/PKG-INFO +1 -1
- aepp-0.4.0.post1/aepp/__version__.py +1 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/hygiene.py +26 -12
- {aepp-0.4.0 → aepp-0.4.0.post1/aepp.egg-info}/PKG-INFO +1 -1
- aepp-0.4.0/aepp/__version__.py +0 -1
- {aepp-0.4.0 → aepp-0.4.0.post1}/LICENSE +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/MANIFEST.in +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/README.md +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/__init__.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/accesscontrol.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/catalog.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/classmanager.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/config.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/configs.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/connector.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/customerprofile.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/dataaccess.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/dataprep.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/datasets.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/datatypemanager.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/deletion.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/destination.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/destinationinstanceservice.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/edge.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/exportDatasetToDataLandingZone.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/fieldgroupmanager.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/flowservice.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/identity.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/ingestion.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/observability.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/policy.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/privacyservice.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/queryservice.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/sandboxes.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/schema.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/schemamanager.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/segmentation.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/sensei.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/som.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/synchronizer.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/tags.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/utils.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/SOURCES.txt +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/dependency_links.txt +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/requires.txt +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/top_level.txt +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/setup.cfg +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/setup.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/__init__.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/catalog_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/dataaccess_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/datasets_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/destinationinstanceservice_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/exportDatasetToDatalandingZone_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/flowservice_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/schema_test.py +0 -0
- {aepp-0.4.0 → aepp-0.4.0.post1}/tests/som_test.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.0-1"
|
|
@@ -220,35 +220,49 @@ class Hygiene:
|
|
|
220
220
|
res = self.connector.deleteData(self.endpoint+path)
|
|
221
221
|
return res
|
|
222
222
|
|
|
223
|
-
def createRecordDeleteRequest(self,datasetId:str="ALL",name:str=None,
|
|
223
|
+
def createRecordDeleteRequest(self,datasetId:str="ALL",name:str=None,namespacesIdentities:list=None,description:str="",recordDeletionDict:dict=None)->dict:
|
|
224
224
|
"""
|
|
225
225
|
Delete records from a specific identity.
|
|
226
226
|
NOTE : You should use the maximum number of identities in one request. Max is 100 K identities in the list.
|
|
227
227
|
Argument:
|
|
228
228
|
datasetId : REQUIRED : default "ALL" for all dataset, otherwise a specific datasetId.
|
|
229
229
|
name : REQUIRED : Name of the deletion request job
|
|
230
|
-
|
|
230
|
+
namespacesIdentities : REQUIRED : list of namespace code and id to be deleted.
|
|
231
231
|
example :
|
|
232
|
-
[
|
|
232
|
+
[
|
|
233
|
+
{
|
|
234
|
+
"namespace": {
|
|
233
235
|
"code": "email"
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
|
|
236
|
+
},
|
|
237
|
+
"IDs": [
|
|
238
|
+
"alice.smith@acmecorp.com",
|
|
239
|
+
"bob.jones@acmecorp.com",
|
|
240
|
+
"charlie.brown@acmecorp.com"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
237
244
|
description : OPTIONAL : Description of the job
|
|
245
|
+
recordDeletionDict : OPTIONAL : dictionary containing the full deletion request payload. (not passing other arguments)
|
|
238
246
|
"""
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
247
|
+
path = "/workorder"
|
|
248
|
+
if recordDeletionDict is not None and type(recordDeletionDict) == dict:
|
|
249
|
+
datasetId = recordDeletionDict.get('datasetId','ALL')
|
|
250
|
+
name = recordDeletionDict.get('displayName',None)
|
|
251
|
+
description = recordDeletionDict.get('description',"")
|
|
252
|
+
namespacesIdentities = recordDeletionDict.get('namespacesIdentities',None)
|
|
253
|
+
else:
|
|
254
|
+
if datasetId is None:
|
|
255
|
+
raise ValueError("datasetId is required")
|
|
256
|
+
if namespacesIdentities is None:
|
|
257
|
+
raise ValueError("list of identities is required")
|
|
243
258
|
if self.loggingEnabled:
|
|
244
259
|
self.logger.debug(f"Starting createRecordDeleteRequest, datasetId: {datasetId}")
|
|
245
|
-
path = "/workorder"
|
|
246
260
|
data = {
|
|
247
261
|
"action": "delete_identity",
|
|
248
262
|
"datasetId": datasetId,
|
|
249
263
|
"displayName": name,
|
|
250
264
|
"description": description,
|
|
251
|
-
"
|
|
265
|
+
"namespacesIdentities":namespacesIdentities
|
|
252
266
|
}
|
|
253
267
|
res = self.connector.postData(self.endpoint+path,data=data)
|
|
254
268
|
return res
|
aepp-0.4.0/aepp/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|