pyegeria 5.2.0.13__py3-none-any.whl → 5.2.0.42.2__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 (146) hide show
  1. pyegeria/collection_manager_omvs.py +9 -6
  2. pyegeria/commands/README.md +2 -1
  3. pyegeria/commands/cat/__init__.py +1 -5
  4. pyegeria/commands/cat/exp_list_glossaries.py +1 -1
  5. pyegeria/commands/cat/get_asset_graph.py +1 -1
  6. pyegeria/commands/cat/get_collection.py +2 -2
  7. pyegeria/commands/cat/get_project_dependencies.py +1 -1
  8. pyegeria/commands/cat/get_project_structure.py +1 -1
  9. pyegeria/commands/cat/get_tech_type_elements.py +2 -2
  10. pyegeria/commands/cat/glossary_actions.py +9 -3
  11. pyegeria/commands/cat/list_assets.py +9 -18
  12. pyegeria/commands/cat/list_cert_types.py +1 -1
  13. pyegeria/commands/cat/list_collections.py +1 -1
  14. pyegeria/commands/cat/list_deployed_catalogs.py +5 -3
  15. pyegeria/commands/cat/list_deployed_database_schemas.py +1 -1
  16. pyegeria/commands/cat/list_deployed_databases.py +3 -4
  17. pyegeria/commands/cat/list_glossaries.py +1 -1
  18. pyegeria/commands/cat/list_projects.py +1 -1
  19. pyegeria/commands/cat/list_servers_deployed_imp.py +1 -1
  20. pyegeria/commands/cat/list_tech_type_elements.py +190 -0
  21. pyegeria/commands/cat/list_tech_types.py +36 -24
  22. pyegeria/commands/cat/list_terms.py +5 -3
  23. pyegeria/commands/cat/list_todos.py +1 -1
  24. pyegeria/commands/cat/list_user_ids.py +1 -1
  25. pyegeria/commands/cli/egeria.py +75 -77
  26. pyegeria/commands/cli/egeria_cat.py +44 -44
  27. pyegeria/commands/cli/egeria_login_tui.py +12 -4
  28. pyegeria/commands/cli/egeria_my.py +24 -28
  29. pyegeria/commands/cli/egeria_ops.py +37 -39
  30. pyegeria/commands/cli/egeria_tech.py +49 -35
  31. pyegeria/commands/cli/ops_config.py +3 -1
  32. pyegeria/commands/doc/{command-overview.md → README.md} +50 -5
  33. pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
  34. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-19 at 13.23.11.mov +0 -0
  35. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-19 at 19.56.26.mp4 +0 -0
  36. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
  37. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
  38. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
  39. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
  40. pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
  41. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
  42. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
  43. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
  44. pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
  45. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
  46. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
  47. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
  48. pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
  49. pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
  50. pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
  51. pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
  52. pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
  53. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
  54. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
  55. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
  56. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
  57. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
  58. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
  59. pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
  60. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
  61. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
  62. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
  63. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
  64. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_elements_of_om_type 2024-12-16 at 14.39.59@2x.png +0 -0
  65. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
  66. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type 2024-12-16 at 14.24.18@2x.png +0 -0
  67. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type extended 2024-12-16 at 14.28.46@2x.png +0 -0
  68. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_of_om_type_by_classification 2024-12-16 at 14.35.26@2x.png +0 -0
  69. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
  70. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
  71. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
  72. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/detailed_governance_action_processes 2024-12-16 at 15.16.26@2x.png +0 -0
  73. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
  74. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
  75. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
  76. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
  77. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
  78. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_tech_type_template_specs 2024-12-16 at 16.03.22@2x.png +0 -0
  79. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
  80. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
  81. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
  82. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/{hey_egeria: overview.md → README.md } +1 -1
  83. pyegeria/commands/my/list_my_profile.py +1 -1
  84. pyegeria/commands/my/list_my_roles.py +1 -1
  85. pyegeria/commands/my/monitor_my_todos.py +18 -6
  86. pyegeria/commands/my/monitor_open_todos.py +2 -2
  87. pyegeria/commands/my/todo_actions.py +1 -1
  88. pyegeria/commands/ops/list_archives.py +1 -1
  89. pyegeria/commands/ops/list_catalog_targets.py +1 -1
  90. pyegeria/commands/ops/load_archive.py +1 -1
  91. pyegeria/commands/ops/monitor_asset_events.py +27 -22
  92. pyegeria/commands/ops/monitor_engine_activity.py +1 -1
  93. pyegeria/commands/ops/monitor_engine_activity_c.py +1 -1
  94. pyegeria/commands/ops/monitor_gov_eng_status.py +31 -4
  95. pyegeria/commands/ops/monitor_integ_daemon_status.py +12 -9
  96. pyegeria/commands/ops/monitor_platform_status.py +2 -2
  97. pyegeria/commands/ops/monitor_server_startup.py +1 -1
  98. pyegeria/commands/ops/monitor_server_status.py +1 -1
  99. pyegeria/commands/ops/orig_monitor_server_list.py +1 -1
  100. pyegeria/commands/ops/orig_monitor_server_status.py +36 -21
  101. pyegeria/commands/ops/refresh_integration_daemon.py +2 -2
  102. pyegeria/commands/ops/restart_integration_daemon.py +2 -2
  103. pyegeria/commands/ops/table_integ_daemon_status.py +1 -1
  104. pyegeria/commands/tech/get_element_info.py +1 -1
  105. pyegeria/commands/tech/get_guid_info.py +1 -1
  106. pyegeria/commands/tech/get_tech_details.py +79 -42
  107. pyegeria/commands/tech/get_tech_type_template.py +69 -53
  108. pyegeria/commands/tech/list_anchored_elements.py +19 -16
  109. pyegeria/commands/tech/list_asset_types.py +1 -1
  110. pyegeria/commands/tech/list_elements.py +1 -1
  111. pyegeria/commands/tech/list_elements_for_classification.py +1 -1
  112. pyegeria/commands/tech/list_elements_x.py +8 -5
  113. pyegeria/commands/tech/list_gov_action_processes.py +1 -1
  114. pyegeria/commands/tech/list_registered_services.py +2 -2
  115. pyegeria/commands/tech/list_related_elements.py +1 -1
  116. pyegeria/commands/tech/list_related_specification.py +1 -1
  117. pyegeria/commands/tech/list_relationship_types.py +20 -22
  118. pyegeria/commands/tech/list_relationships.py +8 -4
  119. pyegeria/commands/tech/list_tech_templates.py +1 -1
  120. pyegeria/commands/tech/list_valid_metadata_values.py +1 -1
  121. pyegeria/commands/tech/table_tech_templates.py +1 -1
  122. pyegeria/commands/tech/x_list_related_elements.py +1 -1
  123. pyegeria/create_tech_guid_lists.py +2 -2
  124. pyegeria/glossary_manager_omvs.py +64 -1
  125. pyegeria/mermaid_utilities.py +1 -1
  126. pyegeria/metadata_explorer_omvs.py +96 -47
  127. pyegeria/server_operations.py +4 -4
  128. {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/METADATA +1 -1
  129. pyegeria-5.2.0.42.2.dist-info/RECORD +234 -0
  130. {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/entry_points.txt +2 -1
  131. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/deployed-catalogs 2024-11-20 at 16.17.43@2x.png +0 -0
  132. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.30.02@2x.png +0 -0
  133. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.31.47@2x.png +0 -0
  134. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.32.11@2x.png +0 -0
  135. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.34.19@2x.png +0 -0
  136. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.42@2x.png +0 -0
  137. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.55@2x.png +0 -0
  138. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.37.07@2x.png +0 -0
  139. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 08.46.30@2x.png +0 -0
  140. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 11.27.56@2x.png +0 -0
  141. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/catalogs 2024-11-25 at 16.28.53@2x.png +0 -0
  142. pyegeria-5.2.0.13.dist-info/RECORD +0 -195
  143. /pyegeria/commands/doc/Visual Command Reference/cat/show/assets/{Asset-graph 2024-11-20 at 15.56.42.png → asset-graph 2024-11-20 at 15.56.42.png} +0 -0
  144. /pyegeria/commands/doc/Visual Command Reference/cat/show/assets/{Assets-in-domain 2024-11-20 at 15.49.55@2x.png → assets-in-domain 2024-11-20 at 15.49.55@2x.png} +0 -0
  145. {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/LICENSE +0 -0
  146. {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/WHEEL +0 -0
@@ -14,6 +14,7 @@ import time
14
14
  from rich import box
15
15
  from rich import print
16
16
  from rich.console import Console
17
+ from rich.markdown import Markdown
17
18
  from rich.prompt import Prompt
18
19
  from rich.table import Table
19
20
 
@@ -32,7 +33,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
32
33
  EGERIA_VIEW_SERVER_URL = os.environ.get(
33
34
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
34
35
  )
35
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
36
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
36
37
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
37
38
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
38
39
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -69,16 +70,11 @@ def display_relationship_types(
69
70
  expand=True,
70
71
  )
71
72
 
72
- table.add_column("Status")
73
73
  table.add_column("Name")
74
- # table.add_column("GUID", no_wrap=True,)
75
-
74
+ table.add_column("Status")
76
75
  table.add_column("Description")
77
- table.add_column("Attrib Name")
78
- table.add_column("Attrib Status")
79
- table.add_column("Attrib Type")
80
- table.add_column("Attrib Description")
81
76
  table.add_column("Description Wiki", no_wrap=True)
77
+ table.add_column("Attributes", min_width=50)
82
78
 
83
79
  types_list = p_client.get_valid_relationship_types(type_name)
84
80
 
@@ -99,27 +95,27 @@ def display_relationship_types(
99
95
  description = types["description"]
100
96
  description_wiki = types.get("descriptionWiki", " ")
101
97
  attribute_defs = types.get("attributeDefinitions")
98
+
99
+ att_table = Table(show_lines=True)
100
+ att_table.add_column("Name")
101
+ att_table.add_column("Description")
102
+ att_table.add_column("Status")
103
+ att_table.add_column("Type")
104
+
102
105
  if attribute_defs:
106
+ att_md = True
103
107
  for attr in attribute_defs:
104
108
  attr_name = attr["attributeName"]
105
109
  attr_desc = attr["attributeDescription"]
106
110
  attr_status = attr["attributeStatus"]
107
111
  attr_type = attr["attributeType"]["name"]
108
- table.add_row(
109
- status,
110
- name,
111
- description,
112
- attr_name,
113
- attr_status,
114
- attr_type,
115
- attr_desc,
116
- description_wiki,
117
- )
112
+ att_table.add_row(attr_name, attr_desc, attr_status, attr_type)
113
+
118
114
  else:
119
- table.add_row(
120
- status, name, description, description_wiki, " ", " ", " ", " "
121
- )
115
+ att_md = False
116
+ att_out = att_table if att_md else " "
122
117
 
118
+ table.add_row(name, status, description, description_wiki, att_out)
123
119
  p_client.close_session()
124
120
  return table
125
121
 
@@ -157,7 +153,9 @@ def main():
157
153
  userid = args.userid if args.userid is not None else EGERIA_USER
158
154
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
159
155
  save_output = args.save_output if args.save_output is not None else False
160
- type_name = Prompt.ask("Enter the Type Name to retrieve:", default="AssetOwner")
156
+ type_name = Prompt.ask(
157
+ "Enter the OM Type Name to retrieve relationships for:", default="AssetOwner"
158
+ )
161
159
 
162
160
  display_relationship_types(type_name, server, url, userid, user_pass, save_output)
163
161
 
@@ -16,6 +16,7 @@ import time
16
16
  from rich import box
17
17
  from rich.console import Console
18
18
  from rich.markdown import Markdown
19
+ from rich.prompt import Prompt
19
20
  from rich.table import Table
20
21
 
21
22
  from pyegeria import (
@@ -23,6 +24,7 @@ from pyegeria import (
23
24
  PropertyServerException,
24
25
  UserNotAuthorizedException,
25
26
  ClassificationManager,
27
+ max_paging_size,
26
28
  )
27
29
 
28
30
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
@@ -32,7 +34,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
32
34
  EGERIA_VIEW_SERVER_URL = os.environ.get(
33
35
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
34
36
  )
35
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
37
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
36
38
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
37
39
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
38
40
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -87,7 +89,7 @@ def list_relationships(
87
89
  table.add_column("Properties", min_width=40)
88
90
 
89
91
  rel_list = g_client.get_relationships(
90
- search_string, page_size=100, time_out=time_out
92
+ search_string, page_size=max_paging_size, time_out=time_out
91
93
  )
92
94
  if type(rel_list) is str:
93
95
  return table
@@ -164,8 +166,10 @@ def main():
164
166
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
165
167
  time_out = args.time_out if args.time_out is not None else 60
166
168
  try:
167
- # search_string = Prompt.ask("Enter an asset search string:", default="*")
168
- search_string = "Certification"
169
+ search_string = Prompt.ask(
170
+ "Enter an asset search string:", default="Certification"
171
+ )
172
+
169
173
  list_relationships(search_string, server, url, userid, user_pass, time_out)
170
174
  except KeyboardInterrupt:
171
175
  pass
@@ -29,7 +29,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
29
29
  EGERIA_VIEW_SERVER_URL = os.environ.get(
30
30
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
31
31
  )
32
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
32
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
33
33
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
34
34
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
35
35
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -35,7 +35,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
35
35
  EGERIA_VIEW_SERVER_URL = os.environ.get(
36
36
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
37
37
  )
38
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
38
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
39
39
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
40
40
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
41
41
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -31,7 +31,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
31
31
  EGERIA_VIEW_SERVER_URL = os.environ.get(
32
32
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
33
33
  )
34
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
34
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
35
35
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
36
36
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
37
37
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -34,7 +34,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
34
34
  EGERIA_VIEW_SERVER_URL = os.environ.get(
35
35
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
36
36
  )
37
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
37
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
38
38
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
39
39
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
40
40
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
@@ -82,10 +82,10 @@ def build_global_guid_lists(
82
82
  )
83
83
  #
84
84
  # Ok - now lets harvest integration connectors using get_integration_daemon_status from ServerOps
85
- # Assume that integration daemon called integration-daemon
85
+ # Assume that integration daemon called integration_daemon
86
86
  #
87
87
  s_client = ServerOps(
88
- "integration-daemon", url, user_id=user_id, user_pwd=user_pwd
88
+ "integration_daemon", url, user_id=user_id, user_pwd=user_pwd
89
89
  )
90
90
  integ_status = s_client.get_integration_daemon_status()
91
91
 
@@ -2470,7 +2470,70 @@ class GlossaryManager(GlossaryBrowser):
2470
2470
  )
2471
2471
  )
2472
2472
 
2473
- return
2473
+ async def _async_undo_term_update(self, glossary_term_guid: str) -> None:
2474
+ """Undo an update to a glossary term
2475
+
2476
+ Async Version.
2477
+
2478
+ Parameters
2479
+ ----------
2480
+ glossary_term_guid: str
2481
+ Unique identifier for the source glossary term.
2482
+
2483
+ Returns
2484
+ -------
2485
+ None
2486
+
2487
+ Raises
2488
+ ------
2489
+ InvalidParameterException
2490
+ If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
2491
+ PropertyServerException
2492
+ Raised by the server when an issue arises in processing a valid request.
2493
+ NotAuthorizedException
2494
+ The principle specified by the user_id does not have authorization for the requested action.
2495
+ Notes
2496
+ -----
2497
+ This creates a new version with the state of the term before the last update.
2498
+
2499
+ """
2500
+
2501
+ validate_guid(glossary_term_guid)
2502
+
2503
+ url = (
2504
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/terms/"
2505
+ f"{glossary_term_guid}/undo"
2506
+ )
2507
+
2508
+ await self._async_make_request("POST", url)
2509
+
2510
+ def undo_term_update(self, glossary_term_guid: str) -> None:
2511
+ """Undo an update to a glossary term
2512
+
2513
+ Parameters
2514
+ ----------
2515
+ glossary_term_guid: str
2516
+ Unique identifier for the source glossary term.
2517
+
2518
+ Returns
2519
+ -------
2520
+ None
2521
+
2522
+ Raises
2523
+ ------
2524
+ InvalidParameterException
2525
+ If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
2526
+ PropertyServerException
2527
+ Raised by the server when an issue arises in processing a valid request.
2528
+ NotAuthorizedException
2529
+ The principle specified by the user_id does not have authorization for the requested action.
2530
+ Notes
2531
+ -----
2532
+ This creates a new version with the state of the term before the last update.
2533
+
2534
+ """
2535
+ loop = asyncio.get_event_loop()
2536
+ loop.run_until_complete(self._async_undo_term_update(glossary_term_guid))
2474
2537
 
2475
2538
  async def _async_get_terms_for_category(
2476
2539
  self,
@@ -33,7 +33,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
33
33
  EGERIA_VIEW_SERVER_URL = os.environ.get(
34
34
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
35
35
  )
36
- EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
36
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
37
37
  EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
38
38
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
39
39
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")