pyegeria 0.2.4__py3-none-any.whl → 5.3.0.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyegeria/README.md +35 -0
- pyegeria/__init__.py +345 -14
- pyegeria/_client.py +376 -126
- pyegeria/_deprecated_gov_engine.py +451 -0
- pyegeria/_exceptions.py +6 -6
- pyegeria/_globals.py +7 -1
- pyegeria/_validators.py +9 -6
- pyegeria/asset_catalog_omvs.py +807 -0
- pyegeria/automated_curation_omvs.py +3760 -0
- pyegeria/classification_manager_omvs.py +5238 -0
- pyegeria/collection_manager_omvs.py +2727 -0
- pyegeria/commands/README.md +47 -0
- pyegeria/commands/__init__.py +22 -0
- pyegeria/commands/cat/README.md +16 -0
- pyegeria/commands/cat/__init__.py +1 -0
- pyegeria/commands/cat/exp_list_glossaries.py +156 -0
- pyegeria/commands/cat/get_asset_graph.py +319 -0
- pyegeria/commands/cat/get_collection.py +148 -0
- pyegeria/commands/cat/get_project_dependencies.py +168 -0
- pyegeria/commands/cat/get_project_structure.py +168 -0
- pyegeria/commands/cat/get_tech_type_elements.py +174 -0
- pyegeria/commands/cat/glossary_actions.py +362 -0
- pyegeria/commands/cat/list_assets.py +176 -0
- pyegeria/commands/cat/list_cert_types.py +194 -0
- pyegeria/commands/cat/list_collections.py +162 -0
- pyegeria/commands/cat/list_deployed_catalogs.py +217 -0
- pyegeria/commands/cat/list_deployed_database_schemas.py +251 -0
- pyegeria/commands/cat/list_deployed_databases.py +202 -0
- pyegeria/commands/cat/list_glossaries.py +150 -0
- pyegeria/commands/cat/list_projects.py +221 -0
- pyegeria/commands/cat/list_servers_deployed_imp.py +158 -0
- pyegeria/commands/cat/list_tech_type_elements.py +190 -0
- pyegeria/commands/cat/list_tech_types.py +140 -0
- pyegeria/commands/cat/list_terms.py +242 -0
- pyegeria/commands/cat/list_todos.py +189 -0
- pyegeria/commands/cat/list_user_ids.py +145 -0
- pyegeria/commands/cli/__init__.py +13 -0
- pyegeria/commands/cli/egeria.py +1844 -0
- pyegeria/commands/cli/egeria_cat.py +638 -0
- pyegeria/commands/cli/egeria_login_tui.py +313 -0
- pyegeria/commands/cli/egeria_my.py +248 -0
- pyegeria/commands/cli/egeria_ops.py +502 -0
- pyegeria/commands/cli/egeria_tech.py +618 -0
- pyegeria/commands/cli/ops_config.py +45 -0
- pyegeria/commands/cli/txt_custom_v2.tcss +19 -0
- pyegeria/commands/doc/README.md +145 -0
- pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
- 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
- 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
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
- pyegeria/commands/doc/glossary/basic-glossary-tui.md +109 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-create-term 2024-11-06 at 20.48.29.png +0 -0
- pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
- pyegeria/commands/doc/glossary/images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png +0 -0
- pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
- pyegeria/commands/doc/glossary/images/out-exported-terms 2024-11-06 at 21.06.32.png +0 -0
- pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-terms-for-example 2024-11-06 at 16.40.12.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-terms-second 2024-11-06 at 16.45.13.png +0 -0
- pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
- pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
- pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
- pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-create-term 2024-11-06 at 20.46.35.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-list-terms-second 2024-11-06 at 16.46.34.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
- pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/README.md +346 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731421782704.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731422134920.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria 2024-11-12 at 20.38.43.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria cat 2024-11-12 at 21.41.43.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-list 2024-11-12 at 16.45.26.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-live 2024-11-12 at 16.44.12@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status 2024-11-10 at 18.15.42@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status-full 2024-11-10 at 18.25.14@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/short-cut commands 2024-11-12 at 22.22.13.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-integration-status-paging.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-load-archive 2024-11-10 at 19.19.09@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status 2024-11-10 at 18.52.01@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-status-paging 2024-11-12 at 16.26.14@2x.png +0 -0
- pyegeria/commands/my/README.md +17 -0
- pyegeria/commands/my/__init__.py +0 -0
- pyegeria/commands/my/list_my_profile.py +163 -0
- pyegeria/commands/my/list_my_roles.py +151 -0
- pyegeria/commands/my/monitor_my_todos.py +205 -0
- pyegeria/commands/my/monitor_open_todos.py +175 -0
- pyegeria/commands/my/todo_actions.py +242 -0
- pyegeria/commands/ops/README.md +24 -0
- pyegeria/commands/ops/__init__.py +22 -0
- pyegeria/commands/ops/gov_server_actions.py +177 -0
- pyegeria/commands/ops/list_archives.py +161 -0
- pyegeria/commands/ops/list_catalog_targets.py +203 -0
- pyegeria/commands/ops/load_archive.py +75 -0
- pyegeria/commands/ops/monitor_asset_events.py +107 -0
- pyegeria/commands/ops/monitor_engine_activity.py +270 -0
- pyegeria/commands/ops/monitor_engine_activity_c.py +286 -0
- pyegeria/commands/ops/monitor_gov_eng_status.py +288 -0
- pyegeria/commands/ops/monitor_integ_daemon_status.py +321 -0
- pyegeria/commands/ops/monitor_platform_status.py +188 -0
- pyegeria/commands/ops/monitor_server_startup.py +117 -0
- pyegeria/commands/ops/monitor_server_status.py +182 -0
- pyegeria/commands/ops/orig_monitor_server_list.py +140 -0
- pyegeria/commands/ops/orig_monitor_server_status.py +124 -0
- pyegeria/commands/ops/refresh_integration_daemon.py +83 -0
- pyegeria/commands/ops/restart_integration_daemon.py +82 -0
- pyegeria/commands/ops/table_integ_daemon_status.py +237 -0
- pyegeria/commands/ops/x_engine_actions.py +76 -0
- pyegeria/commands/tech/README.md +24 -0
- pyegeria/commands/tech/__init__.py +0 -0
- pyegeria/commands/tech/get_element_info.py +144 -0
- pyegeria/commands/tech/get_guid_info.py +134 -0
- pyegeria/commands/tech/get_tech_details.py +173 -0
- pyegeria/commands/tech/get_tech_type_template.py +166 -0
- pyegeria/commands/tech/list_anchored_elements.py +205 -0
- pyegeria/commands/tech/list_asset_types.py +123 -0
- pyegeria/commands/tech/list_elements.py +168 -0
- pyegeria/commands/tech/list_elements_for_classification.py +171 -0
- pyegeria/commands/tech/list_elements_x.py +191 -0
- pyegeria/commands/tech/list_gov_action_processes.py +139 -0
- pyegeria/commands/tech/list_registered_services.py +180 -0
- pyegeria/commands/tech/list_related_elements.py +207 -0
- pyegeria/commands/tech/list_related_specification.py +169 -0
- pyegeria/commands/tech/list_relationship_types.py +164 -0
- pyegeria/commands/tech/list_relationships.py +179 -0
- pyegeria/commands/tech/list_tech_templates.py +360 -0
- pyegeria/commands/tech/list_valid_metadata_values.py +178 -0
- pyegeria/commands/tech/table_tech_templates.py +238 -0
- pyegeria/commands/tech/x_list_related_elements.py +165 -0
- pyegeria/core_omag_server_config.py +550 -313
- pyegeria/create_tech_guid_lists.py +105 -0
- pyegeria/egeria_cat_client.py +78 -0
- pyegeria/egeria_client.py +117 -0
- pyegeria/egeria_config_client.py +45 -0
- pyegeria/egeria_my_client.py +56 -0
- pyegeria/egeria_tech_client.py +93 -0
- pyegeria/feedback_manager_omvs.py +4573 -0
- pyegeria/full_omag_server_config.py +1337 -0
- pyegeria/glossary_browser_omvs.py +2507 -0
- pyegeria/glossary_manager_omvs.py +3597 -0
- pyegeria/mermaid_utilities.py +218 -0
- pyegeria/metadata_explorer_omvs.py +2371 -0
- pyegeria/my_profile_omvs.py +1021 -0
- pyegeria/platform_services.py +259 -218
- pyegeria/project_manager_omvs.py +1854 -0
- pyegeria/registered_info.py +111 -108
- pyegeria/runtime_manager_omvs.py +2299 -0
- pyegeria/server_operations.py +178 -71
- pyegeria/template_manager_omvs.py +1414 -0
- pyegeria/utils.py +75 -85
- pyegeria/valid_metadata_omvs.py +1911 -0
- pyegeria/x_action_author_omvs.py +200 -0
- pyegeria-5.3.0.dev3.dist-info/METADATA +70 -0
- pyegeria-5.3.0.dev3.dist-info/RECORD +232 -0
- {pyegeria-0.2.4.dist-info → pyegeria-5.3.0.dev3.dist-info}/WHEEL +1 -1
- pyegeria-5.3.0.dev3.dist-info/entry_points.txt +81 -0
- pyegeria/config.toml +0 -11
- pyegeria/curation_omvs.py +0 -458
- pyegeria/exceptions.py +0 -382
- pyegeria/glossary_omvs.py +0 -639
- pyegeria/gov_engine.py +0 -573
- pyegeria-0.2.4.dist-info/METADATA +0 -57
- pyegeria-0.2.4.dist-info/RECORD +0 -19
- {pyegeria-0.2.4.dist-info/licenses → pyegeria-5.3.0.dev3.dist-info}/LICENSE +0 -0
pyegeria/exceptions.py
DELETED
@@ -1,382 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
Definitions, utilities and exceptions in support of the Egeria Python Client package.
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
import json
|
10
|
-
from enum import Enum
|
11
|
-
|
12
|
-
"""
|
13
|
-
|
14
|
-
The following definitions are used in creating Exception messages.
|
15
|
-
They mirror similar definitions in the Egeria core.
|
16
|
-
Note that not all of the definitions are currently used - they merely serve as placeholders for future extensions.
|
17
|
-
|
18
|
-
"""
|
19
|
-
|
20
|
-
|
21
|
-
class EgeriaErrorCode(Enum):
|
22
|
-
""" Egeria error codes """
|
23
|
-
|
24
|
-
def __str__(self):
|
25
|
-
return (
|
26
|
-
"http_error_code="
|
27
|
-
+ self.value["http_error_code"]
|
28
|
-
+ "messageId="
|
29
|
-
+ self.value["message_id"]
|
30
|
-
+ ", message="
|
31
|
-
+ self.value["message_template"]
|
32
|
-
+ ", systemAction="
|
33
|
-
+ self.value["system_action"]
|
34
|
-
+ ", userAction="
|
35
|
-
+ self.value["user_action"]
|
36
|
-
)
|
37
|
-
|
38
|
-
|
39
|
-
class OMAGServerInstanceErrorCode(EgeriaErrorCode):
|
40
|
-
""" OMAGServer instance error codes """
|
41
|
-
|
42
|
-
BAD_SERVER_SECURITY_CONNECTION = dict(
|
43
|
-
https_error_code="400",
|
44
|
-
message_id="OMAG-MULTI-TENANT-400-001",
|
45
|
-
message_template="The OMAG server {0} has been configured with a bad connection to its security connector."
|
46
|
-
+ " Error message is {1}. Connection is {2}",
|
47
|
-
system_action="The system is unable to validate the users issuing requests to this server.",
|
48
|
-
user_action="Review the error message to determine the cause of the problem.",
|
49
|
-
)
|
50
|
-
|
51
|
-
"""
|
52
|
-
OMAG-MULTI-TENANT-400-002 - The OMAG server {0} has been requested to shut down but the following services are
|
53
|
-
still running: {1}
|
54
|
-
"""
|
55
|
-
SERVICES_NOT_SHUTDOWN = dict(
|
56
|
-
https_error_code="400",
|
57
|
-
message_id="OMAG-MULTI-TENANT-400-002",
|
58
|
-
message_template="The OMAG server {0} has been requested to shutdown but the following services " +
|
59
|
-
"are still running: {1}",
|
60
|
-
system_action="The system is unable to shutdown the server correctly.",
|
61
|
-
user_action="Review other error messages to determine the cause of the problem."
|
62
|
-
+ " This is likely to be a logic error in the services listed in the message",
|
63
|
-
)
|
64
|
-
|
65
|
-
"""
|
66
|
-
OMAG-MULTI-TENANT-400-003 - Method {0} called on behalf of the {1} service is unable to create a client-side
|
67
|
-
open metadata topic connection because the topic name is not configured in the configuration for this service.
|
68
|
-
"""
|
69
|
-
NO_TOPIC_INFORMATION = dict(
|
70
|
-
https_error_code="400",
|
71
|
-
message_id="OMAG-MULTI-TENANT-400-003",
|
72
|
-
message_template="Method {0} called on behalf of the {1} service is unable to create a client-side open "
|
73
|
-
+ "metadata topic connection because the topic name is not configured in the configuration "
|
74
|
-
+ "for this service.",
|
75
|
-
system_action="This is a configuration error and an exception is sent to the requester.",
|
76
|
-
user_action="Correct the configuration of the access service to include the name of the topic.",
|
77
|
-
)
|
78
|
-
|
79
|
-
"""
|
80
|
-
OMAG-MULTI-TENANT-400-004 - The connector provider class name {0} does not create a connector of class {1}
|
81
|
-
which is required for the {2}
|
82
|
-
"""
|
83
|
-
NOT_CORRECT_CONNECTOR_PROVIDER = dict(
|
84
|
-
https_error_code="400",
|
85
|
-
message_id="OMAG-MULTI-TENANT-400-004",
|
86
|
-
message_template="The connector provider class name {0} does not create a connector of class {1} which is"
|
87
|
-
+ " required for the {2}",
|
88
|
-
system_action="An invalid parameter exception is returned to the caller.",
|
89
|
-
user_action="Either change the connector or the hosting environment because the current"
|
90
|
-
+ " combination is not compatible.",
|
91
|
-
)
|
92
|
-
|
93
|
-
"""
|
94
|
-
OMAG-MULTI-TENANT-404-001 - The OMAG Server {0} is not available to service a request from user {1}
|
95
|
-
"""
|
96
|
-
SERVER_NOT_AVAILABLE = dict(
|
97
|
-
https_error_code="404",
|
98
|
-
message_id="OMAG-MULTI-TENANT-404-001",
|
99
|
-
message_template="The OMAG Server {0} is not available to service a request from user {1}",
|
100
|
-
system_action="The system is unable to process the request because the server"
|
101
|
-
+ " is not running on the called platform.",
|
102
|
-
user_action="Verify that the correct server is being called on the correct platform and that this server "
|
103
|
-
+ "is running. Retry the request when the server is available.",
|
104
|
-
)
|
105
|
-
|
106
|
-
"""
|
107
|
-
OMAG-MULTI-TENANT-404-002- The {0} service is not available on OMAG Server {1} to handle a request from user {2}
|
108
|
-
"""
|
109
|
-
SERVICE_NOT_AVAILABLE = dict(
|
110
|
-
https_error_code="404",
|
111
|
-
message_id="OMAG-MULTI-TENANT-404-002",
|
112
|
-
message_template="The {0} service is not available on OMAG Server {1} to handle a request from user {2}",
|
113
|
-
system_action="The system is unable to process the request because the service is not available.",
|
114
|
-
user_action="Verify that the correct server is being called on the correct platform and that the "
|
115
|
-
+ "requested service is configured to run there. "
|
116
|
-
+ "Once the correct environment is in place, retry the request.",
|
117
|
-
)
|
118
|
-
|
119
|
-
"""
|
120
|
-
OMAG-MULTI-TENANT-404-003 - The server name is not available for the {0} operation
|
121
|
-
"""
|
122
|
-
SERVER_NAME_NOT_AVAILABLE = dict(
|
123
|
-
https_error_code="404",
|
124
|
-
message_id="OMAG-MULTI-TENANT-404-003",
|
125
|
-
message_template="The server name is not available for the {0} operation",
|
126
|
-
system_action="The system is unable to return the server name because it is not available.",
|
127
|
-
user_action="Check that the server where the access service is running initialized correctly. "
|
128
|
-
+ "Correct any errors discovered and retry the request when the open metadata services are available.",
|
129
|
-
)
|
130
|
-
|
131
|
-
"""
|
132
|
-
OMAG-MULTI-TENANT-404-004 - The open metadata repository services are not initialized for the {0} operation
|
133
|
-
"""
|
134
|
-
OMRS_NOT_INITIALIZED = dict(
|
135
|
-
https_error_code="404",
|
136
|
-
message_id="OMAG-MULTI-TENANT-404-004",
|
137
|
-
message_template="The open metadata repository services are not initialized for the {0} operation",
|
138
|
-
system_action="The system is unable to connect to the open metadata repository services because"
|
139
|
-
+ " they are not running in this server.",
|
140
|
-
user_action="Check that the server where the called service is running initialized correctly. "
|
141
|
-
+ "Correct any errors discovered and retry the request when the open metadata services are available.",
|
142
|
-
)
|
143
|
-
|
144
|
-
"""
|
145
|
-
OMAG-MULTI-TENANT-404-005 - The open metadata repository services are not available for the {0} operation
|
146
|
-
"""
|
147
|
-
OMRS_NOT_AVAILABLE = (
|
148
|
-
dict(
|
149
|
-
https_error_code="404",
|
150
|
-
message_id="OMAG-MULTI-TENANT-404-005",
|
151
|
-
message_template="The open metadata repository services are not available for the {0} operation",
|
152
|
-
system_action="The system is unable to connect to the open metadata repository services because"
|
153
|
-
" they are not in the correct state to be called.",
|
154
|
-
user_action="Check that the server where the called service is running initialized correctly and is not"
|
155
|
-
+ " in the process of shutting down. Correct any errors discovered and retry the"
|
156
|
-
+ " request when the open metadata repository services are available.",
|
157
|
-
),
|
158
|
-
)
|
159
|
-
|
160
|
-
"""
|
161
|
-
OMAG-MULTI-TENANT-500-003 - Method {0} called on behalf of the {1} service detected a {2} exception when
|
162
|
-
creating an open metadata topic connection because the connector provider is incorrect.
|
163
|
-
The error message was {3}
|
164
|
-
"""
|
165
|
-
BAD_TOPIC_CONNECTOR_PROVIDER = dict(
|
166
|
-
http_error_code="500",
|
167
|
-
message_id="OMAG-MULTI-TENANT-500-003",
|
168
|
-
message_template="Method {0} called on behalf of the {1} service detected a {2} exception when creating an "
|
169
|
-
+ "open metadata topic connection because the connector provider is incorrect. The error message was {3}",
|
170
|
-
system_action="This is an internal error. The access service is not using a valid connector provider.",
|
171
|
-
user_action="Raise an issue on Egeria's GitHub and work with the Egeria community to resolve.",
|
172
|
-
)
|
173
|
-
|
174
|
-
|
175
|
-
class OMAGCommonErrorCode(EgeriaErrorCode):
|
176
|
-
CLIENT_SIDE_REST_API_ERROR = dict(
|
177
|
-
http_error_code="503",
|
178
|
-
message_id="CLIENT-SIDE-REST-API-CONNECTOR-503-002",
|
179
|
-
message_template="A client-side error {0} was received by method {1} from API call {2} during the call {3}."
|
180
|
-
+ " The error message was {4}",
|
181
|
-
system_action="The client has issued a call to the open metadata access service REST API in a remote server"
|
182
|
-
+ " and has received an exception from the local client libraries.",
|
183
|
-
user_action="Review the error message to determine the cause of the error. Check that the server is running"
|
184
|
-
+ " and the URL is correct. Look for errors in the local server's console to understand and"
|
185
|
-
+ " correct the cause of the error. Then rerun the request",
|
186
|
-
)
|
187
|
-
|
188
|
-
EXCEPTION_RESPONSE_FROM_API = dict(
|
189
|
-
http_error_code="503",
|
190
|
-
message_id="SERVER-SIDE-REST-API-ERROR-503-003 ",
|
191
|
-
message_template="A {0} exception was received from REST API call {1} to server {2}: error message was: {3}",
|
192
|
-
system_action="The system has issued a call to an open metadata access service REST API in a remote server"
|
193
|
-
+ " and has received an exception response.",
|
194
|
-
user_action="The error message should indicate the cause of the error. "
|
195
|
-
+ "Otherwise look for errors in the remote server's audit log and console to understand and "
|
196
|
-
+ "correct the source of the error.",
|
197
|
-
)
|
198
|
-
|
199
|
-
SERVER_URL_NOT_SPECIFIED = dict(
|
200
|
-
http_error_code="400",
|
201
|
-
message_id="OMAG-COMMON-400-001",
|
202
|
-
message_template="The OMAG Server Platform URL is null",
|
203
|
-
system_action="The system is unable to identify the OMAG Server Platform.",
|
204
|
-
user_action="Create a new client and pass the URL for the server on the constructor.",
|
205
|
-
)
|
206
|
-
|
207
|
-
SERVER_URL_MALFORMED = dict(
|
208
|
-
http_error_code="400",
|
209
|
-
message_id="OMAG-COMMON-400-002",
|
210
|
-
message_template="The OMAS Server URL: {0} is not in a recognized format",
|
211
|
-
system_action="The system is unable to connect to the OMAG Server Platform to fulfill any requests.",
|
212
|
-
user_action="Create a new client and pass the correct URL for the server on the constructor.",
|
213
|
-
)
|
214
|
-
|
215
|
-
SERVER_NAME_NOT_SPECIFIED = dict(
|
216
|
-
http_error_code="400",
|
217
|
-
message_id="OMAG-COMMON-400-003",
|
218
|
-
message_template="The OMAG Server name is null",
|
219
|
-
system_action="The system is unable to locate to the OMAG Server to fulfill any request.",
|
220
|
-
user_action="Create a new client and pass the correct name for the server on the constructor.",
|
221
|
-
)
|
222
|
-
|
223
|
-
NULL_USER_ID = dict(
|
224
|
-
http_error_code="400",
|
225
|
-
message_id="OMAG-COMMON-400-004",
|
226
|
-
message_template="The user identifier {0} passed on the operation is null",
|
227
|
-
system_action="The system is unable to process the request without a user id..",
|
228
|
-
user_action="Correct the code in the caller to provide the user id.",
|
229
|
-
)
|
230
|
-
|
231
|
-
NULL_GUID = dict(
|
232
|
-
http_error_code="400",
|
233
|
-
message_id="OMAG-COMMON-400-005",
|
234
|
-
message_template="The unique identifier (guid) passed is null or not a string",
|
235
|
-
system_action="The system is unable to process the request without a guid.",
|
236
|
-
user_action="Correct the code in the caller to provide the guid.",
|
237
|
-
)
|
238
|
-
|
239
|
-
NULL_NAME = dict(
|
240
|
-
http_error_code="400",
|
241
|
-
message_id="OMAG-COMMON-400-006",
|
242
|
-
message_template="The name passed on the parameter of the operation is null",
|
243
|
-
system_action="The system is unable to process the request without a name.",
|
244
|
-
user_action="Correct the code in the caller to provide the name on the parameter.",
|
245
|
-
)
|
246
|
-
|
247
|
-
NULL_ARRAY_PARAMETER = dict(
|
248
|
-
http_error_code="400",
|
249
|
-
message_id="OMAG-COMMON-400-007",
|
250
|
-
message_template="The array value passed on the {0} parameter of the {1} operation is null or empty",
|
251
|
-
system_action="The system is unable to process the request without this value.",
|
252
|
-
user_action="Correct the code in the caller to provide the array.",
|
253
|
-
)
|
254
|
-
|
255
|
-
NEGATIVE_START_FROM = dict(
|
256
|
-
http_error_code="400",
|
257
|
-
message_id="OMAG-COMMON-400-008",
|
258
|
-
message_template="The starting point for the results {0}, passed on the {1} parameter of the {2}"
|
259
|
-
+ " operation, is negative",
|
260
|
-
system_action="The system is unable to process the request with this invalid value."
|
261
|
-
+ "It should be zero for the start of the values, or a number greater than 0"
|
262
|
-
+ "to start partway down the list.",
|
263
|
-
user_action="Correct the code in the caller to provide a non-negative value for the starting point.",
|
264
|
-
)
|
265
|
-
|
266
|
-
NEGATIVE_PAGE_SIZE = dict(
|
267
|
-
http_error_code="400",
|
268
|
-
message_id="OMAG-COMMON-400-009",
|
269
|
-
message_template="The page size for the results {0}, passed on the {1} parameter of the {2} operation, " +
|
270
|
-
"is negative",
|
271
|
-
system_action="The system is unable to process the request with this invalid value. "
|
272
|
-
+ "It should be zero to return all the result, or greater than zero to set a maximum.",
|
273
|
-
user_action="Correct the code in the caller to provide a non-negative value for the page size.",
|
274
|
-
)
|
275
|
-
|
276
|
-
MAX_PAGE_SIZE = dict(
|
277
|
-
http_error_code="400",
|
278
|
-
message_id="OMAG-COMMON-400-010",
|
279
|
-
message_template=(
|
280
|
-
"The number of records to return, {0}, passed on the {1} parameter of the {2} operation, "
|
281
|
-
+ "is greater than the allowable maximum of {3}"
|
282
|
-
),
|
283
|
-
system_action="The system is unable to process the request with this page size value.",
|
284
|
-
user_action="Correct the code in the caller to provide a smaller page size.",
|
285
|
-
)
|
286
|
-
|
287
|
-
NULL_ENUM = dict(
|
288
|
-
http_error_code="400",
|
289
|
-
message_id="OMAG-COMMON-400-012",
|
290
|
-
message_template="The enumeration value passed on the {0} parameter of the {1} operation is null",
|
291
|
-
system_action="The system is unable to process the request without a enumeration value.",
|
292
|
-
user_action="Correct the code in the caller to provide the enumeration value.",
|
293
|
-
)
|
294
|
-
|
295
|
-
NULL_TEXT = dict(
|
296
|
-
http_error_code="400",
|
297
|
-
message_id="OMAG-COMMON-400-013",
|
298
|
-
message_template="The text field passed on the {0} parameter of the {1} operation is null",
|
299
|
-
system_action="The system is unable to process the request without this text value.",
|
300
|
-
user_action="Correct the code in the caller to provide a value in the text field.",
|
301
|
-
)
|
302
|
-
|
303
|
-
NULL_OBJECT = dict(
|
304
|
-
http_error_code="400",
|
305
|
-
message_id="OMAG-COMMON-400-015",
|
306
|
-
message_template="The object passed on the {0} parameter of the {1} operation is null",
|
307
|
-
system_action="The system is unable to process the request without this object.",
|
308
|
-
user_action="Correct the code in the caller to provide the object.",
|
309
|
-
)
|
310
|
-
|
311
|
-
NULL_SEARCH_STRING = dict(
|
312
|
-
http_error_code="400",
|
313
|
-
message_id="OMAG-COMMON-400-022",
|
314
|
-
message_template="The search string passed on the {0} parameter of the {1} operation is null",
|
315
|
-
system_action="The system is unable to process the request without a search string.",
|
316
|
-
user_action="Correct the code in the caller to provide the search string.",
|
317
|
-
)
|
318
|
-
|
319
|
-
|
320
|
-
class EgeriaException(Exception):
|
321
|
-
"""
|
322
|
-
Define the Egeria exceptions raised during error handling. Modeled on the exceptions defined in the Egeria core.
|
323
|
-
|
324
|
-
"""
|
325
|
-
raw_error_message = ""
|
326
|
-
def __init__(self, response_body) -> None:
|
327
|
-
response_dict = json.loads(response_body)
|
328
|
-
self.response_class = response_dict["class"]
|
329
|
-
self.related_http_code = response_dict["relatedHTTPCode"]
|
330
|
-
self.exception_class_name = response_dict["exceptionClassName"]
|
331
|
-
self.action_description = response_dict["actionDescription"]
|
332
|
-
self.exception_error_message = response_dict["exceptionErrorMessage"]
|
333
|
-
self.exception_error_message_id = response_dict["exceptionErrorMessageId"]
|
334
|
-
|
335
|
-
# self.exception_error_message_id = response_dict["exceptionErrorMessageId"]
|
336
|
-
self.exception_error_message_parameters = response_dict[
|
337
|
-
"exceptionErrorMessageParameters"
|
338
|
-
]
|
339
|
-
self.exception_system_action = response_dict["exceptionSystemAction"]
|
340
|
-
self.exception_user_action = response_dict["exceptionUserAction"]
|
341
|
-
|
342
|
-
def __str__(self):
|
343
|
-
return self.exception_error_message
|
344
|
-
|
345
|
-
|
346
|
-
class InvalidParameterException(EgeriaException):
|
347
|
-
"""Exception due to invalid parameters such as one of the parameters is null or invalid"""
|
348
|
-
|
349
|
-
def __init__(self, response_body):
|
350
|
-
EgeriaException.__init__(self, response_body)
|
351
|
-
|
352
|
-
|
353
|
-
class PropertyServerException(EgeriaException):
|
354
|
-
"""Exception due to a problem retrieving information from the property server"""
|
355
|
-
|
356
|
-
def __init__(self, response_body):
|
357
|
-
EgeriaException.__init__(self, response_body)
|
358
|
-
|
359
|
-
|
360
|
-
class UserNotAuthorizedException(EgeriaException):
|
361
|
-
"""Exception as the requesting user is not authorized to issue this request"""
|
362
|
-
|
363
|
-
def __init__(self, response_body):
|
364
|
-
EgeriaException.__init__(self, response_body)
|
365
|
-
|
366
|
-
|
367
|
-
def print_exception_response(e: EgeriaException):
|
368
|
-
""" Prints the exception response """
|
369
|
-
|
370
|
-
if isinstance(e, EgeriaException):
|
371
|
-
print(f"\n\nException: {e.response_class}")
|
372
|
-
print(f"\t\t Error Message: {e.exception_error_message}")
|
373
|
-
print(
|
374
|
-
f"\t\t Error Code: {e.exception_error_message_id} with http code {str(e.related_http_code)}"
|
375
|
-
)
|
376
|
-
# print(f"\t\t Raw Error Text is {e.raw_error_message}")
|
377
|
-
print(f"\t\t Class: {e.exception_class_name}")
|
378
|
-
print(f"\t\t Caller: {e.action_description}")
|
379
|
-
print(f"\t\t System Action: {e.exception_system_action}")
|
380
|
-
print(f"\t\t User Action: {e.exception_user_action}")
|
381
|
-
else:
|
382
|
-
print(f"\n\n\t Not an Egeria exception {e}")
|