pyegeria 0.5.5.23__tar.gz → 0.5.5.25__tar.gz
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-0.5.5.23 → pyegeria-0.5.5.25}/PKG-INFO +1 -1
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/automated_curation_omvs.py +19 -22
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyproject.toml +1 -1
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/LICENSE +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/README.md +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/doc_samples/Create_Collection_Sample.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/README.md +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/__init__.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/list_assets.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/view_asset_graph.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/view_collection.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/catalog_user/view_glossary.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/README.md +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/__init__.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/get_guid_info.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/get_tech_details.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_asset_types.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_registered_services.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_relationship_types.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_tech_templates.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_tech_types.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_valid_metadata_values.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/README.md +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/__init__.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/get_tech_type_elements.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/get_tech_type_template.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/refresh_integration_daemon.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_asset_events.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_coco_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_eng_action_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_gov_eng_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_integ_daemon_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_platform_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_server_list.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_server_status.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/README.md +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/__init__.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/get_my_profile.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/list_projects.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/list_todos.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/view_my_todos.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/view_open_todos.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/Xfeedback_manager_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/__init__.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/_client.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/_globals.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/_validators.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/core_guids.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/tech_guids_22-07-2024 13:22.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/utils.py +0 -0
- {pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -10,13 +10,9 @@ from datetime import datetime
|
|
10
10
|
|
11
11
|
from httpx import Response
|
12
12
|
|
13
|
-
from pyegeria import Client, max_paging_size, body_slimmer
|
13
|
+
from pyegeria import Client, max_paging_size, body_slimmer, INTEGRATION_GUIDS, TEMPLATE_GUIDS
|
14
14
|
from pyegeria._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException)
|
15
15
|
from ._validators import validate_name, validate_guid, validate_search_string
|
16
|
-
from .core_guids import (FILEFOLDER_TEMPLATE_GUID,
|
17
|
-
POSTGRESQL_SERVER_TEMPLATE_GUID,
|
18
|
-
APACHE_KAFKA_SERVER_TEMPLATE_GUID,
|
19
|
-
)
|
20
16
|
|
21
17
|
|
22
18
|
class AutomatedCuration(Client):
|
@@ -169,7 +165,7 @@ class AutomatedCuration(Client):
|
|
169
165
|
The GUID of the Kafka server element.
|
170
166
|
"""
|
171
167
|
|
172
|
-
body = {"templateGUID":
|
168
|
+
body = {"templateGUID":TEMPLATE_GUIDS['Apache Kafka Server template'], "isOwnAnchor": 'true',
|
173
169
|
"placeholderPropertyValues": {"serverName": kafka_server, "hostIdentifier": host_name,
|
174
170
|
"portNumber": port, "description": description}}
|
175
171
|
body_s = body_slimmer(body)
|
@@ -241,7 +237,7 @@ class AutomatedCuration(Client):
|
|
241
237
|
str
|
242
238
|
The GUID of the Postgres server element.
|
243
239
|
"""
|
244
|
-
body = {"templateGUID":
|
240
|
+
body = {"templateGUID":TEMPLATE_GUIDS['PostgreSQL Server template'], "isOwnAnchor": 'true',
|
245
241
|
"placeholderPropertyValues": {"serverName": postgres_server, "hostIdentifier": host_name,
|
246
242
|
"portNumber": port, "databaseUserId": db_user, "description": description,
|
247
243
|
"databasePassword": db_pwd}}
|
@@ -319,7 +315,7 @@ class AutomatedCuration(Client):
|
|
319
315
|
str
|
320
316
|
The GUID of the File Folder element.
|
321
317
|
"""
|
322
|
-
body = {"templateGUID":
|
318
|
+
body = {"templateGUID": TEMPLATE_GUIDS['FileFolder template'],
|
323
319
|
"isOwnAnchor": 'true',
|
324
320
|
"placeholderPropertyValues": {
|
325
321
|
"directoryPathName": path_name,
|
@@ -1429,8 +1425,8 @@ class AutomatedCuration(Client):
|
|
1429
1425
|
- request source elements for the resulting governance action service
|
1430
1426
|
action_targets: [str]
|
1431
1427
|
-list of action target names to GUIDs for the resulting governance action service
|
1432
|
-
start_time: datetime
|
1433
|
-
- time to start the process
|
1428
|
+
start_time: datetime, default = None
|
1429
|
+
- time to start the process, no earlier than start time. None means now.
|
1434
1430
|
request_parameters: [str]
|
1435
1431
|
- parameters passed into the process
|
1436
1432
|
orig_service_name: str
|
@@ -1454,10 +1450,11 @@ class AutomatedCuration(Client):
|
|
1454
1450
|
server = self.server_name if server is None else server
|
1455
1451
|
url = (f"{self.platform_url}/servers/{server}/api/open-metadata/automated-curation/governance-action-types/"
|
1456
1452
|
f"initiate")
|
1453
|
+
start = int(start_time.timestamp() *1000) if start_time else None
|
1457
1454
|
body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
1458
1455
|
"governanceActionTypeQualifiedName": action_type_qualified_name,
|
1459
1456
|
"requestSourceGUIDs": request_source_guids,
|
1460
|
-
"actionTargets": action_targets, "startDate":
|
1457
|
+
"actionTargets": action_targets, "startDate": start,
|
1461
1458
|
"requestParameters": request_parameters, "originatorServiceName": orig_service_name,
|
1462
1459
|
"originatorEngineName": orig_engine_name}
|
1463
1460
|
new_body = body_slimmer(body)
|
@@ -1465,8 +1462,8 @@ class AutomatedCuration(Client):
|
|
1465
1462
|
return response.json().get("guid", "Action not initiated")
|
1466
1463
|
|
1467
1464
|
def initiate_gov_action_type(self, action_type_qualified_name: str, request_source_guids: [str],
|
1468
|
-
action_targets: list, start_time: datetime, request_parameters: dict,
|
1469
|
-
orig_service_name: str, orig_engine_name: str, server: str = None) -> str:
|
1465
|
+
action_targets: list, start_time: datetime = None, request_parameters: dict = None,
|
1466
|
+
orig_service_name: str = None, orig_engine_name: str = None, server: str = None) -> str:
|
1470
1467
|
""" Using the named governance action type as a template, initiate an engine action.
|
1471
1468
|
|
1472
1469
|
Parameters
|
@@ -1477,8 +1474,8 @@ class AutomatedCuration(Client):
|
|
1477
1474
|
- request source elements for the resulting governance action service
|
1478
1475
|
action_targets: [str]
|
1479
1476
|
-list of action target names to GUIDs for the resulting governance action service
|
1480
|
-
start_time: datetime
|
1481
|
-
- time to start the process
|
1477
|
+
start_time: datetime, default = None
|
1478
|
+
- time to start the process, no earlier than start time. None means now.
|
1482
1479
|
request_parameters: [str]
|
1483
1480
|
- parameters passed into the process
|
1484
1481
|
orig_service_name: str
|
@@ -1513,7 +1510,7 @@ class AutomatedCuration(Client):
|
|
1513
1510
|
|
1514
1511
|
body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
1515
1512
|
"governanceActionTypeQualifiedName":
|
1516
|
-
"
|
1513
|
+
"AssetSurvey-postgres-database",
|
1517
1514
|
"actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
|
1518
1515
|
"actionTargetGUID": postgres_database_guid}]}
|
1519
1516
|
response = await self._async_make_request("POST", url, body)
|
@@ -1532,7 +1529,7 @@ class AutomatedCuration(Client):
|
|
1532
1529
|
f"initiate")
|
1533
1530
|
|
1534
1531
|
body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
1535
|
-
"governanceActionTypeQualifiedName": "
|
1532
|
+
"governanceActionTypeQualifiedName": "AssetSurvey:survey-postgres-server",
|
1536
1533
|
"actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
|
1537
1534
|
"actionTargetGUID": postgres_server_guid}]}
|
1538
1535
|
response = await self._async_make_request("POST", url, body)
|
@@ -1575,10 +1572,10 @@ class AutomatedCuration(Client):
|
|
1575
1572
|
in the Core Content Brain.
|
1576
1573
|
|
1577
1574
|
File Folder Survey Names currently include::
|
1578
|
-
-
|
1579
|
-
-
|
1580
|
-
-
|
1581
|
-
-
|
1575
|
+
- AssetSurvey:survey-folders
|
1576
|
+
- AssetSurvey:survey-folder-and-files
|
1577
|
+
- AssetSurvey:survey-all-folders
|
1578
|
+
- AssetSurvey:survey-all-folders-and-files
|
1582
1579
|
"""
|
1583
1580
|
server = self.server_name if server is None else server
|
1584
1581
|
url = (f"{self.platform_url}/servers/{server}/api/open-metadata/automated-curation/governance-action-types/"
|
@@ -1672,7 +1669,7 @@ class AutomatedCuration(Client):
|
|
1672
1669
|
f"initiate")
|
1673
1670
|
|
1674
1671
|
body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
1675
|
-
"governanceActionTypeQualifiedName": "
|
1672
|
+
"governanceActionTypeQualifiedName": "AssetSurvey:survey-kafka-server",
|
1676
1673
|
"actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
|
1677
1674
|
"actionTargetGUID": kafka_server_guid}]}
|
1678
1675
|
response = await self._async_make_request("POST", url, body)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_registered_services.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_relationship_types.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/developer/list_valid_metadata_values.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/get_tech_type_elements.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/get_tech_type_template.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/refresh_integration_daemon.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_eng_action_status.py
RENAMED
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_integ_daemon_status.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/operational/view_platform_status.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/get_my_profile.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/list_projects.py
RENAMED
File without changes
|
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/view_my_todos.py
RENAMED
File without changes
|
{pyegeria-0.5.5.23 → pyegeria-0.5.5.25}/examples/widgets/personal_organizer/view_open_todos.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|