pyegeria 5.3.9.9.3__py3-none-any.whl → 5.5.3.3__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.
Potentially problematic release.
This version of pyegeria might be problematic. Click here for more details.
- commands/__init__.py +24 -0
- commands/cat/Dr-Egeria_md-orig.py +2 -2
- commands/cat/__init__.py +1 -17
- commands/cat/collection_actions.py +197 -0
- commands/cat/dr_egeria_command_help.py +372 -0
- commands/cat/dr_egeria_jupyter.py +7 -7
- commands/cat/dr_egeria_md.py +27 -182
- commands/cat/exp_list_glossaries.py +11 -14
- commands/cat/get_asset_graph.py +37 -267
- commands/cat/{get_collection.py → get_collection_tree.py} +10 -18
- commands/cat/get_project_dependencies.py +14 -14
- commands/cat/get_project_structure.py +15 -14
- commands/cat/get_tech_type_elements.py +16 -116
- commands/cat/glossary_actions.py +145 -298
- commands/cat/list_assets.py +3 -11
- commands/cat/list_cert_types.py +17 -63
- commands/cat/list_collections.py +46 -138
- commands/cat/list_deployed_catalogs.py +15 -27
- commands/cat/list_deployed_database_schemas.py +27 -43
- commands/cat/list_deployed_databases.py +16 -31
- commands/cat/list_deployed_servers.py +35 -54
- commands/cat/list_glossaries.py +18 -17
- commands/cat/list_projects.py +10 -12
- commands/cat/list_tech_type_elements.py +21 -37
- commands/cat/list_tech_types.py +13 -25
- commands/cat/list_terms.py +38 -79
- commands/cat/list_todos.py +4 -11
- commands/cat/list_user_ids.py +3 -10
- commands/cat/my_reports.py +559 -0
- commands/cat/run_report.py +394 -0
- commands/cat/run_report_orig.py +528 -0
- commands/cli/egeria.py +222 -247
- commands/cli/egeria_cat.py +68 -81
- commands/cli/egeria_my.py +13 -0
- commands/cli/egeria_ops.py +69 -74
- commands/cli/egeria_tech.py +17 -93
- commands/cli/ops_config.py +3 -6
- commands/{cat/list_categories.py → deprecated/list_data_designer.py} +53 -64
- commands/{cat/list_data_structures.py → deprecated/list_data_structures_full.py} +3 -6
- commands/deprecated/old_get_asset_graph.py +315 -0
- commands/my/__init__.py +0 -2
- commands/my/list_my_profile.py +27 -34
- commands/my/list_my_roles.py +1 -7
- commands/my/monitor_my_todos.py +1 -7
- commands/my/monitor_open_todos.py +6 -7
- commands/my/todo_actions.py +4 -5
- commands/ops/__init__.py +0 -2
- commands/ops/gov_server_actions.py +17 -21
- commands/ops/list_archives.py +17 -38
- commands/ops/list_catalog_targets.py +33 -40
- commands/ops/load_archive.py +35 -26
- commands/ops/{monitor_engine_activity_c.py → monitor_active_engine_activity.py} +51 -82
- commands/ops/{monitor_integ_daemon_status.py → monitor_daemon_status.py} +35 -55
- commands/ops/monitor_engine_activity.py +79 -77
- commands/ops/{monitor_gov_eng_status.py → monitor_engine_status.py} +10 -7
- commands/ops/monitor_platform_status.py +38 -50
- commands/ops/monitor_server_startup.py +6 -11
- commands/ops/monitor_server_status.py +7 -11
- commands/ops/orig_monitor_server_list.py +8 -8
- commands/ops/orig_monitor_server_status.py +1 -5
- commands/ops/refresh_integration_daemon.py +5 -5
- commands/ops/restart_integration_daemon.py +5 -5
- commands/ops/table_integ_daemon_status.py +6 -6
- commands/ops/x_engine_actions.py +7 -7
- commands/tech/__init__.py +0 -2
- commands/tech/{generic_actions.py → element_actions.py} +6 -11
- commands/tech/get_element_info.py +20 -29
- commands/tech/get_guid_info.py +23 -42
- commands/tech/get_tech_details.py +20 -35
- commands/tech/get_tech_type_template.py +28 -39
- commands/tech/list_all_om_type_elements.py +24 -30
- commands/tech/list_all_om_type_elements_x.py +22 -28
- commands/tech/list_all_related_elements.py +19 -28
- commands/tech/list_anchored_elements.py +22 -30
- commands/tech/list_asset_types.py +19 -24
- commands/tech/list_elements_by_classification_by_property_value.py +26 -32
- commands/tech/list_elements_by_property_value.py +19 -25
- commands/tech/list_elements_by_property_value_x.py +20 -28
- commands/tech/list_elements_for_classification.py +28 -41
- commands/tech/list_gov_action_processes.py +16 -27
- commands/tech/list_information_supply_chains.py +22 -30
- commands/tech/list_registered_services.py +14 -26
- commands/tech/list_related_elements_with_prop_value.py +15 -25
- commands/tech/list_related_specification.py +1 -4
- commands/tech/list_relationship_types.py +15 -25
- commands/tech/list_relationships.py +20 -36
- commands/tech/list_solution_blueprints.py +28 -33
- commands/tech/list_solution_components.py +23 -29
- commands/tech/list_solution_roles.py +21 -32
- commands/tech/list_tech_templates.py +51 -54
- commands/tech/list_valid_metadata_values.py +5 -9
- commands/tech/table_tech_templates.py +2 -6
- commands/tech/x_list_related_elements.py +1 -4
- examples/GeoSpatial Products Example.py +524 -0
- examples/Jupyter Notebooks/P-egeria-server-config.ipynb +2137 -0
- examples/Jupyter Notebooks/README.md +2 -0
- examples/Jupyter Notebooks/common/P-environment-check.ipynb +115 -0
- examples/Jupyter Notebooks/common/__init__.py +14 -0
- examples/Jupyter Notebooks/common/common-functions.ipynb +4694 -0
- examples/Jupyter Notebooks/common/environment-check.ipynb +52 -0
- examples/Jupyter Notebooks/common/globals.ipynb +184 -0
- examples/Jupyter Notebooks/common/globals.py +154 -0
- examples/Jupyter Notebooks/common/orig_globals.py +152 -0
- examples/format_sets/all_format_sets.json +910 -0
- examples/format_sets/custom_format_sets.json +268 -0
- examples/format_sets/subset_format_sets.json +187 -0
- examples/format_sets_save_load_example.py +291 -0
- examples/jacquard_data_sets.py +129 -0
- examples/output_formats_example.py +193 -0
- examples/test_jacquard_data_sets.py +54 -0
- examples/test_jacquard_data_sets_scenarios.py +94 -0
- md_processing/__init__.py +90 -0
- md_processing/command_dispatcher.py +33 -0
- md_processing/command_mapping.py +221 -0
- md_processing/data/commands/commands_data_designer.json +537 -0
- md_processing/data/commands/commands_external_reference.json +733 -0
- md_processing/data/commands/commands_feedback.json +155 -0
- md_processing/data/commands/commands_general.json +204 -0
- md_processing/data/commands/commands_glossary.json +218 -0
- md_processing/data/commands/commands_governance.json +3678 -0
- md_processing/data/commands/commands_product_manager.json +865 -0
- md_processing/data/commands/commands_project.json +642 -0
- md_processing/data/commands/commands_solution_architect.json +366 -0
- md_processing/data/commands.json +17568 -0
- md_processing/data/commands_working.json +30641 -0
- md_processing/data/gened_report_specs.py +6584 -0
- md_processing/data/generated_format_sets.json +6533 -0
- md_processing/data/generated_format_sets_old.json +4137 -0
- md_processing/data/generated_format_sets_old.py +45 -0
- md_processing/dr_egeria.py +182 -0
- md_processing/md_commands/__init__.py +3 -0
- md_processing/md_commands/data_designer_commands.py +1276 -0
- md_processing/md_commands/ext_ref_commands.py +530 -0
- md_processing/md_commands/feedback_commands.py +726 -0
- md_processing/md_commands/glossary_commands.py +684 -0
- md_processing/md_commands/governance_officer_commands.py +600 -0
- md_processing/md_commands/product_manager_commands.py +1266 -0
- md_processing/md_commands/project_commands.py +383 -0
- md_processing/md_commands/solution_architect_commands.py +1184 -0
- md_processing/md_commands/view_commands.py +295 -0
- md_processing/md_processing_utils/__init__.py +4 -0
- md_processing/md_processing_utils/common_md_proc_utils.py +1249 -0
- md_processing/md_processing_utils/common_md_utils.py +578 -0
- md_processing/md_processing_utils/determine_width.py +103 -0
- md_processing/md_processing_utils/extraction_utils.py +547 -0
- md_processing/md_processing_utils/gen_report_specs.py +643 -0
- md_processing/md_processing_utils/generate_dr_help.py +193 -0
- md_processing/md_processing_utils/generate_md_cmd_templates.py +144 -0
- md_processing/md_processing_utils/generate_md_templates.py +83 -0
- md_processing/md_processing_utils/md_processing_constants.py +1228 -0
- md_processing/md_processing_utils/message_constants.py +19 -0
- pyegeria/__init__.py +201 -443
- pyegeria/core/__init__.py +40 -0
- pyegeria/core/_base_platform_client.py +574 -0
- pyegeria/core/_base_server_client.py +573 -0
- pyegeria/core/_exceptions.py +457 -0
- pyegeria/core/_globals.py +60 -0
- pyegeria/core/_server_client.py +6073 -0
- pyegeria/core/_validators.py +257 -0
- pyegeria/core/config.py +654 -0
- pyegeria/{create_tech_guid_lists.py → core/create_tech_guid_lists.py} +0 -1
- pyegeria/core/load_config.py +37 -0
- pyegeria/core/logging_configuration.py +207 -0
- pyegeria/core/mcp_adapter.py +144 -0
- pyegeria/core/mcp_server.py +212 -0
- pyegeria/core/utils.py +405 -0
- pyegeria/deprecated/__init__.py +0 -0
- pyegeria/{_client.py → deprecated/_client.py} +62 -24
- pyegeria/{_deprecated_gov_engine.py → deprecated/_deprecated_gov_engine.py} +16 -16
- pyegeria/{classification_manager_omvs.py → deprecated/classification_manager_omvs.py} +1988 -1878
- pyegeria/deprecated/output_formatter_with_machine_keys.py +1127 -0
- pyegeria/{runtime_manager_omvs.py → deprecated/runtime_manager_omvs.py} +216 -229
- pyegeria/{valid_metadata_omvs.py → deprecated/valid_metadata_omvs.py} +93 -93
- pyegeria/{x_action_author_omvs.py → deprecated/x_action_author_omvs.py} +2 -3
- pyegeria/egeria_cat_client.py +25 -51
- pyegeria/egeria_client.py +140 -98
- pyegeria/egeria_config_client.py +48 -24
- pyegeria/egeria_tech_client.py +170 -83
- pyegeria/models/__init__.py +150 -0
- pyegeria/models/collection_models.py +168 -0
- pyegeria/models/models.py +654 -0
- pyegeria/omvs/__init__.py +84 -0
- pyegeria/omvs/action_author.py +342 -0
- pyegeria/omvs/actor_manager.py +5980 -0
- pyegeria/omvs/asset_catalog.py +842 -0
- pyegeria/omvs/asset_maker.py +2736 -0
- pyegeria/omvs/automated_curation.py +4403 -0
- pyegeria/omvs/classification_manager.py +11213 -0
- pyegeria/omvs/collection_manager.py +5780 -0
- pyegeria/omvs/community_matters_omvs.py +468 -0
- pyegeria/{core_omag_server_config.py → omvs/core_omag_server_config.py} +157 -157
- pyegeria/{data_designer_omvs.py → omvs/data_designer.py} +1991 -1691
- pyegeria/omvs/data_discovery.py +869 -0
- pyegeria/omvs/data_engineer.py +372 -0
- pyegeria/omvs/digital_business.py +1133 -0
- pyegeria/omvs/external_links.py +1752 -0
- pyegeria/omvs/feedback_manager.py +834 -0
- pyegeria/{full_omag_server_config.py → omvs/full_omag_server_config.py} +73 -69
- pyegeria/omvs/glossary_manager.py +3231 -0
- pyegeria/omvs/governance_officer.py +3009 -0
- pyegeria/omvs/lineage_linker.py +314 -0
- pyegeria/omvs/location_arena.py +1525 -0
- pyegeria/omvs/metadata_expert.py +668 -0
- pyegeria/omvs/metadata_explorer_omvs.py +2943 -0
- pyegeria/omvs/my_profile.py +1042 -0
- pyegeria/omvs/notification_manager.py +358 -0
- pyegeria/omvs/people_organizer.py +394 -0
- pyegeria/{platform_services.py → omvs/platform_services.py} +113 -193
- pyegeria/omvs/product_manager.py +1825 -0
- pyegeria/omvs/project_manager.py +1907 -0
- pyegeria/omvs/reference_data.py +1140 -0
- pyegeria/omvs/registered_info.py +334 -0
- pyegeria/omvs/runtime_manager.py +2817 -0
- pyegeria/omvs/schema_maker.py +446 -0
- pyegeria/{server_operations.py → omvs/server_operations.py} +27 -26
- pyegeria/omvs/solution_architect.py +6490 -0
- pyegeria/omvs/specification_properties.py +37 -0
- pyegeria/omvs/subject_area.py +1042 -0
- pyegeria/omvs/template_manager_omvs.py +236 -0
- pyegeria/omvs/time_keeper.py +1761 -0
- pyegeria/omvs/valid_metadata.py +3221 -0
- pyegeria/omvs/valid_metadata_lists.py +37 -0
- pyegeria/omvs/valid_type_lists.py +37 -0
- pyegeria/view/__init__.py +28 -0
- pyegeria/view/_output_format_models.py +514 -0
- pyegeria/view/_output_formats.py +14 -0
- pyegeria/view/base_report_formats.py +2719 -0
- pyegeria/view/dr_egeria_reports.py +56 -0
- pyegeria/view/format_set_executor.py +397 -0
- pyegeria/{md_processing_utils.py → view/md_processing_utils.py} +5 -5
- pyegeria/{mermaid_utilities.py → view/mermaid_utilities.py} +2 -154
- pyegeria/view/output_formatter.py +1297 -0
- pyegeria-5.5.3.3.dist-info/METADATA +218 -0
- pyegeria-5.5.3.3.dist-info/RECORD +241 -0
- {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.5.3.3.dist-info}/WHEEL +2 -1
- pyegeria-5.5.3.3.dist-info/entry_points.txt +103 -0
- pyegeria-5.5.3.3.dist-info/top_level.txt +4 -0
- commands/cat/.DS_Store +0 -0
- commands/cat/README.md +0 -16
- commands/cli/txt_custom_v2.tcss +0 -19
- commands/my/README.md +0 -17
- commands/ops/README.md +0 -24
- commands/ops/monitor_asset_events.py +0 -108
- commands/tech/README.md +0 -24
- pyegeria/.DS_Store +0 -0
- pyegeria/README.md +0 -35
- pyegeria/_globals.py +0 -47
- pyegeria/_validators.py +0 -385
- pyegeria/asset_catalog_omvs.py +0 -864
- pyegeria/automated_curation_omvs.py +0 -3765
- pyegeria/collection_manager_omvs.py +0 -2744
- pyegeria/dr.egeria spec.md +0 -9
- pyegeria/egeria_my_client.py +0 -56
- pyegeria/feedback_manager_omvs.py +0 -4573
- pyegeria/glossary_browser_omvs.py +0 -3728
- pyegeria/glossary_manager_omvs.py +0 -2440
- pyegeria/m_test.py +0 -118
- pyegeria/md_processing_helpers.py +0 -58
- pyegeria/md_processing_utils_orig.py +0 -1103
- pyegeria/metadata_explorer_omvs.py +0 -2326
- pyegeria/my_profile_omvs.py +0 -1022
- pyegeria/output_formatter.py +0 -389
- pyegeria/project_manager_omvs.py +0 -1933
- pyegeria/registered_info.py +0 -167
- pyegeria/solution_architect_omvs.py +0 -2156
- pyegeria/template_manager_omvs.py +0 -1414
- pyegeria/utils.py +0 -197
- pyegeria-5.3.9.9.3.dist-info/METADATA +0 -72
- pyegeria-5.3.9.9.3.dist-info/RECORD +0 -143
- pyegeria-5.3.9.9.3.dist-info/entry_points.txt +0 -99
- /pyegeria/{_exceptions.py → deprecated/_exceptions.py} +0 -0
- {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.5.3.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -9,13 +9,12 @@ Runtime manager is a view service that supports user interaction with the runnin
|
|
|
9
9
|
import asyncio
|
|
10
10
|
|
|
11
11
|
from requests import Response
|
|
12
|
-
from pyegeria.utils import body_slimmer
|
|
13
|
-
from pyegeria.
|
|
14
|
-
from pyegeria import
|
|
15
|
-
from pyegeria._exceptions import InvalidParameterException
|
|
16
|
-
from pyegeria._globals import NO_ELEMENTS_FOUND
|
|
12
|
+
from pyegeria.core.utils import body_slimmer
|
|
13
|
+
from pyegeria.core._server_client import ServerClient
|
|
14
|
+
from pyegeria.core._globals import max_paging_size,default_time_out
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
|
|
17
|
+
class RuntimeManager(ServerClient):
|
|
19
18
|
"""
|
|
20
19
|
Client to issue Runtime status requests.
|
|
21
20
|
|
|
@@ -48,7 +47,7 @@ class RuntimeManager(Client):
|
|
|
48
47
|
):
|
|
49
48
|
self.view_server = view_server
|
|
50
49
|
self.time_out = time_out
|
|
51
|
-
|
|
50
|
+
ServerClient.__init__(self, view_server, platform_url, user_id, user_pwd, token=token)
|
|
52
51
|
self.runtime_command_root = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/runtime-manager"
|
|
53
52
|
# self.platform_guid = "44bf319f-1e41-4da1-b771-2753b92b631a" # this is platform @ 9443 from the core content archive
|
|
54
53
|
self.platform_guid = None
|
|
@@ -87,9 +86,9 @@ class RuntimeManager(Client):
|
|
|
87
86
|
|
|
88
87
|
Raises
|
|
89
88
|
------
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
PyegeriaInvalidParameterException
|
|
90
|
+
PyegeriaAPIException
|
|
91
|
+
PyegeriaUnauthorizedException
|
|
93
92
|
|
|
94
93
|
"""
|
|
95
94
|
server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
|
|
@@ -128,9 +127,9 @@ class RuntimeManager(Client):
|
|
|
128
127
|
|
|
129
128
|
Raises
|
|
130
129
|
------
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
PyegeriaInvalidParameterException
|
|
131
|
+
PyegeriaAPIException
|
|
132
|
+
PyegeriaUnauthorizedException
|
|
134
133
|
|
|
135
134
|
"""
|
|
136
135
|
loop = asyncio.get_event_loop()
|
|
@@ -164,9 +163,9 @@ class RuntimeManager(Client):
|
|
|
164
163
|
|
|
165
164
|
Raises
|
|
166
165
|
------
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
PyegeriaInvalidParameterException
|
|
167
|
+
PyegeriaAPIException
|
|
168
|
+
PyegeriaUnauthorizedException
|
|
170
169
|
|
|
171
170
|
"""
|
|
172
171
|
server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
|
|
@@ -202,9 +201,9 @@ class RuntimeManager(Client):
|
|
|
202
201
|
|
|
203
202
|
Raises
|
|
204
203
|
------
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
PyegeriaInvalidParameterException
|
|
205
|
+
PyegeriaAPIException
|
|
206
|
+
PyegeriaUnauthorizedException
|
|
208
207
|
|
|
209
208
|
"""
|
|
210
209
|
loop = asyncio.get_event_loop()
|
|
@@ -238,9 +237,9 @@ class RuntimeManager(Client):
|
|
|
238
237
|
|
|
239
238
|
Raises
|
|
240
239
|
------
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
PyegeriaInvalidParameterException
|
|
241
|
+
PyegeriaAPIException
|
|
242
|
+
PyegeriaUnauthorizedException
|
|
244
243
|
|
|
245
244
|
"""
|
|
246
245
|
server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
|
|
@@ -275,9 +274,9 @@ class RuntimeManager(Client):
|
|
|
275
274
|
|
|
276
275
|
Raises
|
|
277
276
|
------
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
PyegeriaInvalidParameterException
|
|
278
|
+
PyegeriaAPIException
|
|
279
|
+
PyegeriaUnauthorizedException
|
|
281
280
|
|
|
282
281
|
"""
|
|
283
282
|
loop = asyncio.get_event_loop()
|
|
@@ -323,13 +322,13 @@ class RuntimeManager(Client):
|
|
|
323
322
|
|
|
324
323
|
Raises
|
|
325
324
|
------
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
PyegeriaInvalidParameterException
|
|
326
|
+
PyegeriaAPIException
|
|
327
|
+
PyegeriaUnauthorizedException
|
|
329
328
|
|
|
330
329
|
"""
|
|
331
330
|
server_guid = self.__get_guid__(
|
|
332
|
-
server_guid, display_name, "
|
|
331
|
+
server_guid, display_name, "displayName", qualified_name, tech_type="Engine Host"
|
|
333
332
|
)
|
|
334
333
|
if gov_engine_name is None:
|
|
335
334
|
url = (
|
|
@@ -377,9 +376,9 @@ class RuntimeManager(Client):
|
|
|
377
376
|
|
|
378
377
|
Raises
|
|
379
378
|
------
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
PyegeriaInvalidParameterException
|
|
380
|
+
PyegeriaAPIException
|
|
381
|
+
PyegeriaUnauthorizedException
|
|
383
382
|
|
|
384
383
|
"""
|
|
385
384
|
loop = asyncio.get_event_loop()
|
|
@@ -422,9 +421,9 @@ class RuntimeManager(Client):
|
|
|
422
421
|
|
|
423
422
|
Raises
|
|
424
423
|
------
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
424
|
+
PyegeriaInvalidParameterException
|
|
425
|
+
PyegeriaAPIException
|
|
426
|
+
PyegeriaUnauthorizedException
|
|
428
427
|
|
|
429
428
|
"""
|
|
430
429
|
server_guid = self.__get_guid__(
|
|
@@ -469,9 +468,9 @@ class RuntimeManager(Client):
|
|
|
469
468
|
|
|
470
469
|
Raises
|
|
471
470
|
------
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
471
|
+
PyegeriaInvalidParameterException
|
|
472
|
+
PyegeriaAPIException
|
|
473
|
+
PyegeriaUnauthorizedException
|
|
475
474
|
|
|
476
475
|
"""
|
|
477
476
|
loop = asyncio.get_event_loop()
|
|
@@ -520,9 +519,9 @@ class RuntimeManager(Client):
|
|
|
520
519
|
|
|
521
520
|
Raises
|
|
522
521
|
------
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
522
|
+
PyegeriaInvalidParameterException
|
|
523
|
+
PyegeriaAPIException
|
|
524
|
+
PyegeriaUnauthorizedException
|
|
526
525
|
|
|
527
526
|
"""
|
|
528
527
|
server_guid = self.__get_guid__(
|
|
@@ -582,9 +581,9 @@ class RuntimeManager(Client):
|
|
|
582
581
|
|
|
583
582
|
Raises
|
|
584
583
|
------
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
584
|
+
PyegeriaInvalidParameterException
|
|
585
|
+
PyegeriaAPIException
|
|
586
|
+
PyegeriaUnauthorizedException
|
|
588
587
|
|
|
589
588
|
"""
|
|
590
589
|
loop = asyncio.get_event_loop()
|
|
@@ -633,9 +632,9 @@ class RuntimeManager(Client):
|
|
|
633
632
|
|
|
634
633
|
Raises
|
|
635
634
|
------
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
635
|
+
PyegeriaInvalidParameterException
|
|
636
|
+
PyegeriaAPIException
|
|
637
|
+
PyegeriaUnauthorizedException
|
|
639
638
|
|
|
640
639
|
"""
|
|
641
640
|
server_guid = self.__get_guid__(
|
|
@@ -686,9 +685,9 @@ class RuntimeManager(Client):
|
|
|
686
685
|
|
|
687
686
|
Raises
|
|
688
687
|
------
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
688
|
+
PyegeriaInvalidParameterException
|
|
689
|
+
PyegeriaAPIException
|
|
690
|
+
PyegeriaUnauthorizedException
|
|
692
691
|
|
|
693
692
|
"""
|
|
694
693
|
loop = asyncio.get_event_loop()
|
|
@@ -732,9 +731,9 @@ class RuntimeManager(Client):
|
|
|
732
731
|
|
|
733
732
|
Raises
|
|
734
733
|
------
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
734
|
+
PyegeriaInvalidParameterException
|
|
735
|
+
PyegeriaAPIException
|
|
736
|
+
PyegeriaUnauthorizedException
|
|
738
737
|
|
|
739
738
|
"""
|
|
740
739
|
server_guid = self.__get_guid__(
|
|
@@ -785,9 +784,9 @@ class RuntimeManager(Client):
|
|
|
785
784
|
|
|
786
785
|
Raises
|
|
787
786
|
------
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
787
|
+
PyegeriaInvalidParameterException
|
|
788
|
+
PyegeriaAPIException
|
|
789
|
+
PyegeriaUnauthorizedException
|
|
791
790
|
|
|
792
791
|
"""
|
|
793
792
|
loop = asyncio.get_event_loop()
|
|
@@ -827,9 +826,9 @@ class RuntimeManager(Client):
|
|
|
827
826
|
|
|
828
827
|
Raises
|
|
829
828
|
------
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
829
|
+
PyegeriaInvalidParameterException
|
|
830
|
+
PyegeriaAPIException
|
|
831
|
+
PyegeriaUnauthorizedException
|
|
833
832
|
|
|
834
833
|
"""
|
|
835
834
|
server_guid = self.__get_guid__(
|
|
@@ -880,9 +879,9 @@ class RuntimeManager(Client):
|
|
|
880
879
|
|
|
881
880
|
Raises
|
|
882
881
|
------
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
882
|
+
PyegeriaInvalidParameterException
|
|
883
|
+
PyegeriaAPIException
|
|
884
|
+
PyegeriaUnauthorizedException
|
|
886
885
|
|
|
887
886
|
"""
|
|
888
887
|
loop = asyncio.get_event_loop()
|
|
@@ -924,9 +923,9 @@ class RuntimeManager(Client):
|
|
|
924
923
|
|
|
925
924
|
Raises
|
|
926
925
|
------
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
926
|
+
PyegeriaInvalidParameterException
|
|
927
|
+
PyegeriaAPIException
|
|
928
|
+
PyegeriaUnauthorizedException
|
|
930
929
|
|
|
931
930
|
"""
|
|
932
931
|
server_guid = self.__get_guid__(
|
|
@@ -975,9 +974,9 @@ class RuntimeManager(Client):
|
|
|
975
974
|
|
|
976
975
|
Raises
|
|
977
976
|
------
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
977
|
+
PyegeriaInvalidParameterException
|
|
978
|
+
PyegeriaAPIException
|
|
979
|
+
PyegeriaUnauthorizedException
|
|
981
980
|
|
|
982
981
|
"""
|
|
983
982
|
loop = asyncio.get_event_loop()
|
|
@@ -1020,15 +1019,15 @@ class RuntimeManager(Client):
|
|
|
1020
1019
|
|
|
1021
1020
|
Raises
|
|
1022
1021
|
------
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1022
|
+
PyegeriaInvalidParameterException
|
|
1023
|
+
PyegeriaAPIException
|
|
1024
|
+
PyegeriaUnauthorizedException
|
|
1026
1025
|
|
|
1027
1026
|
"""
|
|
1028
1027
|
server_guid = self.__get_guid__(
|
|
1029
1028
|
server_guid,
|
|
1030
1029
|
display_name,
|
|
1031
|
-
"
|
|
1030
|
+
"displayName",
|
|
1032
1031
|
qualified_name,
|
|
1033
1032
|
)
|
|
1034
1033
|
url = (
|
|
@@ -1068,9 +1067,9 @@ class RuntimeManager(Client):
|
|
|
1068
1067
|
|
|
1069
1068
|
Raises
|
|
1070
1069
|
------
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1070
|
+
PyegeriaInvalidParameterException
|
|
1071
|
+
PyegeriaAPIException
|
|
1072
|
+
PyegeriaUnauthorizedException
|
|
1074
1073
|
|
|
1075
1074
|
"""
|
|
1076
1075
|
loop = asyncio.get_event_loop()
|
|
@@ -1112,9 +1111,9 @@ class RuntimeManager(Client):
|
|
|
1112
1111
|
|
|
1113
1112
|
Raises
|
|
1114
1113
|
------
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1114
|
+
PyegeriaInvalidParameterException
|
|
1115
|
+
PyegeriaAPIException
|
|
1116
|
+
PyegeriaUnauthorizedException
|
|
1118
1117
|
|
|
1119
1118
|
"""
|
|
1120
1119
|
server_guid = self.__get_guid__(
|
|
@@ -1165,9 +1164,9 @@ class RuntimeManager(Client):
|
|
|
1165
1164
|
|
|
1166
1165
|
Raises
|
|
1167
1166
|
------
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1167
|
+
PyegeriaInvalidParameterException
|
|
1168
|
+
PyegeriaAPIException
|
|
1169
|
+
PyegeriaUnauthorizedException
|
|
1171
1170
|
|
|
1172
1171
|
"""
|
|
1173
1172
|
loop = asyncio.get_event_loop()
|
|
@@ -1213,15 +1212,15 @@ class RuntimeManager(Client):
|
|
|
1213
1212
|
|
|
1214
1213
|
Raises
|
|
1215
1214
|
------
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1215
|
+
PyegeriaInvalidParameterException
|
|
1216
|
+
PyegeriaAPIException
|
|
1217
|
+
PyegeriaUnauthorizedException
|
|
1219
1218
|
|
|
1220
1219
|
"""
|
|
1221
1220
|
server_guid = self.__get_guid__(
|
|
1222
1221
|
server_guid,
|
|
1223
1222
|
display_name,
|
|
1224
|
-
"
|
|
1223
|
+
"displayName",
|
|
1225
1224
|
qualified_name,
|
|
1226
1225
|
"Metadata Access Server",
|
|
1227
1226
|
)
|
|
@@ -1265,9 +1264,9 @@ class RuntimeManager(Client):
|
|
|
1265
1264
|
|
|
1266
1265
|
Raises
|
|
1267
1266
|
------
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1267
|
+
PyegeriaInvalidParameterException
|
|
1268
|
+
PyegeriaAPIException
|
|
1269
|
+
PyegeriaUnauthorizedException
|
|
1271
1270
|
|
|
1272
1271
|
"""
|
|
1273
1272
|
|
|
@@ -1304,9 +1303,9 @@ class RuntimeManager(Client):
|
|
|
1304
1303
|
|
|
1305
1304
|
Raises
|
|
1306
1305
|
------
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1306
|
+
PyegeriaInvalidParameterException
|
|
1307
|
+
PyegeriaAPIException
|
|
1308
|
+
PyegeriaUnauthorizedException
|
|
1310
1309
|
|
|
1311
1310
|
"""
|
|
1312
1311
|
server_guid = self.__get_guid__(
|
|
@@ -1337,9 +1336,9 @@ class RuntimeManager(Client):
|
|
|
1337
1336
|
|
|
1338
1337
|
Raises
|
|
1339
1338
|
------
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1339
|
+
PyegeriaInvalidParameterException
|
|
1340
|
+
PyegeriaAPIException
|
|
1341
|
+
PyegeriaUnauthorizedException
|
|
1343
1342
|
|
|
1344
1343
|
"""
|
|
1345
1344
|
loop = asyncio.get_event_loop()
|
|
@@ -1376,13 +1375,13 @@ class RuntimeManager(Client):
|
|
|
1376
1375
|
|
|
1377
1376
|
Raises
|
|
1378
1377
|
------
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1378
|
+
PyegeriaInvalidParameterException
|
|
1379
|
+
PyegeriaAPIException
|
|
1380
|
+
PyegeriaUnauthorizedException
|
|
1382
1381
|
|
|
1383
1382
|
"""
|
|
1384
1383
|
server_guid = self.__get_guid__(
|
|
1385
|
-
server_guid, display_name, "
|
|
1384
|
+
server_guid, display_name, "displayName", qualified_name
|
|
1386
1385
|
)
|
|
1387
1386
|
|
|
1388
1387
|
url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
|
|
@@ -1416,9 +1415,9 @@ class RuntimeManager(Client):
|
|
|
1416
1415
|
|
|
1417
1416
|
Raises
|
|
1418
1417
|
------
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1418
|
+
PyegeriaInvalidParameterException
|
|
1419
|
+
PyegeriaAPIException
|
|
1420
|
+
PyegeriaUnauthorizedException
|
|
1422
1421
|
|
|
1423
1422
|
"""
|
|
1424
1423
|
loop = asyncio.get_event_loop()
|
|
@@ -1448,9 +1447,9 @@ class RuntimeManager(Client):
|
|
|
1448
1447
|
|
|
1449
1448
|
Raises
|
|
1450
1449
|
------
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1450
|
+
PyegeriaInvalidParameterException
|
|
1451
|
+
PyegeriaAPIException
|
|
1452
|
+
PyegeriaUnauthorizedException
|
|
1454
1453
|
|
|
1455
1454
|
"""
|
|
1456
1455
|
server_guid = self.__get_guid__(
|
|
@@ -1481,9 +1480,9 @@ class RuntimeManager(Client):
|
|
|
1481
1480
|
|
|
1482
1481
|
Raises
|
|
1483
1482
|
------
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1483
|
+
PyegeriaInvalidParameterException
|
|
1484
|
+
PyegeriaAPIException
|
|
1485
|
+
PyegeriaUnauthorizedException
|
|
1487
1486
|
|
|
1488
1487
|
"""
|
|
1489
1488
|
loop = asyncio.get_event_loop()
|
|
@@ -1494,7 +1493,7 @@ class RuntimeManager(Client):
|
|
|
1494
1493
|
|
|
1495
1494
|
def get_platforms_by_name(
|
|
1496
1495
|
self,
|
|
1497
|
-
|
|
1496
|
+
filter_string : str = None,
|
|
1498
1497
|
effective_time: str = None,
|
|
1499
1498
|
start_from: int = 0,
|
|
1500
1499
|
page_size: int = max_paging_size,
|
|
@@ -1503,7 +1502,7 @@ class RuntimeManager(Client):
|
|
|
1503
1502
|
|
|
1504
1503
|
Parameters
|
|
1505
1504
|
----------
|
|
1506
|
-
|
|
1505
|
+
filter_string : str, opt
|
|
1507
1506
|
Filter specifies the display name or qualified name of the platforms to return information for. If the
|
|
1508
1507
|
value is None, we will default to the default_platform_name that comes from the core content pack.
|
|
1509
1508
|
effective_time: str, optional
|
|
@@ -1520,9 +1519,9 @@ class RuntimeManager(Client):
|
|
|
1520
1519
|
|
|
1521
1520
|
Raises
|
|
1522
1521
|
------
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1522
|
+
PyegeriaInvalidParameterException
|
|
1523
|
+
PyegeriaAPIException
|
|
1524
|
+
PyegeriaUnauthorizedException
|
|
1526
1525
|
"""
|
|
1527
1526
|
loop = asyncio.get_event_loop()
|
|
1528
1527
|
response = loop.run_until_complete(
|
|
@@ -1534,7 +1533,7 @@ class RuntimeManager(Client):
|
|
|
1534
1533
|
|
|
1535
1534
|
async def _async_get_platforms_by_name(
|
|
1536
1535
|
self,
|
|
1537
|
-
|
|
1536
|
+
filter_string : str = None,
|
|
1538
1537
|
effective_time: str = None,
|
|
1539
1538
|
start_from: int = 0,
|
|
1540
1539
|
page_size: int = max_paging_size,
|
|
@@ -1543,7 +1542,7 @@ class RuntimeManager(Client):
|
|
|
1543
1542
|
|
|
1544
1543
|
Parameters
|
|
1545
1544
|
----------
|
|
1546
|
-
|
|
1545
|
+
filter_string : str, opt
|
|
1547
1546
|
Filter specifies the display name or qualified name of the platforms to return information for. If the
|
|
1548
1547
|
value is None, we will default to the default_platform_name that comes from the core content pack.
|
|
1549
1548
|
effective_time: str, optional
|
|
@@ -1561,23 +1560,23 @@ class RuntimeManager(Client):
|
|
|
1561
1560
|
|
|
1562
1561
|
Raises
|
|
1563
1562
|
------
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1563
|
+
PyegeriaInvalidParameterException
|
|
1564
|
+
PyegeriaAPIException
|
|
1565
|
+
PyegeriaUnauthorizedException
|
|
1567
1566
|
|
|
1568
1567
|
"""
|
|
1569
1568
|
|
|
1570
|
-
if
|
|
1571
|
-
|
|
1569
|
+
if filter_string is None:
|
|
1570
|
+
filter_string = self.default_platform_name
|
|
1572
1571
|
|
|
1573
1572
|
url = (
|
|
1574
1573
|
f"{self.runtime_command_root}/platforms/by-name?"
|
|
1575
1574
|
f"startFrom={start_from}&pageSize={page_size}"
|
|
1576
1575
|
)
|
|
1577
1576
|
if effective_time is not None:
|
|
1578
|
-
body = {"filter":
|
|
1577
|
+
body = {"filter": filter_string, "effectiveTime": effective_time}
|
|
1579
1578
|
else:
|
|
1580
|
-
body = {"filter":
|
|
1579
|
+
body = {"filter": filter_string}
|
|
1581
1580
|
|
|
1582
1581
|
response = await self._async_make_request("POST", url, body)
|
|
1583
1582
|
|
|
@@ -1585,7 +1584,7 @@ class RuntimeManager(Client):
|
|
|
1585
1584
|
|
|
1586
1585
|
async def _async_get_platforms_by_type(
|
|
1587
1586
|
self,
|
|
1588
|
-
|
|
1587
|
+
filter_string : str = None,
|
|
1589
1588
|
effective_time: str = None,
|
|
1590
1589
|
start_from: int = 0,
|
|
1591
1590
|
page_size: int = max_paging_size,
|
|
@@ -1595,7 +1594,7 @@ class RuntimeManager(Client):
|
|
|
1595
1594
|
|
|
1596
1595
|
Parameters
|
|
1597
1596
|
----------
|
|
1598
|
-
|
|
1597
|
+
filter_string : str, opt
|
|
1599
1598
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
1600
1599
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
1601
1600
|
effective_time: str, optional
|
|
@@ -1612,14 +1611,14 @@ class RuntimeManager(Client):
|
|
|
1612
1611
|
|
|
1613
1612
|
Raises
|
|
1614
1613
|
------
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1614
|
+
PyegeriaInvalidParameterException
|
|
1615
|
+
PyegeriaAPIException
|
|
1616
|
+
PyegeriaUnauthorizedException
|
|
1618
1617
|
|
|
1619
1618
|
"""
|
|
1620
1619
|
|
|
1621
|
-
if
|
|
1622
|
-
|
|
1620
|
+
if filter_string is None:
|
|
1621
|
+
filter_string = "OMAG Server Platform"
|
|
1623
1622
|
|
|
1624
1623
|
url = (
|
|
1625
1624
|
f"{self.runtime_command_root}/platforms/"
|
|
@@ -1627,16 +1626,17 @@ class RuntimeManager(Client):
|
|
|
1627
1626
|
)
|
|
1628
1627
|
|
|
1629
1628
|
if effective_time is not None:
|
|
1630
|
-
body = {
|
|
1629
|
+
body = {
|
|
1630
|
+
"searchString": filter, "effectiveTime": effective_time}
|
|
1631
1631
|
else:
|
|
1632
|
-
body = {"
|
|
1632
|
+
body = {"searchString": filter}
|
|
1633
1633
|
|
|
1634
1634
|
response = await self._async_make_request("POST", url, body)
|
|
1635
1635
|
return response.json().get("elements", "No platforms found")
|
|
1636
1636
|
|
|
1637
1637
|
def get_platforms_by_type(
|
|
1638
1638
|
self,
|
|
1639
|
-
|
|
1639
|
+
filter_string : str = None,
|
|
1640
1640
|
effective_time: str = None,
|
|
1641
1641
|
start_from: int = 0,
|
|
1642
1642
|
page_size: int = max_paging_size,
|
|
@@ -1646,7 +1646,7 @@ class RuntimeManager(Client):
|
|
|
1646
1646
|
|
|
1647
1647
|
Parameters
|
|
1648
1648
|
----------
|
|
1649
|
-
|
|
1649
|
+
filter_string : str, opt
|
|
1650
1650
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
1651
1651
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
1652
1652
|
effective_time: str, optional
|
|
@@ -1663,9 +1663,9 @@ class RuntimeManager(Client):
|
|
|
1663
1663
|
|
|
1664
1664
|
Raises
|
|
1665
1665
|
------
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1666
|
+
PyegeriaInvalidParameterException
|
|
1667
|
+
PyegeriaAPIException
|
|
1668
|
+
PyegeriaUnauthorizedException
|
|
1669
1669
|
|
|
1670
1670
|
"""
|
|
1671
1671
|
loop = asyncio.get_event_loop()
|
|
@@ -1678,7 +1678,7 @@ class RuntimeManager(Client):
|
|
|
1678
1678
|
|
|
1679
1679
|
async def _async_get_platform_templates_by_type(
|
|
1680
1680
|
self,
|
|
1681
|
-
|
|
1681
|
+
filter_string : str = None,
|
|
1682
1682
|
effective_time: str = None,
|
|
1683
1683
|
start_from: int = 0,
|
|
1684
1684
|
page_size: int = max_paging_size,
|
|
@@ -1689,7 +1689,7 @@ class RuntimeManager(Client):
|
|
|
1689
1689
|
|
|
1690
1690
|
Parameters
|
|
1691
1691
|
----------
|
|
1692
|
-
|
|
1692
|
+
filter_string : str, opt
|
|
1693
1693
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
1694
1694
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
1695
1695
|
effective_time: str, optional
|
|
@@ -1706,14 +1706,14 @@ class RuntimeManager(Client):
|
|
|
1706
1706
|
|
|
1707
1707
|
Raises
|
|
1708
1708
|
------
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1709
|
+
PyegeriaInvalidParameterException
|
|
1710
|
+
PyegeriaAPIException
|
|
1711
|
+
PyegeriaUnauthorizedException
|
|
1712
1712
|
|
|
1713
1713
|
"""
|
|
1714
1714
|
|
|
1715
|
-
if
|
|
1716
|
-
|
|
1715
|
+
if filter_string is None:
|
|
1716
|
+
filter_string = "OMAG Server Platform"
|
|
1717
1717
|
|
|
1718
1718
|
url = (
|
|
1719
1719
|
f"{self.runtime_command_root}/platforms/"
|
|
@@ -1721,16 +1721,16 @@ class RuntimeManager(Client):
|
|
|
1721
1721
|
)
|
|
1722
1722
|
|
|
1723
1723
|
if effective_time is not None:
|
|
1724
|
-
body = {"filter":
|
|
1724
|
+
body = {"filter": filter_string, "effectiveTime": effective_time}
|
|
1725
1725
|
else:
|
|
1726
|
-
body = {"filter":
|
|
1726
|
+
body = {"filter": filter_string}
|
|
1727
1727
|
|
|
1728
1728
|
response = await self._async_make_request("POST", url, body)
|
|
1729
1729
|
return response.json().get("elements", "No platforms found")
|
|
1730
1730
|
|
|
1731
1731
|
def get_platform_templates_by_type(
|
|
1732
1732
|
self,
|
|
1733
|
-
|
|
1733
|
+
filter_string : str = None,
|
|
1734
1734
|
effective_time: str = None,
|
|
1735
1735
|
start_from: int = 0,
|
|
1736
1736
|
page_size: int = max_paging_size,
|
|
@@ -1740,7 +1740,7 @@ class RuntimeManager(Client):
|
|
|
1740
1740
|
|
|
1741
1741
|
Parameters
|
|
1742
1742
|
----------
|
|
1743
|
-
|
|
1743
|
+
filter_string : str, opt
|
|
1744
1744
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
1745
1745
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
1746
1746
|
effective_time: str, optional
|
|
@@ -1757,9 +1757,9 @@ class RuntimeManager(Client):
|
|
|
1757
1757
|
|
|
1758
1758
|
Raises
|
|
1759
1759
|
------
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1760
|
+
PyegeriaInvalidParameterException
|
|
1761
|
+
PyegeriaAPIException
|
|
1762
|
+
PyegeriaUnauthorizedException
|
|
1763
1763
|
|
|
1764
1764
|
"""
|
|
1765
1765
|
loop = asyncio.get_event_loop()
|
|
@@ -1789,12 +1789,12 @@ class RuntimeManager(Client):
|
|
|
1789
1789
|
|
|
1790
1790
|
Raises
|
|
1791
1791
|
------
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1792
|
+
PyegeriaInvalidParameterException
|
|
1793
|
+
PyegeriaAPIException
|
|
1794
|
+
PyegeriaUnauthorizedException
|
|
1795
1795
|
|
|
1796
1796
|
"""
|
|
1797
|
-
platform_guid = self.__get_guid__(platform_guid, platform_name, "
|
|
1797
|
+
platform_guid = self.__get_guid__(platform_guid, platform_name, "displayName")
|
|
1798
1798
|
url = f"{self.runtime_command_root}/platforms/{platform_guid}/report"
|
|
1799
1799
|
|
|
1800
1800
|
response = await self._async_make_request("GET", url)
|
|
@@ -1819,9 +1819,9 @@ class RuntimeManager(Client):
|
|
|
1819
1819
|
|
|
1820
1820
|
Raises
|
|
1821
1821
|
------
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1822
|
+
PyegeriaInvalidParameterException
|
|
1823
|
+
PyegeriaAPIException
|
|
1824
|
+
PyegeriaUnauthorizedException
|
|
1825
1825
|
|
|
1826
1826
|
"""
|
|
1827
1827
|
loop = asyncio.get_event_loop()
|
|
@@ -1884,9 +1884,9 @@ class RuntimeManager(Client):
|
|
|
1884
1884
|
|
|
1885
1885
|
Raises
|
|
1886
1886
|
------
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1887
|
+
PyegeriaInvalidParameterException
|
|
1888
|
+
PyegeriaAPIException
|
|
1889
|
+
PyegeriaUnauthorizedException
|
|
1890
1890
|
|
|
1891
1891
|
"""
|
|
1892
1892
|
loop = asyncio.get_event_loop()
|
|
@@ -1916,9 +1916,9 @@ class RuntimeManager(Client):
|
|
|
1916
1916
|
|
|
1917
1917
|
Raises
|
|
1918
1918
|
------
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1919
|
+
PyegeriaInvalidParameterException
|
|
1920
|
+
PyegeriaAPIException
|
|
1921
|
+
PyegeriaUnauthorizedException
|
|
1922
1922
|
|
|
1923
1923
|
"""
|
|
1924
1924
|
|
|
@@ -1954,9 +1954,9 @@ class RuntimeManager(Client):
|
|
|
1954
1954
|
|
|
1955
1955
|
Raises
|
|
1956
1956
|
------
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1957
|
+
PyegeriaInvalidParameterException
|
|
1958
|
+
PyegeriaAPIException
|
|
1959
|
+
PyegeriaUnauthorizedException
|
|
1960
1960
|
|
|
1961
1961
|
"""
|
|
1962
1962
|
loop = asyncio.get_event_loop()
|
|
@@ -1967,7 +1967,7 @@ class RuntimeManager(Client):
|
|
|
1967
1967
|
|
|
1968
1968
|
async def _async_get_servers_by_name(
|
|
1969
1969
|
self,
|
|
1970
|
-
|
|
1970
|
+
filter_string : str,
|
|
1971
1971
|
effective_time: str = None,
|
|
1972
1972
|
start_from: int = 0,
|
|
1973
1973
|
page_size: int = max_paging_size,
|
|
@@ -1976,7 +1976,7 @@ class RuntimeManager(Client):
|
|
|
1976
1976
|
|
|
1977
1977
|
Parameters
|
|
1978
1978
|
----------
|
|
1979
|
-
|
|
1979
|
+
filter_string : str, opt
|
|
1980
1980
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
1981
1981
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
1982
1982
|
effective_time: str, optional
|
|
@@ -1993,9 +1993,9 @@ class RuntimeManager(Client):
|
|
|
1993
1993
|
|
|
1994
1994
|
Raises
|
|
1995
1995
|
------
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1996
|
+
PyegeriaInvalidParameterException
|
|
1997
|
+
PyegeriaAPIException
|
|
1998
|
+
PyegeriaUnauthorizedException
|
|
1999
1999
|
|
|
2000
2000
|
"""
|
|
2001
2001
|
|
|
@@ -2005,21 +2005,23 @@ class RuntimeManager(Client):
|
|
|
2005
2005
|
)
|
|
2006
2006
|
|
|
2007
2007
|
if effective_time is None:
|
|
2008
|
-
body = {"filter":
|
|
2008
|
+
body = {"filter": filter_string, "limitResultsByStatus": ["PROPOSED"]}
|
|
2009
2009
|
else:
|
|
2010
|
-
body = {"filter":
|
|
2010
|
+
body = {"filter": filter_string,
|
|
2011
|
+
"effective_time": effective_time,
|
|
2012
|
+
"limitResultsByStatus": []}
|
|
2011
2013
|
response = await self._async_make_request("POST", url, body)
|
|
2012
2014
|
|
|
2013
2015
|
return response.json().get("elements", "No servers found")
|
|
2014
2016
|
|
|
2015
2017
|
def get_servers_by_name(
|
|
2016
|
-
self,
|
|
2018
|
+
self, filter_string: str, effective_time: str = None
|
|
2017
2019
|
) -> str | list:
|
|
2018
2020
|
"""Returns the list of servers with a particular name. The name is specified in the filter.
|
|
2019
2021
|
|
|
2020
2022
|
Parameters
|
|
2021
2023
|
----------
|
|
2022
|
-
|
|
2024
|
+
filter_string : str, opt
|
|
2023
2025
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
2024
2026
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
2025
2027
|
effective_time: str, optional
|
|
@@ -2032,9 +2034,9 @@ class RuntimeManager(Client):
|
|
|
2032
2034
|
|
|
2033
2035
|
Raises
|
|
2034
2036
|
------
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2037
|
+
PyegeriaInvalidParameterException
|
|
2038
|
+
PyegeriaAPIException
|
|
2039
|
+
PyegeriaUnauthorizedException
|
|
2038
2040
|
|
|
2039
2041
|
"""
|
|
2040
2042
|
loop = asyncio.get_event_loop()
|
|
@@ -2043,20 +2045,15 @@ class RuntimeManager(Client):
|
|
|
2043
2045
|
)
|
|
2044
2046
|
return response
|
|
2045
2047
|
|
|
2046
|
-
async def _async_get_servers_by_dep_impl_type(
|
|
2047
|
-
|
|
2048
|
-
filter: str = "*",
|
|
2049
|
-
effective_time: str = None,
|
|
2050
|
-
start_from: int = 0,
|
|
2051
|
-
page_size: int = max_paging_size,
|
|
2052
|
-
) -> str | list:
|
|
2048
|
+
async def _async_get_servers_by_dep_impl_type(self, search_string: str = "*", effective_time: str = None,
|
|
2049
|
+
start_from: int = 0, page_size: int = max_paging_size) -> str | list:
|
|
2053
2050
|
"""Returns the list of servers with a particular deployed implementation type. The value is specified
|
|
2054
2051
|
in the filter. If it is null, or no request body is supplied, all servers are returned.
|
|
2055
2052
|
Async version.
|
|
2056
2053
|
|
|
2057
2054
|
Parameters
|
|
2058
2055
|
----------
|
|
2059
|
-
|
|
2056
|
+
search_string : str, opt
|
|
2060
2057
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
2061
2058
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
2062
2059
|
effective_time: str, optional
|
|
@@ -2073,40 +2070,32 @@ class RuntimeManager(Client):
|
|
|
2073
2070
|
|
|
2074
2071
|
Raises
|
|
2075
2072
|
------
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2073
|
+
PyegeriaInvalidParameterException
|
|
2074
|
+
PyegeriaAPIException
|
|
2075
|
+
PyegeriaUnauthorizedException
|
|
2079
2076
|
|
|
2080
2077
|
"""
|
|
2081
2078
|
|
|
2082
|
-
if
|
|
2083
|
-
|
|
2079
|
+
if search_string == "*":
|
|
2080
|
+
search_string = None
|
|
2084
2081
|
|
|
2085
|
-
url =
|
|
2086
|
-
f"{self.runtime_command_root}/software-servers/"
|
|
2087
|
-
f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}"
|
|
2088
|
-
)
|
|
2082
|
+
url = f"{self.runtime_command_root}/software-servers/by-deployed-implementation-type"
|
|
2089
2083
|
|
|
2090
|
-
body = body_slimmer({"filter":
|
|
2084
|
+
body = body_slimmer({"filter": search_string, "effective_time": effective_time})
|
|
2091
2085
|
|
|
2092
2086
|
response = await self._async_make_request("POST", url, body)
|
|
2093
2087
|
|
|
2094
2088
|
return response.json().get("elements", "No servers found")
|
|
2095
2089
|
|
|
2096
|
-
def get_servers_by_dep_impl_type(
|
|
2097
|
-
|
|
2098
|
-
filter: str = "*",
|
|
2099
|
-
effective_time: str = None,
|
|
2100
|
-
start_from: int = 0,
|
|
2101
|
-
page_size: int = max_paging_size,
|
|
2102
|
-
) -> str | list:
|
|
2090
|
+
def get_servers_by_dep_impl_type(self, search_string: str = "*", effective_time: str = None, start_from: int = 0,
|
|
2091
|
+
page_size: int = max_paging_size) -> str | list:
|
|
2103
2092
|
"""Returns the list of servers with a particular deployed implementation type.
|
|
2104
2093
|
The value is specified in the filter. If it is null, or no request body is supplied,
|
|
2105
2094
|
all servers are returned.
|
|
2106
2095
|
|
|
2107
2096
|
Parameters
|
|
2108
2097
|
----------
|
|
2109
|
-
|
|
2098
|
+
search_string : str, opt
|
|
2110
2099
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
2111
2100
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
2112
2101
|
effective_time: str, optional
|
|
@@ -2123,22 +2112,20 @@ class RuntimeManager(Client):
|
|
|
2123
2112
|
|
|
2124
2113
|
Raises
|
|
2125
2114
|
------
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2115
|
+
PyegeriaInvalidParameterException
|
|
2116
|
+
PyegeriaAPIException
|
|
2117
|
+
PyegeriaUnauthorizedException
|
|
2129
2118
|
|
|
2130
2119
|
"""
|
|
2131
2120
|
loop = asyncio.get_event_loop()
|
|
2132
2121
|
response = loop.run_until_complete(
|
|
2133
|
-
self._async_get_servers_by_dep_impl_type(
|
|
2134
|
-
filter, effective_time, start_from, page_size
|
|
2135
|
-
)
|
|
2122
|
+
self._async_get_servers_by_dep_impl_type(search_string, effective_time, start_from, page_size)
|
|
2136
2123
|
)
|
|
2137
2124
|
return response
|
|
2138
2125
|
|
|
2139
2126
|
async def _async_get_server_templates_by_dep_impl_type(
|
|
2140
2127
|
self,
|
|
2141
|
-
|
|
2128
|
+
filter_string : str = "*",
|
|
2142
2129
|
effective_time: str = None,
|
|
2143
2130
|
start_from: int = 0,
|
|
2144
2131
|
page_size: int = max_paging_size,
|
|
@@ -2149,7 +2136,7 @@ class RuntimeManager(Client):
|
|
|
2149
2136
|
|
|
2150
2137
|
Parameters
|
|
2151
2138
|
----------
|
|
2152
|
-
|
|
2139
|
+
filter_string : str, opt
|
|
2153
2140
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
2154
2141
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
2155
2142
|
effective_time: str, optional
|
|
@@ -2166,21 +2153,21 @@ class RuntimeManager(Client):
|
|
|
2166
2153
|
|
|
2167
2154
|
Raises
|
|
2168
2155
|
------
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2156
|
+
PyegeriaInvalidParameterException
|
|
2157
|
+
PyegeriaAPIException
|
|
2158
|
+
PyegeriaUnauthorizedException
|
|
2172
2159
|
|
|
2173
2160
|
"""
|
|
2174
2161
|
|
|
2175
|
-
if
|
|
2176
|
-
|
|
2162
|
+
if filter_string == "*":
|
|
2163
|
+
filter_string = None
|
|
2177
2164
|
|
|
2178
2165
|
url = (
|
|
2179
2166
|
f"{self.runtime_command_root}/software-servers/"
|
|
2180
2167
|
f"by-deployed-implementation-type?startFrom={start_from}&pageSize={page_size}&getTemplates=true"
|
|
2181
2168
|
)
|
|
2182
2169
|
|
|
2183
|
-
body = body_slimmer({"filter":
|
|
2170
|
+
body = body_slimmer({"filter": filter_string, "effective_time": effective_time})
|
|
2184
2171
|
|
|
2185
2172
|
response = await self._async_make_request("POST", url, body)
|
|
2186
2173
|
|
|
@@ -2188,7 +2175,7 @@ class RuntimeManager(Client):
|
|
|
2188
2175
|
|
|
2189
2176
|
def get_server_templates_by_dep_impl_type(
|
|
2190
2177
|
self,
|
|
2191
|
-
|
|
2178
|
+
filter_string : str = "*",
|
|
2192
2179
|
effective_time: str = None,
|
|
2193
2180
|
start_from: int = 0,
|
|
2194
2181
|
page_size: int = max_paging_size,
|
|
@@ -2199,7 +2186,7 @@ class RuntimeManager(Client):
|
|
|
2199
2186
|
|
|
2200
2187
|
Parameters
|
|
2201
2188
|
----------
|
|
2202
|
-
|
|
2189
|
+
filter_string : str, opt
|
|
2203
2190
|
Filter specifies the kind of deployed implementation type of the platforms to return information for.
|
|
2204
2191
|
If the value is None, we will default to the "OMAG Server Platform".
|
|
2205
2192
|
effective_time: str, optional
|
|
@@ -2216,9 +2203,9 @@ class RuntimeManager(Client):
|
|
|
2216
2203
|
|
|
2217
2204
|
Raises
|
|
2218
2205
|
------
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2206
|
+
PyegeriaInvalidParameterException
|
|
2207
|
+
PyegeriaAPIException
|
|
2208
|
+
PyegeriaUnauthorizedException
|
|
2222
2209
|
|
|
2223
2210
|
"""
|
|
2224
2211
|
loop = asyncio.get_event_loop()
|
|
@@ -2248,13 +2235,13 @@ class RuntimeManager(Client):
|
|
|
2248
2235
|
|
|
2249
2236
|
Raises
|
|
2250
2237
|
------
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2238
|
+
PyegeriaInvalidParameterException
|
|
2239
|
+
PyegeriaAPIException
|
|
2240
|
+
PyegeriaUnauthorizedException
|
|
2254
2241
|
|
|
2255
2242
|
"""
|
|
2256
2243
|
server_guid = self.__get_guid__(
|
|
2257
|
-
server_guid, server_name, "
|
|
2244
|
+
server_guid, server_name, "displayName", tech_type="Integration Daemon"
|
|
2258
2245
|
)
|
|
2259
2246
|
url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance/report"
|
|
2260
2247
|
|
|
@@ -2281,9 +2268,9 @@ class RuntimeManager(Client):
|
|
|
2281
2268
|
|
|
2282
2269
|
Raises
|
|
2283
2270
|
------
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2271
|
+
PyegeriaInvalidParameterException
|
|
2272
|
+
PyegeriaAPIException
|
|
2273
|
+
PyegeriaUnauthorizedException
|
|
2287
2274
|
|
|
2288
2275
|
"""
|
|
2289
2276
|
loop = asyncio.get_event_loop()
|