pyegeria 0.8.4.36__py3-none-any.whl → 0.8.4.38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- commands/ops/load_archive.py +0 -2
- pyegeria/asset_catalog_omvs.py +9 -9
- pyegeria/automated_curation_omvs.py +5 -5
- pyegeria/classification_manager_omvs.py +193 -407
- pyegeria/collection_manager_omvs.py +160 -280
- pyegeria/core_omag_server_config.py +77 -72
- pyegeria/egeria_cat_client.py +11 -6
- pyegeria/egeria_client.py +3 -2
- pyegeria/egeria_config_client.py +5 -0
- pyegeria/egeria_my_client.py +9 -4
- pyegeria/egeria_tech_client.py +1 -1
- pyegeria/feedback_manager_omvs.py +92 -333
- pyegeria/full_omag_server_config.py +54 -50
- pyegeria/glossary_browser_omvs.py +128 -284
- pyegeria/glossary_manager_omvs.py +132 -451
- pyegeria/my_profile_omvs.py +57 -153
- pyegeria/platform_services.py +1 -1
- pyegeria/project_manager_omvs.py +110 -197
- pyegeria/registered_info.py +13 -13
- pyegeria/valid_metadata_omvs.py +75 -227
- pyegeria/x_action_author_omvs.py +1 -1
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/METADATA +1 -1
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/RECORD +26 -26
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/LICENSE +0 -0
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/WHEEL +0 -0
- {pyegeria-0.8.4.36.dist-info → pyegeria-0.8.4.38.dist-info}/entry_points.txt +0 -0
@@ -7,12 +7,11 @@ added in subsequent versions of the glossary_omvs module.
|
|
7
7
|
|
8
8
|
"""
|
9
9
|
import asyncio
|
10
|
-
from datetime import datetime
|
11
10
|
import time
|
11
|
+
from datetime import datetime
|
12
12
|
|
13
13
|
# import json
|
14
14
|
from pyegeria._client import Client
|
15
|
-
from pyegeria._globals import enable_ssl_check
|
16
15
|
from pyegeria._validators import (
|
17
16
|
validate_name,
|
18
17
|
validate_guid,
|
@@ -29,7 +28,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
29
28
|
|
30
29
|
Attributes:
|
31
30
|
|
32
|
-
|
31
|
+
view_server: str
|
33
32
|
The name of the View Server to connect to.
|
34
33
|
platform_url : str
|
35
34
|
URL of the server platform to connect to
|
@@ -38,22 +37,25 @@ class GlossaryManager(GlossaryBrowser):
|
|
38
37
|
when the user doesn't pass the user_id on a method call.
|
39
38
|
user_pwd: str
|
40
39
|
The password associated with the user_id. Defaults to None
|
41
|
-
|
42
|
-
Flag to indicate if SSL Certificates should be verified in the HTTP requests.
|
43
|
-
Defaults to False.
|
40
|
+
|
44
41
|
|
45
42
|
"""
|
46
43
|
|
47
44
|
def __init__(
|
48
45
|
self,
|
49
|
-
|
46
|
+
view_server: str,
|
50
47
|
platform_url: str,
|
51
48
|
user_id: str,
|
52
49
|
user_pwd: str = None,
|
53
50
|
token: str = None,
|
54
51
|
):
|
55
|
-
self.
|
56
|
-
|
52
|
+
self.gl_mgr_command_root: str
|
53
|
+
self.view_server = view_server
|
54
|
+
self.platform_url = platform_url
|
55
|
+
self.user_id = user_id
|
56
|
+
self.user_pwd = user_pwd
|
57
|
+
|
58
|
+
Client.__init__(self, view_server, platform_url, user_id, user_pwd, token)
|
57
59
|
|
58
60
|
#
|
59
61
|
# Get Valid Values for Enumerations
|
@@ -65,7 +67,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
65
67
|
description: str,
|
66
68
|
language: str = "English",
|
67
69
|
usage: str = None,
|
68
|
-
server_name: str = None,
|
69
70
|
) -> str:
|
70
71
|
"""Create a new glossary. Async version.
|
71
72
|
|
@@ -79,8 +80,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
79
80
|
The language the used for the glossary
|
80
81
|
usage: str, optional, default = None
|
81
82
|
How the glossary is intended to be used
|
82
|
-
|
83
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
83
|
+
|
84
84
|
|
85
85
|
Returns
|
86
86
|
-------
|
@@ -88,10 +88,8 @@ class GlossaryManager(GlossaryBrowser):
|
|
88
88
|
The GUID of the created glossary.
|
89
89
|
|
90
90
|
"""
|
91
|
-
if server_name is None:
|
92
|
-
server_name = self.server_name
|
93
91
|
|
94
|
-
url = f"{self.platform_url}/servers/{
|
92
|
+
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries"
|
95
93
|
body = {
|
96
94
|
"class": "ReferenceableRequestBody",
|
97
95
|
"elementProperties": {
|
@@ -112,7 +110,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
112
110
|
description: str,
|
113
111
|
language: str = "English",
|
114
112
|
usage: str = None,
|
115
|
-
server_name: str = None,
|
116
113
|
) -> str:
|
117
114
|
"""Create a new glossary.
|
118
115
|
|
@@ -126,8 +123,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
126
123
|
The language the used for the glossary
|
127
124
|
usage: str, optional, default = None
|
128
125
|
How the glossary is intended to be used
|
129
|
-
|
130
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
126
|
+
|
131
127
|
|
132
128
|
Returns
|
133
129
|
-------
|
@@ -137,49 +133,41 @@ class GlossaryManager(GlossaryBrowser):
|
|
137
133
|
"""
|
138
134
|
loop = asyncio.get_event_loop()
|
139
135
|
response = loop.run_until_complete(
|
140
|
-
self._async_create_glossary(
|
141
|
-
display_name, description, language, usage, server_name
|
142
|
-
)
|
136
|
+
self._async_create_glossary(display_name, description, language, usage)
|
143
137
|
)
|
144
138
|
return response
|
145
139
|
|
146
|
-
async def _async_delete_glossary(
|
147
|
-
self, glossary_guid: str, server_name: str = None
|
148
|
-
) -> None:
|
140
|
+
async def _async_delete_glossary(self, glossary_guid: str) -> None:
|
149
141
|
"""Delete glossary. Async version.
|
150
142
|
|
151
143
|
Parameters
|
152
144
|
----------
|
153
145
|
glossary_guid: str
|
154
146
|
The ID of the glossary to delete.
|
155
|
-
|
156
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
147
|
+
|
157
148
|
|
158
149
|
Returns
|
159
150
|
-------
|
160
151
|
None
|
161
152
|
|
162
153
|
"""
|
163
|
-
if server_name is None:
|
164
|
-
server_name = self.server_name
|
165
154
|
|
166
155
|
url = (
|
167
|
-
f"{self.platform_url}/servers/{
|
156
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
168
157
|
f"{glossary_guid}/remove"
|
169
158
|
)
|
170
159
|
|
171
160
|
await self._async_make_request("POST", url)
|
172
161
|
return
|
173
162
|
|
174
|
-
def delete_glossary(self, glossary_guid: str
|
163
|
+
def delete_glossary(self, glossary_guid: str) -> None:
|
175
164
|
"""Create a new glossary.
|
176
165
|
|
177
166
|
Parameters
|
178
167
|
----------
|
179
168
|
glossary_guid: str
|
180
169
|
The ID of the glossary to delete.
|
181
|
-
|
182
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
170
|
+
|
183
171
|
|
184
172
|
Returns
|
185
173
|
-------
|
@@ -187,9 +175,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
187
175
|
|
188
176
|
"""
|
189
177
|
loop = asyncio.get_event_loop()
|
190
|
-
response = loop.run_until_complete(
|
191
|
-
self._async_delete_glossary(glossary_guid, server_name)
|
192
|
-
)
|
178
|
+
response = loop.run_until_complete(self._async_delete_glossary(glossary_guid))
|
193
179
|
return response
|
194
180
|
|
195
181
|
#
|
@@ -206,7 +192,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
206
192
|
for_lineage: bool = False,
|
207
193
|
for_duplicate_processing: bool = False,
|
208
194
|
type_name: str = None,
|
209
|
-
server_name: str = None,
|
210
195
|
start_from: int = 0,
|
211
196
|
page_size: int = None,
|
212
197
|
) -> list | str:
|
@@ -222,9 +207,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
222
207
|
effective_time: str, [default=None], optional
|
223
208
|
Effective time of the query. If not specified will default to any time. Time format is
|
224
209
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
225
|
-
|
226
|
-
The name of the server to configure.
|
227
|
-
If not provided, the server name associated with the instance is used.
|
210
|
+
|
228
211
|
starts_with : bool, [default=False], optional
|
229
212
|
Starts with the supplied string.
|
230
213
|
ends_with : bool, [default=False], optional
|
@@ -259,8 +242,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
259
242
|
The principle specified by the user_id does not have authorization for the requested action
|
260
243
|
|
261
244
|
"""
|
262
|
-
|
263
|
-
server_name = self.server_name
|
245
|
+
|
264
246
|
if page_size is None:
|
265
247
|
page_size = self.page_size
|
266
248
|
starts_with_s = str(starts_with).lower()
|
@@ -284,7 +266,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
284
266
|
# print(f"\n\nBody is: \n{body}")
|
285
267
|
|
286
268
|
url = (
|
287
|
-
f"{self.platform_url}/servers/{
|
269
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
288
270
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
289
271
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}&forLineage={for_lineage_s}&"
|
290
272
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
@@ -303,7 +285,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
303
285
|
for_lineage: bool = False,
|
304
286
|
for_duplicate_processing: bool = False,
|
305
287
|
type_name: str = None,
|
306
|
-
server_name: str = None,
|
307
288
|
start_from: int = 0,
|
308
289
|
page_size: int = None,
|
309
290
|
) -> list | str:
|
@@ -319,9 +300,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
319
300
|
effective_time: str, [default=None], optional
|
320
301
|
Effective time of the query. If not specified will default to any time. Time format is
|
321
302
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
322
|
-
|
323
|
-
The name of the server to configure.
|
324
|
-
If not provided, the server name associated with the instance is used.
|
303
|
+
|
325
304
|
starts_with : bool, [default=False], optional
|
326
305
|
Starts with the supplied string.
|
327
306
|
ends_with : bool, [default=False], optional
|
@@ -367,7 +346,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
367
346
|
for_lineage,
|
368
347
|
for_duplicate_processing,
|
369
348
|
type_name,
|
370
|
-
server_name,
|
371
349
|
start_from,
|
372
350
|
page_size,
|
373
351
|
)
|
@@ -375,89 +353,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
375
353
|
|
376
354
|
return response
|
377
355
|
|
378
|
-
async def _async_get_glossary_by_guid(
|
379
|
-
self, glossary_guid: str, server_name: str = None, effective_time: str = None
|
380
|
-
) -> dict:
|
381
|
-
"""Retrieves information about a glossary
|
382
|
-
Parameters
|
383
|
-
----------
|
384
|
-
glossary_guid : str
|
385
|
-
Unique idetifier for the glossary
|
386
|
-
server_name : str, optional
|
387
|
-
The name of the server to get the configured access services for.
|
388
|
-
If not provided, the server name associated with the instance is used.
|
389
|
-
effective_time: str, optional
|
390
|
-
Effective time of the query. If not specified will default to any time. Time format is
|
391
|
-
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
392
|
-
Returns
|
393
|
-
-------
|
394
|
-
dict
|
395
|
-
The glossary definition associated with the glossary_guid
|
396
|
-
|
397
|
-
Raises
|
398
|
-
------
|
399
|
-
InvalidParameterException
|
400
|
-
If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
|
401
|
-
PropertyServerException
|
402
|
-
Raised by the server when an issue arises in processing a valid request.
|
403
|
-
NotAuthorizedException
|
404
|
-
The principle specified by the user_id does not have authorization for the requested action.
|
405
|
-
Notes
|
406
|
-
-----
|
407
|
-
"""
|
408
|
-
if server_name is None:
|
409
|
-
server_name = self.server_name
|
410
|
-
validate_guid(glossary_guid)
|
411
|
-
|
412
|
-
body = {
|
413
|
-
"class": "EffectiveTimeQueryRequestBody",
|
414
|
-
"effectiveTime": effective_time,
|
415
|
-
}
|
416
|
-
|
417
|
-
url = (
|
418
|
-
f"{self.platform_url}/servers/{server_name}/api/open-metadata/glossary-browser/glossaries/"
|
419
|
-
f"{glossary_guid}/retrieve"
|
420
|
-
)
|
421
|
-
print(url)
|
422
|
-
response = await self._async_make_request("POST", url, payload=body)
|
423
|
-
return response.json()
|
424
|
-
|
425
|
-
def get_glossary_by_guid(self, glossary_guid: str, server_name: str = None) -> dict:
|
426
|
-
"""Retrieves information about a glossary
|
427
|
-
Parameters
|
428
|
-
----------
|
429
|
-
glossary_guid : str
|
430
|
-
Unique idetifier for the glossary
|
431
|
-
server_name : str, optional
|
432
|
-
The name of the server to get the configured access services for.
|
433
|
-
If not provided, the server name associated with the instance is used.
|
434
|
-
Returns
|
435
|
-
-------
|
436
|
-
dict
|
437
|
-
The glossary definition associated with the glossary_guid
|
438
|
-
|
439
|
-
Raises
|
440
|
-
------
|
441
|
-
InvalidParameterException
|
442
|
-
If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
|
443
|
-
PropertyServerException
|
444
|
-
Raised by the server when an issue arises in processing a valid request.
|
445
|
-
NotAuthorizedException
|
446
|
-
The principle specified by the user_id does not have authorization for the requested action.
|
447
|
-
Notes
|
448
|
-
-----
|
449
|
-
"""
|
450
|
-
loop = asyncio.get_event_loop()
|
451
|
-
response = loop.run_until_complete(
|
452
|
-
self._async_get_glossary_by_guid(glossary_guid, server_name)
|
453
|
-
)
|
454
|
-
return response
|
455
|
-
|
456
356
|
async def _async_get_glossaries_by_name(
|
457
357
|
self,
|
458
358
|
glossary_name: str,
|
459
359
|
effective_time: str = None,
|
460
|
-
server_name: str = None,
|
461
360
|
start_from: int = 0,
|
462
361
|
page_size: int = None,
|
463
362
|
) -> dict | str:
|
@@ -471,9 +370,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
471
370
|
effective_time: datetime, [default=None], optional
|
472
371
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
473
372
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
474
|
-
|
475
|
-
The name of the server to configure.
|
476
|
-
If not provided, the server name associated with the instance is used.
|
373
|
+
|
477
374
|
start_from: int, [default=0], optional
|
478
375
|
When multiple pages of results are available, the page number to start from.
|
479
376
|
page_size: int, [default=None]
|
@@ -497,8 +394,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
497
394
|
Raised when configuration parameters passed on earlier calls turn out to be
|
498
395
|
invalid or make the new call invalid.
|
499
396
|
"""
|
500
|
-
|
501
|
-
server_name = self.server_name
|
397
|
+
|
502
398
|
if page_size is None:
|
503
399
|
page_size = self.page_size
|
504
400
|
validate_name(glossary_name)
|
@@ -509,7 +405,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
509
405
|
body = {"name": glossary_name, "effectiveTime": effective_time}
|
510
406
|
|
511
407
|
url = (
|
512
|
-
f"{self.platform_url}/servers/{
|
408
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
513
409
|
f"by-name?startFrom={start_from}&pageSize={page_size}"
|
514
410
|
)
|
515
411
|
|
@@ -520,7 +416,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
520
416
|
self,
|
521
417
|
glossary_name: str,
|
522
418
|
effective_time: str = None,
|
523
|
-
server_name: str = None,
|
524
419
|
start_from: int = 0,
|
525
420
|
page_size: int = None,
|
526
421
|
) -> dict | str:
|
@@ -533,9 +428,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
533
428
|
Name of the glossary to be retrieved
|
534
429
|
effective_time: datetime, [default=None], optional
|
535
430
|
Effective time of the query. If not specified will default to any effective time.
|
536
|
-
|
537
|
-
The name of the server to configure.
|
538
|
-
If not provided, the server name associated with the instance is used.
|
431
|
+
|
539
432
|
start_from: int, [default=0], optional
|
540
433
|
When multiple pages of results are available, the page number to start from.
|
541
434
|
page_size: int, [default=None]
|
@@ -561,7 +454,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
561
454
|
loop = asyncio.get_event_loop()
|
562
455
|
response = loop.run_until_complete(
|
563
456
|
self._async_get_glossaries_by_name(
|
564
|
-
glossary_name, effective_time,
|
457
|
+
glossary_name, effective_time, start_from, page_size
|
565
458
|
)
|
566
459
|
)
|
567
460
|
return response
|
@@ -574,7 +467,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
574
467
|
glossary_guid: str,
|
575
468
|
display_name: str,
|
576
469
|
description: str,
|
577
|
-
server_name: str = None,
|
578
470
|
) -> str:
|
579
471
|
"""Create a new category within the specified glossary. Async Version.
|
580
472
|
|
@@ -586,9 +478,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
586
478
|
Display name for the glossary category. Will be used as the base for a constructed unique qualified name.
|
587
479
|
description: str,
|
588
480
|
Description for the category.
|
589
|
-
|
590
|
-
The name of the server to configure.
|
591
|
-
If not provided, the server name associated with the instance is used.
|
481
|
+
|
592
482
|
|
593
483
|
Returns
|
594
484
|
-------
|
@@ -607,11 +497,9 @@ class GlossaryManager(GlossaryBrowser):
|
|
607
497
|
Raised when configuration parameters passed on earlier calls turn out to be
|
608
498
|
invalid or make the new call invalid.
|
609
499
|
"""
|
610
|
-
if server_name is None:
|
611
|
-
server_name = self.server_name
|
612
500
|
|
613
501
|
url = (
|
614
|
-
f"{self.platform_url}/servers/{
|
502
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
615
503
|
f"{glossary_guid}/categories"
|
616
504
|
)
|
617
505
|
body = {
|
@@ -631,7 +519,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
631
519
|
glossary_guid: str,
|
632
520
|
display_name: str,
|
633
521
|
description: str,
|
634
|
-
server_name: str = None,
|
635
522
|
) -> str:
|
636
523
|
"""Create a new category within the specified glossary.
|
637
524
|
|
@@ -643,9 +530,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
643
530
|
Display name for the glossary category. Will be used as the base for a constructed unique qualified name.
|
644
531
|
description: str,
|
645
532
|
Description for the category.
|
646
|
-
|
647
|
-
The name of the server to configure.
|
648
|
-
If not provided, the server name associated with the instance is used.
|
533
|
+
|
649
534
|
|
650
535
|
Returns
|
651
536
|
-------
|
@@ -666,9 +551,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
666
551
|
"""
|
667
552
|
loop = asyncio.get_event_loop()
|
668
553
|
response = loop.run_until_complete(
|
669
|
-
self._async_create_category(
|
670
|
-
glossary_guid, display_name, description, server_name
|
671
|
-
)
|
554
|
+
self._async_create_category(glossary_guid, display_name, description)
|
672
555
|
)
|
673
556
|
return response
|
674
557
|
|
@@ -676,7 +559,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
676
559
|
self,
|
677
560
|
glossary_category_guid: str,
|
678
561
|
effective_time: str = None,
|
679
|
-
server_name: str = None,
|
680
562
|
) -> dict | str:
|
681
563
|
"""Retrieve the glossary metadata element for the requested category. The optional request body allows you to
|
682
564
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -688,9 +570,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
688
570
|
effective_time: datetime, [default=None], optional
|
689
571
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
690
572
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
691
|
-
|
692
|
-
The name of the server to configure.
|
693
|
-
If not provided, the server name associated with the instance is used.
|
573
|
+
|
694
574
|
|
695
575
|
Returns
|
696
576
|
-------
|
@@ -709,8 +589,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
709
589
|
Raised when configuration parameters passed on earlier calls turn out to be
|
710
590
|
invalid or make the new call invalid.
|
711
591
|
"""
|
712
|
-
if server_name is None:
|
713
|
-
server_name = self.server_name
|
714
592
|
|
715
593
|
body = {
|
716
594
|
"class": "EffectiveTimeQueryRequestBody",
|
@@ -718,7 +596,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
718
596
|
}
|
719
597
|
|
720
598
|
url = (
|
721
|
-
f"{self.platform_url}/servers/{
|
599
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
722
600
|
f"for-category/{glossary_category_guid}/retrieve"
|
723
601
|
)
|
724
602
|
|
@@ -729,7 +607,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
729
607
|
self,
|
730
608
|
glossary_category_guid: str,
|
731
609
|
effective_time: str = None,
|
732
|
-
server_name: str = None,
|
733
610
|
) -> dict | str:
|
734
611
|
"""Retrieve the glossary metadata element for the requested category. The optional request body allows you to
|
735
612
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -741,9 +618,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
741
618
|
effective_time: datetime, [default=None], optional
|
742
619
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
743
620
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
744
|
-
|
745
|
-
The name of the server to configure.
|
746
|
-
If not provided, the server name associated with the instance is used.
|
621
|
+
|
747
622
|
|
748
623
|
Returns
|
749
624
|
-------
|
@@ -764,8 +639,8 @@ class GlossaryManager(GlossaryBrowser):
|
|
764
639
|
"""
|
765
640
|
loop = asyncio.get_event_loop()
|
766
641
|
response = loop.run_until_complete(
|
767
|
-
self.
|
768
|
-
glossary_category_guid, effective_time
|
642
|
+
self._async_get_glossary_for_category(
|
643
|
+
glossary_category_guid, effective_time
|
769
644
|
)
|
770
645
|
)
|
771
646
|
return response
|
@@ -777,7 +652,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
777
652
|
starts_with: bool = False,
|
778
653
|
ends_with: bool = False,
|
779
654
|
ignore_case: bool = False,
|
780
|
-
server_name: str = None,
|
781
655
|
start_from: int = 0,
|
782
656
|
page_size: int = None,
|
783
657
|
) -> list | str:
|
@@ -794,9 +668,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
794
668
|
effective_time: str, [default=None], optional
|
795
669
|
Effective time of the query. If not specified will default to any time. Time format is
|
796
670
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
797
|
-
|
798
|
-
The name of the server to configure.
|
799
|
-
If not provided, the server name associated with the instance is used.
|
671
|
+
|
800
672
|
starts_with : bool, [default=False], optional
|
801
673
|
Starts with the supplied string.
|
802
674
|
ends_with : bool, [default=False], optional
|
@@ -825,8 +697,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
825
697
|
The principle specified by the user_id does not have authorization for the requested action
|
826
698
|
|
827
699
|
"""
|
828
|
-
|
829
|
-
server_name = self.server_name
|
700
|
+
|
830
701
|
if page_size is None:
|
831
702
|
page_size = self.page_size
|
832
703
|
starts_with_s = str(starts_with).lower()
|
@@ -846,7 +717,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
846
717
|
body = body_slimmer(body)
|
847
718
|
|
848
719
|
url = (
|
849
|
-
f"{self.platform_url}/servers/{
|
720
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
850
721
|
f"categories/by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
851
722
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
852
723
|
)
|
@@ -861,7 +732,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
861
732
|
starts_with: bool = False,
|
862
733
|
ends_with: bool = False,
|
863
734
|
ignore_case: bool = False,
|
864
|
-
server_name: str = None,
|
865
735
|
start_from: int = 0,
|
866
736
|
page_size: int = None,
|
867
737
|
) -> list | str:
|
@@ -877,9 +747,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
877
747
|
effective_time: str, [default=None], optional
|
878
748
|
Effective time of the query. If not specified will default to any time. Time format is
|
879
749
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
880
|
-
|
881
|
-
The name of the server to configure.
|
882
|
-
If not provided, the server name associated with the instance is used.
|
750
|
+
|
883
751
|
starts_with : bool, [default=False], optional
|
884
752
|
Starts with the supplied string.
|
885
753
|
ends_with : bool, [default=False], optional
|
@@ -916,7 +784,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
916
784
|
starts_with,
|
917
785
|
ends_with,
|
918
786
|
ignore_case,
|
919
|
-
server_name,
|
920
787
|
start_from,
|
921
788
|
page_size,
|
922
789
|
)
|
@@ -927,7 +794,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
927
794
|
async def _async_get_categories_for_glossary(
|
928
795
|
self,
|
929
796
|
glossary_guid: str,
|
930
|
-
server_name: str = None,
|
931
797
|
start_from: int = 0,
|
932
798
|
page_size: int = None,
|
933
799
|
) -> list | str:
|
@@ -938,9 +804,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
938
804
|
----------
|
939
805
|
glossary_guid: str,
|
940
806
|
Unique identity of the glossary
|
941
|
-
|
942
|
-
The name of the server to configure.
|
943
|
-
If not provided, the server name associated with the instance is used.
|
807
|
+
|
944
808
|
start_from: int, [default=0], optional
|
945
809
|
When multiple pages of results are available, the page number to start from.
|
946
810
|
page_size: int, [default=None]
|
@@ -963,13 +827,12 @@ class GlossaryManager(GlossaryBrowser):
|
|
963
827
|
The principle specified by the user_id does not have authorization for the requested action
|
964
828
|
|
965
829
|
"""
|
966
|
-
|
967
|
-
server_name = self.server_name
|
830
|
+
|
968
831
|
if page_size is None:
|
969
832
|
page_size = self.page_size
|
970
833
|
|
971
834
|
url = (
|
972
|
-
f"{self.platform_url}/servers/{
|
835
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
973
836
|
f"{glossary_guid}/categories/retrieve?startFrom={start_from}&pageSize={page_size}"
|
974
837
|
)
|
975
838
|
|
@@ -979,7 +842,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
979
842
|
def get_categories_for_glossary(
|
980
843
|
self,
|
981
844
|
glossary_guid: str,
|
982
|
-
server_name: str = None,
|
983
845
|
start_from: int = 0,
|
984
846
|
page_size: int = None,
|
985
847
|
) -> list | str:
|
@@ -989,9 +851,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
989
851
|
----------
|
990
852
|
glossary_guid: str,
|
991
853
|
Unique identity of the glossary
|
992
|
-
|
993
|
-
The name of the server to configure.
|
994
|
-
If not provided, the server name associated with the instance is used.
|
854
|
+
|
995
855
|
start_from: int, [default=0], optional
|
996
856
|
When multiple pages of results are available, the page number to start from.
|
997
857
|
page_size: int, [default=None]
|
@@ -1017,7 +877,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1017
877
|
loop = asyncio.get_event_loop()
|
1018
878
|
response = loop.run_until_complete(
|
1019
879
|
self._async_get_categories_for_glossary(
|
1020
|
-
glossary_guid,
|
880
|
+
glossary_guid, start_from, page_size
|
1021
881
|
)
|
1022
882
|
)
|
1023
883
|
return response
|
@@ -1025,7 +885,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1025
885
|
async def _async_get_categories_for_term(
|
1026
886
|
self,
|
1027
887
|
glossary_term_guid: str,
|
1028
|
-
server_name: str = None,
|
1029
888
|
start_from: int = 0,
|
1030
889
|
page_size: int = None,
|
1031
890
|
) -> list | str:
|
@@ -1036,9 +895,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1036
895
|
----------
|
1037
896
|
glossary_term_guid: str,
|
1038
897
|
Unique identity of a glossary term
|
1039
|
-
|
1040
|
-
The name of the server to use.
|
1041
|
-
If not provided, the server name associated with the instance is used.
|
898
|
+
|
1042
899
|
start_from: int, [default=0], optional
|
1043
900
|
When multiple pages of results are available, the page number to start from.
|
1044
901
|
page_size: int, [default=None]
|
@@ -1061,13 +918,12 @@ class GlossaryManager(GlossaryBrowser):
|
|
1061
918
|
The principle specified by the user_id does not have authorization for the requested action
|
1062
919
|
|
1063
920
|
"""
|
1064
|
-
|
1065
|
-
server_name = self.server_name
|
921
|
+
|
1066
922
|
if page_size is None:
|
1067
923
|
page_size = self.page_size
|
1068
924
|
|
1069
925
|
url = (
|
1070
|
-
f"{self.platform_url}/servers/{
|
926
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/terms/"
|
1071
927
|
f"{glossary_term_guid}/categories/retrieve?startFrom={start_from}&pageSize={page_size}"
|
1072
928
|
)
|
1073
929
|
|
@@ -1077,7 +933,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1077
933
|
def get_categories_for_term(
|
1078
934
|
self,
|
1079
935
|
glossary_term_guid: str,
|
1080
|
-
server_name: str = None,
|
1081
936
|
start_from: int = 0,
|
1082
937
|
page_size: int = None,
|
1083
938
|
) -> list | str:
|
@@ -1087,9 +942,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1087
942
|
----------
|
1088
943
|
glossary_term_guid: str,
|
1089
944
|
Unique identity of a glossary term
|
1090
|
-
|
1091
|
-
The name of the server to use.
|
1092
|
-
If not provided, the server name associated with the instance is used.
|
945
|
+
|
1093
946
|
start_from: int, [default=0], optional
|
1094
947
|
When multiple pages of results are available, the page number to start from.
|
1095
948
|
page_size: int, [default=None]
|
@@ -1115,7 +968,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1115
968
|
loop = asyncio.get_event_loop()
|
1116
969
|
response = loop.run_until_complete(
|
1117
970
|
self._async_get_categories_for_term(
|
1118
|
-
glossary_term_guid,
|
971
|
+
glossary_term_guid, start_from, page_size
|
1119
972
|
)
|
1120
973
|
)
|
1121
974
|
return response
|
@@ -1125,7 +978,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1125
978
|
name: str,
|
1126
979
|
glossary_guid: str = None,
|
1127
980
|
status: [str] = ["ACTIVE"],
|
1128
|
-
server_name: str = None,
|
1129
981
|
start_from: int = 0,
|
1130
982
|
page_size: int = None,
|
1131
983
|
) -> list | str:
|
@@ -1143,9 +995,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1143
995
|
The identity of the glossary to search. If not specified, all glossaries will be searched.
|
1144
996
|
status: [str], optional
|
1145
997
|
A list of statuses to optionally restrict results. Default is Active
|
1146
|
-
|
1147
|
-
The name of the server to configure.
|
1148
|
-
If not provided, the server name associated with the instance is used.
|
998
|
+
|
1149
999
|
start_from: int, [default=0], optional
|
1150
1000
|
When multiple pages of results are available, the page number to start from.
|
1151
1001
|
page_size: int, [default=None]
|
@@ -1168,14 +1018,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
1168
1018
|
The principle specified by the user_id does not have authorization for the requested action
|
1169
1019
|
|
1170
1020
|
"""
|
1171
|
-
|
1172
|
-
server_name = self.server_name
|
1021
|
+
|
1173
1022
|
if page_size is None:
|
1174
1023
|
page_size = self.page_size
|
1175
1024
|
validate_name(name)
|
1176
1025
|
|
1177
1026
|
url = (
|
1178
|
-
f"{self.platform_url}/servers/{
|
1027
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1179
1028
|
f"by-name?startFrom={start_from}&pageSize={page_size}"
|
1180
1029
|
)
|
1181
1030
|
|
@@ -1194,7 +1043,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1194
1043
|
name: str,
|
1195
1044
|
glossary_guid: str = None,
|
1196
1045
|
status: [str] = ["ACTIVE"],
|
1197
|
-
server_name: str = None,
|
1198
1046
|
start_from: int = 0,
|
1199
1047
|
page_size: int = None,
|
1200
1048
|
) -> list | str:
|
@@ -1210,9 +1058,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1210
1058
|
The identity of the glossary to search. If not specified, all glossaries will be searched.
|
1211
1059
|
status: [str], optional
|
1212
1060
|
A list of statuses to optionally restrict results. Default is Active
|
1213
|
-
|
1214
|
-
The name of the server to configure.
|
1215
|
-
If not provided, the server name associated with the instance is used.
|
1061
|
+
|
1216
1062
|
start_from: int, [default=0], optional
|
1217
1063
|
When multiple pages of results are available, the page number to start from.
|
1218
1064
|
page_size: int, [default=None]
|
@@ -1238,7 +1084,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1238
1084
|
loop = asyncio.get_event_loop()
|
1239
1085
|
response = loop.run_until_complete(
|
1240
1086
|
self._async_get_categories_by_name(
|
1241
|
-
name, glossary_guid, status,
|
1087
|
+
name, glossary_guid, status, start_from, page_size
|
1242
1088
|
)
|
1243
1089
|
)
|
1244
1090
|
return response
|
@@ -1247,7 +1093,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1247
1093
|
self,
|
1248
1094
|
glossary_category_guid: str,
|
1249
1095
|
effective_time: str = None,
|
1250
|
-
server_name: str = None,
|
1251
1096
|
) -> list | str:
|
1252
1097
|
"""Retrieve the requested glossary category metadata element. The optional request body contain an effective
|
1253
1098
|
time for the query..
|
@@ -1258,12 +1103,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
1258
1103
|
----------
|
1259
1104
|
glossary_category_guid: str
|
1260
1105
|
The identity of the glossary category to search.
|
1261
|
-
effective_time
|
1106
|
+
effective_time: str, optional
|
1262
1107
|
If specified, the category should only be returned if it was effective at the specified time.
|
1263
1108
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1264
|
-
|
1265
|
-
The name of the server to configure.
|
1266
|
-
If not provided, the server name associated with the instance is used.
|
1109
|
+
|
1267
1110
|
|
1268
1111
|
Returns
|
1269
1112
|
-------
|
@@ -1282,11 +1125,9 @@ class GlossaryManager(GlossaryBrowser):
|
|
1282
1125
|
The principle specified by the user_id does not have authorization for the requested action
|
1283
1126
|
|
1284
1127
|
"""
|
1285
|
-
if server_name is None:
|
1286
|
-
server_name = self.server_name
|
1287
1128
|
|
1288
1129
|
url = (
|
1289
|
-
f"{self.platform_url}/servers/{
|
1130
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1290
1131
|
f"{glossary_category_guid}/retrieve"
|
1291
1132
|
)
|
1292
1133
|
|
@@ -1302,7 +1143,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1302
1143
|
self,
|
1303
1144
|
glossary_category_guid: str,
|
1304
1145
|
effective_time: str = None,
|
1305
|
-
server_name: str = None,
|
1306
1146
|
) -> list | str:
|
1307
1147
|
"""Retrieve the requested glossary category metadata element. The optional request body contain an effective
|
1308
1148
|
time for the query..
|
@@ -1314,9 +1154,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1314
1154
|
effective_time, datetime, optional
|
1315
1155
|
If specified, the category should only be returned if it was effective at the specified time.
|
1316
1156
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1317
|
-
|
1318
|
-
The name of the server to configure.
|
1319
|
-
If not provided, the server name associated with the instance is used.
|
1157
|
+
|
1320
1158
|
|
1321
1159
|
Returns
|
1322
1160
|
-------
|
@@ -1337,9 +1175,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1337
1175
|
"""
|
1338
1176
|
loop = asyncio.get_event_loop()
|
1339
1177
|
response = loop.run_until_complete(
|
1340
|
-
self._async_get_categories_by_guid(
|
1341
|
-
glossary_category_guid, effective_time, server_name
|
1342
|
-
)
|
1178
|
+
self._async_get_categories_by_guid(glossary_category_guid, effective_time)
|
1343
1179
|
)
|
1344
1180
|
return response
|
1345
1181
|
|
@@ -1347,7 +1183,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1347
1183
|
self,
|
1348
1184
|
glossary_category_guid: str,
|
1349
1185
|
effective_time: str = None,
|
1350
|
-
server_name: str = None,
|
1351
1186
|
) -> list | str:
|
1352
1187
|
"""Glossary categories can be organized in a hierarchy. Retrieve the parent glossary category metadata
|
1353
1188
|
element for the glossary category with the supplied unique identifier. If the requested category
|
@@ -1363,9 +1198,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1363
1198
|
effective_time, datetime, optional
|
1364
1199
|
If specified, the category should only be returned if it was effective at the specified time.
|
1365
1200
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1366
|
-
|
1367
|
-
The name of the server to configure.
|
1368
|
-
If not provided, the server name associated with the instance is used.
|
1201
|
+
|
1369
1202
|
|
1370
1203
|
Returns
|
1371
1204
|
-------
|
@@ -1384,11 +1217,9 @@ class GlossaryManager(GlossaryBrowser):
|
|
1384
1217
|
The principle specified by the user_id does not have authorization for the requested action
|
1385
1218
|
|
1386
1219
|
"""
|
1387
|
-
if server_name is None:
|
1388
|
-
server_name = self.server_name
|
1389
1220
|
|
1390
1221
|
url = (
|
1391
|
-
f"{self.platform_url}/servers/{
|
1222
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1392
1223
|
f"{glossary_category_guid}/parent/retrieve"
|
1393
1224
|
)
|
1394
1225
|
|
@@ -1404,7 +1235,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1404
1235
|
self,
|
1405
1236
|
glossary_category_guid: str,
|
1406
1237
|
effective_time: str = None,
|
1407
|
-
server_name: str = None,
|
1408
1238
|
) -> list | str:
|
1409
1239
|
"""Glossary categories can be organized in a hierarchy. Retrieve the parent glossary category metadata
|
1410
1240
|
element for the glossary category with the supplied unique identifier. If the requested category
|
@@ -1418,9 +1248,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1418
1248
|
effective_time, datetime, optional
|
1419
1249
|
If specified, the category should only be returned if it was effective at the specified time.
|
1420
1250
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601).
|
1421
|
-
|
1422
|
-
The name of the server to configure.
|
1423
|
-
If not provided, the server name associated with the instance is used.
|
1251
|
+
|
1424
1252
|
|
1425
1253
|
Returns
|
1426
1254
|
-------
|
@@ -1441,9 +1269,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1441
1269
|
"""
|
1442
1270
|
loop = asyncio.get_event_loop()
|
1443
1271
|
response = loop.run_until_complete(
|
1444
|
-
self._async_get_category_parent(
|
1445
|
-
glossary_category_guid, effective_time, server_name
|
1446
|
-
)
|
1272
|
+
self._async_get_category_parent(glossary_category_guid, effective_time)
|
1447
1273
|
)
|
1448
1274
|
return response
|
1449
1275
|
|
@@ -1451,7 +1277,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1451
1277
|
# Terms
|
1452
1278
|
#
|
1453
1279
|
async def _async_create_controlled_glossary_term(
|
1454
|
-
self, glossary_guid: str, body: dict
|
1280
|
+
self, glossary_guid: str, body: dict
|
1455
1281
|
) -> str:
|
1456
1282
|
"""Create a term for a controlled glossary.
|
1457
1283
|
See also: https://egeria-project.org/types/3/0385-Controlled-Glossary-Development/?h=controlled
|
@@ -1465,9 +1291,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1465
1291
|
Unique identifier for the glossary category to retrieve terms from.
|
1466
1292
|
body: dict
|
1467
1293
|
The dictionary to create te controlled glossary term for. Example below.
|
1468
|
-
|
1469
|
-
The name of the server to get the configured access services for.
|
1470
|
-
If not provided, the server name associated with the instance is used.
|
1294
|
+
|
1471
1295
|
|
1472
1296
|
Returns
|
1473
1297
|
-------
|
@@ -1510,12 +1334,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
1510
1334
|
|
1511
1335
|
"""
|
1512
1336
|
|
1513
|
-
if server_name is None:
|
1514
|
-
server_name = self.server_name
|
1515
1337
|
validate_guid(glossary_guid)
|
1516
1338
|
|
1517
1339
|
url = (
|
1518
|
-
f"{self.platform_url}/servers/{
|
1340
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
1519
1341
|
f"{glossary_guid}/terms/new-controlled"
|
1520
1342
|
)
|
1521
1343
|
|
@@ -1523,9 +1345,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1523
1345
|
|
1524
1346
|
return response.json().get("guid", "Term not created")
|
1525
1347
|
|
1526
|
-
def create_controlled_glossary_term(
|
1527
|
-
self, glossary_guid: str, body: dict, server_name: str = None
|
1528
|
-
) -> str:
|
1348
|
+
def create_controlled_glossary_term(self, glossary_guid: str, body: dict) -> str:
|
1529
1349
|
"""Create a term for a controlled glossary.
|
1530
1350
|
See also: https://egeria-project.org/types/3/0385-Controlled-Glossary-Development/?h=controlled
|
1531
1351
|
The request body also supports the specification of an effective time for the query.
|
@@ -1536,9 +1356,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1536
1356
|
Unique identifier for the glossary category to retrieve terms from.
|
1537
1357
|
body: dict
|
1538
1358
|
The dictionary to create te controlled glossary term for. Example below.
|
1539
|
-
|
1540
|
-
The name of the server to get the configured access services for.
|
1541
|
-
If not provided, the server name associated with the instance is used.
|
1359
|
+
|
1542
1360
|
|
1543
1361
|
Returns
|
1544
1362
|
-------
|
@@ -1582,9 +1400,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1582
1400
|
"""
|
1583
1401
|
loop = asyncio.get_event_loop()
|
1584
1402
|
response = loop.run_until_complete(
|
1585
|
-
self._async_create_controlled_glossary_term(
|
1586
|
-
glossary_guid, body, server_name
|
1587
|
-
)
|
1403
|
+
self._async_create_controlled_glossary_term(glossary_guid, body)
|
1588
1404
|
)
|
1589
1405
|
|
1590
1406
|
return response
|
@@ -1596,7 +1412,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1596
1412
|
new_display_name: str,
|
1597
1413
|
version_id: str,
|
1598
1414
|
term_status: str = "PROPOSED",
|
1599
|
-
server_name: str = None,
|
1600
1415
|
) -> str:
|
1601
1416
|
"""Create a new term from an existing term.
|
1602
1417
|
|
@@ -1614,9 +1429,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1614
1429
|
The version identifier of the new term.
|
1615
1430
|
term_status: str, optional, default = "PROPOSED"
|
1616
1431
|
The status of the term
|
1617
|
-
|
1618
|
-
The name of the server to get the configured access services for.
|
1619
|
-
If not provided, the server name associated with the instance is used.
|
1432
|
+
|
1620
1433
|
|
1621
1434
|
Returns
|
1622
1435
|
-------
|
@@ -1636,13 +1449,11 @@ class GlossaryManager(GlossaryBrowser):
|
|
1636
1449
|
|
1637
1450
|
"""
|
1638
1451
|
|
1639
|
-
if server_name is None:
|
1640
|
-
server_name = self.server_name
|
1641
1452
|
validate_guid(glossary_guid)
|
1642
1453
|
validate_guid(glossary_term_guid)
|
1643
1454
|
|
1644
1455
|
url = (
|
1645
|
-
f"{self.platform_url}/servers/{
|
1456
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
1646
1457
|
f"{glossary_guid}/terms/from-template/{glossary_term_guid}"
|
1647
1458
|
)
|
1648
1459
|
|
@@ -1668,7 +1479,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1668
1479
|
new_display_name: str,
|
1669
1480
|
version_id: str,
|
1670
1481
|
term_status: str = "PROPOSED",
|
1671
|
-
server_name: str = None,
|
1672
1482
|
) -> str:
|
1673
1483
|
"""Create a new term from an existing term.
|
1674
1484
|
|
@@ -1684,9 +1494,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1684
1494
|
The version identifier of the new term.
|
1685
1495
|
term_status: str, optional, default = "PROPOSED"
|
1686
1496
|
The status of the term
|
1687
|
-
|
1688
|
-
The name of the server to get the configured access services for.
|
1689
|
-
If not provided, the server name associated with the instance is used.
|
1497
|
+
|
1690
1498
|
|
1691
1499
|
Returns
|
1692
1500
|
-------
|
@@ -1713,14 +1521,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
1713
1521
|
new_display_name,
|
1714
1522
|
version_id,
|
1715
1523
|
term_status,
|
1716
|
-
server_name,
|
1717
1524
|
)
|
1718
1525
|
)
|
1719
1526
|
|
1720
1527
|
return response
|
1721
1528
|
|
1722
1529
|
async def _async_add_data_field_to_term(
|
1723
|
-
self, glossary_term_guid: str, body: dict
|
1530
|
+
self, glossary_term_guid: str, body: dict
|
1724
1531
|
) -> None:
|
1725
1532
|
"""Add the data field values classification to a glossary term
|
1726
1533
|
|
@@ -1734,9 +1541,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1734
1541
|
Unique identifier for the source glossary term.
|
1735
1542
|
body: dict
|
1736
1543
|
Body containing information about the data field to add
|
1737
|
-
|
1738
|
-
The name of the server to get the configured access services for.
|
1739
|
-
If not provided, the server name associated with the instance is used.
|
1544
|
+
|
1740
1545
|
|
1741
1546
|
Returns
|
1742
1547
|
-------
|
@@ -1767,21 +1572,17 @@ class GlossaryManager(GlossaryBrowser):
|
|
1767
1572
|
}
|
1768
1573
|
"""
|
1769
1574
|
|
1770
|
-
if server_name is None:
|
1771
|
-
server_name = self.server_name
|
1772
1575
|
validate_guid(glossary_term_guid)
|
1773
1576
|
|
1774
1577
|
url = (
|
1775
|
-
f"{self.platform_url}/servers/{
|
1578
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
1776
1579
|
f"terms/{glossary_term_guid}/is-data-field"
|
1777
1580
|
)
|
1778
1581
|
|
1779
1582
|
await self._async_make_request("POST", url, body)
|
1780
1583
|
return
|
1781
1584
|
|
1782
|
-
def add_data_field_to_term(
|
1783
|
-
self, glossary_term_guid: str, body: dict, server_name: str = None
|
1784
|
-
) -> None:
|
1585
|
+
def add_data_field_to_term(self, glossary_term_guid: str, body: dict) -> None:
|
1785
1586
|
"""Add the data field values classification to a glossary term
|
1786
1587
|
|
1787
1588
|
Parameters
|
@@ -1790,9 +1591,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1790
1591
|
Unique identifier for the source glossary term.
|
1791
1592
|
body: dict
|
1792
1593
|
Body containing information about the data field to add
|
1793
|
-
|
1794
|
-
The name of the server to get the configured access services for.
|
1795
|
-
If not provided, the server name associated with the instance is used.
|
1594
|
+
|
1796
1595
|
|
1797
1596
|
Returns
|
1798
1597
|
-------
|
@@ -1824,7 +1623,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1824
1623
|
"""
|
1825
1624
|
loop = asyncio.get_event_loop()
|
1826
1625
|
loop.run_until_complete(
|
1827
|
-
self._async_add_data_field_to_term(glossary_term_guid, body
|
1626
|
+
self._async_add_data_field_to_term(glossary_term_guid, body)
|
1828
1627
|
)
|
1829
1628
|
|
1830
1629
|
return
|
@@ -1833,7 +1632,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1833
1632
|
self,
|
1834
1633
|
glossary_term_guid: str,
|
1835
1634
|
confidentiality_level: int,
|
1836
|
-
server_name: str = None,
|
1837
1635
|
) -> None:
|
1838
1636
|
"""Add the confidentiality classification to a glossary term
|
1839
1637
|
|
@@ -1845,9 +1643,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1845
1643
|
Unique identifier for the source glossary term.
|
1846
1644
|
confidentiality_level: int
|
1847
1645
|
The level of confidentiality to classify the term with.
|
1848
|
-
|
1849
|
-
The name of the server to get the configured access services for.
|
1850
|
-
If not provided, the server name associated with the instance is used.
|
1646
|
+
|
1851
1647
|
|
1852
1648
|
Returns
|
1853
1649
|
-------
|
@@ -1868,12 +1664,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
1868
1664
|
|
1869
1665
|
"""
|
1870
1666
|
|
1871
|
-
if server_name is None:
|
1872
|
-
server_name = self.server_name
|
1873
1667
|
validate_guid(glossary_term_guid)
|
1874
1668
|
|
1875
1669
|
url = (
|
1876
|
-
f"{self.platform_url}/servers/{
|
1670
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/elements/"
|
1877
1671
|
f"{glossary_term_guid}/confidentiality"
|
1878
1672
|
)
|
1879
1673
|
|
@@ -1892,7 +1686,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
1892
1686
|
self,
|
1893
1687
|
glossary_term_guid: str,
|
1894
1688
|
confidentiality_level: int,
|
1895
|
-
server_name: str = None,
|
1896
1689
|
) -> str:
|
1897
1690
|
"""Add the confidentiality classification to a glossary term
|
1898
1691
|
|
@@ -1902,9 +1695,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1902
1695
|
Unique identifier for the source glossary term.
|
1903
1696
|
confidentiality_level: int
|
1904
1697
|
The level of confidentiality to classify the term with.
|
1905
|
-
|
1906
|
-
The name of the server to get the configured access services for.
|
1907
|
-
If not provided, the server name associated with the instance is used.
|
1698
|
+
|
1908
1699
|
|
1909
1700
|
Returns
|
1910
1701
|
-------
|
@@ -1927,14 +1718,14 @@ class GlossaryManager(GlossaryBrowser):
|
|
1927
1718
|
loop = asyncio.get_event_loop()
|
1928
1719
|
response = loop.run_until_complete(
|
1929
1720
|
self._async_add_confidentiality_to_term(
|
1930
|
-
glossary_term_guid, confidentiality_level
|
1721
|
+
glossary_term_guid, confidentiality_level
|
1931
1722
|
)
|
1932
1723
|
)
|
1933
1724
|
|
1934
1725
|
return
|
1935
1726
|
|
1936
1727
|
async def _async_add_subject_area_to_term(
|
1937
|
-
self, glossary_term_guid: str, subject_area: str
|
1728
|
+
self, glossary_term_guid: str, subject_area: str
|
1938
1729
|
) -> None:
|
1939
1730
|
"""Add the confidentiality classification to a glossary term
|
1940
1731
|
|
@@ -1946,9 +1737,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1946
1737
|
Unique identifier for the source glossary term.
|
1947
1738
|
subject_area: str
|
1948
1739
|
The subject area to classify the term with.
|
1949
|
-
|
1950
|
-
The name of the server to get the configured access services for.
|
1951
|
-
If not provided, the server name associated with the instance is used.
|
1740
|
+
|
1952
1741
|
|
1953
1742
|
Returns
|
1954
1743
|
-------
|
@@ -1969,12 +1758,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
1969
1758
|
|
1970
1759
|
"""
|
1971
1760
|
|
1972
|
-
if server_name is None:
|
1973
|
-
server_name = self.server_name
|
1974
1761
|
validate_guid(glossary_term_guid)
|
1975
1762
|
|
1976
1763
|
url = (
|
1977
|
-
f"{self.platform_url}/servers/{
|
1764
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/elements/"
|
1978
1765
|
f"{glossary_term_guid}/subject-area-member"
|
1979
1766
|
)
|
1980
1767
|
|
@@ -1990,7 +1777,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
1990
1777
|
return
|
1991
1778
|
|
1992
1779
|
def add_subject_area_to_term(
|
1993
|
-
self, glossary_term_guid: str, subject_area: str
|
1780
|
+
self, glossary_term_guid: str, subject_area: str
|
1994
1781
|
) -> None:
|
1995
1782
|
"""Add the confidentiality classification to a glossary term
|
1996
1783
|
|
@@ -2000,9 +1787,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2000
1787
|
Unique identifier for the source glossary term.
|
2001
1788
|
subject_area: str
|
2002
1789
|
The subject area to classify the term with.
|
2003
|
-
|
2004
|
-
The name of the server to get the configured access services for.
|
2005
|
-
If not provided, the server name associated with the instance is used.
|
1790
|
+
|
2006
1791
|
|
2007
1792
|
Returns
|
2008
1793
|
-------
|
@@ -2024,9 +1809,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2024
1809
|
"""
|
2025
1810
|
loop = asyncio.get_event_loop()
|
2026
1811
|
response = loop.run_until_complete(
|
2027
|
-
self._async_add_subject_area_to_term(
|
2028
|
-
glossary_term_guid, subject_area, server_name
|
2029
|
-
)
|
1812
|
+
self._async_add_subject_area_to_term(glossary_term_guid, subject_area)
|
2030
1813
|
)
|
2031
1814
|
|
2032
1815
|
return
|
@@ -2036,7 +1819,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2036
1819
|
glossary_term_guid: str,
|
2037
1820
|
body: dict,
|
2038
1821
|
is_merge_update: bool,
|
2039
|
-
server_name: str = None,
|
2040
1822
|
) -> None:
|
2041
1823
|
"""Add the data field values classification to a glossary term
|
2042
1824
|
|
@@ -2050,9 +1832,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2050
1832
|
Body containing information about the data field to add
|
2051
1833
|
is_merge_update: bool
|
2052
1834
|
Whether the data field values should be merged with existing definition or replace it.
|
2053
|
-
|
2054
|
-
The name of the server to get the configured access services for.
|
2055
|
-
If not provided, the server name associated with the instance is used.
|
1835
|
+
|
2056
1836
|
|
2057
1837
|
Returns
|
2058
1838
|
-------
|
@@ -2082,13 +1862,11 @@ class GlossaryManager(GlossaryBrowser):
|
|
2082
1862
|
|
2083
1863
|
"""
|
2084
1864
|
|
2085
|
-
if server_name is None:
|
2086
|
-
server_name = self.server_name
|
2087
1865
|
validate_guid(glossary_term_guid)
|
2088
1866
|
is_merge_update_s = str(is_merge_update).lower()
|
2089
1867
|
|
2090
1868
|
url = (
|
2091
|
-
f"{self.platform_url}/servers/{
|
1869
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/terms/{glossary_term_guid}/"
|
2092
1870
|
f"update?isMergeUpdate={is_merge_update_s}"
|
2093
1871
|
)
|
2094
1872
|
|
@@ -2100,7 +1878,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2100
1878
|
glossary_term_guid: str,
|
2101
1879
|
body: dict,
|
2102
1880
|
is_merge_update: bool,
|
2103
|
-
server_name: str = None,
|
2104
1881
|
) -> None:
|
2105
1882
|
"""Add the data field values classification to a glossary term
|
2106
1883
|
|
@@ -2114,9 +1891,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2114
1891
|
Body containing information about the data field to add
|
2115
1892
|
is_merge_update: bool
|
2116
1893
|
Whether the data field values should be merged with existing definition or replace it.
|
2117
|
-
|
2118
|
-
The name of the server to get the configured access services for.
|
2119
|
-
If not provided, the server name associated with the instance is used.
|
1894
|
+
|
2120
1895
|
|
2121
1896
|
Returns
|
2122
1897
|
-------
|
@@ -2147,9 +1922,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2147
1922
|
"""
|
2148
1923
|
loop = asyncio.get_event_loop()
|
2149
1924
|
loop.run_until_complete(
|
2150
|
-
self._async_update_term(
|
2151
|
-
glossary_term_guid, body, is_merge_update, server_name
|
2152
|
-
)
|
1925
|
+
self._async_update_term(glossary_term_guid, body, is_merge_update)
|
2153
1926
|
)
|
2154
1927
|
|
2155
1928
|
return
|
@@ -2158,7 +1931,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2158
1931
|
self,
|
2159
1932
|
glossary_term_guid: str,
|
2160
1933
|
new_version_identifier: str,
|
2161
|
-
server_name: str = None,
|
2162
1934
|
) -> None:
|
2163
1935
|
"""Update a glossary term's version identifier
|
2164
1936
|
|
@@ -2170,9 +1942,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2170
1942
|
Unique identifier for the source glossary term.
|
2171
1943
|
new_version_identifier: str
|
2172
1944
|
The new version identifier to update the term with.
|
2173
|
-
|
2174
|
-
The name of the server to get the configured access services for.
|
2175
|
-
If not provided, the server name associated with the instance is used.
|
1945
|
+
|
2176
1946
|
|
2177
1947
|
Returns
|
2178
1948
|
-------
|
@@ -2192,12 +1962,10 @@ class GlossaryManager(GlossaryBrowser):
|
|
2192
1962
|
|
2193
1963
|
"""
|
2194
1964
|
|
2195
|
-
if server_name is None:
|
2196
|
-
server_name = self.server_name
|
2197
1965
|
validate_guid(glossary_term_guid)
|
2198
1966
|
|
2199
1967
|
url = (
|
2200
|
-
f"{self.platform_url}/servers/{
|
1968
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/terms/{glossary_term_guid}/"
|
2201
1969
|
f"update?isMergeUpdate=true"
|
2202
1970
|
)
|
2203
1971
|
|
@@ -2215,7 +1983,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2215
1983
|
self,
|
2216
1984
|
glossary_term_guid: str,
|
2217
1985
|
new_version_identifier: str,
|
2218
|
-
server_name: str = None,
|
2219
1986
|
) -> None:
|
2220
1987
|
"""Update a glossary term's version identifier
|
2221
1988
|
|
@@ -2227,9 +1994,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2227
1994
|
Unique identifier for the source glossary term.
|
2228
1995
|
new_version_identifier: str
|
2229
1996
|
The new version identifier to update the term with.
|
2230
|
-
|
2231
|
-
The name of the server to get the configured access services for.
|
2232
|
-
If not provided, the server name associated with the instance is used.
|
1997
|
+
|
2233
1998
|
|
2234
1999
|
Returns
|
2235
2000
|
-------
|
@@ -2251,7 +2016,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2251
2016
|
loop = asyncio.get_event_loop()
|
2252
2017
|
loop.run_until_complete(
|
2253
2018
|
self._async_update_term_version_id(
|
2254
|
-
glossary_term_guid, new_version_identifier
|
2019
|
+
glossary_term_guid, new_version_identifier
|
2255
2020
|
)
|
2256
2021
|
)
|
2257
2022
|
|
@@ -2260,7 +2025,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2260
2025
|
async def _async_get_terms_for_category(
|
2261
2026
|
self,
|
2262
2027
|
glossary_category_guid: str,
|
2263
|
-
server_name: str = None,
|
2264
2028
|
effective_time: str = None,
|
2265
2029
|
start_from: int = 0,
|
2266
2030
|
page_size: int = None,
|
@@ -2274,9 +2038,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2274
2038
|
----------
|
2275
2039
|
glossary_category_guid : str
|
2276
2040
|
Unique identifier for the glossary category to retrieve terms from.
|
2277
|
-
server_name : str, optional
|
2278
|
-
The name of the server to get the configured access services for.
|
2279
|
-
If not provided, the server name associated with the instance is used.
|
2280
2041
|
effective_time : str, optional
|
2281
2042
|
If specified, the terms are returned if they are active at the `effective_time
|
2282
2043
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2301,15 +2062,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
2301
2062
|
-----
|
2302
2063
|
"""
|
2303
2064
|
|
2304
|
-
if server_name is None:
|
2305
|
-
server_name = self.server_name
|
2306
2065
|
validate_guid(glossary_category_guid)
|
2307
2066
|
|
2308
2067
|
if page_size is None:
|
2309
2068
|
page_size = self.page_size
|
2310
2069
|
|
2311
2070
|
url = (
|
2312
|
-
f"{self.platform_url}/servers/{
|
2071
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
2313
2072
|
f"{glossary_category_guid}/terms/retrieve?startFrom={start_from}&pageSize={page_size}"
|
2314
2073
|
)
|
2315
2074
|
|
@@ -2324,7 +2083,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2324
2083
|
def get_terms_for_category(
|
2325
2084
|
self,
|
2326
2085
|
glossary_category_guid: str,
|
2327
|
-
server_name: str = None,
|
2328
2086
|
effective_time: str = None,
|
2329
2087
|
start_from: int = 0,
|
2330
2088
|
page_size: int = None,
|
@@ -2338,9 +2096,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2338
2096
|
----------
|
2339
2097
|
glossary_category_guid : str
|
2340
2098
|
Unique identifier for the glossary category to retrieve terms from.
|
2341
|
-
server_name : str, optional
|
2342
|
-
The name of the server to get the configured access services for.
|
2343
|
-
If not provided, the server name associated with the instance is used.
|
2344
2099
|
effective_time : str, optional
|
2345
2100
|
If specified, the terms are returned if they are active at the `effective_time.
|
2346
2101
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)`.
|
@@ -2368,7 +2123,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2368
2123
|
response = loop.run_until_complete(
|
2369
2124
|
self._async_get_terms_for_category(
|
2370
2125
|
glossary_category_guid,
|
2371
|
-
server_name,
|
2372
2126
|
effective_time,
|
2373
2127
|
start_from,
|
2374
2128
|
page_size,
|
@@ -2380,7 +2134,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2380
2134
|
async def _async_get_terms_for_glossary(
|
2381
2135
|
self,
|
2382
2136
|
glossary_guid: str,
|
2383
|
-
server_name: str = None,
|
2384
2137
|
effective_time: str = None,
|
2385
2138
|
start_from: int = 0,
|
2386
2139
|
page_size: int = None,
|
@@ -2391,9 +2144,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2391
2144
|
----------
|
2392
2145
|
glossary_guid : str
|
2393
2146
|
Unique identifier for the glossary
|
2394
|
-
server_name : str, optional
|
2395
|
-
The name of the server to get the configured access services for.
|
2396
|
-
If not provided, the server name associated with the instance is used.
|
2397
2147
|
effective_time : str, optional
|
2398
2148
|
If specified, terms are potentially included if they are active at the`effective_time.
|
2399
2149
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)`
|
@@ -2418,15 +2168,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
2418
2168
|
-----
|
2419
2169
|
"""
|
2420
2170
|
|
2421
|
-
if server_name is None:
|
2422
|
-
server_name = self.server_name
|
2423
2171
|
validate_guid(glossary_guid)
|
2424
2172
|
|
2425
2173
|
if page_size is None:
|
2426
2174
|
page_size = self.page_size
|
2427
2175
|
|
2428
2176
|
url = (
|
2429
|
-
f"{self.platform_url}/servers/{
|
2177
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
2430
2178
|
f"{glossary_guid}/terms/retrieve?startFrom={start_from}&pageSize={page_size}"
|
2431
2179
|
)
|
2432
2180
|
|
@@ -2441,7 +2189,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2441
2189
|
def get_terms_for_glossary(
|
2442
2190
|
self,
|
2443
2191
|
glossary_guid: str,
|
2444
|
-
server_name: str = None,
|
2445
2192
|
effective_time: str = None,
|
2446
2193
|
start_from: int = 0,
|
2447
2194
|
page_size: int = None,
|
@@ -2452,9 +2199,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2452
2199
|
----------
|
2453
2200
|
glossary_guid : str
|
2454
2201
|
Unique identifier for the glossary
|
2455
|
-
server_name : str, optional
|
2456
|
-
The name of the server to get the configured access services for.
|
2457
|
-
If not provided, the server name associated with the instance is used.
|
2458
2202
|
effective_time : str, optional
|
2459
2203
|
If specified, terms are potentially returned if they are active at the `effective_time`
|
2460
2204
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2481,7 +2225,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2481
2225
|
loop = asyncio.get_event_loop()
|
2482
2226
|
response = loop.run_until_complete(
|
2483
2227
|
self._async_get_terms_for_glossary(
|
2484
|
-
glossary_guid,
|
2228
|
+
glossary_guid, effective_time, start_from, page_size
|
2485
2229
|
)
|
2486
2230
|
)
|
2487
2231
|
|
@@ -2490,7 +2234,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2490
2234
|
async def _async_get_term_relationships(
|
2491
2235
|
self,
|
2492
2236
|
term_guid: str,
|
2493
|
-
server_name: str = None,
|
2494
2237
|
effective_time: str = None,
|
2495
2238
|
start_from: int = 0,
|
2496
2239
|
page_size: int = None,
|
@@ -2501,9 +2244,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2501
2244
|
----------
|
2502
2245
|
term_guid : str
|
2503
2246
|
Unique identifier for the glossary term
|
2504
|
-
server_name : str, optional
|
2505
|
-
The name of the server to get the configured access services for.
|
2506
|
-
If not provided, the server name associated with the instance is used.
|
2507
2247
|
effective_time : str, optional
|
2508
2248
|
If specified, term relationships are included if they are active at the `effective_time`.
|
2509
2249
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2528,15 +2268,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
2528
2268
|
-----
|
2529
2269
|
"""
|
2530
2270
|
|
2531
|
-
if server_name is None:
|
2532
|
-
server_name = self.server_name
|
2533
2271
|
validate_guid(term_guid)
|
2534
2272
|
|
2535
2273
|
if page_size is None:
|
2536
2274
|
page_size = self.page_size
|
2537
2275
|
|
2538
2276
|
url = (
|
2539
|
-
f"{self.platform_url}/servers/{
|
2277
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
2540
2278
|
f"{term_guid}/related-terms?startFrom={start_from}&pageSize={page_size}"
|
2541
2279
|
)
|
2542
2280
|
|
@@ -2551,7 +2289,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2551
2289
|
def get_term_relationships(
|
2552
2290
|
self,
|
2553
2291
|
term_guid: str,
|
2554
|
-
server_name: str = None,
|
2555
2292
|
effective_time: str = None,
|
2556
2293
|
start_from: int = 0,
|
2557
2294
|
page_size: int = None,
|
@@ -2562,9 +2299,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2562
2299
|
----------
|
2563
2300
|
term_guid : str
|
2564
2301
|
Unique identifier for the glossary term
|
2565
|
-
server_name : str, optional
|
2566
|
-
The name of the server to get the configured access services for.
|
2567
|
-
If not provided, the server name associated with the instance is used.
|
2568
2302
|
effective_time : str, optional
|
2569
2303
|
If specified, term relationships are included if they are active at the `effective_time`.
|
2570
2304
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2591,14 +2325,14 @@ class GlossaryManager(GlossaryBrowser):
|
|
2591
2325
|
loop = asyncio.get_event_loop()
|
2592
2326
|
response = loop.run_until_complete(
|
2593
2327
|
self._async_get_term_relationships(
|
2594
|
-
term_guid,
|
2328
|
+
term_guid, effective_time, start_from, page_size
|
2595
2329
|
)
|
2596
2330
|
)
|
2597
2331
|
|
2598
2332
|
return response
|
2599
2333
|
|
2600
2334
|
async def _async_get_glossary_for_term(
|
2601
|
-
self, term_guid: str,
|
2335
|
+
self, term_guid: str, effective_time: str = None
|
2602
2336
|
) -> dict | str:
|
2603
2337
|
"""Retrieve the glossary metadata element for the requested term. The optional request body allows you to specify
|
2604
2338
|
that the glossary element should only be returned if it was effective at a particular time.
|
@@ -2609,8 +2343,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2609
2343
|
----------
|
2610
2344
|
term_guid : str
|
2611
2345
|
The unique identifier for the term.
|
2612
|
-
|
2613
|
-
The name of the server. If not specified, the default server name will be used.
|
2346
|
+
|
2614
2347
|
effective_time : datetime, optional
|
2615
2348
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
2616
2349
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2630,8 +2363,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2630
2363
|
Notes
|
2631
2364
|
-----
|
2632
2365
|
"""
|
2633
|
-
|
2634
|
-
server_name = self.server_name
|
2366
|
+
|
2635
2367
|
validate_guid(term_guid)
|
2636
2368
|
|
2637
2369
|
body = {
|
@@ -2639,7 +2371,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2639
2371
|
"effectiveTime": effective_time,
|
2640
2372
|
}
|
2641
2373
|
url = (
|
2642
|
-
f"{self.platform_url}/servers/{
|
2374
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
2643
2375
|
f"for-term/{term_guid}/retrieve"
|
2644
2376
|
)
|
2645
2377
|
|
@@ -2647,7 +2379,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2647
2379
|
return response.json().get("element", "No glossary found")
|
2648
2380
|
|
2649
2381
|
def get_glossary_for_term(
|
2650
|
-
self, term_guid: str,
|
2382
|
+
self, term_guid: str, effective_time: str = None
|
2651
2383
|
) -> dict | str:
|
2652
2384
|
"""Retrieve the glossary metadata element for the requested term. The optional request body allows you to specify
|
2653
2385
|
that the glossary element should only be returned if it was effective at a particular time.
|
@@ -2658,8 +2390,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2658
2390
|
----------
|
2659
2391
|
term_guid : str
|
2660
2392
|
The unique identifier for the term.
|
2661
|
-
|
2662
|
-
The name of the server. If not specified, the default server name will be used.
|
2393
|
+
|
2663
2394
|
effective_time : datetime, optional
|
2664
2395
|
TIf specified, the term information will be retrieved if it is active at the `effective_time`.
|
2665
2396
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601).
|
@@ -2681,7 +2412,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2681
2412
|
"""
|
2682
2413
|
loop = asyncio.get_event_loop()
|
2683
2414
|
response = loop.run_until_complete(
|
2684
|
-
self._async_get_glossary_for_term(term_guid,
|
2415
|
+
self._async_get_glossary_for_term(term_guid, effective_time)
|
2685
2416
|
)
|
2686
2417
|
return response
|
2687
2418
|
|
@@ -2690,7 +2421,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2690
2421
|
term: str,
|
2691
2422
|
glossary_guid: str = None,
|
2692
2423
|
status_filter: list = [],
|
2693
|
-
server_name: str = None,
|
2694
2424
|
effective_time: str = None,
|
2695
2425
|
for_lineage: bool = False,
|
2696
2426
|
for_duplicate_processing: bool = False,
|
@@ -2707,8 +2437,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2707
2437
|
The GUID of the glossary to search in. If not provided, the search will be performed in all glossaries.
|
2708
2438
|
status_filter : list, optional
|
2709
2439
|
A list of status values to filter the search results. Default is an empty list, which means no filtering.
|
2710
|
-
|
2711
|
-
The name of the server where the glossaries reside. If not provided, it will use the default server name.
|
2440
|
+
|
2712
2441
|
effective_time : datetime, optional
|
2713
2442
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
2714
2443
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2735,8 +2464,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2735
2464
|
NotAuthorizedException
|
2736
2465
|
The principle specified by the user_id does not have authorization for the requested action.
|
2737
2466
|
"""
|
2738
|
-
|
2739
|
-
server_name = self.server_name
|
2467
|
+
|
2740
2468
|
if page_size is None:
|
2741
2469
|
page_size = self.page_size
|
2742
2470
|
|
@@ -2755,7 +2483,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2755
2483
|
# body = body_slimmer(body)
|
2756
2484
|
|
2757
2485
|
url = (
|
2758
|
-
f"{self.platform_url}/servers/{
|
2486
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
2759
2487
|
f"terms/by-name?startFrom={start_from}&pageSize={page_size}&"
|
2760
2488
|
f"&forLineage={for_lineage_s}&forDuplicateProcessing={for_duplicate_processing_s}"
|
2761
2489
|
)
|
@@ -2770,7 +2498,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2770
2498
|
term: str,
|
2771
2499
|
glossary_guid: str = None,
|
2772
2500
|
status_filter: list = [],
|
2773
|
-
server_name: str = None,
|
2774
2501
|
effective_time: str = None,
|
2775
2502
|
for_lineage: bool = False,
|
2776
2503
|
for_duplicate_processing: bool = False,
|
@@ -2787,8 +2514,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2787
2514
|
The GUID of the glossary to search in. If not provided, the search will be performed in all glossaries.
|
2788
2515
|
status_filter : list, optional
|
2789
2516
|
A list of status values to filter the search results. Default is an empty list, which means no filtering.
|
2790
|
-
|
2791
|
-
The name of the server where the glossaries reside. If not provided, it will use the default server name.
|
2517
|
+
|
2792
2518
|
effective_time : datetime, optional
|
2793
2519
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
2794
2520
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -2822,7 +2548,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2822
2548
|
term,
|
2823
2549
|
glossary_guid,
|
2824
2550
|
status_filter,
|
2825
|
-
server_name,
|
2826
2551
|
effective_time,
|
2827
2552
|
for_lineage,
|
2828
2553
|
for_duplicate_processing,
|
@@ -2832,16 +2557,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
2832
2557
|
)
|
2833
2558
|
return response
|
2834
2559
|
|
2835
|
-
async def _async_get_terms_by_guid(
|
2836
|
-
self, term_guid: str, server_name: str = None
|
2837
|
-
) -> dict | str:
|
2560
|
+
async def _async_get_terms_by_guid(self, term_guid: str) -> dict | str:
|
2838
2561
|
"""Retrieve a term using its unique id. Async version.
|
2839
2562
|
Parameters
|
2840
2563
|
----------
|
2841
2564
|
term_guid : str
|
2842
2565
|
The GUID of the glossary term to retrieve.
|
2843
|
-
|
2844
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2566
|
+
|
2845
2567
|
|
2846
2568
|
Returns
|
2847
2569
|
-------
|
@@ -2858,27 +2580,24 @@ class GlossaryManager(GlossaryBrowser):
|
|
2858
2580
|
NotAuthorizedException
|
2859
2581
|
The principle specified by the user_id does not have authorization for the requested action.
|
2860
2582
|
"""
|
2861
|
-
if server_name is None:
|
2862
|
-
server_name = self.server_name
|
2863
2583
|
|
2864
2584
|
validate_guid(term_guid)
|
2865
2585
|
|
2866
2586
|
url = (
|
2867
|
-
f"{self.platform_url}/servers/{
|
2587
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
2868
2588
|
f"{term_guid}/retrieve"
|
2869
2589
|
)
|
2870
2590
|
|
2871
2591
|
response = await self._async_make_request("POST", url)
|
2872
2592
|
return response.json().get("element", "No term found")
|
2873
2593
|
|
2874
|
-
def get_terms_by_guid(self, term_guid: str
|
2594
|
+
def get_terms_by_guid(self, term_guid: str) -> dict | str:
|
2875
2595
|
"""Retrieve a term using its unique id. Async version.
|
2876
2596
|
Parameters
|
2877
2597
|
----------
|
2878
2598
|
term_guid : str
|
2879
2599
|
The GUID of the glossary term to retrieve.
|
2880
|
-
|
2881
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2600
|
+
|
2882
2601
|
|
2883
2602
|
Returns
|
2884
2603
|
-------
|
@@ -2897,16 +2616,13 @@ class GlossaryManager(GlossaryBrowser):
|
|
2897
2616
|
"""
|
2898
2617
|
|
2899
2618
|
loop = asyncio.get_event_loop()
|
2900
|
-
response = loop.run_until_complete(
|
2901
|
-
self._async_get_terms_by_guid(term_guid, server_name)
|
2902
|
-
)
|
2619
|
+
response = loop.run_until_complete(self._async_get_terms_by_guid(term_guid))
|
2903
2620
|
|
2904
2621
|
return response
|
2905
2622
|
|
2906
2623
|
async def _async_get_terms_versions(
|
2907
2624
|
self,
|
2908
2625
|
term_guid: str,
|
2909
|
-
server_name: str = None,
|
2910
2626
|
start_from: int = 0,
|
2911
2627
|
page_size=None,
|
2912
2628
|
) -> dict | str:
|
@@ -2915,8 +2631,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2915
2631
|
----------
|
2916
2632
|
term_guid : str
|
2917
2633
|
The GUID of the glossary term to retrieve.
|
2918
|
-
server_name : str, optional
|
2919
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2920
2634
|
start_from : int, optional
|
2921
2635
|
The index of the first term to retrieve. Default is 0.
|
2922
2636
|
page_size : int, optional
|
@@ -2936,8 +2650,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2936
2650
|
NotAuthorizedException
|
2937
2651
|
The principle specified by the user_id does not have authorization for the requested action.
|
2938
2652
|
"""
|
2939
|
-
if server_name is None:
|
2940
|
-
server_name = self.server_name
|
2941
2653
|
|
2942
2654
|
if page_size is None:
|
2943
2655
|
page_size = self.page_size
|
@@ -2945,7 +2657,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2945
2657
|
validate_guid(term_guid)
|
2946
2658
|
|
2947
2659
|
url = (
|
2948
|
-
f"{self.platform_url}/servers/{
|
2660
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
2949
2661
|
f"{term_guid}/history?startFrom={start_from}&pageSize={page_size}"
|
2950
2662
|
)
|
2951
2663
|
|
@@ -2955,7 +2667,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2955
2667
|
def get_terms_versions(
|
2956
2668
|
self,
|
2957
2669
|
term_guid: str,
|
2958
|
-
server_name: str = None,
|
2959
2670
|
start_from: int = 0,
|
2960
2671
|
page_size=None,
|
2961
2672
|
) -> dict | str:
|
@@ -2964,8 +2675,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2964
2675
|
----------
|
2965
2676
|
term_guid : str
|
2966
2677
|
The GUID of the glossary term to retrieve.
|
2967
|
-
server_name : str, optional
|
2968
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2969
2678
|
start_from : int, optional
|
2970
2679
|
The index of the first term to retrieve. Default is 0.
|
2971
2680
|
page_size : int, optional
|
@@ -2988,9 +2697,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
2988
2697
|
|
2989
2698
|
loop = asyncio.get_event_loop()
|
2990
2699
|
response = loop.run_until_complete(
|
2991
|
-
self._async_get_terms_versions(
|
2992
|
-
term_guid, server_name, start_from, page_size
|
2993
|
-
)
|
2700
|
+
self._async_get_terms_versions(term_guid, start_from, page_size)
|
2994
2701
|
)
|
2995
2702
|
|
2996
2703
|
return response
|
@@ -2998,7 +2705,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
2998
2705
|
async def _async_get_term_revision_logs(
|
2999
2706
|
self,
|
3000
2707
|
term_guid: str,
|
3001
|
-
server_name: str = None,
|
3002
2708
|
start_from: int = 0,
|
3003
2709
|
page_size=None,
|
3004
2710
|
) -> dict | str:
|
@@ -3007,8 +2713,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3007
2713
|
----------
|
3008
2714
|
term_guid : str
|
3009
2715
|
The GUID of the glossary term to retrieve.
|
3010
|
-
server_name : str, optional
|
3011
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
3012
2716
|
start_from : int, optional
|
3013
2717
|
The index of the first term to retrieve. Default is 0.
|
3014
2718
|
page_size : int, optional
|
@@ -3028,8 +2732,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3028
2732
|
NotAuthorizedException
|
3029
2733
|
The principle specified by the user_id does not have authorization for the requested action.
|
3030
2734
|
"""
|
3031
|
-
if server_name is None:
|
3032
|
-
server_name = self.server_name
|
3033
2735
|
|
3034
2736
|
if page_size is None:
|
3035
2737
|
page_size = self.page_size
|
@@ -3037,7 +2739,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3037
2739
|
validate_guid(term_guid)
|
3038
2740
|
|
3039
2741
|
url = (
|
3040
|
-
f"{self.platform_url}/servers/{
|
2742
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/elements/"
|
3041
2743
|
f"{term_guid}/notes/retrieve?startFrom={start_from}&pageSize={page_size}"
|
3042
2744
|
)
|
3043
2745
|
|
@@ -3047,7 +2749,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3047
2749
|
def get_term_revision_logs(
|
3048
2750
|
self,
|
3049
2751
|
term_guid: str,
|
3050
|
-
server_name: str = None,
|
3051
2752
|
start_from: int = 0,
|
3052
2753
|
page_size=None,
|
3053
2754
|
) -> dict | str:
|
@@ -3056,8 +2757,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3056
2757
|
----------
|
3057
2758
|
term_guid : str
|
3058
2759
|
The GUID of the glossary term to retrieve.
|
3059
|
-
server_name : str, optional
|
3060
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
3061
2760
|
start_from : int, optional
|
3062
2761
|
The index of the first term to retrieve. Default is 0.
|
3063
2762
|
page_size : int, optional
|
@@ -3080,9 +2779,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3080
2779
|
|
3081
2780
|
loop = asyncio.get_event_loop()
|
3082
2781
|
response = loop.run_until_complete(
|
3083
|
-
self._async_get_term_revision_logs(
|
3084
|
-
term_guid, server_name, start_from, page_size
|
3085
|
-
)
|
2782
|
+
self._async_get_term_revision_logs(term_guid, start_from, page_size)
|
3086
2783
|
)
|
3087
2784
|
|
3088
2785
|
return response
|
@@ -3090,7 +2787,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3090
2787
|
async def _async_get_term_revision_history(
|
3091
2788
|
self,
|
3092
2789
|
term_revision_log_guid: str,
|
3093
|
-
server_name: str = None,
|
3094
2790
|
start_from: int = 0,
|
3095
2791
|
page_size=None,
|
3096
2792
|
) -> dict | str:
|
@@ -3100,8 +2796,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3100
2796
|
----------
|
3101
2797
|
term_revision_log_guid : str
|
3102
2798
|
The GUID of the glossary term revision log to retrieve.
|
3103
|
-
server_name : str, optional
|
3104
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
3105
2799
|
start_from : int, optional
|
3106
2800
|
The index of the first term to retrieve. Default is 0.
|
3107
2801
|
page_size : int, optional
|
@@ -3126,8 +2820,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3126
2820
|
This revision history is created automatically. The text is supplied on the update request.
|
3127
2821
|
If no text is supplied, the value "None" is show.
|
3128
2822
|
"""
|
3129
|
-
if server_name is None:
|
3130
|
-
server_name = self.server_name
|
3131
2823
|
|
3132
2824
|
if page_size is None:
|
3133
2825
|
page_size = self.page_size
|
@@ -3135,7 +2827,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3135
2827
|
validate_guid(term_revision_log_guid)
|
3136
2828
|
|
3137
2829
|
url = (
|
3138
|
-
f"{self.platform_url}/servers/{
|
2830
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/note-logs/"
|
3139
2831
|
f"{term_revision_log_guid}/notes/retrieve?startFrom={start_from}&pageSize={page_size}"
|
3140
2832
|
)
|
3141
2833
|
|
@@ -3145,7 +2837,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3145
2837
|
def get_term_revision_history(
|
3146
2838
|
self,
|
3147
2839
|
term_revision_log_guid: str,
|
3148
|
-
server_name: str = None,
|
3149
2840
|
start_from: int = 0,
|
3150
2841
|
page_size=None,
|
3151
2842
|
) -> dict | str:
|
@@ -3155,8 +2846,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3155
2846
|
----------
|
3156
2847
|
term_revision_log_guid : str
|
3157
2848
|
The GUID of the glossary term revision log to retrieve.
|
3158
|
-
server_name : str, optional
|
3159
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
3160
2849
|
start_from : int, optional
|
3161
2850
|
The index of the first term to retrieve. Default is 0.
|
3162
2851
|
page_size : int, optional
|
@@ -3185,7 +2874,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3185
2874
|
loop = asyncio.get_event_loop()
|
3186
2875
|
response = loop.run_until_complete(
|
3187
2876
|
self._async_get_term_revision_history(
|
3188
|
-
term_revision_log_guid,
|
2877
|
+
term_revision_log_guid, start_from, page_size
|
3189
2878
|
)
|
3190
2879
|
)
|
3191
2880
|
|
@@ -3202,7 +2891,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3202
2891
|
ignore_case: bool = False,
|
3203
2892
|
for_lineage: bool = False,
|
3204
2893
|
for_duplicate_processing: bool = False,
|
3205
|
-
server_name: str = None,
|
3206
2894
|
start_from: int = 0,
|
3207
2895
|
page_size: int = None,
|
3208
2896
|
) -> list | str:
|
@@ -3220,9 +2908,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3220
2908
|
effective_time: str, [default=None], optional
|
3221
2909
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
3222
2910
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
3223
|
-
|
3224
|
-
The name of the server to configure.
|
3225
|
-
If not provided, the server name associated with the instance is used.
|
2911
|
+
|
3226
2912
|
starts_with : bool, [default=False], optional
|
3227
2913
|
Starts with the supplied string.
|
3228
2914
|
ends_with : bool, [default=False], optional
|
@@ -3259,8 +2945,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3259
2945
|
The request parameters, startsWith, endsWith and ignoreCase can be used to allow a fuzzy search.
|
3260
2946
|
The request body also supports the specification of a glossaryGUID to restrict the search to within a single glossary.
|
3261
2947
|
"""
|
3262
|
-
|
3263
|
-
server_name = self.server_name
|
2948
|
+
|
3264
2949
|
if page_size is None:
|
3265
2950
|
page_size = self.page_size
|
3266
2951
|
if effective_time is None:
|
@@ -3285,7 +2970,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3285
2970
|
# body = body_slimmer(body)
|
3286
2971
|
|
3287
2972
|
url = (
|
3288
|
-
f"{self.platform_url}/servers/{
|
2973
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
3289
2974
|
f"terms/by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
3290
2975
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}&forLineage={for_lineage_s}&"
|
3291
2976
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
@@ -3309,7 +2994,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3309
2994
|
ignore_case: bool = False,
|
3310
2995
|
for_lineage: bool = False,
|
3311
2996
|
for_duplicate_processing: bool = False,
|
3312
|
-
server_name: str = None,
|
3313
2997
|
start_from: int = 0,
|
3314
2998
|
page_size: int = None,
|
3315
2999
|
) -> list | str:
|
@@ -3327,9 +3011,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
3327
3011
|
effective_time: str, [default=None], optional
|
3328
3012
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
3329
3013
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
3330
|
-
|
3331
|
-
The name of the server to configure.
|
3332
|
-
If not provided, the server name associated with the instance is used.
|
3014
|
+
|
3333
3015
|
starts_with : bool, [default=False], optional
|
3334
3016
|
Starts with the supplied string.
|
3335
3017
|
ends_with : bool, [default=False], optional
|
@@ -3379,7 +3061,6 @@ class GlossaryManager(GlossaryBrowser):
|
|
3379
3061
|
ignore_case,
|
3380
3062
|
for_lineage,
|
3381
3063
|
for_duplicate_processing,
|
3382
|
-
server_name,
|
3383
3064
|
start_from,
|
3384
3065
|
page_size,
|
3385
3066
|
)
|