pyegeria 5.4.7.4__py3-none-any.whl → 5.4.7.6__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.
commands/ops/__init__.py CHANGED
@@ -5,8 +5,6 @@ Copyright Contributors to the ODPi Egeria project.
5
5
 
6
6
  """
7
7
  from pyegeria import (
8
- INTEGRATION_GUIDS,
9
- TEMPLATE_GUIDS,
10
8
  default_time_out,
11
9
  disable_ssl_warnings,
12
10
  enable_ssl_check,
@@ -21,7 +21,6 @@ from rich.table import Table
21
21
 
22
22
 
23
23
  from pyegeria import (
24
- INTEGRATION_GUIDS,
25
24
  AutomatedCuration,
26
25
  EgeriaTech,
27
26
  PyegeriaException,
@@ -12,7 +12,7 @@ import os
12
12
 
13
13
  import click
14
14
  from loguru import logger
15
- from pyegeria import AutomatedCuration, EgeriaTech
15
+ from pyegeria import EgeriaTech, PyegeriaAPIException
16
16
  from pyegeria.config import settings
17
17
  from pyegeria.logging_configuration import config_logging
18
18
  from pyegeria._exceptions_new import (
@@ -64,13 +64,13 @@ def load_archive(file_name, server_name, view_server, url, userid, password, tim
64
64
  try:
65
65
  s_client = EgeriaTech(view_server, url, userid, password)
66
66
  token = s_client.create_egeria_bearer_token()
67
- server_guid = None
67
+ server_guid = s_client.__get_guid__(display_name = server_name, property_name = "displayName", tech_type = "MetadataStore")
68
68
  file_name = file_name.strip()
69
69
  s_client.add_archive_file(file_name, server_guid, server_name, time_out=timeout)
70
70
 
71
71
  click.echo(f"Loaded archive: {file_name}")
72
72
 
73
- except (PyegeriaException) as e:
73
+ except (PyegeriaException, PyegeriaAPIException) as e:
74
74
  print(
75
75
  f"Perhaps there was a timeout? If so, the command will complete despite the exception\n"
76
76
  f"===> You can check by rerunning the command in a few minutes"
@@ -109,7 +109,7 @@ def display_engine_activity(
109
109
  table.add_column("Process Name")
110
110
  table.add_column("Completion Message")
111
111
 
112
- action_status = g_client.get_engine_actions()
112
+ action_status = g_client.get_active_engine_actions()
113
113
 
114
114
  if type(action_status) is str:
115
115
  requested_time = " "
commands/tech/__init__.py CHANGED
@@ -4,8 +4,6 @@ Copyright Contributors to the ODPi Egeria project.
4
4
 
5
5
  """
6
6
  from pyegeria import (
7
- INTEGRATION_GUIDS,
8
- TEMPLATE_GUIDS,
9
7
  default_time_out,
10
8
  disable_ssl_warnings,
11
9
  enable_ssl_check,
@@ -534,7 +534,7 @@ def process_solution_component_upsert_command(egeria_client: EgeriaTech, txt: st
534
534
 
535
535
  else:
536
536
  body = body_slimmer({
537
- "class": "NewSolutionElementRequestBody",
537
+ "class": "NewElementRequestBody",
538
538
  "anchorGUID": anchor_guid,
539
539
  "isOwnAnchor": is_own_anchor,
540
540
  "parentGUID": parent_guid,
pyegeria/__init__.py CHANGED
@@ -12,11 +12,11 @@ the server platform and servers.
12
12
  """
13
13
  # from .load_config import load_app_config, get_app_config
14
14
  # from .logging_configuration import config_logging, init_logging
15
- from ._globals import (INTEGRATION_GUIDS, TEMPLATE_GUIDS, default_time_out, disable_ssl_warnings, enable_ssl_check,
15
+ from ._globals import (default_time_out, disable_ssl_warnings, enable_ssl_check,
16
16
  is_debug, max_paging_size, NO_ELEMENTS_FOUND, NO_ASSETS_FOUND, NO_SERVERS_FOUND,
17
17
  NO_CATALOGS_FOUND, NO_GLOSSARIES_FOUND, NO_TERMS_FOUND, NO_CATEGORIES_FOUND, NO_ELEMENT_FOUND,
18
- NO_PROJECTS_FOUND, DEBUG_LEVEL, NO_COLLECTION_FOUND, NO_GUID_RETURNED, TEMPLATE_GUIDS,
19
- INTEGRATION_GUIDS)
18
+ NO_PROJECTS_FOUND, DEBUG_LEVEL, NO_COLLECTION_FOUND, NO_GUID_RETURNED,
19
+ )
20
20
 
21
21
 
22
22