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.
- pyegeria/__init__.py +3 -1
- pyegeria/_client.py +50 -0
- pyegeria/commands/cat/dr_egeria_md.py +50 -47
- pyegeria/commands/cat/glossary_actions.py +1 -1
- pyegeria/commands/cat/list_categories.py +9 -2
- pyegeria/commands/cat/list_glossaries.py +11 -1
- pyegeria/commands/cat/list_terms.py +2 -1
- pyegeria/glossary_browser_omvs.py +2643 -1972
- pyegeria/glossary_manager_omvs.py +147 -7
- pyegeria/md_processing_utils.py +456 -88
- pyegeria/project_manager_omvs.py +11 -6
- pyegeria/solution_architect_omvs.py +1749 -259
- pyegeria/template_manager_omvs.py +9 -4
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/METADATA +1 -1
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/RECORD +19 -19
- /pyegeria/{shared_state.py → dr_egeria_state.py} +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/entry_points.txt +0 -0
pyegeria/project_manager_omvs.py
CHANGED
@@ -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(
|