pyegeria 0.2.4__py3-none-any.whl → 0.3.2__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/__init__.py +13 -8
- pyegeria/_client.py +164 -105
- pyegeria/_exceptions.py +2 -1
- pyegeria/_validators.py +2 -2
- pyegeria/automated_curation_omvs.py +2188 -0
- pyegeria/core_omag_server_config.py +43 -39
- pyegeria/full_omag_server_config.py +1180 -0
- pyegeria/glossary_omvs.py +204 -66
- pyegeria/gov_engine.py +92 -201
- pyegeria/governance_author.py +184 -0
- pyegeria/my_profile_omvs.py +976 -0
- pyegeria/platform_services.py +67 -35
- pyegeria/server_operations.py +92 -25
- pyegeria/utils.py +5 -17
- {pyegeria-0.2.4.dist-info → pyegeria-0.3.2.dist-info}/METADATA +22 -18
- pyegeria-0.3.2.dist-info/RECORD +21 -0
- {pyegeria-0.2.4.dist-info → pyegeria-0.3.2.dist-info}/WHEEL +2 -1
- pyegeria-0.3.2.dist-info/top_level.txt +1 -0
- pyegeria/config.toml +0 -11
- pyegeria/curation_omvs.py +0 -458
- pyegeria/exceptions.py +0 -382
- pyegeria-0.2.4.dist-info/RECORD +0 -19
- {pyegeria-0.2.4.dist-info/licenses → pyegeria-0.3.2.dist-info}/LICENSE +0 -0
@@ -108,7 +108,7 @@ class CoreServerConfig(Client):
|
|
108
108
|
response = self.make_request("GET", url)
|
109
109
|
return response.json().get("omagserverConfig", "No configuration found")
|
110
110
|
|
111
|
-
def is_server_configured(self, server_name:str= None) -> bool:
|
111
|
+
def is_server_configured(self, server_name: str = None) -> bool:
|
112
112
|
""" Check if the server has a stored configuration
|
113
113
|
|
114
114
|
Parameters
|
@@ -131,7 +131,6 @@ class CoreServerConfig(Client):
|
|
131
131
|
else:
|
132
132
|
return False
|
133
133
|
|
134
|
-
|
135
134
|
def get_configured_access_services(self, server_name: str = None) -> list | str:
|
136
135
|
""" Return the list of access services that are configured for this server.
|
137
136
|
|
@@ -1135,7 +1134,41 @@ class CoreServerConfig(Client):
|
|
1135
1134
|
url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/read-only-repository"
|
1136
1135
|
self.make_request("POST", url)
|
1137
1136
|
|
1138
|
-
def
|
1137
|
+
def set_repository_proxy_details(self, connector_provider: str, server_name: str = None) -> None:
|
1138
|
+
""" Sets the local repository to use the proxy repository specified by the connection.
|
1139
|
+
|
1140
|
+
Parameters
|
1141
|
+
----------
|
1142
|
+
connector_provider: str
|
1143
|
+
Specifies the class of the proxy connector provider.
|
1144
|
+
server_name : str, optional
|
1145
|
+
The name of the server. If not provided, the default server name of the instance will be used.
|
1146
|
+
|
1147
|
+
Returns
|
1148
|
+
-------
|
1149
|
+
None
|
1150
|
+
This method does not return anything.
|
1151
|
+
|
1152
|
+
Raises
|
1153
|
+
------
|
1154
|
+
InvalidParameterException
|
1155
|
+
If the response code is not 200.
|
1156
|
+
PropertyServerException:
|
1157
|
+
Raised by the server when an issue arises in processing a valid request
|
1158
|
+
NotAuthorizedException:
|
1159
|
+
The principle specified by the user_id does not have authorization for the requested action
|
1160
|
+
|
1161
|
+
"""
|
1162
|
+
if server_name is None:
|
1163
|
+
server_name = self.server_name
|
1164
|
+
|
1165
|
+
validate_name(connector_provider)
|
1166
|
+
|
1167
|
+
url = (f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/repository-proxy/"
|
1168
|
+
f"details?connectorProvider={connector_provider}")
|
1169
|
+
self.make_request("POST", url)
|
1170
|
+
|
1171
|
+
def set_plug_in_repository(self, config_body: dict, server_name: str = None) -> None:
|
1139
1172
|
""" Configure the metadata repository using a full repository connection body.
|
1140
1173
|
|
1141
1174
|
Parameters
|
@@ -1167,7 +1200,6 @@ class CoreServerConfig(Client):
|
|
1167
1200
|
url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/plugin-repository/connection"
|
1168
1201
|
self.make_request("POST", url, config_body)
|
1169
1202
|
|
1170
|
-
|
1171
1203
|
def set_xtdb_in_mem_repository(self, server_name: str = None) -> None:
|
1172
1204
|
""" Set xtdb local repository connection to be XTDB with an in memory repository
|
1173
1205
|
|
@@ -1475,7 +1507,7 @@ class CoreServerConfig(Client):
|
|
1475
1507
|
"maxPageSize": max_page_size
|
1476
1508
|
}
|
1477
1509
|
url = self.admin_command_root + "/servers/" + server_name + "/server-properties"
|
1478
|
-
|
1510
|
+
|
1479
1511
|
self.make_request("POST", url, basic_props)
|
1480
1512
|
|
1481
1513
|
def get_basic_server_properties(self, server_name: str = None) -> dict | str:
|
@@ -1981,7 +2013,12 @@ class CoreServerConfig(Client):
|
|
1981
2013
|
# Cohort Configuration, etc.
|
1982
2014
|
#
|
1983
2015
|
def add_cohort_registration(self, cohort_name: str, server_name: str = None) -> None:
|
1984
|
-
"""
|
2016
|
+
""" Enable registration of server to an open metadata repository cohort using the default topic structure
|
2017
|
+
(DEDICATED_TOPICS). A cohort is a group of open metadata repositories that are sharing metadata.
|
2018
|
+
An OMAG server can connect to zero, one or more cohorts. Each cohort needs a unique name.
|
2019
|
+
The members of the cohort use a shared topic to exchange registration information and events
|
2020
|
+
related to the changes in their supported metadata types and instances. They are also able to query
|
2021
|
+
each other's metadata directly through REST calls.
|
1985
2022
|
|
1986
2023
|
Parameters
|
1987
2024
|
----------
|
@@ -2349,38 +2386,6 @@ class CoreServerConfig(Client):
|
|
2349
2386
|
url = f"{self.admin_command_root}/servers/{server_name}/engine-list"
|
2350
2387
|
self.make_request("DELETE", url)
|
2351
2388
|
|
2352
|
-
# def get_engine_list(self, server_name: str = None) -> list | str:
|
2353
|
-
# """ Get the list of engines from the specified by the server_name parameter.
|
2354
|
-
#
|
2355
|
-
# Parameters
|
2356
|
-
# ----------
|
2357
|
-
#
|
2358
|
-
# server_name : str, optional
|
2359
|
-
# The name of the server. If None, the default server name will be used.
|
2360
|
-
#
|
2361
|
-
# Returns
|
2362
|
-
# -------
|
2363
|
-
# List containing the JSON structure of the Integration Groups configuration.
|
2364
|
-
#
|
2365
|
-
# Raises
|
2366
|
-
# ------
|
2367
|
-
# InvalidParameterException
|
2368
|
-
# If the response code is not 200.
|
2369
|
-
# PropertyServerException:
|
2370
|
-
# Raised by the server when an issue arises in processing a valid request
|
2371
|
-
# NotAuthorizedException:
|
2372
|
-
# The principle specified by the user_id does not have authorization for the requested action
|
2373
|
-
#
|
2374
|
-
# """
|
2375
|
-
# if server_name is None:
|
2376
|
-
# server_name = self.server_name
|
2377
|
-
#
|
2378
|
-
# url = self.admin_command_root + "/servers/" + server_name + "/engine-list"
|
2379
|
-
# response = self.make_request("GET", url)
|
2380
|
-
#
|
2381
|
-
# # return response.json().get("config", "No engine definitions client configuration found")
|
2382
|
-
# return response.json()
|
2383
|
-
|
2384
2389
|
def set_engine_list(self, engine_list: [dict], server_name: str = None) -> None:
|
2385
2390
|
""" Set up the list of governance engine that will use the metadata from the same metadata access server
|
2386
2391
|
as the engine host uses for retrieving the engine configuration.
|
@@ -2535,4 +2540,3 @@ class CoreServerConfig(Client):
|
|
2535
2540
|
"""
|
2536
2541
|
url = f"{self.admin_command_root}/stores/placeholder-variables"
|
2537
2542
|
self.make_request("DELETE", url)
|
2538
|
-
|