pyegeria 0.8.4.36__py3-none-any.whl → 0.8.4.38__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/load_archive.py +0 -2
- pyegeria/asset_catalog_omvs.py +9 -9
- pyegeria/automated_curation_omvs.py +5 -5
- pyegeria/classification_manager_omvs.py +193 -407
- pyegeria/collection_manager_omvs.py +160 -280
- pyegeria/core_omag_server_config.py +77 -72
- pyegeria/egeria_cat_client.py +11 -6
- pyegeria/egeria_client.py +3 -2
- pyegeria/egeria_config_client.py +5 -0
- pyegeria/egeria_my_client.py +9 -4
- pyegeria/egeria_tech_client.py +1 -1
- pyegeria/feedback_manager_omvs.py +92 -333
- pyegeria/full_omag_server_config.py +54 -50
- pyegeria/glossary_browser_omvs.py +128 -284
- pyegeria/glossary_manager_omvs.py +132 -451
- pyegeria/my_profile_omvs.py +57 -153
- pyegeria/platform_services.py +1 -1
- pyegeria/project_manager_omvs.py +110 -197
- pyegeria/registered_info.py +13 -13
- pyegeria/valid_metadata_omvs.py +75 -227
- pyegeria/x_action_author_omvs.py +1 -1
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/METADATA +1 -1
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/RECORD +26 -26
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/LICENSE +0 -0
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/WHEEL +0 -0
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/entry_points.txt +0 -0
pyegeria/registered_info.py
CHANGED
@@ -45,20 +45,22 @@ class RegisteredInfo(Client):
|
|
45
45
|
Lists the defined asset types.
|
46
46
|
"""
|
47
47
|
|
48
|
-
admin_command_root: str
|
49
|
-
|
50
48
|
def __init__(
|
51
49
|
self,
|
52
|
-
|
50
|
+
view_server: str,
|
53
51
|
platform_url: str,
|
54
52
|
user_id: str,
|
55
53
|
user_pwd: str = None,
|
56
54
|
token: str = None,
|
57
55
|
):
|
58
|
-
if
|
56
|
+
if view_server is None:
|
59
57
|
server_name = "NA"
|
60
|
-
Client.__init__(self,
|
61
|
-
self.
|
58
|
+
Client.__init__(self, view_server, platform_url, user_id, user_pwd)
|
59
|
+
self.view_server = view_server
|
60
|
+
self.platform_url = platform_url
|
61
|
+
self.user_id = user_id
|
62
|
+
self.user_pwd = user_pwd
|
63
|
+
self.reg_command_root = (
|
62
64
|
f"{self.platform_url}/open-metadata/platform-services/users/"
|
63
65
|
f"{self.user_id}/server-platform/registered-services"
|
64
66
|
)
|
@@ -100,9 +102,9 @@ class RegisteredInfo(Client):
|
|
100
102
|
get more details on the specified service category.
|
101
103
|
"""
|
102
104
|
if kind == "all":
|
103
|
-
url = f"{self.
|
105
|
+
url = f"{self.reg_command_root}"
|
104
106
|
else:
|
105
|
-
url = f"{self.
|
107
|
+
url = f"{self.reg_command_root}/{kind}"
|
106
108
|
response = self.make_request("GET", url)
|
107
109
|
|
108
110
|
return response.json().get("services", "No services found")
|
@@ -128,18 +130,17 @@ class RegisteredInfo(Client):
|
|
128
130
|
|
129
131
|
"""
|
130
132
|
url = (
|
131
|
-
f"{self.platform_url}/servers/{self.
|
133
|
+
f"{self.platform_url}/servers/{self.view_server}/open-metadata/repository-services"
|
132
134
|
f"/users/{self.user_id}/audit-log/severity-definitions"
|
133
135
|
)
|
134
136
|
response = self.make_request("GET", url)
|
135
137
|
return response.json().get("severities", "No severities found")
|
136
138
|
|
137
|
-
def list_asset_types(self
|
139
|
+
def list_asset_types(self) -> list | str:
|
138
140
|
"""Get the registered severities for the OMAG Server
|
139
141
|
|
140
142
|
Parameters
|
141
143
|
----------
|
142
|
-
server: str, optional, default = None
|
143
144
|
|
144
145
|
Returns
|
145
146
|
-------
|
@@ -156,8 +157,7 @@ class RegisteredInfo(Client):
|
|
156
157
|
The principle specified by the user_id does not have authorization for the requested action
|
157
158
|
|
158
159
|
"""
|
159
|
-
|
160
|
-
url = f"{self.platform_url}/servers/{server}/api/open-metadata/asset-catalog/assets/types"
|
160
|
+
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/types"
|
161
161
|
|
162
162
|
response = self.make_request("GET", url)
|
163
163
|
return response.json().get("types", "no types found")
|