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.
Files changed (57) hide show
  1. {aepp-0.4.0/aepp.egg-info → aepp-0.4.0.post1}/PKG-INFO +1 -1
  2. aepp-0.4.0.post1/aepp/__version__.py +1 -0
  3. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/hygiene.py +26 -12
  4. {aepp-0.4.0 → aepp-0.4.0.post1/aepp.egg-info}/PKG-INFO +1 -1
  5. aepp-0.4.0/aepp/__version__.py +0 -1
  6. {aepp-0.4.0 → aepp-0.4.0.post1}/LICENSE +0 -0
  7. {aepp-0.4.0 → aepp-0.4.0.post1}/MANIFEST.in +0 -0
  8. {aepp-0.4.0 → aepp-0.4.0.post1}/README.md +0 -0
  9. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/__init__.py +0 -0
  10. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/accesscontrol.py +0 -0
  11. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/catalog.py +0 -0
  12. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/classmanager.py +0 -0
  13. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/config.py +0 -0
  14. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/configs.py +0 -0
  15. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/connector.py +0 -0
  16. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/customerprofile.py +0 -0
  17. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/dataaccess.py +0 -0
  18. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/dataprep.py +0 -0
  19. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/datasets.py +0 -0
  20. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/datatypemanager.py +0 -0
  21. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/deletion.py +0 -0
  22. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/destination.py +0 -0
  23. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/destinationinstanceservice.py +0 -0
  24. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/edge.py +0 -0
  25. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/exportDatasetToDataLandingZone.py +0 -0
  26. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/fieldgroupmanager.py +0 -0
  27. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/flowservice.py +0 -0
  28. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/identity.py +0 -0
  29. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/ingestion.py +0 -0
  30. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/observability.py +0 -0
  31. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/policy.py +0 -0
  32. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/privacyservice.py +0 -0
  33. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/queryservice.py +0 -0
  34. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/sandboxes.py +0 -0
  35. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/schema.py +0 -0
  36. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/schemamanager.py +0 -0
  37. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/segmentation.py +0 -0
  38. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/sensei.py +0 -0
  39. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/som.py +0 -0
  40. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/synchronizer.py +0 -0
  41. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/tags.py +0 -0
  42. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp/utils.py +0 -0
  43. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/SOURCES.txt +0 -0
  44. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/dependency_links.txt +0 -0
  45. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/requires.txt +0 -0
  46. {aepp-0.4.0 → aepp-0.4.0.post1}/aepp.egg-info/top_level.txt +0 -0
  47. {aepp-0.4.0 → aepp-0.4.0.post1}/setup.cfg +0 -0
  48. {aepp-0.4.0 → aepp-0.4.0.post1}/setup.py +0 -0
  49. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/__init__.py +0 -0
  50. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/catalog_test.py +0 -0
  51. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/dataaccess_test.py +0 -0
  52. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/datasets_test.py +0 -0
  53. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/destinationinstanceservice_test.py +0 -0
  54. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/exportDatasetToDatalandingZone_test.py +0 -0
  55. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/flowservice_test.py +0 -0
  56. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/schema_test.py +0 -0
  57. {aepp-0.4.0 → aepp-0.4.0.post1}/tests/som_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aepp
3
- Version: 0.4.0
3
+ Version: 0.4.0.post1
4
4
  Summary: Package to manage AEP API endpoint and some helper functions
5
5
  Home-page: https://github.com/adobe/aepp
6
6
  Author: Julien Piccini
@@ -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,identities:list=None,description:str="")->dict:
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
- identities : REQUIRED : list of namespace code and id to be deleted.
230
+ namespacesIdentities : REQUIRED : list of namespace code and id to be deleted.
231
231
  example :
232
- [{"namespace": {
232
+ [
233
+ {
234
+ "namespace": {
233
235
  "code": "email"
234
- },
235
- "id": "poul.anderson@example.com"
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
- if datasetId is None:
240
- raise ValueError("datasetId is required")
241
- if identities is None:
242
- raise ValueError("list of identities is required")
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
- "identities":identities
265
+ "namespacesIdentities":namespacesIdentities
252
266
  }
253
267
  res = self.connector.postData(self.endpoint+path,data=data)
254
268
  return res
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aepp
3
- Version: 0.4.0
3
+ Version: 0.4.0.post1
4
4
  Summary: Package to manage AEP API endpoint and some helper functions
5
5
  Home-page: https://github.com/adobe/aepp
6
6
  Author: Julien Piccini
@@ -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