pyegeria 0.8.4.35__tar.gz → 0.8.4.37__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.8.4.35 → pyegeria-0.8.4.37}/PKG-INFO +1 -1
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_glossary.py +3 -2
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_integ_daemon_status.py +10 -10
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/asset_catalog_omvs.py +9 -9
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/automated_curation_omvs.py +56 -41
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/classification_manager_omvs.py +193 -407
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/collection_manager_omvs.py +160 -280
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/core_omag_server_config.py +77 -72
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/egeria_cat_client.py +11 -6
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/egeria_client.py +3 -2
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/egeria_config_client.py +5 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/egeria_my_client.py +9 -4
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/egeria_tech_client.py +1 -1
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/feedback_manager_omvs.py +92 -333
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/full_omag_server_config.py +54 -50
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/glossary_browser_omvs.py +128 -284
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/glossary_manager_omvs.py +132 -451
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/my_profile_omvs.py +57 -153
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/platform_services.py +1 -1
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/project_manager_omvs.py +110 -197
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/registered_info.py +13 -13
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/runtime_manager_omvs.py +27 -27
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/valid_metadata_omvs.py +75 -227
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/x_action_author_omvs.py +1 -1
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyproject.toml +1 -1
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/LICENSE +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/README.md +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/README.md +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_asset_graph.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_collection.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_project_dependencies.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_project_structure.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_archives.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_assets.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_cert_types.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_projects.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_relationships.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_tech_types.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_todos.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cat/list_user_ids.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/egeria.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/egeria_cat.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/egeria_my.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/egeria_ops.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/egeria_tech.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/cli/ops_config.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/README.md +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/list_my_profile.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/list_my_roles.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/monitor_my_todos.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/monitor_open_todos.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/my/todo_actions.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/README.md +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/engine_actions.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/gov_server_actions.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/list_catalog_targets.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/load_archive.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_engine_activity_c.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/monitor_server_status.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/orig_monitor_server_list.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/orig_monitor_server_status.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/README.md +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/get_element_info.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/get_guid_info.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/get_tech_details.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_asset_types.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_elements.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_elements_x.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_registered_services.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_related_specification.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_relationship_types.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_tech_templates.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/commands/tech/x_list_related_elements.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/__init__.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/_client.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/_globals.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/_validators.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/mermaid_utilities.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.8.4.35 → pyegeria-0.8.4.37}/pyegeria/utils.py +0 -0
@@ -86,8 +86,9 @@ def display_glossary_terms(
|
|
86
86
|
status_filter=[],
|
87
87
|
page_size=500,
|
88
88
|
)
|
89
|
-
|
90
|
-
|
89
|
+
|
90
|
+
if type(terms) is str:
|
91
|
+
print(f"No terms found!")
|
91
92
|
sys.exit(0)
|
92
93
|
sorted_terms = sorted(
|
93
94
|
terms, key=lambda k: k["glossaryTermProperties"]["displayName"]
|
@@ -45,20 +45,18 @@ disable_ssl_warnings = True
|
|
45
45
|
|
46
46
|
|
47
47
|
def display_integration_daemon_status(
|
48
|
-
integ_server: str,
|
49
|
-
integ_url: str,
|
50
|
-
view_server: str,
|
51
|
-
view_url: str,
|
52
|
-
user: str,
|
53
|
-
user_pass: str,
|
54
|
-
paging: bool,
|
48
|
+
integ_server: str = EGERIA_INTEGRATION_DAEMON,
|
49
|
+
integ_url: str = EGERIA_INTEGRATION_DAEMON_URL,
|
50
|
+
view_server: str = EGERIA_VIEW_SERVER,
|
51
|
+
view_url: str = EGERIA_VIEW_SERVER_URL,
|
52
|
+
user: str = EGERIA_USER,
|
53
|
+
user_pass: str = EGERIA_USER_PASSWORD,
|
54
|
+
paging: bool = True,
|
55
55
|
jupyter: bool = EGERIA_JUPYTER,
|
56
56
|
width: int = EGERIA_WIDTH,
|
57
57
|
sort: bool = True,
|
58
58
|
):
|
59
59
|
s_client = EgeriaTech(view_server, view_url, user, user_pass)
|
60
|
-
token = s_client.create_egeria_bearer_token()
|
61
|
-
server_guid = s_client.get_guid_for_name(integ_server)
|
62
60
|
|
63
61
|
def generate_table() -> Table:
|
64
62
|
"""Make a new table."""
|
@@ -82,7 +80,9 @@ def display_integration_daemon_status(
|
|
82
80
|
table.add_column("Target Element", min_width=20)
|
83
81
|
table.add_column("Exception Message", min_width=10)
|
84
82
|
|
85
|
-
|
83
|
+
token = s_client.create_egeria_bearer_token()
|
84
|
+
# server_guid = s_client.get_guid_for_name(integ_server)
|
85
|
+
daemon_status = s_client.get_server_report(None, integ_server)
|
86
86
|
|
87
87
|
reports = daemon_status["integrationConnectorReports"]
|
88
88
|
if sort is True:
|
@@ -24,7 +24,7 @@ class AssetCatalog(Client):
|
|
24
24
|
"""Set up and maintain automation services in Egeria.
|
25
25
|
|
26
26
|
Attributes:
|
27
|
-
|
27
|
+
view_server : str
|
28
28
|
The name of the View Server to use.
|
29
29
|
platform_url : str
|
30
30
|
URL of the server platform to connect to
|
@@ -38,17 +38,17 @@ class AssetCatalog(Client):
|
|
38
38
|
|
39
39
|
def __init__(
|
40
40
|
self,
|
41
|
-
|
41
|
+
view_server: str,
|
42
42
|
platform_url: str,
|
43
43
|
user_id: str,
|
44
44
|
user_pwd: str = None,
|
45
45
|
token: str = None,
|
46
46
|
):
|
47
|
-
self.
|
47
|
+
self.view_server = view_server
|
48
48
|
self.platform_url = platform_url
|
49
49
|
self.user_id = user_id
|
50
50
|
self.user_pwd = user_pwd
|
51
|
-
Client.__init__(self,
|
51
|
+
Client.__init__(self, view_server, platform_url, user_id, user_pwd, token=token)
|
52
52
|
|
53
53
|
async def _async_create_element_from_template(self, body: dict) -> str:
|
54
54
|
"""Create a new metadata element from a template. Async version.
|
@@ -94,7 +94,7 @@ class AssetCatalog(Client):
|
|
94
94
|
}
|
95
95
|
"""
|
96
96
|
|
97
|
-
url = f"{self.platform_url}/servers/{self.
|
97
|
+
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/automated-curation/catalog-templates/new-element"
|
98
98
|
response = await self._async_make_request("POST", url, body)
|
99
99
|
return response.json().get("guid", "GUID failed to be returned")
|
100
100
|
|
@@ -357,7 +357,7 @@ class AssetCatalog(Client):
|
|
357
357
|
ignore_case_s = str(ignore_case).lower()
|
358
358
|
|
359
359
|
url = (
|
360
|
-
f"{self.platform_url}/servers/{self.
|
360
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/in-domain/"
|
361
361
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
362
362
|
f"endWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
363
363
|
)
|
@@ -459,7 +459,7 @@ class AssetCatalog(Client):
|
|
459
459
|
"""
|
460
460
|
|
461
461
|
url = (
|
462
|
-
f"{self.platform_url}/servers/{self.
|
462
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/{asset_guid}/"
|
463
463
|
f"as-graph?startFrom={start_from}&pageSize={page_size}"
|
464
464
|
)
|
465
465
|
|
@@ -546,7 +546,7 @@ class AssetCatalog(Client):
|
|
546
546
|
"""
|
547
547
|
|
548
548
|
url = (
|
549
|
-
f"{self.platform_url}/servers/{self.
|
549
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/by-metadata-collection-id/"
|
550
550
|
f"{metadata_collection_id}?startFrom={start_from}&pageSize={page_size}"
|
551
551
|
)
|
552
552
|
|
@@ -627,7 +627,7 @@ class AssetCatalog(Client):
|
|
627
627
|
|
628
628
|
"""
|
629
629
|
|
630
|
-
url = f"{self.platform_url}/servers/{self.
|
630
|
+
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/types"
|
631
631
|
|
632
632
|
response = await self._async_make_request("GET", url)
|
633
633
|
|
@@ -23,7 +23,7 @@ class AutomatedCuration(Client):
|
|
23
23
|
"""Set up and maintain automation services in Egeria.
|
24
24
|
|
25
25
|
Attributes:
|
26
|
-
|
26
|
+
view_server : str
|
27
27
|
The name of the View Server to use.
|
28
28
|
platform_url : str
|
29
29
|
URL of the server platform to connect to
|
@@ -38,18 +38,18 @@ class AutomatedCuration(Client):
|
|
38
38
|
|
39
39
|
def __init__(
|
40
40
|
self,
|
41
|
-
|
41
|
+
view_server: str,
|
42
42
|
platform_url: str,
|
43
43
|
user_id: str,
|
44
44
|
user_pwd: str = None,
|
45
45
|
token: str = None,
|
46
46
|
):
|
47
|
-
self.
|
47
|
+
self.view_server = view_server
|
48
48
|
self.platform_url = platform_url
|
49
49
|
self.user_id = user_id
|
50
50
|
self.user_pwd = user_pwd
|
51
|
-
Client.__init__(self,
|
52
|
-
self.
|
51
|
+
Client.__init__(self, view_server, platform_url, user_id, user_pwd, token=token)
|
52
|
+
self.curation_command_root = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/automated-curation"
|
53
53
|
|
54
54
|
async def _async_create_element_from_template(self, body: dict) -> str:
|
55
55
|
"""Create a new metadata element from a template. Async version.
|
@@ -95,7 +95,7 @@ class AutomatedCuration(Client):
|
|
95
95
|
}
|
96
96
|
"""
|
97
97
|
|
98
|
-
url = f"{self.
|
98
|
+
url = f"{self.curation_command_root}/catalog-templates/new-element"
|
99
99
|
response = await self._async_make_request("POST", url, body)
|
100
100
|
return response.json().get("guid", "GUID failed to be returned")
|
101
101
|
|
@@ -1080,7 +1080,7 @@ class AutomatedCuration(Client):
|
|
1080
1080
|
"""
|
1081
1081
|
|
1082
1082
|
url = (
|
1083
|
-
f"{self.
|
1083
|
+
f"{self.curation_command_root}/engine-actions?"
|
1084
1084
|
f"startFrom={start_from}&pageSize={page_size}"
|
1085
1085
|
)
|
1086
1086
|
|
@@ -1145,7 +1145,7 @@ class AutomatedCuration(Client):
|
|
1145
1145
|
For more information see: https://egeria-project.org/concepts/engine-action
|
1146
1146
|
"""
|
1147
1147
|
|
1148
|
-
url = f"{self.
|
1148
|
+
url = f"{self.curation_command_root}/engine-actions/" f"{engine_action_guid}"
|
1149
1149
|
|
1150
1150
|
response = await self._async_make_request("GET", url)
|
1151
1151
|
return response.json().get("element", "No element found")
|
@@ -1207,7 +1207,10 @@ class AutomatedCuration(Client):
|
|
1207
1207
|
|
1208
1208
|
validate_guid(engine_action_guid)
|
1209
1209
|
|
1210
|
-
url =
|
1210
|
+
url = (
|
1211
|
+
f"{self.curation_command_root}/engine-actions/"
|
1212
|
+
f"{engine_action_guid}/cancel"
|
1213
|
+
)
|
1211
1214
|
|
1212
1215
|
await self._async_make_request("POST", url)
|
1213
1216
|
|
@@ -1268,7 +1271,7 @@ class AutomatedCuration(Client):
|
|
1268
1271
|
"""
|
1269
1272
|
|
1270
1273
|
url = (
|
1271
|
-
f"{self.
|
1274
|
+
f"{self.curation_command_root}/engine-actions/active?"
|
1272
1275
|
f"startFrom={start_from}&pageSize={page_size}"
|
1273
1276
|
)
|
1274
1277
|
|
@@ -1346,7 +1349,7 @@ class AutomatedCuration(Client):
|
|
1346
1349
|
validate_name(name)
|
1347
1350
|
|
1348
1351
|
url = (
|
1349
|
-
f"{self.
|
1352
|
+
f"{self.curation_command_root}/engine-actions/by-name?"
|
1350
1353
|
f"startFrom={start_from}&pageSize={page_size}"
|
1351
1354
|
)
|
1352
1355
|
body = {"filter": name}
|
@@ -1452,7 +1455,7 @@ class AutomatedCuration(Client):
|
|
1452
1455
|
ignore_case_s = str(ignore_case).lower()
|
1453
1456
|
|
1454
1457
|
url = (
|
1455
|
-
f"{self.
|
1458
|
+
f"{self.curation_command_root}/engine-actions/"
|
1456
1459
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
1457
1460
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
1458
1461
|
)
|
@@ -1551,7 +1554,10 @@ class AutomatedCuration(Client):
|
|
1551
1554
|
|
1552
1555
|
validate_guid(process_guid)
|
1553
1556
|
|
1554
|
-
url =
|
1557
|
+
url = (
|
1558
|
+
f"{self.curation_command_root}/"
|
1559
|
+
f"governance-action-processes/{process_guid}"
|
1560
|
+
)
|
1555
1561
|
|
1556
1562
|
response = await self._async_make_request("GET", url)
|
1557
1563
|
return response.json().get("element", "no actions")
|
@@ -1608,7 +1614,7 @@ class AutomatedCuration(Client):
|
|
1608
1614
|
validate_guid(process_guid)
|
1609
1615
|
|
1610
1616
|
url = (
|
1611
|
-
f"{self.
|
1617
|
+
f"{self.curation_command_root}/"
|
1612
1618
|
f"governance-action-processes/{process_guid}/graph"
|
1613
1619
|
)
|
1614
1620
|
|
@@ -1677,7 +1683,7 @@ class AutomatedCuration(Client):
|
|
1677
1683
|
validate_name(name)
|
1678
1684
|
|
1679
1685
|
url = (
|
1680
|
-
f"{self.
|
1686
|
+
f"{self.curation_command_root}/governance-action-processes/"
|
1681
1687
|
f"by-name?startFrom={start_from}&pageSize={page_size}"
|
1682
1688
|
)
|
1683
1689
|
body = {"filter": name}
|
@@ -1775,7 +1781,7 @@ class AutomatedCuration(Client):
|
|
1775
1781
|
ignore_case_s = str(ignore_case).lower()
|
1776
1782
|
|
1777
1783
|
url = (
|
1778
|
-
f"{self.
|
1784
|
+
f"{self.curation_command_root}/governance-action-processes/"
|
1779
1785
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
1780
1786
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
1781
1787
|
)
|
@@ -1892,7 +1898,7 @@ class AutomatedCuration(Client):
|
|
1892
1898
|
datetime.datetime.now() if start_time is None else start_time
|
1893
1899
|
)
|
1894
1900
|
|
1895
|
-
url = f"{self.
|
1901
|
+
url = f"{self.curation_command_root}/governance-action-processes/" f"initiate"
|
1896
1902
|
body = {
|
1897
1903
|
"class": "GovernanceActionProcessRequestBody",
|
1898
1904
|
"processQualifiedName": action_type_qualified_name,
|
@@ -1986,7 +1992,7 @@ class AutomatedCuration(Client):
|
|
1986
1992
|
validate_guid(gov_action_type_guid)
|
1987
1993
|
|
1988
1994
|
url = (
|
1989
|
-
f"{self.
|
1995
|
+
f"{self.curation_command_root}/"
|
1990
1996
|
f"governance-action-types/{gov_action_type_guid}"
|
1991
1997
|
)
|
1992
1998
|
|
@@ -2047,7 +2053,7 @@ class AutomatedCuration(Client):
|
|
2047
2053
|
validate_name(action_type_name)
|
2048
2054
|
|
2049
2055
|
url = (
|
2050
|
-
f"{self.
|
2056
|
+
f"{self.curation_command_root}/"
|
2051
2057
|
f"governance-action-types/by-name?startFrom={start_from}&pageSize={page_size}"
|
2052
2058
|
)
|
2053
2059
|
|
@@ -2145,7 +2151,7 @@ class AutomatedCuration(Client):
|
|
2145
2151
|
ignore_case_s = str(ignore_case).lower()
|
2146
2152
|
|
2147
2153
|
url = (
|
2148
|
-
f"{self.
|
2154
|
+
f"{self.curation_command_root}/governance-action-types/"
|
2149
2155
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
2150
2156
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
2151
2157
|
)
|
@@ -2252,7 +2258,7 @@ class AutomatedCuration(Client):
|
|
2252
2258
|
|
2253
2259
|
"""
|
2254
2260
|
|
2255
|
-
url = f"{self.
|
2261
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2256
2262
|
start = int(start_time.timestamp() * 1000) if start_time else None
|
2257
2263
|
body = {
|
2258
2264
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2330,7 +2336,7 @@ class AutomatedCuration(Client):
|
|
2330
2336
|
) -> str:
|
2331
2337
|
"""Initiate a postgres database survey"""
|
2332
2338
|
|
2333
|
-
url = f"{self.
|
2339
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2334
2340
|
|
2335
2341
|
body = {
|
2336
2342
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2359,7 +2365,7 @@ class AutomatedCuration(Client):
|
|
2359
2365
|
) -> str:
|
2360
2366
|
"""Initiate a postgres server survey - Async version"""
|
2361
2367
|
|
2362
|
-
url = f"{self.
|
2368
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2363
2369
|
|
2364
2370
|
body = {
|
2365
2371
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2420,7 +2426,7 @@ class AutomatedCuration(Client):
|
|
2420
2426
|
- AssetSurvey:survey-all-folders-and-files
|
2421
2427
|
"""
|
2422
2428
|
|
2423
|
-
url = f"{self.
|
2429
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2424
2430
|
|
2425
2431
|
body = {
|
2426
2432
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2483,7 +2489,7 @@ class AutomatedCuration(Client):
|
|
2483
2489
|
async def _async_initiate_file_survey(self, file_guid: str) -> str:
|
2484
2490
|
"""Initiate a file survey - async version"""
|
2485
2491
|
|
2486
|
-
url = f"{self.
|
2492
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2487
2493
|
|
2488
2494
|
body = {
|
2489
2495
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2519,7 +2525,7 @@ class AutomatedCuration(Client):
|
|
2519
2525
|
|
2520
2526
|
"""
|
2521
2527
|
|
2522
|
-
url = f"{self.
|
2528
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2523
2529
|
|
2524
2530
|
body = {
|
2525
2531
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2570,7 +2576,7 @@ class AutomatedCuration(Client):
|
|
2570
2576
|
|
2571
2577
|
"""
|
2572
2578
|
|
2573
|
-
url = f"{self.
|
2579
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2574
2580
|
|
2575
2581
|
body = {
|
2576
2582
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2620,7 +2626,7 @@ class AutomatedCuration(Client):
|
|
2620
2626
|
|
2621
2627
|
"""
|
2622
2628
|
|
2623
|
-
url = f"{self.
|
2629
|
+
url = f"{self.curation_command_root}/governance-action-types/" f"initiate"
|
2624
2630
|
|
2625
2631
|
body = {
|
2626
2632
|
"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2674,7 +2680,7 @@ class AutomatedCuration(Client):
|
|
2674
2680
|
#
|
2675
2681
|
# """
|
2676
2682
|
# server = self.view_server if server is None else server
|
2677
|
-
# url = (f"{self.
|
2683
|
+
# url = (f"{self.curation_command_root}/governance-action-types/"
|
2678
2684
|
# f"initiate")
|
2679
2685
|
#
|
2680
2686
|
# body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2720,7 +2726,7 @@ class AutomatedCuration(Client):
|
|
2720
2726
|
#
|
2721
2727
|
# """
|
2722
2728
|
# server = self.view_server if server is None else server
|
2723
|
-
# url = (f"{self.
|
2729
|
+
# url = (f"{self.curation_command_root}/governance-action-types/"
|
2724
2730
|
# f"initiate")
|
2725
2731
|
#
|
2726
2732
|
# body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2766,7 +2772,7 @@ class AutomatedCuration(Client):
|
|
2766
2772
|
#
|
2767
2773
|
# """
|
2768
2774
|
# server = self.view_server if server is None else server
|
2769
|
-
# url = (f"{self.
|
2775
|
+
# url = (f"{self.curation_command_root}/governance-action-types/"
|
2770
2776
|
# f"initiate")
|
2771
2777
|
#
|
2772
2778
|
# body = {"class": "InitiateGovernanceActionTypeRequestBody",
|
@@ -2854,7 +2860,10 @@ class AutomatedCuration(Client):
|
|
2854
2860
|
|
2855
2861
|
"""
|
2856
2862
|
|
2857
|
-
url =
|
2863
|
+
url = (
|
2864
|
+
f"{self.curation_command_root}/governance-engines/"
|
2865
|
+
f"engine-actions/initiate"
|
2866
|
+
)
|
2858
2867
|
body = {
|
2859
2868
|
"class": "GovernanceActionRequestBody",
|
2860
2869
|
"qualifiedName": qualified_name + str(int(start_time.timestamp())),
|
@@ -2977,7 +2986,7 @@ class AutomatedCuration(Client):
|
|
2977
2986
|
validate_guid(integ_connector_guid)
|
2978
2987
|
|
2979
2988
|
url = (
|
2980
|
-
f"{self.
|
2989
|
+
f"{self.curation_command_root}/integration-connectors/"
|
2981
2990
|
f"{integ_connector_guid}/catalog-targets?startFrom={start_from}&pageSize={page_size}"
|
2982
2991
|
)
|
2983
2992
|
|
@@ -3037,7 +3046,7 @@ class AutomatedCuration(Client):
|
|
3037
3046
|
|
3038
3047
|
validate_guid(relationship_guid)
|
3039
3048
|
|
3040
|
-
url = f"{self.
|
3049
|
+
url = f"{self.curation_command_root}/catalog-targets/" f"{relationship_guid}"
|
3041
3050
|
|
3042
3051
|
response = await self._async_make_request("GET", url)
|
3043
3052
|
return response.json().get("element", "no actions")
|
@@ -3120,7 +3129,7 @@ class AutomatedCuration(Client):
|
|
3120
3129
|
validate_guid(metadata_element_guid)
|
3121
3130
|
|
3122
3131
|
url = (
|
3123
|
-
f"{self.
|
3132
|
+
f"{self.curation_command_root}/integration-connectors/"
|
3124
3133
|
f"{integ_connector_guid}/catalog-targets/{metadata_element_guid}"
|
3125
3134
|
)
|
3126
3135
|
body = {
|
@@ -3243,7 +3252,10 @@ class AutomatedCuration(Client):
|
|
3243
3252
|
|
3244
3253
|
validate_guid(relationship_guid)
|
3245
3254
|
|
3246
|
-
url =
|
3255
|
+
url = (
|
3256
|
+
f"{self.curation_command_root}/catalog-targets/"
|
3257
|
+
f"{relationship_guid}/update"
|
3258
|
+
)
|
3247
3259
|
body = {
|
3248
3260
|
"catalogTargetName": catalog_target_name,
|
3249
3261
|
"metadataSourceQualifiedName": metadata_src_qual_name,
|
@@ -3327,7 +3339,10 @@ class AutomatedCuration(Client):
|
|
3327
3339
|
|
3328
3340
|
validate_guid(relationship_guid)
|
3329
3341
|
|
3330
|
-
url =
|
3342
|
+
url = (
|
3343
|
+
f"{self.curation_command_root}/catalog-targets/"
|
3344
|
+
f"{relationship_guid}/remove"
|
3345
|
+
)
|
3331
3346
|
|
3332
3347
|
await self._async_make_request("POST", url)
|
3333
3348
|
return
|
@@ -3395,7 +3410,7 @@ class AutomatedCuration(Client):
|
|
3395
3410
|
|
3396
3411
|
# validate_name(type_name)
|
3397
3412
|
url = (
|
3398
|
-
f"{self.
|
3413
|
+
f"{self.curation_command_root}/open-metadata-types/"
|
3399
3414
|
f"{type_name}/technology-types?startFrom={start_from}&pageSize={page_size}"
|
3400
3415
|
)
|
3401
3416
|
body = {"filter": tech_name}
|
@@ -3470,7 +3485,7 @@ class AutomatedCuration(Client):
|
|
3470
3485
|
"""
|
3471
3486
|
|
3472
3487
|
# validate_name(type_name)
|
3473
|
-
url = f"{self.
|
3488
|
+
url = f"{self.curation_command_root}/technology-types/by-name"
|
3474
3489
|
|
3475
3490
|
body = {"filter": type_name}
|
3476
3491
|
|
@@ -3561,7 +3576,7 @@ class AutomatedCuration(Client):
|
|
3561
3576
|
search_string = ""
|
3562
3577
|
|
3563
3578
|
url = (
|
3564
|
-
f"{self.
|
3579
|
+
f"{self.curation_command_root}/technology-types/"
|
3565
3580
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
3566
3581
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
3567
3582
|
)
|
@@ -3741,7 +3756,7 @@ class AutomatedCuration(Client):
|
|
3741
3756
|
validate_name(filter)
|
3742
3757
|
|
3743
3758
|
url = (
|
3744
|
-
f"{self.
|
3759
|
+
f"{self.curation_command_root}/technology-types/elements?"
|
3745
3760
|
f"startFrom={start_from}&pageSize={page_size}&getTemplates={get_templates_s}"
|
3746
3761
|
)
|
3747
3762
|
body = {"filter": filter, "effective_time": effective_time}
|