pyegeria 5.3.8.2__py3-none-any.whl → 5.3.8.4__py3-none-any.whl

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.
@@ -1521,7 +1521,7 @@ class ProjectManager(Client):
1521
1521
 
1522
1522
  async def _async_delete_project(
1523
1523
  self,
1524
- project_guid: str,
1524
+ project_guid: str, cascade: bool = False
1525
1525
  ) -> None:
1526
1526
  """Delete a project. It is detected from all parent elements. Async version
1527
1527
 
@@ -1529,7 +1529,8 @@ class ProjectManager(Client):
1529
1529
  ----------
1530
1530
  project_guid: str
1531
1531
  The guid of the project to update.
1532
-
1532
+ cascade: bool, optional, defaults to False
1533
+ If true, then all anchored elements will be deleted.
1533
1534
 
1534
1535
  Returns
1535
1536
  -------
@@ -1545,10 +1546,10 @@ class ProjectManager(Client):
1545
1546
  The principle specified by the user_id does not have authorization for the requested action
1546
1547
 
1547
1548
  """
1548
-
1549
+ cascade_s = str(cascade).lower()
1549
1550
  url = (
1550
1551
  f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/project-manager/projects/"
1551
- f"{project_guid}/delete"
1552
+ f"{project_guid}/delete?cascadedDelete={cascade_s}"
1552
1553
  )
1553
1554
 
1554
1555
  body = {"class": "NullRequestBody"}
@@ -1558,7 +1559,7 @@ class ProjectManager(Client):
1558
1559
 
1559
1560
  def delete_project(
1560
1561
  self,
1561
- project_guid: str,
1562
+ project_guid: str, cascade: bool = False
1562
1563
  ) -> None:
1563
1564
  """Delete a project. It is detected from all parent elements.
1564
1565
 
@@ -1566,8 +1567,12 @@ class ProjectManager(Client):
1566
1567
  ----------
1567
1568
  project_guid: str
1568
1569
  The guid of the collection to update.
1570
+ cascade: bool, optional, defaults to False
1571
+ If true, then all anchored elements will be deleted.
1569
1572
 
1570
1573
 
1574
+ cascade: bool, optional, defaults to False
1575
+ If true, then all anchored elements will be deleted.
1571
1576
  Returns
1572
1577
  -------
1573
1578
  Nothing
@@ -1584,7 +1589,7 @@ class ProjectManager(Client):
1584
1589
 
1585
1590
  """
1586
1591
  loop = asyncio.get_event_loop()
1587
- loop.run_until_complete(self._async_delete_project(project_guid))
1592
+ loop.run_until_complete(self._async_delete_project(project_guid, cascade))
1588
1593
  return
1589
1594
 
1590
1595
  async def _async_add_to_project_team(