pyegeria 0.8.4.22__py3-none-any.whl → 0.8.4.24__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/cli/egeria_ops.py +1 -1
- commands/ops/integration_daemon_actions.py +99 -1
- {pyegeria-0.8.4.22.dist-info → pyegeria-0.8.4.24.dist-info}/METADATA +1 -1
- {pyegeria-0.8.4.22.dist-info → pyegeria-0.8.4.24.dist-info}/RECORD +7 -7
- {pyegeria-0.8.4.22.dist-info → pyegeria-0.8.4.24.dist-info}/LICENSE +0 -0
- {pyegeria-0.8.4.22.dist-info → pyegeria-0.8.4.24.dist-info}/WHEEL +0 -0
- {pyegeria-0.8.4.22.dist-info → pyegeria-0.8.4.24.dist-info}/entry_points.txt +0 -0
commands/cli/egeria_ops.py
CHANGED
@@ -14,7 +14,7 @@ from trogon import tui
|
|
14
14
|
|
15
15
|
# from pyegeria import ServerOps
|
16
16
|
from commands.cli.ops_config import Config
|
17
|
-
from commands.ops.
|
17
|
+
from commands.ops.integration_daemon_actions import (
|
18
18
|
start_server,
|
19
19
|
stop_server,
|
20
20
|
refresh_gov_eng_config,
|
@@ -13,7 +13,7 @@ from rich import print, print_json
|
|
13
13
|
from rich.console import Console
|
14
14
|
|
15
15
|
import click
|
16
|
-
from pyegeria import
|
16
|
+
from pyegeria import EgeriaTech, AutomatedCuration, INTEGRATION_GUIDS
|
17
17
|
from pyegeria._exceptions import (
|
18
18
|
InvalidParameterException,
|
19
19
|
PropertyServerException,
|
@@ -137,3 +137,101 @@ def update_catalog_target(ctx, relationship_guid: str, catalog_target_name: str)
|
|
137
137
|
#
|
138
138
|
# except (InvalidParameterException, PropertyServerException) as e:
|
139
139
|
# print_exception_response(e)
|
140
|
+
@click.command("refresh-gov-eng-config")
|
141
|
+
@click.pass_context
|
142
|
+
# @click.option(
|
143
|
+
# "--engine-host", default=EGERIA_ENGINE_HOST, help="Engine Host to refresh"
|
144
|
+
# )
|
145
|
+
# @click.option(
|
146
|
+
# "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
|
147
|
+
# )
|
148
|
+
# @click.option(
|
149
|
+
# "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
|
150
|
+
# )
|
151
|
+
# @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
|
152
|
+
# @click.option(
|
153
|
+
# "--password",
|
154
|
+
# default="secret",
|
155
|
+
# envvar="EGERIA_PASSWORD",
|
156
|
+
# help="Egeria user password",
|
157
|
+
# )
|
158
|
+
def refresh_gov_eng_config(ctx):
|
159
|
+
"""Start or restart an engine-host from its known configuration"""
|
160
|
+
c = ctx.obj
|
161
|
+
p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
|
162
|
+
token = p_client.create_egeria_bearer_token()
|
163
|
+
try:
|
164
|
+
engine_host_guid = p_client.get_guid_for_name(c.engine_host)
|
165
|
+
p_client.refresh_gov_eng_config(engine_host_guid)
|
166
|
+
|
167
|
+
click.echo(f"Refreshed server {c.engine_host}")
|
168
|
+
|
169
|
+
except (InvalidParameterException, PropertyServerException) as e:
|
170
|
+
print_exception_response(e)
|
171
|
+
finally:
|
172
|
+
p_client.close_session()
|
173
|
+
|
174
|
+
|
175
|
+
@click.command("start")
|
176
|
+
@click.pass_context
|
177
|
+
@click.option("--server", help="OMAG Server to start")
|
178
|
+
# @click.option(
|
179
|
+
# "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
|
180
|
+
# )
|
181
|
+
# @click.option(
|
182
|
+
# "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
|
183
|
+
# )
|
184
|
+
# @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
|
185
|
+
# @click.option(
|
186
|
+
# "--password",
|
187
|
+
# default="secret",
|
188
|
+
# envvar="EGERIA_USER_PASSWORD",
|
189
|
+
# help="Egeria user password",
|
190
|
+
# )
|
191
|
+
def start_server(ctx, server):
|
192
|
+
"""Start or restart an engine-host from its known configuration"""
|
193
|
+
c = ctx.obj
|
194
|
+
p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
|
195
|
+
token = p_client.create_egeria_bearer_token()
|
196
|
+
try:
|
197
|
+
server_guid = p_client.get_element_guid_by_unique_name(server, "name")
|
198
|
+
p_client.activate_server_with_stored_config(server_guid)
|
199
|
+
|
200
|
+
click.echo(f"Started server {server}")
|
201
|
+
|
202
|
+
except (InvalidParameterException, PropertyServerException) as e:
|
203
|
+
print_exception_response(e)
|
204
|
+
finally:
|
205
|
+
p_client.close_session()
|
206
|
+
|
207
|
+
|
208
|
+
@click.command("stop")
|
209
|
+
@click.option("--server", help="OMAG Server to stop")
|
210
|
+
# @click.option(
|
211
|
+
# "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
|
212
|
+
# )
|
213
|
+
# @click.option(
|
214
|
+
# "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
|
215
|
+
# )
|
216
|
+
# @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
|
217
|
+
# @click.option(
|
218
|
+
# "--password",
|
219
|
+
# default="secret",
|
220
|
+
# envvar="EGERIA_PASSWORD",
|
221
|
+
# help="Egeria user password",
|
222
|
+
# )
|
223
|
+
@click.pass_context
|
224
|
+
def stop_server(ctx, server):
|
225
|
+
"""Stop an engine-host daemon"""
|
226
|
+
c = ctx.obj
|
227
|
+
p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
|
228
|
+
token = p_client.create_egeria_bearer_token()
|
229
|
+
try:
|
230
|
+
server_guid = p_client.get_guid_for_name(server)
|
231
|
+
|
232
|
+
p_client.shutdown_server(server_guid)
|
233
|
+
click.echo(f"Stopped server {server}")
|
234
|
+
except (InvalidParameterException, PropertyServerException) as e:
|
235
|
+
print_exception_response(e)
|
236
|
+
finally:
|
237
|
+
p_client.close_session()
|
@@ -19,7 +19,7 @@ commands/cli/__init__.py,sha256=6d_R0KZBNnJy9EBz9J2xvGFlx-3j_ZPqPCxKgdvYeDQ,291
|
|
19
19
|
commands/cli/egeria.py,sha256=diSjRmatdj9RNsHEZbcstxvH4TPf99PXdILp7DyqgTQ,28411
|
20
20
|
commands/cli/egeria_cat.py,sha256=LWspOYRcdJIIx2n9wvhBhkNnACGDIpFTWfsoVTGeiV0,12957
|
21
21
|
commands/cli/egeria_my.py,sha256=9zIpUDLeA_R-0rgCSQfEZTtVmkxPcEAsYcCTn1wQFrE,6181
|
22
|
-
commands/cli/egeria_ops.py,sha256=
|
22
|
+
commands/cli/egeria_ops.py,sha256=IoFtzuOPJb4fjEag8AhlHIr5dOg4ODGAjrghmmQBiCg,11092
|
23
23
|
commands/cli/egeria_tech.py,sha256=PfEIf8pLgbCiPlUikZss97R78XOue0P3aZG5PswUtQ4,11161
|
24
24
|
commands/cli/ops_config.py,sha256=m4AfPjf-fR4EBTx8Dc2mcgrfWwAxb30YGeV-v79bg4U,1450
|
25
25
|
commands/my/README.md,sha256=ZheFhj_VoPMhcWjW3pGchHB0vH_A9PklSmrSkzKdrcQ,844
|
@@ -33,7 +33,7 @@ commands/my/todo_actions.py,sha256=uihltirrAPtwYNygnNBAVWgfS0W7acoETz1_h3XW_4o,8
|
|
33
33
|
commands/ops/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
|
34
34
|
commands/ops/__init__.py,sha256=SCfzF3-aMx8EpqLWmH7JQf13gTmMAtHRbg69oseLvi8,480
|
35
35
|
commands/ops/engine_actions.py,sha256=00s_wkzs0zlZ6PyZ0J5J9lHhw4Viyzbeox7b1K1lmyc,4609
|
36
|
-
commands/ops/integration_daemon_actions.py,sha256=
|
36
|
+
commands/ops/integration_daemon_actions.py,sha256=DdG6hajVQuYxh5PJRpoPhyAzdEoc1gB0FkIIv-tCvG4,7625
|
37
37
|
commands/ops/list_catalog_targets.py,sha256=0FIZqZu7DSh7tnrme6EOhNiVvK8wyvN1iTZKEDuwTmw,6620
|
38
38
|
commands/ops/load_archive.py,sha256=duf3wq2ANRBiOj9KTFsw8TseEkJLKdzITAeTCjsMvI0,2453
|
39
39
|
commands/ops/monitor_asset_events.py,sha256=cjdlVqE0XYnoRW3aorNbsVkjByDXefPBnllaZLelGls,3838
|
@@ -92,8 +92,8 @@ pyegeria/server_operations.py,sha256=ciH890hYT85YQ6OpByn4w7s3a7TtvWZpIG5rkRqbcI0
|
|
92
92
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
93
93
|
pyegeria/valid_metadata_omvs.py,sha256=6Hc4g9BOS8w1ILfTG3_A1tfIX3HLtpgZZvcC-z9GePU,36185
|
94
94
|
pyegeria/x_action_author_omvs.py,sha256=za472slZ5tN9Pkd-ukyHS5Sn6MlKkJyIlbLlU3bL_Go,6451
|
95
|
-
pyegeria-0.8.4.
|
96
|
-
pyegeria-0.8.4.
|
97
|
-
pyegeria-0.8.4.
|
98
|
-
pyegeria-0.8.4.
|
99
|
-
pyegeria-0.8.4.
|
95
|
+
pyegeria-0.8.4.24.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
96
|
+
pyegeria-0.8.4.24.dist-info/METADATA,sha256=OqZlzrcHeP6WgJxtMu7uCXEgzEee_T5-6YFWRm47da8,2820
|
97
|
+
pyegeria-0.8.4.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
98
|
+
pyegeria-0.8.4.24.dist-info/entry_points.txt,sha256=CkFcA_eJ_pXLSlpZ7AAPDiNVHyFuW0tDHc_y9LTlLx8,3344
|
99
|
+
pyegeria-0.8.4.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|