pyegeria 0.8.4.44__tar.gz → 0.8.4.46__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 (100) hide show
  1. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/PKG-INFO +1 -1
  2. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/load_archive.py +7 -7
  3. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_gov_eng_status.py +11 -4
  4. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_related_elements.py +61 -33
  5. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/__init__.py +103 -12
  6. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/classification_manager_omvs.py +22 -172
  7. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/glossary_manager_omvs.py +1 -1
  8. pyegeria-0.8.4.46/pyegeria/tech_guids_26-09-2024 09:30.py +75 -0
  9. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyproject.toml +1 -1
  10. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/LICENSE +0 -0
  11. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/README.md +0 -0
  12. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/README.md +0 -0
  13. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/__init__.py +0 -0
  14. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_asset_graph.py +0 -0
  15. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_collection.py +0 -0
  16. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_project_dependencies.py +0 -0
  17. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_project_structure.py +0 -0
  18. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_tech_type_elements.py +0 -0
  19. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/get_tech_type_template.py +0 -0
  20. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_archives.py +0 -0
  21. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_assets.py +0 -0
  22. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_cert_types.py +0 -0
  23. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_glossary.py +0 -0
  24. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_projects.py +0 -0
  25. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_relationships.py +0 -0
  26. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_tech_types.py +0 -0
  27. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_todos.py +0 -0
  28. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cat/list_user_ids.py +0 -0
  29. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/__init__.py +0 -0
  30. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/egeria.py +0 -0
  31. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/egeria_cat.py +0 -0
  32. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/egeria_my.py +0 -0
  33. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/egeria_ops.py +0 -0
  34. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/egeria_tech.py +0 -0
  35. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/cli/ops_config.py +0 -0
  36. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/README.md +0 -0
  37. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/__init__.py +0 -0
  38. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/list_my_profile.py +0 -0
  39. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/list_my_roles.py +0 -0
  40. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/monitor_my_todos.py +0 -0
  41. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/monitor_open_todos.py +0 -0
  42. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/my/todo_actions.py +0 -0
  43. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/README.md +0 -0
  44. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/__init__.py +0 -0
  45. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/engine_actions.py +0 -0
  46. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/gov_server_actions.py +0 -0
  47. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/list_catalog_targets.py +0 -0
  48. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_asset_events.py +0 -0
  49. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_engine_activity.py +0 -0
  50. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_engine_activity_c.py +0 -0
  51. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_integ_daemon_status.py +0 -0
  52. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_platform_status.py +0 -0
  53. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/monitor_server_status.py +0 -0
  54. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/orig_monitor_server_list.py +0 -0
  55. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/orig_monitor_server_status.py +0 -0
  56. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/refresh_integration_daemon.py +0 -0
  57. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/ops/restart_integration_daemon.py +0 -0
  58. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/README.md +0 -0
  59. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/__init__.py +0 -0
  60. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/get_element_info.py +0 -0
  61. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/get_guid_info.py +0 -0
  62. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/get_tech_details.py +0 -0
  63. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_asset_types.py +0 -0
  64. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_elements.py +0 -0
  65. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_elements_for_classification.py +0 -0
  66. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_elements_x.py +0 -0
  67. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_registered_services.py +0 -0
  68. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_related_specification.py +0 -0
  69. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_relationship_types.py +0 -0
  70. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_tech_templates.py +0 -0
  71. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/list_valid_metadata_values.py +0 -0
  72. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/commands/tech/x_list_related_elements.py +0 -0
  73. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/_client.py +0 -0
  74. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/_deprecated_gov_engine.py +0 -0
  75. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/_exceptions.py +0 -0
  76. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/_globals.py +0 -0
  77. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/_validators.py +0 -0
  78. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/asset_catalog_omvs.py +0 -0
  79. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/automated_curation_omvs.py +0 -0
  80. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/collection_manager_omvs.py +0 -0
  81. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/core_omag_server_config.py +0 -0
  82. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/create_tech_guid_lists.py +0 -0
  83. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/egeria_cat_client.py +0 -0
  84. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/egeria_client.py +0 -0
  85. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/egeria_config_client.py +0 -0
  86. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/egeria_my_client.py +0 -0
  87. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/egeria_tech_client.py +0 -0
  88. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/feedback_manager_omvs.py +0 -0
  89. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/full_omag_server_config.py +0 -0
  90. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/glossary_browser_omvs.py +0 -0
  91. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/mermaid_utilities.py +0 -0
  92. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/my_profile_omvs.py +0 -0
  93. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/platform_services.py +0 -0
  94. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/project_manager_omvs.py +0 -0
  95. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/registered_info.py +0 -0
  96. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/runtime_manager_omvs.py +0 -0
  97. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/server_operations.py +0 -0
  98. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/utils.py +0 -0
  99. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/pyegeria/valid_metadata_omvs.py +0 -0
  100. {pyegeria-0.8.4.44 → pyegeria-0.8.4.46}/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.44
3
+ Version: 0.8.4.46
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -35,12 +35,13 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
35
35
 
36
36
  @click.command("load-archive")
37
37
  @click.option(
38
- "--file",
38
+ "--file_name",
39
+ prompt="Enter the name of the archive to load",
39
40
  default="content-packs/CocoComboArchive.omarchive",
40
41
  help="Full path on the Metadata Server to the archive file to load",
41
42
  )
42
43
  @click.option(
43
- "--server", default=EGERIA_METADATA_STORE, help="Egeria metadata store to load"
44
+ "--server_name", default=EGERIA_METADATA_STORE, help="Egeria metadata store to load"
44
45
  )
45
46
  @click.option(
46
47
  "--view-server", default=EGERIA_VIEW_SERVER, help="Egeria view server to connect to"
@@ -51,18 +52,17 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
51
52
  @click.option("--userid", default=EGERIA_USER, help="Egeria admin user")
52
53
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria admin password")
53
54
  @click.option("--timeout", default=120, help="Number of seconds to wait")
54
- def load_archive(file, server, view_server, url, userid, password, timeout):
55
+ def load_archive(file_name, server_name, view_server, url, userid, password, timeout):
55
56
  """Load an Open Metadata Archive"""
56
57
 
57
58
  try:
58
59
  s_client = EgeriaTech(view_server, url, userid, password)
59
60
  token = s_client.create_egeria_bearer_token()
60
61
  server_guid = None
61
- s_client.add_archive_file(
62
- file, server_guid, EGERIA_METADATA_STORE, time_out=timeout
63
- )
62
+ file_name = file_name.strip()
63
+ s_client.add_archive_file(file_name, server_guid, server_name, time_out=timeout)
64
64
 
65
- click.echo(f"Loaded archive: {file}")
65
+ click.echo(f"Loaded archive: {file_name}")
66
66
 
67
67
  except (InvalidParameterException, PropertyServerException) as e:
68
68
  print(
@@ -24,7 +24,6 @@ from pyegeria import (
24
24
  UserNotAuthorizedException,
25
25
  EgeriaTech,
26
26
  )
27
- from pyegeria.server_operations import ServerOps
28
27
 
29
28
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
30
29
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
@@ -151,19 +150,27 @@ def display_gov_eng_status(
151
150
 
152
151
  def main_live():
153
152
  parser = argparse.ArgumentParser()
154
- parser.add_argument("--server", help="Name of the server to display status for")
153
+ parser.add_argument(
154
+ "--engine_host", help="Name of the server to display status for"
155
+ )
156
+ parser.add_argument("--view_server", help="Name of the view server to use")
155
157
  parser.add_argument("--url", help="URL Platform to connect to")
156
158
  parser.add_argument("--userid", help="User Id")
157
159
  parser.add_argument("--password", help="User Password")
158
160
  parser.add_argument("--paging", help="Paging")
159
161
  args = parser.parse_args()
160
162
 
161
- server = args.server if args.server is not None else EGERIA_ENGINE_HOST
163
+ engine_host = (
164
+ args.engine_host if args.engine_host is not None else EGERIA_ENGINE_HOST
165
+ )
166
+ view_server = (
167
+ args.view_server if args.view_server is not None else EGERIA_VIEW_SERVER
168
+ )
162
169
  url = args.url if args.url is not None else EGERIA_ENGINE_HOST_URL
163
170
  userid = args.userid if args.userid is not None else EGERIA_USER
164
171
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
165
172
  paging = args.paging if args.paging is not None else False
166
- display_gov_eng_status(server, url, userid, user_pass, paging)
173
+ display_gov_eng_status(engine_host, view_server, url, userid, user_pass, paging)
167
174
 
168
175
 
169
176
  def main_paging():
@@ -32,7 +32,7 @@ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
32
32
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
33
33
  EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
34
34
  EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
35
- EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
35
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "220"))
36
36
 
37
37
 
38
38
  def list_related_elements(
@@ -49,14 +49,13 @@ def list_related_elements(
49
49
  c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
50
50
  token = c_client.create_egeria_bearer_token()
51
51
 
52
- om_typedef = c_client.get_typedef_by_name(om_type)
53
- if type(om_typedef) is str:
54
- print(
55
- f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
56
- )
57
- sys.exit(1)
58
-
59
- elements = c_client.get_related_elements(element_guid, relationship_type, om_type)
52
+ if om_type is not None:
53
+ om_typedef = c_client.get_typedef_by_name(om_type)
54
+ if type(om_typedef) is str:
55
+ print(
56
+ f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
57
+ )
58
+ sys.exit(1)
60
59
 
61
60
  def generate_table() -> Table:
62
61
  """Make a new table."""
@@ -69,33 +68,42 @@ def list_related_elements(
69
68
  caption_style="white on black",
70
69
  show_lines=True,
71
70
  box=box.ROUNDED,
72
- title=f"Elements for Open Metadata Type: '{om_type}' ",
71
+ title=f"Elements related to: '{element_guid}' ",
73
72
  expand=True,
74
73
  # width=500
75
74
  )
76
-
77
- table.add_column("Qualified Name")
78
- table.add_column("Type")
79
- table.add_column("Created")
80
- table.add_column("Home Store")
81
- table.add_column("GUID", width=38, no_wrap=True)
75
+ table.add_column("Relationship GUID", width=38, no_wrap=True)
76
+ table.add_column("Rel Header", width=38, no_wrap=True)
77
+ table.add_column("Relationship Props")
78
+ table.add_column("Related GUID", width=38, no_wrap=True)
82
79
  table.add_column("Properties")
83
- table.add_column("Classifications")
80
+ table.add_column("Element Header")
81
+
82
+ elements = c_client.get_related_elements(
83
+ element_guid, relationship_type, om_type
84
+ )
84
85
 
85
86
  if type(elements) is list:
86
87
  for element in elements:
87
- header = element["elementHeader"]
88
- el_q_name = element["properties"].get("qualifiedName", "---")
88
+ header = element["relationshipHeader"]
89
89
  el_type = header["type"]["typeName"]
90
90
  el_home = header["origin"]["homeMetadataCollectionName"]
91
91
  el_create_time = header["versions"]["createTime"][:-10]
92
92
  el_guid = header["guid"]
93
93
  el_class = header.get("classifications", "---")
94
+ rel_header_md = (
95
+ f"* Type: {el_type}\n"
96
+ f"* Home: {el_home}\n"
97
+ f"* Created: {el_create_time}\n"
98
+ )
99
+ rel_header_out = Markdown(rel_header_md)
94
100
 
95
- el_props_md = ""
96
- for prop in element["properties"].keys():
97
- el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
98
- el_props_out = Markdown(el_props_md)
101
+ rel_props_md = ""
102
+ for prop in element["relationshipProperties"].keys():
103
+ rel_props_md += (
104
+ f"* **{prop}**: {element['relationshipProperties'][prop]}\n"
105
+ )
106
+ rel_props_out = Markdown(rel_props_md)
99
107
 
100
108
  c_md = ""
101
109
  if type(el_class) is list:
@@ -112,14 +120,30 @@ def list_related_elements(
112
120
  c_md += f" * **{prop}**: {class_props[prop]}\n"
113
121
  c_md_out = Markdown(c_md)
114
122
 
123
+ rel_element = element["relatedElement"]
124
+ rel_el_header = rel_element["elementHeader"]
125
+ rel_type = rel_el_header["type"]["typeName"]
126
+ rel_home = rel_el_header["origin"]["homeMetadataCollectionName"]
127
+ rel_guid = rel_el_header["guid"]
128
+
129
+ rel_el_header_md = f"* Type: {rel_type}\n" f"* Home: {rel_home}\n"
130
+ rel_el_header_out = Markdown(rel_el_header_md)
131
+
132
+ rel_el_props_md = ""
133
+ for prop in rel_element["properties"].keys():
134
+ rel_el_props_md += (
135
+ f"* **{prop}**: {rel_element['properties'][prop]}\n"
136
+ )
137
+ rel_el_props_out = Markdown(rel_el_props_md)
138
+
115
139
  table.add_row(
116
- el_q_name,
117
- el_type,
118
- el_create_time,
119
- el_home,
120
140
  el_guid,
121
- el_props_out,
122
- c_md_out,
141
+ rel_header_out,
142
+ rel_props_out,
143
+ # el_q_name,
144
+ rel_guid,
145
+ rel_el_props_out,
146
+ rel_el_header_out,
123
147
  )
124
148
 
125
149
  return table
@@ -159,11 +183,15 @@ def main():
159
183
  password = args.password if args.password is not None else EGERIA_USER_PASSWORD
160
184
 
161
185
  try:
162
- element_guid = Prompt.ask("Guid of base element")
163
- om_type = Prompt.ask(
164
- "Enter the Open Metadata Type to find elements of:", default="Project"
186
+ element_guid = Prompt.ask("Guid of base element").strip()
187
+ om_type = Prompt.ask("Enter the Open Metadata Type to find elements of")
188
+ relationship_type = Prompt.ask("Enter the relationship type to follow")
189
+
190
+ om_type = None if len(om_type) == 0 else om_type.strip()
191
+ relationship_type = (
192
+ None if len(relationship_type) == 0 else relationship_type.strip()
165
193
  )
166
- relationship_type = Prompt.ask("Enter the relationship type to follow: ")
194
+
167
195
  list_related_elements(
168
196
  element_guid, om_type, relationship_type, server, url, userid, password
169
197
  )
@@ -84,8 +84,106 @@ from .egeria_client import Egeria
84
84
  # the use of custom connectors and templates.
85
85
  #
86
86
  #
87
+ # global template_guids, integration_guids
88
+ # TEMPLATE_GUIDS["CSV Data File"] = "13770f93-13c8-42be-9bb8-e0b1b1e52b1f"
89
+ # TEMPLATE_GUIDS["Keystore File"] = "fbcfcc0c-1652-421f-b49b-c3e1c108768f"
90
+ # TEMPLATE_GUIDS["Unity Catalog Server"] = "dcca9788-b30f-4007-b1ac-ec634aff6879"
91
+ # INTEGRATION_GUIDS["UnityCatalogInsideCatalog"] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
92
+ # INTEGRATION_GUIDS["UnityCatalogServer"] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
93
+ # INTEGRATION_GUIDS["JDBC"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
94
+ # TEMPLATE_GUIDS["Data File"] = "66d8dda9-00cf-4e59-938c-4b0583596b1e"
95
+ # TEMPLATE_GUIDS["View Server"] = "fd61ca01-390d-4aa2-a55d-426826aa4e1b"
96
+ # TEMPLATE_GUIDS["Archive File"] = "7578e504-d00f-406d-a194-3fc0a351cdf9"
97
+ # TEMPLATE_GUIDS["Unity Catalog Catalog"] = "5ee006aa-a6d6-411b-9b8d-5f720c079cae"
98
+ # TEMPLATE_GUIDS[
99
+ # "PostgreSQL Relational Database"
100
+ # ] = "3d398b3f-7ae6-4713-952a-409f3dea8520"
101
+ # INTEGRATION_GUIDS["JDBC"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
102
+ # TEMPLATE_GUIDS["Program File"] = "32d27e9c-1fdf-455a-ad2a-42b4d7d99108"
103
+ # TEMPLATE_GUIDS["FileFolder"] = "fbdd8efd-1b69-474c-bb6d-0a304b394146"
104
+ # INTEGRATION_GUIDS["ContentPacksMonitor"] = "6bb2181e-7724-4515-ba3c-877cded55980"
105
+ # INTEGRATION_GUIDS["GeneralFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
106
+ # INTEGRATION_GUIDS["SampleDataFilesMonitor"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
107
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
108
+ # TEMPLATE_GUIDS["JDBC Endpoint"] = "3d79ce50-1887-4627-ad71-ba4649aba2bc"
109
+ # TEMPLATE_GUIDS["PostgreSQL Server"] = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
110
+ # INTEGRATION_GUIDS["PostgreSQLServer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
111
+ # TEMPLATE_GUIDS["Audio Data File"] = "39b4b670-7f15-4744-a5ba-62e8edafbcee"
112
+ # TEMPLATE_GUIDS["Document File"] = "eb6f728d-fa54-4350-9807-1199cbf96851"
113
+ # TEMPLATE_GUIDS["Integration Daemon"] = "6b3516f0-dd13-4786-9601-07215f995197"
114
+ # TEMPLATE_GUIDS["XML Data File"] = "ea67ae71-c674-473e-b38b-689879d2a7d9"
115
+ # TEMPLATE_GUIDS["REST API Endpoint"] = "9ea4bff4-d193-492f-bcad-6e68c07c6f9e"
116
+ # TEMPLATE_GUIDS["Unity Catalog Schema"] = "5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e"
117
+ # TEMPLATE_GUIDS["Parquet Data File"] = "7f6cd744-79c3-4d25-a056-eeb1a91574c3"
118
+ # TEMPLATE_GUIDS["3D Image Data File"] = "0059ea2b-6292-4cac-aa6f-a80a605f1114"
119
+ # TEMPLATE_GUIDS["YAML File"] = "2221855b-2b64-4b45-a2ee-c40adc5e2a64"
120
+ # TEMPLATE_GUIDS["Metadata Access Server"] = "bd8de890-fa79-4c24-aab8-20b41b5893dd"
121
+ # TEMPLATE_GUIDS["Properties File"] = "3b281111-a0ef-4fc4-99e7-9a0ef84a7636"
122
+ # TEMPLATE_GUIDS["Vector Data File"] = "db1bec7f-55a9-40d3-91c0-a57b76d422e2"
123
+ # TEMPLATE_GUIDS["Apache Kafka Server"] = "5e1ff810-5418-43f7-b7c4-e6e062f9aff7"
124
+ # INTEGRATION_GUIDS["KafkaTopic"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
125
+ # TEMPLATE_GUIDS["Executable File"] = "3d99a163-7a13-4576-a212-784010a8302a"
126
+ # INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
127
+ # TEMPLATE_GUIDS["Unity Catalog Table"] = "6cc1e5f5-4c1e-4290-a80e-e06643ffb13d"
128
+ # TEMPLATE_GUIDS["JSON Data File"] = "c4836635-7e9e-446a-83b5-15e206b1aff3"
129
+ # TEMPLATE_GUIDS["File System"] = "522f228c-097c-4f90-9efc-26c1f2696f87"
130
+ # TEMPLATE_GUIDS["Source Code File"] = "9c7013ef-f29b-4b01-a8ea-5ea14f64c67a"
131
+ # TEMPLATE_GUIDS["Apple MacBook Pro"] = "32a9fd56-85c9-47fe-a211-9da3871bf4da"
132
+ # TEMPLATE_GUIDS["Build Instruction File"] = "fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504"
133
+ # TEMPLATE_GUIDS["Spreadsheet Data File"] = "e4fabff5-2ba9-4050-9076-6ed917970b4c"
134
+ # TEMPLATE_GUIDS["UNIX File System"] = "27117270-8667-41d0-a99a-9118f9b60199"
135
+ # TEMPLATE_GUIDS["Video Data File"] = "93b2b722-ec0f-4da4-960a-b8d4922f8bf5"
136
+ # TEMPLATE_GUIDS["Unity Catalog Function"] = "a490ba65-6104-4213-9be9-524e16fed8aa"
137
+ # TEMPLATE_GUIDS[
138
+ # "PostgreSQL Relational Database Schema"
139
+ # ] = "82a5417c-d882-4271-8444-4c6a996a8bfc"
140
+ # TEMPLATE_GUIDS["Engine Host"] = "1764a891-4234-45f1-8cc3-536af40c790d"
141
+ # TEMPLATE_GUIDS["Avro Data File"] = "9f5be428-058e-41dd-b506-3a222283b579"
142
+ # TEMPLATE_GUIDS["Unity Catalog Volume"] = "92d2d2dc-0798-41f0-9512-b10548d312b7"
143
+ # TEMPLATE_GUIDS["File"] = "ae3067c7-cc72-4a18-88e1-746803c2c86f"
144
+ # TEMPLATE_GUIDS["Apache Kafka Topic"] = "ea8f81c9-c59c-47de-9525-7cc59d1251e5"
145
+ # TEMPLATE_GUIDS["Script File"] = "dbd5e6bb-1ff8-46f4-a007-fb0485f68c92"
146
+ # TEMPLATE_GUIDS["Apache Atlas Server"] = "fe6dce45-a978-4417-ab55-17f05b8bcea7"
147
+ # TEMPLATE_GUIDS["Raster Data File"] = "47211156-f03f-4881-8526-015e695a3dac"
148
+ # TEMPLATE_GUIDS["Data Folder"] = "372a0379-7060-4c9d-8d84-bc709b31794c"
149
+ # INTEGRATION_GUIDS[
150
+ # "MaintainDataFolderLastUpdateDate"
151
+ # ] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
152
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
153
+ # TEMPLATE_GUIDS["OMAG Server Platform"] = "9b06c4dc-ddc8-47ae-b56b-28775d3a96f0"
154
+ # INTEGRATION_GUIDS["OpenAPI"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
155
+ # INTEGRATION_GUIDS["OMAGServerPlatform"] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
156
+ # INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
157
+ # INTEGRATION_GUIDS[
158
+ # "UnityCatalogInsideCatalogSynchronizer"
159
+ # ] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
160
+ # INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
161
+ # INTEGRATION_GUIDS["JDBCDatabaseCataloguer"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
162
+ # INTEGRATION_GUIDS["FilesCataloguer"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
163
+ # INTEGRATION_GUIDS["SampleDataCataloguer"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
164
+ # INTEGRATION_GUIDS[
165
+ # "OpenLineageGovernanceActionPublisher"
166
+ # ] = "206f8faf-04da-4b6f-8280-eeee3943afeb"
167
+ # INTEGRATION_GUIDS["OpenAPICataloguer"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
168
+ # INTEGRATION_GUIDS[
169
+ # "OMAGServerPlatformCataloguer"
170
+ # ] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
171
+ # INTEGRATION_GUIDS["ApacheKafkaCataloguer"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
172
+ # INTEGRATION_GUIDS[
173
+ # "UnityCatalogServerSynchronizer"
174
+ # ] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
175
+ # INTEGRATION_GUIDS["MaintainLastUpdateDate"] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
176
+ # INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7381bf"
177
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
178
+ # INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
179
+ # INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"
87
180
  global template_guids, integration_guids
88
181
  TEMPLATE_GUIDS["CSV Data File"] = "13770f93-13c8-42be-9bb8-e0b1b1e52b1f"
182
+ TEMPLATE_GUIDS["File System Directory"] = "c353fd5d-9523-4a5e-a5e2-723ae490fe54"
183
+ INTEGRATION_GUIDS["GeneralFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
184
+ INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
185
+ INTEGRATION_GUIDS["ContentPacksMonitor"] = "6bb2181e-7724-4515-ba3c-877cded55980"
186
+ INTEGRATION_GUIDS["SampleDataFilesMonitor"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
89
187
  TEMPLATE_GUIDS["Keystore File"] = "fbcfcc0c-1652-421f-b49b-c3e1c108768f"
90
188
  TEMPLATE_GUIDS["Unity Catalog Server"] = "dcca9788-b30f-4007-b1ac-ec634aff6879"
91
189
  INTEGRATION_GUIDS["UnityCatalogInsideCatalog"] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
@@ -98,13 +196,8 @@ TEMPLATE_GUIDS["Unity Catalog Catalog"] = "5ee006aa-a6d6-411b-9b8d-5f720c079cae"
98
196
  TEMPLATE_GUIDS[
99
197
  "PostgreSQL Relational Database"
100
198
  ] = "3d398b3f-7ae6-4713-952a-409f3dea8520"
101
- INTEGRATION_GUIDS["JDBC"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
199
+ INTEGRATION_GUIDS["PostgreSQLDatabase"] = "ef301220-7dfe-4c6c-bb9d-8f92d9f63823"
102
200
  TEMPLATE_GUIDS["Program File"] = "32d27e9c-1fdf-455a-ad2a-42b4d7d99108"
103
- TEMPLATE_GUIDS["FileFolder"] = "fbdd8efd-1b69-474c-bb6d-0a304b394146"
104
- INTEGRATION_GUIDS["ContentPacksMonitor"] = "6bb2181e-7724-4515-ba3c-877cded55980"
105
- INTEGRATION_GUIDS["GeneralFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
106
- INTEGRATION_GUIDS["SampleDataFilesMonitor"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
107
- INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
108
201
  TEMPLATE_GUIDS["JDBC Endpoint"] = "3d79ce50-1887-4627-ad71-ba4649aba2bc"
109
202
  TEMPLATE_GUIDS["PostgreSQL Server"] = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
110
203
  INTEGRATION_GUIDS["PostgreSQLServer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
@@ -120,8 +213,6 @@ TEMPLATE_GUIDS["YAML File"] = "2221855b-2b64-4b45-a2ee-c40adc5e2a64"
120
213
  TEMPLATE_GUIDS["Metadata Access Server"] = "bd8de890-fa79-4c24-aab8-20b41b5893dd"
121
214
  TEMPLATE_GUIDS["Properties File"] = "3b281111-a0ef-4fc4-99e7-9a0ef84a7636"
122
215
  TEMPLATE_GUIDS["Vector Data File"] = "db1bec7f-55a9-40d3-91c0-a57b76d422e2"
123
- TEMPLATE_GUIDS["Apache Kafka Server"] = "5e1ff810-5418-43f7-b7c4-e6e062f9aff7"
124
- INTEGRATION_GUIDS["KafkaTopic"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
125
216
  TEMPLATE_GUIDS["Executable File"] = "3d99a163-7a13-4576-a212-784010a8302a"
126
217
  INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
127
218
  TEMPLATE_GUIDS["Unity Catalog Table"] = "6cc1e5f5-4c1e-4290-a80e-e06643ffb13d"
@@ -142,8 +233,8 @@ TEMPLATE_GUIDS["Avro Data File"] = "9f5be428-058e-41dd-b506-3a222283b579"
142
233
  TEMPLATE_GUIDS["Unity Catalog Volume"] = "92d2d2dc-0798-41f0-9512-b10548d312b7"
143
234
  TEMPLATE_GUIDS["File"] = "ae3067c7-cc72-4a18-88e1-746803c2c86f"
144
235
  TEMPLATE_GUIDS["Apache Kafka Topic"] = "ea8f81c9-c59c-47de-9525-7cc59d1251e5"
236
+ INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7381bf"
145
237
  TEMPLATE_GUIDS["Script File"] = "dbd5e6bb-1ff8-46f4-a007-fb0485f68c92"
146
- TEMPLATE_GUIDS["Apache Atlas Server"] = "fe6dce45-a978-4417-ab55-17f05b8bcea7"
147
238
  TEMPLATE_GUIDS["Raster Data File"] = "47211156-f03f-4881-8526-015e695a3dac"
148
239
  TEMPLATE_GUIDS["Data Folder"] = "372a0379-7060-4c9d-8d84-bc709b31794c"
149
240
  INTEGRATION_GUIDS[
@@ -151,24 +242,24 @@ INTEGRATION_GUIDS[
151
242
  ] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
152
243
  INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
153
244
  TEMPLATE_GUIDS["OMAG Server Platform"] = "9b06c4dc-ddc8-47ae-b56b-28775d3a96f0"
154
- INTEGRATION_GUIDS["OpenAPI"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
155
245
  INTEGRATION_GUIDS["OMAGServerPlatform"] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
156
246
  INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
157
247
  INTEGRATION_GUIDS[
158
248
  "UnityCatalogInsideCatalogSynchronizer"
159
249
  ] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
160
250
  INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
251
+ INTEGRATION_GUIDS[
252
+ "PostgreSQLDatabaseCataloguer"
253
+ ] = "ef301220-7dfe-4c6c-bb9d-8f92d9f63823"
161
254
  INTEGRATION_GUIDS["JDBCDatabaseCataloguer"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
162
255
  INTEGRATION_GUIDS["FilesCataloguer"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
163
256
  INTEGRATION_GUIDS["SampleDataCataloguer"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
164
257
  INTEGRATION_GUIDS[
165
258
  "OpenLineageGovernanceActionPublisher"
166
259
  ] = "206f8faf-04da-4b6f-8280-eeee3943afeb"
167
- INTEGRATION_GUIDS["OpenAPICataloguer"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
168
260
  INTEGRATION_GUIDS[
169
261
  "OMAGServerPlatformCataloguer"
170
262
  ] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
171
- INTEGRATION_GUIDS["ApacheKafkaCataloguer"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
172
263
  INTEGRATION_GUIDS[
173
264
  "UnityCatalogServerSynchronizer"
174
265
  ] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
@@ -1494,169 +1494,11 @@ class ClassificationManager(Client):
1494
1494
  #
1495
1495
  # related elements
1496
1496
  #
1497
- async def _async_get_all_related_elements(
1498
- self,
1499
- element_guid: str,
1500
- open_metadata_type_name: str = None,
1501
- start_at_end: int = 1,
1502
- effective_time: str = None,
1503
- for_lineage: bool = None,
1504
- for_duplicate_processing: bool = None,
1505
- start_from: int = 0,
1506
- page_size: int = max_paging_size,
1507
- time_out: int = default_time_out,
1508
- ) -> list | str:
1509
- """
1510
- Retrieve elements linked any relationship type name. It is also possible to limit the results by
1511
- specifying a type name for the elements that should be returned. If no type name is specified then any type of
1512
- element may be returned. Async version.
1513
-
1514
- https://egeria-project.org/types/
1515
-
1516
- Parameters
1517
- ----------
1518
- element_guid: str
1519
- - the base element to get related elements for
1520
- open_metadata_type_name : str, default = None
1521
- - open metadata type to be used to restrict the search
1522
- start_at_end: int, default = 1
1523
- - The end of the relationship to start from - typically End1
1524
- effective_time: str, default = None
1525
- - Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
1526
- for_lineage: bool, default is set by server
1527
- - determines if elements classified as Memento should be returned - normally false
1528
- for_duplicate_processing: bool, default is set by server
1529
- - Normally false. Set true when the caller is part of a deduplication function
1530
- start_from: int, default = 0
1531
- - index of the list to start from (0 for start).
1532
- page_size
1533
- - maximum number of elements to return.
1534
-
1535
-
1536
- time_out: int, default = default_time_out
1537
- - http request timeout for this request
1538
-
1539
- Returns
1540
- -------
1541
- [dict] | str
1542
- Returns a string if no elements found and a list of dict of elements with the results.
1543
-
1544
- Raises
1545
- ------
1546
- InvalidParameterException
1547
- one of the parameters is null or invalid or
1548
- PropertyServerException
1549
- There is a problem adding the element properties to the metadata repository or
1550
- UserNotAuthorizedException
1551
- the requesting user is not authorized to issue this request.
1552
- """
1553
-
1554
- possible_query_params = query_string(
1555
- [
1556
- ("startFrom", start_from),
1557
- ("pageSize", page_size),
1558
- ("forLineage", for_lineage),
1559
- ("forDuplicateProcessing", for_duplicate_processing),
1560
- ("startAtEnd", start_at_end),
1561
- ]
1562
- )
1563
-
1564
- body = {
1565
- "class": "FindProperties",
1566
- "openMetadataTypeName": open_metadata_type_name,
1567
- "effectiveTime": effective_time,
1568
- }
1569
-
1570
- url = (
1571
- f"{base_path(self, self.view_server)}/elements/{element_guid}/by-relationship"
1572
- f"{possible_query_params}"
1573
- )
1574
- response: Response = await self._async_make_request(
1575
- "POST", url, body_slimmer(body), time_out=time_out
1576
- )
1577
- elements = response.json().get("elements", "No elements found")
1578
- if type(elements) is list:
1579
- if len(elements) == 0:
1580
- return "No elements found"
1581
- return elements
1582
-
1583
- def get_all_related_elements(
1584
- self,
1585
- element_guid: str,
1586
- open_metadata_type_name: str = None,
1587
- start_at_end: int = 1,
1588
- effective_time: str = None,
1589
- for_lineage: bool = None,
1590
- for_duplicate_processing: bool = None,
1591
- start_from: int = 0,
1592
- page_size: int = max_paging_size,
1593
- time_out: int = default_time_out,
1594
- ) -> list | str:
1595
- """
1596
- Retrieve elements linked via any relationship type name. It is also possible to limit the results by
1597
- specifying a type name for the elements that should be returned. If no type name is specified then any type of
1598
- element may be returned.
1599
-
1600
- https://egeria-project.org/types/
1601
-
1602
- Parameters
1603
- ----------
1604
- element_guid: str
1605
- - the base element to get related elements for
1606
- open_metadata_type_name : str, default = None
1607
- - open metadata type to be used to restrict the search
1608
- start_at_end: int, default = 1
1609
- - The end of the relationship to start from - typically End1
1610
- effective_time: str, default = None
1611
- - Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
1612
- for_lineage: bool, default is set by server
1613
- - determines if elements classified as Memento should be returned - normally false
1614
- for_duplicate_processing: bool, default is set by server
1615
- - Normally false. Set true when the caller is part of a deduplication function
1616
- start_from: int, default = 0
1617
- - index of the list to start from (0 for start).
1618
- page_size
1619
- - maximum number of elements to return.
1620
-
1621
-
1622
- time_out: int, default = default_time_out
1623
- - http request timeout for this request
1624
-
1625
- Returns
1626
- -------
1627
- [dict] | str
1628
- Returns a string if no elements found and a list of dict of elements with the results.
1629
-
1630
- Raises
1631
- ------
1632
- InvalidParameterException
1633
- one of the parameters is null or invalid or
1634
- PropertyServerException
1635
- There is a problem adding the element properties to the metadata repository or
1636
- UserNotAuthorizedException
1637
- the requesting user is not authorized to issue this request.
1638
- """
1639
-
1640
- loop = asyncio.get_event_loop()
1641
- response = loop.run_until_complete(
1642
- self._async_get_all_related_elements(
1643
- element_guid,
1644
- open_metadata_type_name,
1645
- start_at_end,
1646
- effective_time,
1647
- for_lineage,
1648
- for_duplicate_processing,
1649
- start_from,
1650
- page_size,
1651
- time_out,
1652
- )
1653
- )
1654
- return response
1655
1497
 
1656
1498
  async def _async_get_related_elements(
1657
1499
  self,
1658
1500
  element_guid: str,
1659
- relationship_type: str,
1501
+ relationship_type: str = None,
1660
1502
  open_metadata_type_name: str = None,
1661
1503
  start_at_end: int = 1,
1662
1504
  effective_time: str = None,
@@ -1667,9 +1509,9 @@ class ClassificationManager(Client):
1667
1509
  time_out: int = default_time_out,
1668
1510
  ) -> list | str:
1669
1511
  """
1670
- Retrieve elements linked any relationship type name. It is also possible to limit the results by
1671
- specifying a type name for the elements that should be returned. If no type name is specified then any type of
1672
- element may be returned. Async version.
1512
+ Retrieve elements linked by relationship type name. If the relationship type is None, then all related elements
1513
+ will be returned. It is also possible to limit the results by specifying a type name for the elements that
1514
+ should be returned. If no type name is specified then any type of element may be returned. Async version.
1673
1515
 
1674
1516
  https://egeria-project.org/types/
1675
1517
 
@@ -1677,8 +1519,9 @@ class ClassificationManager(Client):
1677
1519
  ----------
1678
1520
  element_guid: str
1679
1521
  - the base element to get related elements for
1680
- relationship_type: str
1681
- - the type of relationship to navigate to related elements
1522
+ relationship_type: str, optional, default = None
1523
+ - the type of relationship to navigate to related elements.
1524
+ If None, then all related elements will be returned.
1682
1525
  open_metadata_type_name : str, default = None
1683
1526
  - open metadata type to be used to restrict the search
1684
1527
  start_at_end: int, default = 1
@@ -1729,10 +1572,17 @@ class ClassificationManager(Client):
1729
1572
  "effectiveTime": effective_time,
1730
1573
  }
1731
1574
 
1732
- url = (
1733
- f"{base_path(self, self.view_server)}/elements/{element_guid}/by-relationship/"
1734
- f"{relationship_type}{possible_query_params}"
1735
- )
1575
+ if relationship_type is None:
1576
+ url = (
1577
+ f"{base_path(self, self.view_server)}/elements/{element_guid}/by-relationship"
1578
+ f"{possible_query_params}"
1579
+ )
1580
+ else:
1581
+ url = (
1582
+ f"{base_path(self, self.view_server)}/elements/{element_guid}/by-relationship/"
1583
+ f"{relationship_type}{possible_query_params}"
1584
+ )
1585
+
1736
1586
  response: Response = await self._async_make_request(
1737
1587
  "POST", url, body_slimmer(body), time_out=time_out
1738
1588
  )
@@ -1745,7 +1595,7 @@ class ClassificationManager(Client):
1745
1595
  def get_related_elements(
1746
1596
  self,
1747
1597
  element_guid: str,
1748
- relationship_type: str,
1598
+ relationship_type: str = None,
1749
1599
  open_metadata_type_name: str = None,
1750
1600
  start_at_end: int = 1,
1751
1601
  effective_time: str = None,
@@ -1756,9 +1606,9 @@ class ClassificationManager(Client):
1756
1606
  time_out: int = default_time_out,
1757
1607
  ) -> list | str:
1758
1608
  """
1759
- Retrieve elements linked via any relationship type name. It is also possible to limit the results by
1760
- specifying a type name for the elements that should be returned. If no type name is specified then any type of
1761
- element may be returned.
1609
+ Retrieve elements linked by relationship type name. If the relationship type is None, then all related elements
1610
+ will be returned. It is also possible to limit the results by specifying a type name for the elements that
1611
+ should be returned. If no type name is specified then any type of element may be returned.
1762
1612
 
1763
1613
  https://egeria-project.org/types/
1764
1614
 
@@ -2888,7 +2888,7 @@ class GlossaryManager(GlossaryBrowser):
2888
2888
  effective_time: str = None,
2889
2889
  starts_with: bool = False,
2890
2890
  ends_with: bool = False,
2891
- ignore_case: bool = False,
2891
+ ignore_case: bool = True,
2892
2892
  for_lineage: bool = False,
2893
2893
  for_duplicate_processing: bool = False,
2894
2894
  start_from: int = 0,
@@ -0,0 +1,75 @@
1
+ global template_guids, integration_guids
2
+ TEMPLATE_GUIDS['CSV Data File'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
3
+ TEMPLATE_GUIDS['File System Directory'] = 'c353fd5d-9523-4a5e-a5e2-723ae490fe54'
4
+ INTEGRATION_GUIDS['GeneralFilesMonitor'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
5
+ INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
6
+ INTEGRATION_GUIDS['ContentPacksMonitor'] = '6bb2181e-7724-4515-ba3c-877cded55980'
7
+ INTEGRATION_GUIDS['SampleDataFilesMonitor'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
8
+ TEMPLATE_GUIDS['Keystore File'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
9
+ TEMPLATE_GUIDS['Unity Catalog Server'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
10
+ INTEGRATION_GUIDS['UnityCatalogInsideCatalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
11
+ INTEGRATION_GUIDS['UnityCatalogServer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
12
+ INTEGRATION_GUIDS['JDBC'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
13
+ TEMPLATE_GUIDS['Data File'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
14
+ TEMPLATE_GUIDS['View Server'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
15
+ TEMPLATE_GUIDS['Archive File'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
16
+ TEMPLATE_GUIDS['Unity Catalog Catalog'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
17
+ TEMPLATE_GUIDS['PostgreSQL Relational Database'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
18
+ INTEGRATION_GUIDS['PostgreSQLDatabase'] = 'ef301220-7dfe-4c6c-bb9d-8f92d9f63823'
19
+ TEMPLATE_GUIDS['Program File'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
20
+ TEMPLATE_GUIDS['JDBC Endpoint'] = '3d79ce50-1887-4627-ad71-ba4649aba2bc'
21
+ TEMPLATE_GUIDS['PostgreSQL Server'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
22
+ INTEGRATION_GUIDS['PostgreSQLServer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
23
+ TEMPLATE_GUIDS['Audio Data File'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
24
+ TEMPLATE_GUIDS['Document File'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
25
+ TEMPLATE_GUIDS['Integration Daemon'] = '6b3516f0-dd13-4786-9601-07215f995197'
26
+ TEMPLATE_GUIDS['XML Data File'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
27
+ TEMPLATE_GUIDS['REST API Endpoint'] = '9ea4bff4-d193-492f-bcad-6e68c07c6f9e'
28
+ TEMPLATE_GUIDS['Unity Catalog Schema'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
29
+ TEMPLATE_GUIDS['Parquet Data File'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
30
+ TEMPLATE_GUIDS['3D Image Data File'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
31
+ TEMPLATE_GUIDS['YAML File'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
32
+ TEMPLATE_GUIDS['Metadata Access Server'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
33
+ TEMPLATE_GUIDS['Properties File'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
34
+ TEMPLATE_GUIDS['Vector Data File'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
35
+ TEMPLATE_GUIDS['Executable File'] = '3d99a163-7a13-4576-a212-784010a8302a'
36
+ INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
37
+ TEMPLATE_GUIDS['Unity Catalog Table'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
38
+ TEMPLATE_GUIDS['JSON Data File'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
39
+ TEMPLATE_GUIDS['File System'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
40
+ TEMPLATE_GUIDS['Source Code File'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
41
+ TEMPLATE_GUIDS['Apple MacBook Pro'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
42
+ TEMPLATE_GUIDS['Build Instruction File'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
43
+ TEMPLATE_GUIDS['Spreadsheet Data File'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
44
+ TEMPLATE_GUIDS['UNIX File System'] = '27117270-8667-41d0-a99a-9118f9b60199'
45
+ TEMPLATE_GUIDS['Video Data File'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
46
+ TEMPLATE_GUIDS['Unity Catalog Function'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
47
+ TEMPLATE_GUIDS['PostgreSQL Relational Database Schema'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
48
+ TEMPLATE_GUIDS['Engine Host'] = '1764a891-4234-45f1-8cc3-536af40c790d'
49
+ TEMPLATE_GUIDS['Avro Data File'] = '9f5be428-058e-41dd-b506-3a222283b579'
50
+ TEMPLATE_GUIDS['Unity Catalog Volume'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
51
+ TEMPLATE_GUIDS['File'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
52
+ TEMPLATE_GUIDS['Apache Kafka Topic'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
53
+ INTEGRATION_GUIDS['OpenLineageKafkaListener'] = '980b989c-de78-4e6a-a58d-51049d7381bf'
54
+ TEMPLATE_GUIDS['Script File'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
55
+ TEMPLATE_GUIDS['Raster Data File'] = '47211156-f03f-4881-8526-015e695a3dac'
56
+ TEMPLATE_GUIDS['Data Folder'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
57
+ INTEGRATION_GUIDS['MaintainDataFolderLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
58
+ INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
59
+ TEMPLATE_GUIDS['OMAG Server Platform'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
60
+ INTEGRATION_GUIDS['OMAGServerPlatform'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
61
+ INTEGRATION_GUIDS['PostgreSQLServerCataloguer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
62
+ INTEGRATION_GUIDS['UnityCatalogInsideCatalogSynchronizer'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
63
+ INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
64
+ INTEGRATION_GUIDS['PostgreSQLDatabaseCataloguer'] = 'ef301220-7dfe-4c6c-bb9d-8f92d9f63823'
65
+ INTEGRATION_GUIDS['JDBCDatabaseCataloguer'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
66
+ INTEGRATION_GUIDS['FilesCataloguer'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
67
+ INTEGRATION_GUIDS['SampleDataCataloguer'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
68
+ INTEGRATION_GUIDS['OpenLineageGovernanceActionPublisher'] = '206f8faf-04da-4b6f-8280-eeee3943afeb'
69
+ INTEGRATION_GUIDS['OMAGServerPlatformCataloguer'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
70
+ INTEGRATION_GUIDS['UnityCatalogServerSynchronizer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
71
+ INTEGRATION_GUIDS['MaintainLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
72
+ INTEGRATION_GUIDS['OpenLineageKafkaListener'] = '980b989c-de78-4e6a-a58d-51049d7381bf'
73
+ INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
74
+ INTEGRATION_GUIDS['ContentPacksCataloguer'] = '6bb2181e-7724-4515-ba3c-877cded55980'
75
+ INTEGRATION_GUIDS['OpenLineageCataloguer'] = '3347ac71-8dd2-403a-bc16-75a71be64bd7'
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.8.4.44"
3
+ version = "0.8.4.46"
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