pyegeria 0.5.5.23__py3-none-any.whl → 0.5.5.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.
@@ -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":APACHE_KAFKA_SERVER_TEMPLATE_GUID, "isOwnAnchor": 'true',
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":POSTGRESQL_SERVER_TEMPLATE_GUID, "isOwnAnchor": 'true',
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": FILEFOLDER_TEMPLATE_GUID,
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
@@ -1465,8 +1461,8 @@ class AutomatedCuration(Client):
1465
1461
  return response.json().get("guid", "Action not initiated")
1466
1462
 
1467
1463
  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:
1464
+ action_targets: list, start_time: datetime = None, request_parameters: dict = None,
1465
+ orig_service_name: str = None, orig_engine_name: str = None, server: str = None) -> str:
1470
1466
  """ Using the named governance action type as a template, initiate an engine action.
1471
1467
 
1472
1468
  Parameters
@@ -1477,8 +1473,8 @@ class AutomatedCuration(Client):
1477
1473
  - request source elements for the resulting governance action service
1478
1474
  action_targets: [str]
1479
1475
  -list of action target names to GUIDs for the resulting governance action service
1480
- start_time: datetime
1481
- - time to start the process
1476
+ start_time: datetime, default = None
1477
+ - time to start the process, no earlier than start time. None means now.
1482
1478
  request_parameters: [str]
1483
1479
  - parameters passed into the process
1484
1480
  orig_service_name: str
@@ -1513,7 +1509,7 @@ class AutomatedCuration(Client):
1513
1509
 
1514
1510
  body = {"class": "InitiateGovernanceActionTypeRequestBody",
1515
1511
  "governanceActionTypeQualifiedName":
1516
- "Egeria:GovernanceActionType:2adeb8f1-0f59-4970-b6f2-6cc25d4d2402survey-postgres-database",
1512
+ "AssetSurvey-postgres-database",
1517
1513
  "actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
1518
1514
  "actionTargetGUID": postgres_database_guid}]}
1519
1515
  response = await self._async_make_request("POST", url, body)
@@ -1532,7 +1528,7 @@ class AutomatedCuration(Client):
1532
1528
  f"initiate")
1533
1529
 
1534
1530
  body = {"class": "InitiateGovernanceActionTypeRequestBody",
1535
- "governanceActionTypeQualifiedName": "Egeria:GovernanceActionType:AssetSurvey:survey-postgres-server",
1531
+ "governanceActionTypeQualifiedName": "AssetSurvey:survey-postgres-server",
1536
1532
  "actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
1537
1533
  "actionTargetGUID": postgres_server_guid}]}
1538
1534
  response = await self._async_make_request("POST", url, body)
@@ -1575,10 +1571,10 @@ class AutomatedCuration(Client):
1575
1571
  in the Core Content Brain.
1576
1572
 
1577
1573
  File Folder Survey Names currently include::
1578
- - Egeria:GovernanceActionType:AssetSurvey:survey-folders
1579
- - Egeria:GovernanceActionType:AssetSurvey:survey-folder-and-files
1580
- - Egeria:GovernanceActionType:AssetSurvey:survey-all-folders
1581
- - Egeria:GovernanceActionType:AssetSurvey:survey-all-folders-and-files
1574
+ - AssetSurvey:survey-folders
1575
+ - AssetSurvey:survey-folder-and-files
1576
+ - AssetSurvey:survey-all-folders
1577
+ - AssetSurvey:survey-all-folders-and-files
1582
1578
  """
1583
1579
  server = self.server_name if server is None else server
1584
1580
  url = (f"{self.platform_url}/servers/{server}/api/open-metadata/automated-curation/governance-action-types/"
@@ -1672,7 +1668,7 @@ class AutomatedCuration(Client):
1672
1668
  f"initiate")
1673
1669
 
1674
1670
  body = {"class": "InitiateGovernanceActionTypeRequestBody",
1675
- "governanceActionTypeQualifiedName": "Egeria:GovernanceActionType:AssetSurvey:survey-kafka-server",
1671
+ "governanceActionTypeQualifiedName": "AssetSurvey:survey-kafka-server",
1676
1672
  "actionTargets": [{"class": "NewActionTarget", "actionTargetName": "serverToSurvey",
1677
1673
  "actionTargetGUID": kafka_server_guid}]}
1678
1674
  response = await self._async_make_request("POST", url, body)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5.23
3
+ Version: 0.5.5.24
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -46,7 +46,7 @@ pyegeria/_globals.py,sha256=DF6851qHPpoDrY4w5JGmT-8zmMfVXf9MMG6nKlu-BYM,616
46
46
  pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
47
47
  pyegeria/action_author_omvs.py,sha256=m0wsfmyO-VxRDaPpACeIDw8eVAFu3RVbo45RPCUel9M,6340
48
48
  pyegeria/asset_catalog_omvs.py,sha256=Y-Eh0k-zkJNOChVlLbC2bsTSBVLWhk-0-ewCV4YlyDY,25802
49
- pyegeria/automated_curation_omvs.py,sha256=jArTmCh7n3XDSc2ozoh6qftaqh2k2_U03JVQPv0bH5M,121625
49
+ pyegeria/automated_curation_omvs.py,sha256=7DV5SKkP9zPmHVPSVY9X8NdLIBJO9E6jx2XrwW4CjsI,121428
50
50
  pyegeria/collection_manager_omvs.py,sha256=IyGCbqx2Blm0OwCsC2071EeoNWHXyWGl_6pEtacizAs,112642
51
51
  pyegeria/core_guids.py,sha256=JKziCsKhklbWRramQ0orRMNTudJXYB721a32TJegBl4,4320
52
52
  pyegeria/core_omag_server_config.py,sha256=16ld7aBTgO3gGhvFs-_yzwqPsatdCAiKYi005_2evZU,93096
@@ -63,8 +63,8 @@ pyegeria/server_operations.py,sha256=hEaU6YC0iNEQFvcXYvcE4J6BQKlqMJk33nViCNIEBE4
63
63
  pyegeria/tech_guids_22-07-2024 13:22.py,sha256=nsjPrCDf9gohdw3LRcO5-uwzBN_nMB7Re_vtDJIgaIY,4643
64
64
  pyegeria/utils.py,sha256=f8isUaKDy-GJxhwswWgP_bw6q1CUzBUNVcCtin8N1cA,5433
65
65
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
66
- pyegeria-0.5.5.23.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
67
- pyegeria-0.5.5.23.dist-info/METADATA,sha256=UjZwgPTlMMELgqWNN54aOZd46hvpKpAFNCKqLeznlPQ,2612
68
- pyegeria-0.5.5.23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
69
- pyegeria-0.5.5.23.dist-info/entry_points.txt,sha256=WgNY6OkZlWQ5uwE_qtyfVyuOX-dnOKyH0cW2JlKRIJ0,2038
70
- pyegeria-0.5.5.23.dist-info/RECORD,,
66
+ pyegeria-0.5.5.24.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
67
+ pyegeria-0.5.5.24.dist-info/METADATA,sha256=k3qekA4g_-NusyS_KUplGR47l-O2yky_aoTRSDkdaRc,2612
68
+ pyegeria-0.5.5.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
69
+ pyegeria-0.5.5.24.dist-info/entry_points.txt,sha256=WgNY6OkZlWQ5uwE_qtyfVyuOX-dnOKyH0cW2JlKRIJ0,2038
70
+ pyegeria-0.5.5.24.dist-info/RECORD,,