pyegeria 0.8.4.35__tar.gz → 0.8.4.36__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 (97) hide show
  1. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/PKG-INFO +1 -1
  2. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_glossary.py +3 -2
  3. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_integ_daemon_status.py +10 -10
  4. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/automated_curation_omvs.py +52 -37
  5. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/runtime_manager_omvs.py +27 -27
  6. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyproject.toml +1 -1
  7. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/LICENSE +0 -0
  8. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/README.md +0 -0
  9. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/README.md +0 -0
  10. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/__init__.py +0 -0
  11. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_asset_graph.py +0 -0
  12. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_collection.py +0 -0
  13. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_project_dependencies.py +0 -0
  14. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_project_structure.py +0 -0
  15. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_tech_type_elements.py +0 -0
  16. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/get_tech_type_template.py +0 -0
  17. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_archives.py +0 -0
  18. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_assets.py +0 -0
  19. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_cert_types.py +0 -0
  20. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_projects.py +0 -0
  21. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_relationships.py +0 -0
  22. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_tech_types.py +0 -0
  23. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_todos.py +0 -0
  24. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cat/list_user_ids.py +0 -0
  25. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/__init__.py +0 -0
  26. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/egeria.py +0 -0
  27. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/egeria_cat.py +0 -0
  28. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/egeria_my.py +0 -0
  29. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/egeria_ops.py +0 -0
  30. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/egeria_tech.py +0 -0
  31. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/cli/ops_config.py +0 -0
  32. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/README.md +0 -0
  33. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/__init__.py +0 -0
  34. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/list_my_profile.py +0 -0
  35. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/list_my_roles.py +0 -0
  36. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/monitor_my_todos.py +0 -0
  37. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/monitor_open_todos.py +0 -0
  38. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/my/todo_actions.py +0 -0
  39. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/README.md +0 -0
  40. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/__init__.py +0 -0
  41. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/engine_actions.py +0 -0
  42. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/gov_server_actions.py +0 -0
  43. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/list_catalog_targets.py +0 -0
  44. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/load_archive.py +0 -0
  45. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_asset_events.py +0 -0
  46. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_engine_activity.py +0 -0
  47. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_engine_activity_c.py +0 -0
  48. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_gov_eng_status.py +0 -0
  49. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_platform_status.py +0 -0
  50. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/monitor_server_status.py +0 -0
  51. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/orig_monitor_server_list.py +0 -0
  52. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/orig_monitor_server_status.py +0 -0
  53. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/refresh_integration_daemon.py +0 -0
  54. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/ops/restart_integration_daemon.py +0 -0
  55. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/README.md +0 -0
  56. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/__init__.py +0 -0
  57. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/get_element_info.py +0 -0
  58. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/get_guid_info.py +0 -0
  59. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/get_tech_details.py +0 -0
  60. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_asset_types.py +0 -0
  61. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_elements.py +0 -0
  62. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_elements_x.py +0 -0
  63. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_registered_services.py +0 -0
  64. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_related_specification.py +0 -0
  65. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_relationship_types.py +0 -0
  66. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_tech_templates.py +0 -0
  67. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/list_valid_metadata_values.py +0 -0
  68. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/commands/tech/x_list_related_elements.py +0 -0
  69. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/__init__.py +0 -0
  70. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/_client.py +0 -0
  71. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/_deprecated_gov_engine.py +0 -0
  72. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/_exceptions.py +0 -0
  73. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/_globals.py +0 -0
  74. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/_validators.py +0 -0
  75. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/asset_catalog_omvs.py +0 -0
  76. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/classification_manager_omvs.py +0 -0
  77. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/collection_manager_omvs.py +0 -0
  78. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/core_omag_server_config.py +0 -0
  79. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/create_tech_guid_lists.py +0 -0
  80. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/egeria_cat_client.py +0 -0
  81. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/egeria_client.py +0 -0
  82. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/egeria_config_client.py +0 -0
  83. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/egeria_my_client.py +0 -0
  84. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/egeria_tech_client.py +0 -0
  85. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/feedback_manager_omvs.py +0 -0
  86. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/full_omag_server_config.py +0 -0
  87. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/glossary_browser_omvs.py +0 -0
  88. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/glossary_manager_omvs.py +0 -0
  89. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/mermaid_utilities.py +0 -0
  90. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/my_profile_omvs.py +0 -0
  91. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/platform_services.py +0 -0
  92. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/project_manager_omvs.py +0 -0
  93. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/registered_info.py +0 -0
  94. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/server_operations.py +0 -0
  95. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/utils.py +0 -0
  96. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/valid_metadata_omvs.py +0 -0
  97. {pyegeria-0.8.4.35 → pyegeria-0.8.4.36}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.35
3
+ Version: 0.8.4.36
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -86,8 +86,9 @@ def display_glossary_terms(
86
86
  status_filter=[],
87
87
  page_size=500,
88
88
  )
89
- if len(terms) == 0:
90
- print("No terms found!")
89
+
90
+ if type(terms) is str:
91
+ print(f"No terms found!")
91
92
  sys.exit(0)
92
93
  sorted_terms = sorted(
93
94
  terms, key=lambda k: k["glossaryTermProperties"]["displayName"]
@@ -45,20 +45,18 @@ disable_ssl_warnings = True
45
45
 
46
46
 
47
47
  def display_integration_daemon_status(
48
- integ_server: str,
49
- integ_url: str,
50
- view_server: str,
51
- view_url: str,
52
- user: str,
53
- user_pass: str,
54
- paging: bool,
48
+ integ_server: str = EGERIA_INTEGRATION_DAEMON,
49
+ integ_url: str = EGERIA_INTEGRATION_DAEMON_URL,
50
+ view_server: str = EGERIA_VIEW_SERVER,
51
+ view_url: str = EGERIA_VIEW_SERVER_URL,
52
+ user: str = EGERIA_USER,
53
+ user_pass: str = EGERIA_USER_PASSWORD,
54
+ paging: bool = True,
55
55
  jupyter: bool = EGERIA_JUPYTER,
56
56
  width: int = EGERIA_WIDTH,
57
57
  sort: bool = True,
58
58
  ):
59
59
  s_client = EgeriaTech(view_server, view_url, user, user_pass)
60
- token = s_client.create_egeria_bearer_token()
61
- server_guid = s_client.get_guid_for_name(integ_server)
62
60
 
63
61
  def generate_table() -> Table:
64
62
  """Make a new table."""
@@ -82,7 +80,9 @@ def display_integration_daemon_status(
82
80
  table.add_column("Target Element", min_width=20)
83
81
  table.add_column("Exception Message", min_width=10)
84
82
 
85
- daemon_status = s_client.get_server_report(server_guid)
83
+ token = s_client.create_egeria_bearer_token()
84
+ # server_guid = s_client.get_guid_for_name(integ_server)
85
+ daemon_status = s_client.get_server_report(None, integ_server)
86
86
 
87
87
  reports = daemon_status["integrationConnectorReports"]
88
88
  if sort is True:
@@ -49,7 +49,7 @@ class AutomatedCuration(Client):
49
49
  self.user_id = user_id
50
50
  self.user_pwd = user_pwd
51
51
  Client.__init__(self, server_name, platform_url, user_id, user_pwd, token=token)
52
- self.cur_command_root = f"{self.platform_url}/servers/{self.server_name}/api/open-metadata/automated-curation"
52
+ self.curation_command_root = f"{self.platform_url}/servers/{self.server_name}/api/open-metadata/automated-curation"
53
53
 
54
54
  async def _async_create_element_from_template(self, body: dict) -> str:
55
55
  """Create a new metadata element from a template. Async version.
@@ -95,7 +95,7 @@ class AutomatedCuration(Client):
95
95
  }
96
96
  """
97
97
 
98
- url = f"{self.cur_command_root}/catalog-templates/new-element"
98
+ url = f"{self.curation_command_root}/catalog-templates/new-element"
99
99
  response = await self._async_make_request("POST", url, body)
100
100
  return response.json().get("guid", "GUID failed to be returned")
101
101
 
@@ -1080,7 +1080,7 @@ class AutomatedCuration(Client):
1080
1080
  """
1081
1081
 
1082
1082
  url = (
1083
- f"{self.cur_command_root}/engine-actions?"
1083
+ f"{self.curation_command_root}/engine-actions?"
1084
1084
  f"startFrom={start_from}&pageSize={page_size}"
1085
1085
  )
1086
1086
 
@@ -1145,7 +1145,7 @@ class AutomatedCuration(Client):
1145
1145
  For more information see: https://egeria-project.org/concepts/engine-action
1146
1146
  """
1147
1147
 
1148
- url = f"{self.cur_command_root}/engine-actions/" f"{engine_action_guid}"
1148
+ url = f"{self.curation_command_root}/engine-actions/" f"{engine_action_guid}"
1149
1149
 
1150
1150
  response = await self._async_make_request("GET", url)
1151
1151
  return response.json().get("element", "No element found")
@@ -1207,7 +1207,10 @@ class AutomatedCuration(Client):
1207
1207
 
1208
1208
  validate_guid(engine_action_guid)
1209
1209
 
1210
- url = f"{self.cur_command_root}/engine-actions/" f"{engine_action_guid}/cancel"
1210
+ url = (
1211
+ f"{self.curation_command_root}/engine-actions/"
1212
+ f"{engine_action_guid}/cancel"
1213
+ )
1211
1214
 
1212
1215
  await self._async_make_request("POST", url)
1213
1216
 
@@ -1268,7 +1271,7 @@ class AutomatedCuration(Client):
1268
1271
  """
1269
1272
 
1270
1273
  url = (
1271
- f"{self.cur_command_root}/engine-actions/active?"
1274
+ f"{self.curation_command_root}/engine-actions/active?"
1272
1275
  f"startFrom={start_from}&pageSize={page_size}"
1273
1276
  )
1274
1277
 
@@ -1346,7 +1349,7 @@ class AutomatedCuration(Client):
1346
1349
  validate_name(name)
1347
1350
 
1348
1351
  url = (
1349
- f"{self.cur_command_root}/engine-actions/by-name?"
1352
+ f"{self.curation_command_root}/engine-actions/by-name?"
1350
1353
  f"startFrom={start_from}&pageSize={page_size}"
1351
1354
  )
1352
1355
  body = {"filter": name}
@@ -1452,7 +1455,7 @@ class AutomatedCuration(Client):
1452
1455
  ignore_case_s = str(ignore_case).lower()
1453
1456
 
1454
1457
  url = (
1455
- f"{self.cur_command_root}/engine-actions/"
1458
+ f"{self.curation_command_root}/engine-actions/"
1456
1459
  f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
1457
1460
  f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
1458
1461
  )
@@ -1551,7 +1554,10 @@ class AutomatedCuration(Client):
1551
1554
 
1552
1555
  validate_guid(process_guid)
1553
1556
 
1554
- url = f"{self.cur_command_root}/" f"governance-action-processes/{process_guid}"
1557
+ url = (
1558
+ f"{self.curation_command_root}/"
1559
+ f"governance-action-processes/{process_guid}"
1560
+ )
1555
1561
 
1556
1562
  response = await self._async_make_request("GET", url)
1557
1563
  return response.json().get("element", "no actions")
@@ -1608,7 +1614,7 @@ class AutomatedCuration(Client):
1608
1614
  validate_guid(process_guid)
1609
1615
 
1610
1616
  url = (
1611
- f"{self.cur_command_root}/"
1617
+ f"{self.curation_command_root}/"
1612
1618
  f"governance-action-processes/{process_guid}/graph"
1613
1619
  )
1614
1620
 
@@ -1677,7 +1683,7 @@ class AutomatedCuration(Client):
1677
1683
  validate_name(name)
1678
1684
 
1679
1685
  url = (
1680
- f"{self.cur_command_root}/governance-action-processes/"
1686
+ f"{self.curation_command_root}/governance-action-processes/"
1681
1687
  f"by-name?startFrom={start_from}&pageSize={page_size}"
1682
1688
  )
1683
1689
  body = {"filter": name}
@@ -1775,7 +1781,7 @@ class AutomatedCuration(Client):
1775
1781
  ignore_case_s = str(ignore_case).lower()
1776
1782
 
1777
1783
  url = (
1778
- f"{self.cur_command_root}/governance-action-processes/"
1784
+ f"{self.curation_command_root}/governance-action-processes/"
1779
1785
  f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
1780
1786
  f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
1781
1787
  )
@@ -1892,7 +1898,7 @@ class AutomatedCuration(Client):
1892
1898
  datetime.datetime.now() if start_time is None else start_time
1893
1899
  )
1894
1900
 
1895
- url = f"{self.cur_command_root}/governance-action-processes/" f"initiate"
1901
+ url = f"{self.curation_command_root}/governance-action-processes/" f"initiate"
1896
1902
  body = {
1897
1903
  "class": "GovernanceActionProcessRequestBody",
1898
1904
  "processQualifiedName": action_type_qualified_name,
@@ -1986,7 +1992,7 @@ class AutomatedCuration(Client):
1986
1992
  validate_guid(gov_action_type_guid)
1987
1993
 
1988
1994
  url = (
1989
- f"{self.cur_command_root}/"
1995
+ f"{self.curation_command_root}/"
1990
1996
  f"governance-action-types/{gov_action_type_guid}"
1991
1997
  )
1992
1998
 
@@ -2047,7 +2053,7 @@ class AutomatedCuration(Client):
2047
2053
  validate_name(action_type_name)
2048
2054
 
2049
2055
  url = (
2050
- f"{self.cur_command_root}/"
2056
+ f"{self.curation_command_root}/"
2051
2057
  f"governance-action-types/by-name?startFrom={start_from}&pageSize={page_size}"
2052
2058
  )
2053
2059
 
@@ -2145,7 +2151,7 @@ class AutomatedCuration(Client):
2145
2151
  ignore_case_s = str(ignore_case).lower()
2146
2152
 
2147
2153
  url = (
2148
- f"{self.cur_command_root}/governance-action-types/"
2154
+ f"{self.curation_command_root}/governance-action-types/"
2149
2155
  f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
2150
2156
  f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
2151
2157
  )
@@ -2252,7 +2258,7 @@ class AutomatedCuration(Client):
2252
2258
 
2253
2259
  """
2254
2260
 
2255
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2261
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2256
2262
  start = int(start_time.timestamp() * 1000) if start_time else None
2257
2263
  body = {
2258
2264
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2330,7 +2336,7 @@ class AutomatedCuration(Client):
2330
2336
  ) -> str:
2331
2337
  """Initiate a postgres database survey"""
2332
2338
 
2333
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2339
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2334
2340
 
2335
2341
  body = {
2336
2342
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2359,7 +2365,7 @@ class AutomatedCuration(Client):
2359
2365
  ) -> str:
2360
2366
  """Initiate a postgres server survey - Async version"""
2361
2367
 
2362
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2368
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2363
2369
 
2364
2370
  body = {
2365
2371
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2420,7 +2426,7 @@ class AutomatedCuration(Client):
2420
2426
  - AssetSurvey:survey-all-folders-and-files
2421
2427
  """
2422
2428
 
2423
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2429
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2424
2430
 
2425
2431
  body = {
2426
2432
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2483,7 +2489,7 @@ class AutomatedCuration(Client):
2483
2489
  async def _async_initiate_file_survey(self, file_guid: str) -> str:
2484
2490
  """Initiate a file survey - async version"""
2485
2491
 
2486
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2492
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2487
2493
 
2488
2494
  body = {
2489
2495
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2519,7 +2525,7 @@ class AutomatedCuration(Client):
2519
2525
 
2520
2526
  """
2521
2527
 
2522
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2528
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2523
2529
 
2524
2530
  body = {
2525
2531
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2570,7 +2576,7 @@ class AutomatedCuration(Client):
2570
2576
 
2571
2577
  """
2572
2578
 
2573
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2579
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2574
2580
 
2575
2581
  body = {
2576
2582
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2620,7 +2626,7 @@ class AutomatedCuration(Client):
2620
2626
 
2621
2627
  """
2622
2628
 
2623
- url = f"{self.cur_command_root}/governance-action-types/" f"initiate"
2629
+ url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
2624
2630
 
2625
2631
  body = {
2626
2632
  "class": "InitiateGovernanceActionTypeRequestBody",
@@ -2674,7 +2680,7 @@ class AutomatedCuration(Client):
2674
2680
  #
2675
2681
  # """
2676
2682
  # server = self.view_server if server is None else server
2677
- # url = (f"{self.cur_command_root}/governance-action-types/"
2683
+ # url = (f"{self.curation_command_root}/governance-action-types/"
2678
2684
  # f"initiate")
2679
2685
  #
2680
2686
  # body = {"class": "InitiateGovernanceActionTypeRequestBody",
@@ -2720,7 +2726,7 @@ class AutomatedCuration(Client):
2720
2726
  #
2721
2727
  # """
2722
2728
  # server = self.view_server if server is None else server
2723
- # url = (f"{self.cur_command_root}/governance-action-types/"
2729
+ # url = (f"{self.curation_command_root}/governance-action-types/"
2724
2730
  # f"initiate")
2725
2731
  #
2726
2732
  # body = {"class": "InitiateGovernanceActionTypeRequestBody",
@@ -2766,7 +2772,7 @@ class AutomatedCuration(Client):
2766
2772
  #
2767
2773
  # """
2768
2774
  # server = self.view_server if server is None else server
2769
- # url = (f"{self.cur_command_root}/governance-action-types/"
2775
+ # url = (f"{self.curation_command_root}/governance-action-types/"
2770
2776
  # f"initiate")
2771
2777
  #
2772
2778
  # body = {"class": "InitiateGovernanceActionTypeRequestBody",
@@ -2854,7 +2860,10 @@ class AutomatedCuration(Client):
2854
2860
 
2855
2861
  """
2856
2862
 
2857
- url = f"{self.cur_command_root}/governance-engines/" f"engine-actions/initiate"
2863
+ url = (
2864
+ f"{self.curation_command_root}/governance-engines/"
2865
+ f"engine-actions/initiate"
2866
+ )
2858
2867
  body = {
2859
2868
  "class": "GovernanceActionRequestBody",
2860
2869
  "qualifiedName": qualified_name + str(int(start_time.timestamp())),
@@ -2977,7 +2986,7 @@ class AutomatedCuration(Client):
2977
2986
  validate_guid(integ_connector_guid)
2978
2987
 
2979
2988
  url = (
2980
- f"{self.cur_command_root}/integration-connectors/"
2989
+ f"{self.curation_command_root}/integration-connectors/"
2981
2990
  f"{integ_connector_guid}/catalog-targets?startFrom={start_from}&pageSize={page_size}"
2982
2991
  )
2983
2992
 
@@ -3037,7 +3046,7 @@ class AutomatedCuration(Client):
3037
3046
 
3038
3047
  validate_guid(relationship_guid)
3039
3048
 
3040
- url = f"{self.cur_command_root}/catalog-targets/" f"{relationship_guid}"
3049
+ url = f"{self.curation_command_root}/catalog-targets/" f"{relationship_guid}"
3041
3050
 
3042
3051
  response = await self._async_make_request("GET", url)
3043
3052
  return response.json().get("element", "no actions")
@@ -3120,7 +3129,7 @@ class AutomatedCuration(Client):
3120
3129
  validate_guid(metadata_element_guid)
3121
3130
 
3122
3131
  url = (
3123
- f"{self.cur_command_root}/integration-connectors/"
3132
+ f"{self.curation_command_root}/integration-connectors/"
3124
3133
  f"{integ_connector_guid}/catalog-targets/{metadata_element_guid}"
3125
3134
  )
3126
3135
  body = {
@@ -3243,7 +3252,10 @@ class AutomatedCuration(Client):
3243
3252
 
3244
3253
  validate_guid(relationship_guid)
3245
3254
 
3246
- url = f"{self.cur_command_root}/catalog-targets/" f"{relationship_guid}/update"
3255
+ url = (
3256
+ f"{self.curation_command_root}/catalog-targets/"
3257
+ f"{relationship_guid}/update"
3258
+ )
3247
3259
  body = {
3248
3260
  "catalogTargetName": catalog_target_name,
3249
3261
  "metadataSourceQualifiedName": metadata_src_qual_name,
@@ -3327,7 +3339,10 @@ class AutomatedCuration(Client):
3327
3339
 
3328
3340
  validate_guid(relationship_guid)
3329
3341
 
3330
- url = f"{self.cur_command_root}/catalog-targets/" f"{relationship_guid}/remove"
3342
+ url = (
3343
+ f"{self.curation_command_root}/catalog-targets/"
3344
+ f"{relationship_guid}/remove"
3345
+ )
3331
3346
 
3332
3347
  await self._async_make_request("POST", url)
3333
3348
  return
@@ -3395,7 +3410,7 @@ class AutomatedCuration(Client):
3395
3410
 
3396
3411
  # validate_name(type_name)
3397
3412
  url = (
3398
- f"{self.cur_command_root}/open-metadata-types/"
3413
+ f"{self.curation_command_root}/open-metadata-types/"
3399
3414
  f"{type_name}/technology-types?startFrom={start_from}&pageSize={page_size}"
3400
3415
  )
3401
3416
  body = {"filter": tech_name}
@@ -3470,7 +3485,7 @@ class AutomatedCuration(Client):
3470
3485
  """
3471
3486
 
3472
3487
  # validate_name(type_name)
3473
- url = f"{self.cur_command_root}/technology-types/by-name"
3488
+ url = f"{self.curation_command_root}/technology-types/by-name"
3474
3489
 
3475
3490
  body = {"filter": type_name}
3476
3491
 
@@ -3561,7 +3576,7 @@ class AutomatedCuration(Client):
3561
3576
  search_string = ""
3562
3577
 
3563
3578
  url = (
3564
- f"{self.cur_command_root}/technology-types/"
3579
+ f"{self.curation_command_root}/technology-types/"
3565
3580
  f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
3566
3581
  f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
3567
3582
  )
@@ -3741,7 +3756,7 @@ class AutomatedCuration(Client):
3741
3756
  validate_name(filter)
3742
3757
 
3743
3758
  url = (
3744
- f"{self.cur_command_root}/technology-types/elements?"
3759
+ f"{self.curation_command_root}/technology-types/elements?"
3745
3760
  f"startFrom={start_from}&pageSize={page_size}&getTemplates={get_templates_s}"
3746
3761
  )
3747
3762
  body = {"filter": filter, "effective_time": effective_time}
@@ -52,7 +52,7 @@ class RuntimeManager(Client):
52
52
  self.view_server = view_server
53
53
  self.time_out = time_out
54
54
  Client.__init__(self, view_server, platform_url, user_id, user_pwd, token=token)
55
- self.cur_command_root = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/runtime-manager"
55
+ self.runtime_command_root = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/runtime-manager"
56
56
  self.platform_guid = "44bf319f-1e41-4da1-b771-2753b92b631a" # this is platform @ 9443 from the core content archive
57
57
  self.default_platform_name = (
58
58
  "Default Local OMAG Server Platform" # this from the core content archive
@@ -142,7 +142,7 @@ class RuntimeManager(Client):
142
142
  """
143
143
  server_guid = self.__get_guid__(server_guid, server_name)
144
144
  url = (
145
- f"{self.cur_command_root}/cohort-members/"
145
+ f"{self.runtime_command_root}/cohort-members/"
146
146
  f"{server_guid}/cohorts/{cohort_name}/connect"
147
147
  )
148
148
  await self._async_make_request("GET", url)
@@ -213,7 +213,7 @@ class RuntimeManager(Client):
213
213
  """
214
214
  server_guid = self.__get_guid__(server_guid, server_name)
215
215
  url = (
216
- f"{self.cur_command_root}/cohort-members/"
216
+ f"{self.runtime_command_root}/runtime-manager/cohort-members/"
217
217
  f"{server_guid}/cohorts/{cohort_name}/disconnect"
218
218
  )
219
219
  await self._async_make_request("GET", url)
@@ -281,7 +281,7 @@ class RuntimeManager(Client):
281
281
  """
282
282
  server_guid = self.__get_guid__(server_guid, server_name)
283
283
  url = (
284
- f"{self.cur_command_root}/cohort-members/"
284
+ f"{self.runtime_command_root}/cohort-members/"
285
285
  f"{server_guid}/cohorts/{cohort_name}/unregister"
286
286
  )
287
287
  await self._async_make_request("GET", url)
@@ -359,7 +359,7 @@ class RuntimeManager(Client):
359
359
  """
360
360
  server_guid = self.__get_guid__(server_guid, server_name)
361
361
  url = (
362
- f"{self.cur_command_root}/engine-hosts/"
362
+ f"{self.runtime_command_root}/engine-hosts/"
363
363
  f"{server_guid}/governance_engines/{gov_engine_name}/refresh-config"
364
364
  )
365
365
  await self._async_make_request("GET", url)
@@ -438,7 +438,7 @@ class RuntimeManager(Client):
438
438
  """
439
439
  server_guid = self.__get_guid__(server_guid, server_name)
440
440
  url = (
441
- f"{self.cur_command_root}/integration-daemons/"
441
+ f"{self.runtime_command_root}/integration-daemons/"
442
442
  f"{server_guid}/integration-connectors/{connector_name}/configuration-properties"
443
443
  )
444
444
  response = await self._async_make_request("GET", url)
@@ -520,7 +520,7 @@ class RuntimeManager(Client):
520
520
  """
521
521
  server_guid = self.__get_guid__(server_guid, server_name)
522
522
  url = (
523
- f"{self.cur_command_root}/integration-daemons/"
523
+ f"{self.runtime_command_root}/integration-daemons/"
524
524
  f"{server_guid}/integration-connectors/{connector_name}/configuration-properties"
525
525
  )
526
526
 
@@ -620,7 +620,7 @@ class RuntimeManager(Client):
620
620
  """
621
621
  server_guid = self.__get_guid__(server_guid, server_name)
622
622
  url = (
623
- f"{self.cur_command_root}/integration-daemons/"
623
+ f"{self.runtime_command_root}/integration-daemons/"
624
624
  f"{server_guid}/integration-connectors/{connector_name}/endpoint-network-address"
625
625
  )
626
626
 
@@ -707,7 +707,7 @@ class RuntimeManager(Client):
707
707
  """
708
708
  server_guid = self.__get_guid__(server_guid, server_name)
709
709
  url = (
710
- f"{self.cur_command_root}/integration-daemons/"
710
+ f"{self.runtime_command_root}/integration-daemons/"
711
711
  f"{server_guid}/integration-connectors/refresh"
712
712
  )
713
713
 
@@ -790,7 +790,7 @@ class RuntimeManager(Client):
790
790
  """
791
791
  server_guid = self.__get_guid__(server_guid, server_name)
792
792
  url = (
793
- f"{self.cur_command_root}/integration-daemons/"
793
+ f"{self.runtime_command_root}/integration-daemons/"
794
794
  f"{server_guid}/integration-connectors/restart"
795
795
  )
796
796
 
@@ -875,7 +875,7 @@ class RuntimeManager(Client):
875
875
  """
876
876
  server_guid = self.__get_guid__(server_guid, server_name)
877
877
  url = (
878
- f"{self.cur_command_root}/integration-daemons/"
878
+ f"{self.runtime_command_root}/integration-daemons/"
879
879
  f"{server_guid}/integration-groups/{integ_group_name}/refresh-config"
880
880
  )
881
881
 
@@ -959,7 +959,7 @@ class RuntimeManager(Client):
959
959
  """
960
960
  server_guid = self.__get_guid__(server_guid, server_name)
961
961
  url = (
962
- f"{self.cur_command_root}/integration-daemons/"
962
+ f"{self.runtime_command_root}/integration-daemons/"
963
963
  f"{server_guid}/integration-daemons/{server_guid}/open-lineage-events/publish"
964
964
  )
965
965
 
@@ -1040,7 +1040,7 @@ class RuntimeManager(Client):
1040
1040
  """
1041
1041
  server_guid = self.__get_guid__(server_guid, server_name)
1042
1042
  url = (
1043
- f"{self.cur_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/"
1043
+ f"{self.runtime_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/"
1044
1044
  f"archive-content"
1045
1045
  )
1046
1046
 
@@ -1129,7 +1129,7 @@ class RuntimeManager(Client):
1129
1129
 
1130
1130
  """
1131
1131
  server_guid = self.__get_guid__(server_guid, server_name)
1132
- url = f"{self.cur_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/file"
1132
+ url = f"{self.runtime_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/file"
1133
1133
 
1134
1134
  await self._async_make_request(
1135
1135
  "POST-DATA", url, archive_file, time_out=time_out
@@ -1209,7 +1209,7 @@ class RuntimeManager(Client):
1209
1209
 
1210
1210
  """
1211
1211
  server_guid = self.__get_guid__(server_guid, server_name)
1212
- url = f"{self.cur_command_root}/omag-servers/{server_guid}"
1212
+ url = f"{self.runtime_command_root}/omag-servers/{server_guid}"
1213
1213
 
1214
1214
  await self._async_make_request("DELETE", url)
1215
1215
 
@@ -1273,7 +1273,7 @@ class RuntimeManager(Client):
1273
1273
 
1274
1274
  """
1275
1275
  server_guid = self.__get_guid__(server_guid, server_name)
1276
- url = f"{self.cur_command_root}/omag-servers/{server_guid}/instance"
1276
+ url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
1277
1277
 
1278
1278
  await self._async_make_request("POST", url)
1279
1279
  return
@@ -1335,7 +1335,7 @@ class RuntimeManager(Client):
1335
1335
 
1336
1336
  """
1337
1337
  server_guid = self.__get_guid__(server_guid, server_name)
1338
- url = f"{self.cur_command_root}/omag-servers/{server_guid}/instance"
1338
+ url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
1339
1339
 
1340
1340
  await self._async_make_request("DELETE", url)
1341
1341
 
@@ -1446,7 +1446,7 @@ class RuntimeManager(Client):
1446
1446
  filter = self.default_platform_name
1447
1447
 
1448
1448
  url = (
1449
- f"{self.cur_command_root}/platforms/by-name?"
1449
+ f"{self.runtime_command_root}/platforms/by-name?"
1450
1450
  f"startFrom={start_from}&pageSize={page_size}"
1451
1451
  )
1452
1452
  if effective_time is not None:
@@ -1497,7 +1497,7 @@ class RuntimeManager(Client):
1497
1497
  filter = "OMAG Server Platform"
1498
1498
 
1499
1499
  url = (
1500
- f"{self.cur_command_root}/platforms/"
1500
+ f"{self.runtime_command_root}/platforms/"
1501
1501
  f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}"
1502
1502
  )
1503
1503
 
@@ -1591,7 +1591,7 @@ class RuntimeManager(Client):
1591
1591
  filter = "OMAG Server Platform"
1592
1592
 
1593
1593
  url = (
1594
- f"{self.cur_command_root}/platforms/"
1594
+ f"{self.runtime_command_root}/platforms/"
1595
1595
  f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}&getTemplates=true"
1596
1596
  )
1597
1597
 
@@ -1670,7 +1670,7 @@ class RuntimeManager(Client):
1670
1670
 
1671
1671
  """
1672
1672
  platform_guid = self.__get_guid__(platform_guid, platform_name)
1673
- url = f"{self.cur_command_root}/platforms/{platform_guid}/report"
1673
+ url = f"{self.runtime_command_root}/platforms/{platform_guid}/report"
1674
1674
 
1675
1675
  response = await self._async_make_request("GET", url)
1676
1676
 
@@ -1727,7 +1727,7 @@ class RuntimeManager(Client):
1727
1727
 
1728
1728
  """
1729
1729
 
1730
- url = f"{self.cur_command_root}/platforms/{platform_guid}"
1730
+ url = f"{self.runtime_command_root}/platforms/{platform_guid}"
1731
1731
 
1732
1732
  if effective_time is not None:
1733
1733
  body = {"effectiveTime": effective_time}
@@ -1798,7 +1798,7 @@ class RuntimeManager(Client):
1798
1798
 
1799
1799
  """
1800
1800
  server_guid = self.__get_guid__(server_guid, server_name)
1801
- url = f"{self.cur_command_root}/software-servers/{server_guid}"
1801
+ url = f"{self.runtime_command_root}/software-servers/{server_guid}"
1802
1802
 
1803
1803
  if effective_time is not None:
1804
1804
  body = {"effectiveTime": effective_time}
@@ -1877,7 +1877,7 @@ class RuntimeManager(Client):
1877
1877
  """
1878
1878
 
1879
1879
  url = (
1880
- f"{self.cur_command_root}/software-servers/by-name?"
1880
+ f"{self.runtime_command_root}/software-servers/by-name?"
1881
1881
  f"startFrom={start_from}&pageSize={page_size}"
1882
1882
  )
1883
1883
 
@@ -1960,7 +1960,7 @@ class RuntimeManager(Client):
1960
1960
  filter = None
1961
1961
 
1962
1962
  url = (
1963
- f"{self.cur_command_root}/software-servers/"
1963
+ f"{self.runtime_command_root}/software-servers/"
1964
1964
  f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}"
1965
1965
  )
1966
1966
 
@@ -2053,7 +2053,7 @@ class RuntimeManager(Client):
2053
2053
  filter = None
2054
2054
 
2055
2055
  url = (
2056
- f"{self.cur_command_root}/software-servers/"
2056
+ f"{self.runtime_command_root}/software-servers/"
2057
2057
  f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}&getTemplates=true"
2058
2058
  )
2059
2059
 
@@ -2131,7 +2131,7 @@ class RuntimeManager(Client):
2131
2131
 
2132
2132
  """
2133
2133
  server_guid = self.__get_guid__(server_guid, server_name)
2134
- url = f"{self.cur_command_root}/omag-servers/{server_guid}/instance/report"
2134
+ url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance/report"
2135
2135
 
2136
2136
  response = await self._async_make_request("GET", url)
2137
2137
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.8.4.35"
3
+ version = "0.8.4.36"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
File without changes
File without changes