pyegeria 1.5.1.1.58__py3-none-any.whl → 1.5.1.1.60__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/core_omag_server_config.py +47 -1
- pyegeria/full_omag_server_config.py +1 -1
- {pyegeria-1.5.1.1.58.dist-info → pyegeria-1.5.1.1.60.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.58.dist-info → pyegeria-1.5.1.1.60.dist-info}/RECORD +7 -7
- {pyegeria-1.5.1.1.58.dist-info → pyegeria-1.5.1.1.60.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.58.dist-info → pyegeria-1.5.1.1.60.dist-info}/WHEEL +0 -0
- {pyegeria-1.5.1.1.58.dist-info → pyegeria-1.5.1.1.60.dist-info}/entry_points.txt +0 -0
@@ -1211,6 +1211,52 @@ class CoreServerConfig(Client):
|
|
1211
1211
|
)
|
1212
1212
|
self.make_request("POST", url)
|
1213
1213
|
|
1214
|
+
def set_postgres_local_repository(
|
1215
|
+
self, config_body: dict, server_name: str = None
|
1216
|
+
) -> None:
|
1217
|
+
"""Set up the local repository to use the PostgreSQL Repository implementation.
|
1218
|
+
|
1219
|
+
Parameters
|
1220
|
+
----------
|
1221
|
+
config_body : dict
|
1222
|
+
The configuration body for the repository. This should contain the necessary parameters for
|
1223
|
+
connecting to the repository.
|
1224
|
+
|
1225
|
+
server_name : str, optional
|
1226
|
+
The name of the server. If not provided, the default server name will be used.
|
1227
|
+
|
1228
|
+
Returns
|
1229
|
+
-------
|
1230
|
+
None
|
1231
|
+
This method does not return anything.
|
1232
|
+
|
1233
|
+
Raises
|
1234
|
+
------
|
1235
|
+
InvalidParameterException
|
1236
|
+
If the response code is not 200.
|
1237
|
+
PropertyServerException:
|
1238
|
+
Raised by the server when an issue arises in processing a valid request
|
1239
|
+
NotAuthorizedException:
|
1240
|
+
The principle specified by the user_id does not have authorization for the requested action
|
1241
|
+
|
1242
|
+
Notes
|
1243
|
+
-----
|
1244
|
+
|
1245
|
+
Sample body:
|
1246
|
+
{
|
1247
|
+
"databaseURL": "{{postgreSQLDatabaseURL}}",
|
1248
|
+
"databaseSchema": "repository_{{server}}",
|
1249
|
+
"secretsStore": "{{secretsStore}}",
|
1250
|
+
"secretsCollectionName": "{{postgreSQLServerCollectionName}}"
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
"""
|
1254
|
+
if server_name is None:
|
1255
|
+
server_name = self.server_name
|
1256
|
+
|
1257
|
+
url = f"{self.core_command_root}/servers/{server_name}/local-repository/mode/postgres-repository"
|
1258
|
+
self.make_request("POST", url, config_body)
|
1259
|
+
|
1214
1260
|
def set_plug_in_repository(
|
1215
1261
|
self, config_body: dict, server_name: str = None
|
1216
1262
|
) -> None:
|
@@ -1410,7 +1456,7 @@ class CoreServerConfig(Client):
|
|
1410
1456
|
|
1411
1457
|
# If the database does not exist, create it
|
1412
1458
|
if not database_exists:
|
1413
|
-
cursor.execute(sql.SQL("CREATE DATABASE {}").format(sql.Identifier(pg_db)))
|
1459
|
+
cursor.execute(sql.SQL("CREATE DATABASE { }").format(sql.Identifier(pg_db)))
|
1414
1460
|
print(f"Database '{pg_db}' created.")
|
1415
1461
|
else:
|
1416
1462
|
print(f"Database '{pg_db}' already exists.")
|
@@ -42,7 +42,7 @@ class FullServerConfig(CoreServerConfig):
|
|
42
42
|
user_pwd: str = None,
|
43
43
|
):
|
44
44
|
self.full_config_command_root: str
|
45
|
-
|
45
|
+
CoreServerConfig.__init__(self, server_name, platform_url, user_id, user_pwd)
|
46
46
|
self.full_config_command_root = (
|
47
47
|
self.platform_url + "/open-metadata/admin-services/users/" + user_id
|
48
48
|
)
|
@@ -138,7 +138,7 @@ pyegeria/commands/tech/list_tech_templates.py,sha256=FIeYWnJY2bVUrfDQBJX2bpkp5cU
|
|
138
138
|
pyegeria/commands/tech/list_valid_metadata_values.py,sha256=N3D0_BmREPszgde3uvvYdfzq7DJ46uMOv2t1vtncGsw,6333
|
139
139
|
pyegeria/commands/tech/table_tech_templates.py,sha256=_aWI4U8CMO0c2JdUxfqW7b2RQADMPUBvTulWk6m50VA,9318
|
140
140
|
pyegeria/commands/tech/x_list_related_elements.py,sha256=qBsf1619cecaMCTzG0MG22fAT32WNH2Z3CXrjo9z-5Y,5853
|
141
|
-
pyegeria/core_omag_server_config.py,sha256=
|
141
|
+
pyegeria/core_omag_server_config.py,sha256=UKgnMGjB-WikvRjjkVjkAcbWEsL5G10BlHBFPgCoCw8,96497
|
142
142
|
pyegeria/create_tech_guid_lists.py,sha256=HHkC6HW58EN1BiolrYSRqSE0JhPbTepOFzwtdwBxVaU,4640
|
143
143
|
pyegeria/egeria_cat_client.py,sha256=NzwDbdi5OBHOOA7JzIQC5LqJJ7xtEwHA5yaKrGkDFnc,2022
|
144
144
|
pyegeria/egeria_client.py,sha256=gZjo_Z8n7r05KJnQgJuQibGOvCA90JCDlzyFRGkZV-I,3366
|
@@ -146,7 +146,7 @@ pyegeria/egeria_config_client.py,sha256=Zm31u4e7o8mXTV93qD0IHluQuG73jYbArPFqypja
|
|
146
146
|
pyegeria/egeria_my_client.py,sha256=XHwbFmSZXJClKDBFV8_fyK9CWaap2FndurRjywKPQiU,1549
|
147
147
|
pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEoo,2440
|
148
148
|
pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
|
149
|
-
pyegeria/full_omag_server_config.py,sha256=
|
149
|
+
pyegeria/full_omag_server_config.py,sha256=k3fUfopAFAE3OKkFR7zZPiki_FYj6j2xQ4oD2SVaefQ,47350
|
150
150
|
pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
|
151
151
|
pyegeria/glossary_manager_omvs.py,sha256=SWgPGkRag5hOXYM-cpbWI6oW_DXUZBt4ePtmOP7ZYUc,128787
|
152
152
|
pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
|
@@ -160,8 +160,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
|
|
160
160
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
161
161
|
pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
|
162
162
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
163
|
-
pyegeria-1.5.1.1.
|
164
|
-
pyegeria-1.5.1.1.
|
165
|
-
pyegeria-1.5.1.1.
|
166
|
-
pyegeria-1.5.1.1.
|
167
|
-
pyegeria-1.5.1.1.
|
163
|
+
pyegeria-1.5.1.1.60.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
164
|
+
pyegeria-1.5.1.1.60.dist-info/METADATA,sha256=jSeDNCcs-ovkGuyFsD9jkBDQwd-_HBucn_rAzjL4o3I,2998
|
165
|
+
pyegeria-1.5.1.1.60.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
166
|
+
pyegeria-1.5.1.1.60.dist-info/entry_points.txt,sha256=oG-N-_kcUg7NFj2XchfxtFqsL4d4uOxlGYZOzDta1Pg,5171
|
167
|
+
pyegeria-1.5.1.1.60.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|