pyegeria 5.4.8__py3-none-any.whl → 5.4.8.3__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.
Files changed (31) hide show
  1. md_processing/__init__.py +2 -1
  2. md_processing/data/commands.json +59579 -52198
  3. md_processing/dr_egeria.py +7 -5
  4. md_processing/md_commands/solution_architect_commands.py +54 -10
  5. md_processing/md_processing_utils/common_md_proc_utils.py +8 -4
  6. md_processing/md_processing_utils/common_md_utils.py +41 -2
  7. pyegeria/_base_client.py +1 -17
  8. pyegeria/_client_new.py +1008 -323
  9. pyegeria/_client_new_backup.py +5359 -0
  10. pyegeria/_exceptions_new.py +6 -1
  11. pyegeria/base_report_formats.py +31 -2
  12. pyegeria/classification_manager.py +1430 -357
  13. pyegeria/collection_manager.py +52 -54
  14. pyegeria/config.py +1 -0
  15. pyegeria/data_designer.py +41 -41
  16. pyegeria/external_links.py +26 -26
  17. pyegeria/feedback_manager_omvs.py +13 -31
  18. pyegeria/glossary_manager.py +32 -35
  19. pyegeria/governance_officer.py +31 -31
  20. pyegeria/output_formatter.py +36 -11
  21. pyegeria/output_formatter_with_machine_keys.py +1127 -0
  22. pyegeria/project_manager.py +21 -21
  23. pyegeria/reference_data.py +2 -2
  24. pyegeria/solution_architect.py +112 -91
  25. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/METADATA +6 -5
  26. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/RECORD +30 -29
  27. pyegeria/md_processing_utils_orig.py +0 -1103
  28. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/WHEEL +0 -0
  29. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/entry_points.txt +0 -0
  30. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/licenses/LICENSE +0 -0
  31. {pyegeria-5.4.8.dist-info → pyegeria-5.4.8.3.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,7 @@ from pyegeria._client_new import Client2
14
14
  from pyegeria.base_report_formats import get_report_spec_match
15
15
  from pyegeria.config import settings as app_settings
16
16
  from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody,
17
- TemplateRequestBody, DeleteRequestBody, UpdateElementRequestBody,
17
+ TemplateRequestBody, DeleteElementRequestBody, DeleteRelationshipRequestBody, UpdateElementRequestBody,
18
18
  NewRelationshipRequestBody)
19
19
  from pyegeria.output_formatter import generate_output, populate_columns_from_properties, \
20
20
  _extract_referenceable_properties, get_required_relationships, populate_common_columns, overlay_additional_values
@@ -1097,7 +1097,7 @@ class ProjectManager(Client2):
1097
1097
  @dynamic_catch
1098
1098
  async def _async_delete_project(
1099
1099
  self,
1100
- project_guid: str, cascade: bool = False, body: dict | DeleteRequestBody = None) -> None:
1100
+ project_guid: str, cascade: bool = False, body: dict | DeleteElementRequestBody = None) -> None:
1101
1101
  """Delete a project. It is detected from all parent elements. Async version
1102
1102
 
1103
1103
  Parameters
@@ -1127,13 +1127,13 @@ class ProjectManager(Client2):
1127
1127
  f"{project_guid}/delete"
1128
1128
  )
1129
1129
 
1130
- await self._async_delete_request(url, body, cascade)
1130
+ await self._async_delete_element_request(url, body, cascade)
1131
1131
  logger.info(f"Deleted project {project_guid} with cascade {cascade}")
1132
1132
 
1133
1133
  @dynamic_catch
1134
1134
  def delete_project(
1135
1135
  self,
1136
- project_guid: str, cascade: bool = False, body: dict | DeleteRequestBody = None) -> None:
1136
+ project_guid: str, cascade: bool = False, body: dict | DeleteElementRequestBody = None) -> None:
1137
1137
  """Delete a project. It is detected from all parent elements.
1138
1138
 
1139
1139
  Parameters
@@ -1244,7 +1244,7 @@ class ProjectManager(Client2):
1244
1244
  @dynamic_catch
1245
1245
  async def _async_clear_project_dependency(self, project_guid: str,
1246
1246
  upstream_project_guid: str,
1247
- body: dict | DeleteRequestBody = None) -> None:
1247
+ body: dict | DeleteRelationshipRequestBody = None) -> None:
1248
1248
  """ Unlink two dependent projects. Request body is optional. Async version.
1249
1249
 
1250
1250
  Parameters
@@ -1253,7 +1253,7 @@ class ProjectManager(Client2):
1253
1253
  The guid of the dependent project.
1254
1254
  upstream_project_guid: str
1255
1255
  The guid of the upstream digital project
1256
- body: dict | DeleteRequestBody, optional, default = None
1256
+ body: dict | DeleteRelationshipRequestBody, optional, default = None
1257
1257
  A structure representing the details of the relationship.
1258
1258
 
1259
1259
  Returns
@@ -1273,7 +1273,7 @@ class ProjectManager(Client2):
1273
1273
  -----
1274
1274
  JSON Structure looks like:
1275
1275
  {
1276
- "class": "DeleteRequestBody",
1276
+ "class": "DeleteRelationshipRequestBody",
1277
1277
  "externalSourceGUID": "add guid here",
1278
1278
  "externalSourceName": "add qualified name here",
1279
1279
  "effectiveTime": "{{$isoTimestamp}}",
@@ -1285,13 +1285,13 @@ class ProjectManager(Client2):
1285
1285
 
1286
1286
  url = "{self.project_command_base}/{project_guid}/project-dependencies/{upstream_project_guid}/detach"
1287
1287
 
1288
- await self._async_delete_request(url, body)
1288
+ await self._async_delete_relationship_request(url, body)
1289
1289
  logger.info(
1290
1290
  f"Detached project {project_guid} from -> {upstream_project_guid}")
1291
1291
 
1292
1292
  @dynamic_catch
1293
1293
  def clear_project_dependency(self, project_guid: str, upstream_project_guid: str,
1294
- body: dict | DeleteRequestBody = None):
1294
+ body: dict | DeleteRelationshipRequestBody = None):
1295
1295
  """ Unlink two dependent projects. Request body is optional.
1296
1296
 
1297
1297
  Parameters
@@ -1300,7 +1300,7 @@ class ProjectManager(Client2):
1300
1300
  The guid of the dependent project.
1301
1301
  upstream_project_guid: str
1302
1302
  The guid of the upstream digital project
1303
- body: dict | DeleteRequestBody, optional, default = None
1303
+ body: dict | DeleteRelationshipRequestBody, optional, default = None
1304
1304
  A structure representing the details of the relationship.
1305
1305
 
1306
1306
  Returns
@@ -1320,7 +1320,7 @@ class ProjectManager(Client2):
1320
1320
  -----
1321
1321
  JSON Structure looks like:
1322
1322
  {
1323
- "class": "DeleteRequestBody",
1323
+ "class": "DeleteRelationshipRequestBody",
1324
1324
  "externalSourceGUID": "add guid here",
1325
1325
  "externalSourceName": "add qualified name here",
1326
1326
  "effectiveTime": "{{$isoTimestamp}}",
@@ -1413,7 +1413,7 @@ class ProjectManager(Client2):
1413
1413
  @dynamic_catch
1414
1414
  async def _async_clear_project_hierarchy(self, project_guid: str,
1415
1415
  parent_project_guid: str,
1416
- body: dict | DeleteRequestBody = None) -> None:
1416
+ body: dict | DeleteRelationshipRequestBody = None) -> None:
1417
1417
  """ Unlink hierarchy relationship. Request body is optional. Async version.
1418
1418
 
1419
1419
  Parameters
@@ -1422,7 +1422,7 @@ class ProjectManager(Client2):
1422
1422
  The guid of the dependent project.
1423
1423
  parent_project_guid: str
1424
1424
  The guid of the upstream digital project
1425
- body: dict | DeleteRequestBody, optional, default = None
1425
+ body: dict | DeleteRelationshipRequestBody, optional, default = None
1426
1426
  A structure representing the details of the relationship.
1427
1427
 
1428
1428
  Returns
@@ -1442,7 +1442,7 @@ class ProjectManager(Client2):
1442
1442
  -----
1443
1443
  JSON Structure looks like:
1444
1444
  {
1445
- "class": "DeleteRequestBody",
1445
+ "class": "DeleteRelationshipRequestBody",
1446
1446
  "externalSourceGUID": "add guid here",
1447
1447
  "externalSourceName": "add qualified name here",
1448
1448
  "effectiveTime": "{{$isoTimestamp}}",
@@ -1454,13 +1454,13 @@ class ProjectManager(Client2):
1454
1454
 
1455
1455
  url = "{self.project_command_base}/{parent_project_guid}/project-dependencies/{project_guid}/detach"
1456
1456
 
1457
- await self._async_delete_request(url, body)
1457
+ await self._async_delete_relationship_request(url, body)
1458
1458
  logger.info(
1459
1459
  f"Detached project {project_guid} from -> {parent_project_guid}")
1460
1460
 
1461
1461
  @dynamic_catch
1462
1462
  def clear_project_hierarchy(self, project_guid: str, parent_project_guid: str,
1463
- body: dict | DeleteRequestBody = None):
1463
+ body: dict | DeleteRelationshipRequestBody = None):
1464
1464
  """ Unlink two dependent projects. Request body is optional.
1465
1465
 
1466
1466
  Parameters
@@ -1469,7 +1469,7 @@ class ProjectManager(Client2):
1469
1469
  The guid of the dependent project.
1470
1470
  parent_project_guid: str
1471
1471
  The guid of the upstream digital project
1472
- body: dict | DeleteRequestBody, optional, default = None
1472
+ body: dict | DeleteRelationshipRequestBody, optional, default = None
1473
1473
  A structure representing the details of the relationship.
1474
1474
 
1475
1475
  Returns
@@ -1489,7 +1489,7 @@ class ProjectManager(Client2):
1489
1489
  -----
1490
1490
  JSON Structure looks like:
1491
1491
  {
1492
- "class": "DeleteRequestBody",
1492
+ "class": "DeleteRelationshipRequestBody",
1493
1493
  "externalSourceGUID": "add guid here",
1494
1494
  "externalSourceName": "add qualified name here",
1495
1495
  "effectiveTime": "{{$isoTimestamp}}",
@@ -1616,7 +1616,7 @@ class ProjectManager(Client2):
1616
1616
  self,
1617
1617
  project_guid: str,
1618
1618
  actor_guid: str,
1619
- body: dict | DeleteRequestBody = None
1619
+ body: dict | DeleteRelationshipRequestBody = None
1620
1620
  ) -> None:
1621
1621
  """Remove an actor from a project. Async version.
1622
1622
 
@@ -1648,7 +1648,7 @@ class ProjectManager(Client2):
1648
1648
  f"members/{actor_guid}/detach"
1649
1649
  )
1650
1650
 
1651
- await self._async_delete_request(url, body)
1651
+ await self._async_delete_relationship_request(url, body)
1652
1652
  logger.info(f"Removed member {actor_guid} from project {project_guid}")
1653
1653
 
1654
1654
  @dynamic_catch
@@ -1656,7 +1656,7 @@ class ProjectManager(Client2):
1656
1656
  self,
1657
1657
  project_guid: str,
1658
1658
  actor_guid: str,
1659
- body: dict | DeleteRequestBody = None
1659
+ body: dict | DeleteRelationshipRequestBody = None
1660
1660
  ) -> None:
1661
1661
  """Remove an actor from a project.
1662
1662
 
@@ -14,7 +14,7 @@ from pyegeria._client_new import Client2
14
14
  from pyegeria.base_report_formats import get_report_spec_match
15
15
  from pyegeria.config import settings as app_settings
16
16
  from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody,
17
- TemplateRequestBody, DeleteRequestBody, UpdateElementRequestBody,
17
+ TemplateRequestBody, UpdateElementRequestBody,
18
18
  NewRelationshipRequestBody, DeleteElementRequestBody, DeleteRelationshipRequestBody)
19
19
  from pyegeria.output_formatter import generate_output, populate_columns_from_properties, \
20
20
  _extract_referenceable_properties, get_required_relationships, populate_common_columns, overlay_additional_values
@@ -1095,7 +1095,7 @@ class ReferenceDataManager(Client2):
1095
1095
 
1096
1096
  url = f"{self.ref_data_command_base}/valid-value-definitions/{vv_def_guid}/delete"
1097
1097
 
1098
- await self._async_delete_request(url, body, cascade_delete)
1098
+ await self._async_delete_element_request(url, body, cascade_delete)
1099
1099
  logger.info(f"Deleted valid value definition {vv_def_guid} with cascade {cascade_delete}")
1100
1100
 
1101
1101
  @dynamic_catch