Ejemplo n.º 1
0
 def deleteDataSet(self, dataset_id: str = None):
     """
     Delete a dataset by its id.
     Arguments:
         dataset_id : REQUIRED : Id of the dataset to be deleted.
     """
     if dataset_id is None:
         raise Exception("Expected a dataset_id argument")
     path = f"/dataSets/{dataset_id}"
     res = aepp._deleteData(self.endpoint + path, headers=self.header)
     return res
Ejemplo n.º 2
0
 def deleteAccount(self, account_id: str = None):
     """
     Delete an account.
     Arguments: 
         account_id : REQUIRED : account id to be deleted.
     """
     if account_id is None:
         raise Exception("Require an account_id")
     path = f"/accounts/{account_id}"
     res = aepp._deleteData(self.endpoint + path, headers=self.header)
     return res
Ejemplo n.º 3
0
 def deleteConnection(self, connection_id: str = None):
     """
     Delete a connection. 
     Argument:
         connection_id : REQUIRED : ID of the connection to be deleted.
     """
     if connection_id is None:
         raise Exception("Expected connection connection_id as argument")
     path = f"/connections/{connection_id}"
     res = aepp._deleteData(self.endpoint + path, headers=self.header)
     return res
Ejemplo n.º 4
0
 def deleteMixin(self, mixin_id: str = None):
     """
     Arguments:
         schema_id : meta:altId or $id
     """
     if mixin_id is None:
         raise Exception("Require an ID")
     path = f'/tenant/mixins/{mixin_id}'
     if mixin_id.startswith('https://'):
         from urllib import parse
         mixin_id = parse.quote_plus(mixin_id)
     res = aepp._deleteData(self.endpoint+path, headers=self.header)
     return res
Ejemplo n.º 5
0
 def deleteSchema(self, schema_id: str = None, **kwargs):
     """
     Delete the request
     Arguments:
         schema_id : REQUIRED : $id or meta:altId
         It requires a allOf list that contains all the attributes that are required for creating a schema.
         #/Schemas/replace_schema
         More information on : https://www.adobe.io/apis/experienceplatform/home/api-reference.html
     """
     path = f'/ tenant/schemas/{schema_id}'
     if schema_id is None:
         raise Exception("Require an ID for the schema")
     if schema_id.startswith('https://'):
         from urllib import parse
         schema_id = parse.quote_plus(schema_id)
     res = aepp._deleteData(self.endpoint+path, headers=self.header)
     return res