pyegeria 0.2.3__py3-none-any.whl → 5.3.0.dev2__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 +319 -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 +615 -264
- 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.dev2.dist-info/METADATA +70 -0
- pyegeria-5.3.0.dev2.dist-info/RECORD +232 -0
- {pyegeria-0.2.3.dist-info → pyegeria-5.3.0.dev2.dist-info}/WHEEL +1 -1
- pyegeria-5.3.0.dev2.dist-info/entry_points.txt +81 -0
- pyegeria/_client-orig.py +0 -480
- pyegeria/automated_curation.py +0 -446
- 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.3.dist-info/METADATA +0 -57
- pyegeria-0.2.3.dist-info/RECORD +0 -22
- {pyegeria-0.2.3.dist-info/licenses → pyegeria-5.3.0.dev2.dist-info}/LICENSE +0 -0
pyegeria/automated_curation.py
DELETED
@@ -1,446 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
Automated Curation
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
from requests import Response
|
10
|
-
|
11
|
-
from pyegeria.exceptions import (
|
12
|
-
InvalidParameterException,
|
13
|
-
)
|
14
|
-
from pyegeria import Platform
|
15
|
-
import asyncio
|
16
|
-
|
17
|
-
class AutomatedCuration(Platform):
|
18
|
-
"""
|
19
|
-
Client to issue Curation requests.
|
20
|
-
|
21
|
-
Attributes:
|
22
|
-
|
23
|
-
platform_url : str
|
24
|
-
URL of the server platform to connect to
|
25
|
-
user_id : str
|
26
|
-
The identity of the user calling the method - this sets a default optionally used by the methods
|
27
|
-
when the user doesn't pass the user_id on a method call.
|
28
|
-
user_pwd: str
|
29
|
-
The password associated with the user_id. Defaults to None
|
30
|
-
verify_flag: bool
|
31
|
-
Flag to indicate if SSL Certificates should be verified in the HTTP requests.
|
32
|
-
Defaults to False.
|
33
|
-
|
34
|
-
Methods:
|
35
|
-
|
36
|
-
"""
|
37
|
-
|
38
|
-
|
39
|
-
def __init__(
|
40
|
-
self,
|
41
|
-
server_name: str,
|
42
|
-
platform_url: str,
|
43
|
-
user_id: str,
|
44
|
-
user_pwd: str = None,
|
45
|
-
verify_flag: bool = False,
|
46
|
-
):
|
47
|
-
Platform.__init__(self, server_name, platform_url, user_id, user_pwd, verify_flag)
|
48
|
-
self.ops_command_root = (self.platform_url +
|
49
|
-
"/open-metadata/server-operations/users/" +
|
50
|
-
user_id)
|
51
|
-
async def _async_create_gov_action_type(self, body: dict, server_name:str=None)-> None:
|
52
|
-
pass
|
53
|
-
|
54
|
-
async def _async_update_gov_action_type(self, gov_action_type_id: str, body: dict, server_name:str = None)-> None:
|
55
|
-
pass
|
56
|
-
|
57
|
-
async def _async_remove_gov_action_type(self, server_name:str=None)-> None:
|
58
|
-
pass
|
59
|
-
|
60
|
-
async def _async_find_gov_action_types(self, search_string: str='*', server_name:str=None)-> dict | str:
|
61
|
-
pass
|
62
|
-
|
63
|
-
async def _async_get_gov_action_types_by_name(self, server_name:str=None) -> dict | str:
|
64
|
-
pass
|
65
|
-
|
66
|
-
async def _async_find_gov_action_types_by_guid(self, guid: str, server_name:str=None) -> dict | str:
|
67
|
-
pass
|
68
|
-
|
69
|
-
# Governance Action Processes
|
70
|
-
|
71
|
-
async def _async_create_gov_action_process(self, body: dict, server_name:str=None) -> None:
|
72
|
-
pass
|
73
|
-
|
74
|
-
async def _async_update_gov_action_process(self, process_id: str, body: dict, server_name:str=None) -> None:
|
75
|
-
pass
|
76
|
-
|
77
|
-
async def _async_publish_gov_action_process(self, process_id:str, server_name:str=None) -> None:
|
78
|
-
pass
|
79
|
-
|
80
|
-
async def _async_withdraw_gov_action_process(self, process_id:str, server_name:str=None) -> None:
|
81
|
-
pass
|
82
|
-
|
83
|
-
async def _async_remove_gov_action_process(self, process_id: str, server_name: str = None) -> None:
|
84
|
-
pass
|
85
|
-
|
86
|
-
async def _async_find_gov_action_processes(self, search_string:str, server_name:str=None) -> dict | str:
|
87
|
-
pass
|
88
|
-
|
89
|
-
async def _async_get_gov_action_processes_by_name(self, name:str, server_name:str=None) -> dict | str:
|
90
|
-
pass
|
91
|
-
|
92
|
-
async def _async_get_gov_action_processes_by_guid(self, guid:str, server_name:str=None) -> dict | str:
|
93
|
-
pass
|
94
|
-
|
95
|
-
async def _async_get_gov_action_process_graph(self, guid:str, server_name:str=None) -> dict | str:
|
96
|
-
pass
|
97
|
-
|
98
|
-
# Process Steps
|
99
|
-
async def _async_create_gov_action_process_step(self, body: dict, server_name:str=None) -> None:
|
100
|
-
pass
|
101
|
-
|
102
|
-
async def _async_update_gov_action_process_step(self, guid: str, body: dict, server_name:str=None) -> None:
|
103
|
-
pass
|
104
|
-
|
105
|
-
async def _async_remove_gov_action_process_step(self, guid: str, server_name:str=None) -> None:
|
106
|
-
pass
|
107
|
-
|
108
|
-
|
109
|
-
async def _async_find_gov_action_process_step(self, search_string: str, server_name: str = None) -> dict | str:
|
110
|
-
pass
|
111
|
-
|
112
|
-
|
113
|
-
async def _async_get_gov_action_process_step_by_name(self, name: str, server_name: str = None) -> dict | str:
|
114
|
-
pass
|
115
|
-
|
116
|
-
|
117
|
-
async def _async_get_gov_action_process_step_by_guid(self, guid: str, server_name: str = None) -> dict | str:
|
118
|
-
pass
|
119
|
-
|
120
|
-
|
121
|
-
async def _async_setup_first_action_process_step(self, process_guid: str, process_step_guid:str,
|
122
|
-
server_name: str = None) -> dict | str:
|
123
|
-
pass
|
124
|
-
|
125
|
-
async def _async_get_first_action_process_step(self, process_guid: str, server_name: str = None) -> dict | str:
|
126
|
-
pass
|
127
|
-
|
128
|
-
async def _async_remove_first_action_process_step(self, process_guid: str, server_name: str = None) -> None:
|
129
|
-
pass
|
130
|
-
|
131
|
-
async def _async_setup_next_action_process_step(self, process_guid: str, process_step_guid:str,
|
132
|
-
next_process_step_guid:str, server_name: str = None) -> None:
|
133
|
-
pass
|
134
|
-
|
135
|
-
|
136
|
-
async def _async_update_next_action_process_step(self, guid: str, body: dict, server_name: str = None) -> None:
|
137
|
-
pass
|
138
|
-
|
139
|
-
|
140
|
-
async def _async_remove_next_action_process_step(self, guid: str, server_name: str = None) -> None:
|
141
|
-
pass
|
142
|
-
|
143
|
-
|
144
|
-
async def _async_get_next_action_process_step(self, guid: str, server_name: str = None) -> dict | str:
|
145
|
-
pass
|
146
|
-
|
147
|
-
# Engine Actions
|
148
|
-
|
149
|
-
async def _async_initiate_Engine_action(self, gov_eng_name: str, body: dict, server_name: str = None) -> None:
|
150
|
-
pass
|
151
|
-
|
152
|
-
|
153
|
-
async def _async_initiate_gov_action_type(self, body: dict, server_name: str = None) -> None:
|
154
|
-
pass
|
155
|
-
|
156
|
-
|
157
|
-
async def _async_find_gov_action_process_step(self, search_string: str, server_name: str = None) -> dict | str:
|
158
|
-
pass
|
159
|
-
|
160
|
-
|
161
|
-
async def _async_get_gov_action_process_step_by_name(self, name: str, server_name: str = None) -> dict | str:
|
162
|
-
pass
|
163
|
-
|
164
|
-
|
165
|
-
async def _async_get_gov_action_process_step_by_guid(self, guid: str, server_name: str = None) -> dict | str:
|
166
|
-
pass
|
167
|
-
|
168
|
-
|
169
|
-
async def _async_get_active_configuration(self, server: str = None) -> dict | str:
|
170
|
-
"""
|
171
|
-
Return the configuration of the server if it is running. Return invalidParameter Exception if not running.
|
172
|
-
|
173
|
-
Parameters
|
174
|
-
----------
|
175
|
-
server: str - name of the server to get the configuration for.
|
176
|
-
|
177
|
-
Returns
|
178
|
-
-------
|
179
|
-
Returns configuration if server is active; InvalidParameter exception thrown otherwise
|
180
|
-
|
181
|
-
"""
|
182
|
-
if server is None:
|
183
|
-
server = self.server_name
|
184
|
-
|
185
|
-
is_known = await self._async_is_server_known(server)
|
186
|
-
if is_known is False:
|
187
|
-
return "No active configuration found"
|
188
|
-
|
189
|
-
url = self.ops_command_root + "/servers/" + server + "/instance/configuration"
|
190
|
-
|
191
|
-
response = await self._async_make_request("GET", url)
|
192
|
-
return response.json().get("omagserverConfig", "No active configuration found")
|
193
|
-
|
194
|
-
def get_active_configuration(self, server: str = None) -> dict | str:
|
195
|
-
"""
|
196
|
-
Return the configuration of the server if it is running. Return invalidParameter Exception if not running.
|
197
|
-
|
198
|
-
Parameters
|
199
|
-
----------
|
200
|
-
server: str - name of the server to get the configuration for.
|
201
|
-
|
202
|
-
Returns
|
203
|
-
-------
|
204
|
-
Returns configuration if server is active; InvalidParameter exception thrown otherwise
|
205
|
-
|
206
|
-
"""
|
207
|
-
loop = asyncio.get_event_loop()
|
208
|
-
response = loop.run_until_complete(self._async_get_active_configuration(server))
|
209
|
-
return response
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
async def _async_add_archive_file(self, archive_file: str, server: str = None) -> None:
|
215
|
-
"""
|
216
|
-
Load the server with the contents of the indicated archive file.
|
217
|
-
|
218
|
-
Parameters
|
219
|
-
----------
|
220
|
-
archive_file: the name of the archive file to load
|
221
|
-
- note that the path is relative to the working directory of the platform.
|
222
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
223
|
-
|
224
|
-
Returns
|
225
|
-
-------
|
226
|
-
Response object. Also throws exceptions if no viable server or endpoint errors
|
227
|
-
|
228
|
-
"""
|
229
|
-
if server is None:
|
230
|
-
server = self.server_name
|
231
|
-
|
232
|
-
url = (
|
233
|
-
self.ops_command_root
|
234
|
-
+ "/servers/" + server
|
235
|
-
+ "/instance/open-metadata-archives/file"
|
236
|
-
)
|
237
|
-
|
238
|
-
await self._async_make_request("POST-DATA", url, archive_file)
|
239
|
-
|
240
|
-
def add_archive_file(self, archive_file: str, server: str = None) -> None:
|
241
|
-
"""
|
242
|
-
Load the server with the contents of the indicated archive file.
|
243
|
-
|
244
|
-
Parameters
|
245
|
-
----------
|
246
|
-
archive_file: the name of the archive file to load
|
247
|
-
- note that the path is relative to the working directory of the platform.
|
248
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
249
|
-
|
250
|
-
Returns
|
251
|
-
-------
|
252
|
-
Response object. Also throws exceptions if no viable server or endpoint errors
|
253
|
-
|
254
|
-
"""
|
255
|
-
loop = asyncio.get_event_loop()
|
256
|
-
loop.run_until_complete(self._async_add_archive_file(archive_file, server))
|
257
|
-
|
258
|
-
async def _async_add_archive(self, archive_connection: str, server: str = None) -> None:
|
259
|
-
""" Load the server with the contents of the indicated archive file.
|
260
|
-
|
261
|
-
/open-metadata/server-operations/users/{userId}/server-platform/servers/{serverName}/instance/open-metadata-archives/connection
|
262
|
-
|
263
|
-
Parameters
|
264
|
-
----------
|
265
|
-
archive_connection: str
|
266
|
-
the name of the archive connection to load from
|
267
|
-
server: str
|
268
|
-
Use the server if specified. If None, use the default server associated with the Platform object.
|
269
|
-
|
270
|
-
Returns
|
271
|
-
-------
|
272
|
-
Response object. Also throws exceptions if no viable server or endpoint errors
|
273
|
-
|
274
|
-
Todo: Need to find a good example of an archive connection to test with
|
275
|
-
"""
|
276
|
-
if server is None:
|
277
|
-
server = self.server_name
|
278
|
-
|
279
|
-
url = (
|
280
|
-
self.ops_command_root
|
281
|
-
+ "/servers/" + server
|
282
|
-
+ "/instance/open-metadata-archives/connection"
|
283
|
-
)
|
284
|
-
await self._async_make_request("POST-DATA", url, archive_connection)
|
285
|
-
|
286
|
-
|
287
|
-
def add_archive(self, archive_connection: str, server: str = None) -> None:
|
288
|
-
"""
|
289
|
-
Load the server with the contents of the indicated archive file.
|
290
|
-
|
291
|
-
/open-metadata/server-operations/users/{userId}/server-platform/servers/{serverName}/instance/open-metadata-archives/connection
|
292
|
-
|
293
|
-
Parameters
|
294
|
-
----------
|
295
|
-
archive_connection: str
|
296
|
-
the name of the archive connection to load from
|
297
|
-
server: str
|
298
|
-
Use the server if specified. If None, use the default server associated with the Platform object.
|
299
|
-
|
300
|
-
Returns
|
301
|
-
-------
|
302
|
-
Response object. Also throws exceptions if no viable server or endpoint errors
|
303
|
-
|
304
|
-
"""
|
305
|
-
loop = asyncio.get_event_loop()
|
306
|
-
loop.run_until_complete(self._async_add_archive_file(archive_connection,server))
|
307
|
-
|
308
|
-
async def _async_get_active_server_status(self, server:str = None) -> dict:
|
309
|
-
""" Get the status for the specified server.
|
310
|
-
|
311
|
-
Parameters
|
312
|
-
----------
|
313
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
314
|
-
|
315
|
-
Returns
|
316
|
-
-------
|
317
|
-
dict: a json object containing the status of the specified server
|
318
|
-
|
319
|
-
Raises
|
320
|
-
------
|
321
|
-
InvalidParameterException
|
322
|
-
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
323
|
-
PropertyServerException
|
324
|
-
Raised by the server when an issue arises in processing a valid request
|
325
|
-
NotAuthorizedException
|
326
|
-
The principle specified by the user_id does not have authorization for the requested action
|
327
|
-
"""
|
328
|
-
if server is None:
|
329
|
-
server = self.server_name
|
330
|
-
|
331
|
-
url = self.admin_command_root + "/servers/" + server + "/instance/status"
|
332
|
-
|
333
|
-
response = await self._async_make_request("GET", url)
|
334
|
-
return response
|
335
|
-
|
336
|
-
def get_active_server_status(self, server: str = None) -> dict:
|
337
|
-
"""
|
338
|
-
Get the status for the specified server.
|
339
|
-
/open-metadata/platform-services/users/{userId}/server-platform/servers/{server}/instance/status
|
340
|
-
|
341
|
-
Parameters
|
342
|
-
----------
|
343
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
344
|
-
|
345
|
-
Returns
|
346
|
-
-------
|
347
|
-
dict: a json object containing the status of the specified server
|
348
|
-
|
349
|
-
Raises
|
350
|
-
------
|
351
|
-
InvalidParameterException
|
352
|
-
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
353
|
-
PropertyServerException
|
354
|
-
Raised by the server when an issue arises in processing a valid request
|
355
|
-
NotAuthorizedException
|
356
|
-
The principle specified by the user_id does not have authorization for the requested action
|
357
|
-
"""
|
358
|
-
loop = asyncio.get_event_loop()
|
359
|
-
response = loop.run_until_complete(self._async_get_active_server_status(server))
|
360
|
-
return response.json()
|
361
|
-
|
362
|
-
async def _async_get_active_service_list_for_server(self, server: str = None) -> Response:
|
363
|
-
"""
|
364
|
-
List all known active servers on the associated platform.
|
365
|
-
|
366
|
-
/open-metadata/server-operations/users/{userId}/server-platform/servers/{server}/services
|
367
|
-
|
368
|
-
Parameters
|
369
|
-
----------
|
370
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
371
|
-
|
372
|
-
Returns
|
373
|
-
-------
|
374
|
-
Response object. Also throws exceptions if no viable endpoint or errors
|
375
|
-
|
376
|
-
"""
|
377
|
-
if server is None:
|
378
|
-
server = self.server_name
|
379
|
-
|
380
|
-
url = self.ops_command_root + "/servers/" + server + "/services"
|
381
|
-
response = await self._async_make_request("GET", url)
|
382
|
-
return response.json().get("serverServicesList")
|
383
|
-
|
384
|
-
def get_active_service_list_for_server(self, server: str = None) -> Response:
|
385
|
-
"""
|
386
|
-
List all known active servers on the associated platform.
|
387
|
-
|
388
|
-
/open-metadata/server-operations/users/{userId}/server-platform/servers/{server}/services
|
389
|
-
|
390
|
-
Parameters
|
391
|
-
----------
|
392
|
-
server : Use the server if specified. If None, use the default server associated with the Platform object.
|
393
|
-
|
394
|
-
Returns
|
395
|
-
-------
|
396
|
-
Response object. Also throws exceptions if no viable endpoint or errors
|
397
|
-
|
398
|
-
"""
|
399
|
-
loop = asyncio.get_event_loop()
|
400
|
-
response = loop.run_until_complete(self._async_get_active_service_list_for_server(server))
|
401
|
-
return response
|
402
|
-
|
403
|
-
async def _async_get_governance_engine_summaries(self, server: str = None) -> dict:
|
404
|
-
""" Get Governance Engine Summaries. Async version.
|
405
|
-
Parameters
|
406
|
-
----------
|
407
|
-
server : str, optional
|
408
|
-
The name of the server to get governance engine summaries from. If not provided, the default server name will be used.
|
409
|
-
|
410
|
-
Returns
|
411
|
-
-------
|
412
|
-
Response
|
413
|
-
The response object containing the governance engine summaries.
|
414
|
-
|
415
|
-
"""
|
416
|
-
if server is None:
|
417
|
-
server = self.server_name
|
418
|
-
|
419
|
-
url = (f"{self.platform_url}/servers/{server}/open-metadata/engine-host/users/{self.user_id}"
|
420
|
-
f"/governance-engines/summary")
|
421
|
-
response = await self._async_make_request("GET", url)
|
422
|
-
return response.json().get("governanceEngineSummaries")
|
423
|
-
|
424
|
-
def get_governance_engine_summaries(self, server: str = None) -> dict:
|
425
|
-
"""Get Governance Engine Summaries.
|
426
|
-
Parameters
|
427
|
-
----------
|
428
|
-
server : str, optional
|
429
|
-
The name of the server to get governance engine summaries from. If not provided, the default server name will be used.
|
430
|
-
|
431
|
-
Returns
|
432
|
-
-------
|
433
|
-
Response
|
434
|
-
The response object containing the governance engine summaries.
|
435
|
-
|
436
|
-
"""
|
437
|
-
loop = asyncio.get_event_loop()
|
438
|
-
response = loop.run_until_complete(self._async_get_governance_engine_summaries(server))
|
439
|
-
return response
|
440
|
-
|
441
|
-
|
442
|
-
if __name__ == "__main__":
|
443
|
-
p = AutomatedCuration("meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False)
|
444
|
-
response = p.get_active_service_list_for_server()
|
445
|
-
out = response.json()["result"]
|
446
|
-
print(out)
|
pyegeria/config.toml
DELETED