pyegeria 0.7.45.1__py3-none-any.whl → 0.8.1__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.
- examples/widgets/cat/list_cert_types.py +61 -43
- examples/widgets/cat/list_projects.py +1 -1
- examples/widgets/my/my_profile_actions.py +51 -32
- examples/widgets/ops/engine_actions.py +35 -23
- examples/widgets/ops/integration_daemon_actions.py +51 -32
- examples/widgets/tech/get_element_info.py +63 -38
- examples/widgets/tech/get_guid_info.py +50 -27
- examples/widgets/tech/list_asset_types.py +33 -23
- examples/widgets/tech/list_elements.py +44 -34
- examples/widgets/tech/list_elements_x.py +69 -49
- examples/widgets/tech/list_registered_services.py +44 -24
- examples/widgets/tech/list_related_specification.py +70 -45
- examples/widgets/tech/list_relationship_types.py +50 -31
- examples/widgets/tech/list_valid_metadata_values.py +57 -28
- examples/widgets/tech/x_list_related_elements.py +54 -34
- pyegeria/Xloaded_resources_omvs.py +43 -41
- pyegeria/__init__.py +6 -2
- pyegeria/_client.py +142 -102
- pyegeria/_deprecated_gov_engine.py +218 -167
- pyegeria/action_author_omvs.py +107 -88
- pyegeria/asset_catalog_omvs.py +467 -395
- pyegeria/automated_curation_omvs.py +2 -2
- pyegeria/classification_manager_omvs.py +3 -9
- pyegeria/collection_manager_omvs.py +1957 -1519
- pyegeria/core_omag_server_config.py +310 -192
- pyegeria/egeria_cat_client.py +88 -0
- pyegeria/egeria_config_client.py +37 -0
- pyegeria/egeria_my_client.py +47 -0
- pyegeria/egeria_ops_client.py +67 -0
- pyegeria/egeria_tech_client.py +77 -0
- pyegeria/feedback_manager_omvs.py +633 -631
- pyegeria/full_omag_server_config.py +330 -158
- pyegeria/glossary_browser_omvs.py +927 -474
- pyegeria/glossary_manager_omvs.py +1033 -543
- pyegeria/my_profile_omvs.py +714 -574
- pyegeria/platform_services.py +228 -176
- pyegeria/project_manager_omvs.py +1158 -903
- pyegeria/registered_info.py +76 -74
- pyegeria/runtime_manager_omvs.py +749 -670
- pyegeria/server_operations.py +123 -85
- pyegeria/valid_metadata_omvs.py +268 -168
- {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/METADATA +1 -1
- {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/RECORD +46 -42
- pyegeria/tech_guids_31-08-2024 14:33.py +0 -79
- {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/LICENSE +0 -0
- {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/WHEEL +0 -0
- {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/entry_points.txt +0 -0
pyegeria/registered_info.py
CHANGED
@@ -15,7 +15,7 @@ from pyegeria._client import Client
|
|
15
15
|
|
16
16
|
|
17
17
|
class RegisteredInfo(Client):
|
18
|
-
"""
|
18
|
+
"""Client to discover Egeria services and capabilities
|
19
19
|
|
20
20
|
Parameters:
|
21
21
|
----------
|
@@ -48,44 +48,45 @@ class RegisteredInfo(Client):
|
|
48
48
|
admin_command_root: str
|
49
49
|
|
50
50
|
def __init__(
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
self,
|
52
|
+
server_name: str,
|
53
|
+
platform_url: str,
|
54
|
+
user_id: str,
|
55
|
+
user_pwd: str = None,
|
56
|
+
token: str = None,
|
57
57
|
):
|
58
58
|
if server_name is None:
|
59
59
|
server_name = "NA"
|
60
|
-
Client.__init__(self, server_name, platform_url,
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
Client.__init__(self, server_name, platform_url, user_id, user_pwd)
|
61
|
+
self.admin_command_root = (
|
62
|
+
f"{self.platform_url}/open-metadata/platform-services/users/"
|
63
|
+
f"{self.user_id}/server-platform/registered-services"
|
64
|
+
)
|
64
65
|
|
65
66
|
def list_registered_svcs(self, kind: str = None) -> list | str:
|
66
|
-
"""
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
67
|
+
"""Get the registered services for the OMAG Server Platform
|
68
|
+
|
69
|
+
Parameters
|
70
|
+
----------
|
71
|
+
kind: str, optional
|
72
|
+
The kind of service to return information for. If None, then provide back a list of service kinds.
|
73
|
+
|
74
|
+
Returns
|
75
|
+
-------
|
76
|
+
dict | str
|
77
|
+
Returns JSON dict of the requested information or a help string if input is 'help'.
|
78
|
+
Raises
|
79
|
+
------
|
80
|
+
InvalidParameterException
|
81
|
+
If the response code is not 200.
|
82
|
+
PropertyServerException:
|
83
|
+
Raised by the server when an issue arises in processing a valid request
|
84
|
+
NotAuthorizedException:
|
85
|
+
The principle specified by the user_id does not have authorization for the requested action
|
86
|
+
|
87
|
+
"""
|
87
88
|
if kind is None or kind == "help":
|
88
|
-
return
|
89
|
+
return """
|
89
90
|
The kinds of services that you can get more information include:
|
90
91
|
all.....................lists all registered services
|
91
92
|
access-services.........lists all registered access services
|
@@ -97,7 +98,7 @@ class RegisteredInfo(Client):
|
|
97
98
|
|
98
99
|
Pass in a parameter from the left-hand column into the function to
|
99
100
|
get more details on the specified service category.
|
100
|
-
"""
|
101
|
+
"""
|
101
102
|
if kind == "all":
|
102
103
|
url = f"{self.admin_command_root}"
|
103
104
|
else:
|
@@ -107,55 +108,56 @@ class RegisteredInfo(Client):
|
|
107
108
|
return response.json().get("services", "No services found")
|
108
109
|
|
109
110
|
def list_severity_definitions(self) -> list | str:
|
110
|
-
"""
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
111
|
+
"""Get the registered severities for the OMAG Server
|
112
|
+
|
113
|
+
Parameters
|
114
|
+
----------
|
115
|
+
|
116
|
+
Returns
|
117
|
+
-------
|
118
|
+
dict | str
|
119
|
+
Return a dictionary containing the registered services for the specified platform.
|
120
|
+
Raises
|
121
|
+
------
|
122
|
+
InvalidParameterException
|
123
|
+
If the response code is not 200.
|
124
|
+
PropertyServerException:
|
125
|
+
Raised by the server when an issue arises in processing a valid request
|
126
|
+
NotAuthorizedException:
|
127
|
+
The principle specified by the user_id does not have authorization for the requested action
|
127
128
|
|
128
129
|
"""
|
129
|
-
url = (
|
130
|
-
|
131
|
-
|
130
|
+
url = (
|
131
|
+
f"{self.platform_url}/servers/{self.server_name}/open-metadata/repository-services"
|
132
|
+
f"/users/{self.user_id}/audit-log/severity-definitions"
|
133
|
+
)
|
132
134
|
response = self.make_request("GET", url)
|
133
135
|
return response.json().get("severities", "No severities found")
|
134
136
|
|
135
137
|
def list_asset_types(self, server: str = None) -> list | str:
|
136
|
-
"""
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
138
|
+
"""Get the registered severities for the OMAG Server
|
139
|
+
|
140
|
+
Parameters
|
141
|
+
----------
|
142
|
+
server: str, optional, default = None
|
143
|
+
|
144
|
+
Returns
|
145
|
+
-------
|
146
|
+
dict | str
|
147
|
+
Returns a list of the asset types.
|
148
|
+
|
149
|
+
Raises
|
150
|
+
------
|
151
|
+
InvalidParameterException
|
152
|
+
If the response code is not 200.
|
153
|
+
PropertyServerException:
|
154
|
+
Raised by the server when an issue arises in processing a valid request
|
155
|
+
NotAuthorizedException:
|
156
|
+
The principle specified by the user_id does not have authorization for the requested action
|
155
157
|
|
156
158
|
"""
|
157
159
|
server = self.server_name if server is None else server
|
158
160
|
url = f"{self.platform_url}/servers/{server}/api/open-metadata/asset-catalog/assets/types"
|
159
161
|
|
160
162
|
response = self.make_request("GET", url)
|
161
|
-
return response.json().get(
|
163
|
+
return response.json().get("types", "no types found")
|