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
@@ -26,7 +26,7 @@ class GlossaryBrowser(Client):
|
|
26
26
|
|
27
27
|
Attributes:
|
28
28
|
|
29
|
-
|
29
|
+
view_server: str
|
30
30
|
The name of the View Server to connect to.
|
31
31
|
platform_url : str
|
32
32
|
URL of the server platform to connect to
|
@@ -40,26 +40,30 @@ class GlossaryBrowser(Client):
|
|
40
40
|
|
41
41
|
def __init__(
|
42
42
|
self,
|
43
|
-
|
43
|
+
view_server: str,
|
44
44
|
platform_url: str,
|
45
45
|
user_id: str,
|
46
46
|
user_pwd: str = None,
|
47
47
|
token: str = None,
|
48
48
|
):
|
49
|
-
self.
|
50
|
-
|
49
|
+
self.view_server = view_server
|
50
|
+
self.platform_url = platform_url
|
51
|
+
self.user_pwd = user_pwd
|
52
|
+
self.user_id = user_id
|
53
|
+
self.g_browser_command_root: str
|
54
|
+
|
55
|
+
Client.__init__(self, view_server, platform_url, user_id, user_pwd, token)
|
51
56
|
|
52
57
|
#
|
53
58
|
# Get Valid Values for Enumerations
|
54
59
|
#
|
55
60
|
|
56
|
-
async def _async_get_glossary_term_statuses(self
|
61
|
+
async def _async_get_glossary_term_statuses(self) -> [str]:
|
57
62
|
"""Return the list of glossary term status enum values. Async version.
|
58
63
|
|
59
64
|
Parameters
|
60
65
|
----------
|
61
|
-
|
62
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
66
|
+
|
63
67
|
|
64
68
|
Returns
|
65
69
|
-------
|
@@ -67,24 +71,21 @@ class GlossaryBrowser(Client):
|
|
67
71
|
A list of glossary term statuses retrieved from the server.
|
68
72
|
|
69
73
|
"""
|
70
|
-
if server_name is None:
|
71
|
-
server_name = self.server_name
|
72
74
|
|
73
75
|
url = (
|
74
|
-
f"{self.platform_url}/servers/{
|
76
|
+
f"{self.platform_url}/servers/{self.view_server}"
|
75
77
|
f"/api/open-metadata/glossary-browser/glossaries/terms/status-list"
|
76
78
|
)
|
77
79
|
|
78
80
|
response = await self._async_make_request("GET", url)
|
79
81
|
return response.json().get("statuses", [])
|
80
82
|
|
81
|
-
def get_glossary_term_statuses(self
|
83
|
+
def get_glossary_term_statuses(self) -> [str]:
|
82
84
|
"""Return the list of glossary term status enum values.
|
83
85
|
|
84
86
|
Parameters
|
85
87
|
----------
|
86
|
-
|
87
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
88
|
+
|
88
89
|
|
89
90
|
Returns
|
90
91
|
-------
|
@@ -93,22 +94,17 @@ class GlossaryBrowser(Client):
|
|
93
94
|
|
94
95
|
"""
|
95
96
|
loop = asyncio.get_event_loop()
|
96
|
-
response = loop.run_until_complete(
|
97
|
-
self._async_get_glossary_term_statuses(server_name)
|
98
|
-
)
|
97
|
+
response = loop.run_until_complete(self._async_get_glossary_term_statuses())
|
99
98
|
return response
|
100
99
|
|
101
|
-
async def _async_get_glossary_term_rel_statuses(
|
102
|
-
self, server_name: str = None
|
103
|
-
) -> [str]:
|
100
|
+
async def _async_get_glossary_term_rel_statuses(self) -> [str]:
|
104
101
|
"""Return the list of glossary term relationship status enum values. These values are stored in a
|
105
102
|
term-to-term, or term-to-category, relationship and are used to indicate how much the relationship should be
|
106
103
|
trusted. Async version.
|
107
104
|
|
108
105
|
Parameters
|
109
106
|
----------
|
110
|
-
|
111
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
107
|
+
|
112
108
|
|
113
109
|
Returns
|
114
110
|
-------
|
@@ -116,26 +112,23 @@ class GlossaryBrowser(Client):
|
|
116
112
|
A list of glossary term statuses retrieved from the server.
|
117
113
|
|
118
114
|
"""
|
119
|
-
if server_name is None:
|
120
|
-
server_name = self.server_name
|
121
115
|
|
122
116
|
url = (
|
123
|
-
f"{self.platform_url}/servers/{
|
117
|
+
f"{self.platform_url}/servers/{self.view_server}"
|
124
118
|
f"/api/open-metadata/glossary-browser/glossaries/terms/relationships/status-list"
|
125
119
|
)
|
126
120
|
|
127
121
|
response = await self._async_make_request("GET", url)
|
128
122
|
return response.json().get("statuses", [])
|
129
123
|
|
130
|
-
def get_glossary_term_rel_statuses(self
|
124
|
+
def get_glossary_term_rel_statuses(self) -> [str]:
|
131
125
|
"""Return the list of glossary term relationship status enum values. These values are stored in a
|
132
126
|
term-to-term, or term-to-category, relationship and are used to indicate how much the relationship should be
|
133
127
|
trusted.
|
134
128
|
|
135
129
|
Parameters
|
136
130
|
----------
|
137
|
-
|
138
|
-
The name of the server to query . If not provided, the server name associated with the instance is used.
|
131
|
+
|
139
132
|
|
140
133
|
Returns
|
141
134
|
-------
|
@@ -144,20 +137,15 @@ class GlossaryBrowser(Client):
|
|
144
137
|
|
145
138
|
"""
|
146
139
|
loop = asyncio.get_event_loop()
|
147
|
-
response = loop.run_until_complete(
|
148
|
-
self._async_get_glossary_term_rel_statuses(server_name)
|
149
|
-
)
|
140
|
+
response = loop.run_until_complete(self._async_get_glossary_term_rel_statuses())
|
150
141
|
return response
|
151
142
|
|
152
|
-
async def _async_get_glossary_term_activity_types(
|
153
|
-
self, server_name: str = None
|
154
|
-
) -> [str]:
|
143
|
+
async def _async_get_glossary_term_activity_types(self) -> [str]:
|
155
144
|
"""Return the list of glossary term activity type enum values. Async version.
|
156
145
|
|
157
146
|
Parameters
|
158
147
|
----------
|
159
|
-
|
160
|
-
The name of the server to query. If not provided, the server name associated with the instance is used.
|
148
|
+
|
161
149
|
|
162
150
|
Returns
|
163
151
|
-------
|
@@ -165,24 +153,21 @@ class GlossaryBrowser(Client):
|
|
165
153
|
A list of glossary term statuses retrieved from the server.
|
166
154
|
|
167
155
|
"""
|
168
|
-
if server_name is None:
|
169
|
-
server_name = self.server_name
|
170
156
|
|
171
157
|
url = (
|
172
|
-
f"{self.platform_url}/servers/{
|
158
|
+
f"{self.platform_url}/servers/{self.view_server}"
|
173
159
|
f"/api/open-metadata/glossary-browser/glossaries/terms/activity-types"
|
174
160
|
)
|
175
161
|
|
176
162
|
response = await self._async_make_request("GET", url)
|
177
163
|
return response.json().get("types", [])
|
178
164
|
|
179
|
-
def get_glossary_term_activity_types(self
|
165
|
+
def get_glossary_term_activity_types(self) -> [str]:
|
180
166
|
"""Return the list of glossary term activity type enum values.
|
181
167
|
|
182
168
|
Parameters
|
183
169
|
----------
|
184
|
-
|
185
|
-
The name of the server to query . If not provided, the server name associated with the instance is used.
|
170
|
+
|
186
171
|
|
187
172
|
Returns
|
188
173
|
-------
|
@@ -191,9 +176,7 @@ class GlossaryBrowser(Client):
|
|
191
176
|
|
192
177
|
"""
|
193
178
|
loop = asyncio.get_event_loop()
|
194
|
-
response = loop.run_until_complete(
|
195
|
-
self._async_get_glossary_term_statuses(server_name)
|
196
|
-
)
|
179
|
+
response = loop.run_until_complete(self._async_get_glossary_term_statuses())
|
197
180
|
return response
|
198
181
|
|
199
182
|
#
|
@@ -210,7 +193,6 @@ class GlossaryBrowser(Client):
|
|
210
193
|
for_lineage: bool = False,
|
211
194
|
for_duplicate_processing: bool = False,
|
212
195
|
type_name: str = None,
|
213
|
-
server_name: str = None,
|
214
196
|
start_from: int = 0,
|
215
197
|
page_size: int = None,
|
216
198
|
) -> list | str:
|
@@ -226,8 +208,7 @@ class GlossaryBrowser(Client):
|
|
226
208
|
effective_time: str, [default=None], optional
|
227
209
|
Effective time of the query. If not specified will default to any time. Time format is
|
228
210
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
229
|
-
|
230
|
-
The name of the server to configure.
|
211
|
+
|
231
212
|
If not provided, the server name associated with the instance is used.
|
232
213
|
starts_with : bool, [default=False], optional
|
233
214
|
Starts with the supplied string.
|
@@ -263,8 +244,7 @@ class GlossaryBrowser(Client):
|
|
263
244
|
The principle specified by the user_id does not have authorization for the requested action
|
264
245
|
|
265
246
|
"""
|
266
|
-
|
267
|
-
server_name = self.server_name
|
247
|
+
|
268
248
|
if page_size is None:
|
269
249
|
page_size = self.page_size
|
270
250
|
starts_with_s = str(starts_with).lower()
|
@@ -288,7 +268,7 @@ class GlossaryBrowser(Client):
|
|
288
268
|
# print(f"\n\nBody is: \n{body}")
|
289
269
|
|
290
270
|
url = (
|
291
|
-
f"{self.platform_url}/servers/{
|
271
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
292
272
|
f"by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
293
273
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}&forLineage={for_lineage_s}&"
|
294
274
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
@@ -307,7 +287,6 @@ class GlossaryBrowser(Client):
|
|
307
287
|
for_lineage: bool = False,
|
308
288
|
for_duplicate_processing: bool = False,
|
309
289
|
type_name: str = None,
|
310
|
-
server_name: str = None,
|
311
290
|
start_from: int = 0,
|
312
291
|
page_size: int = None,
|
313
292
|
) -> list | str:
|
@@ -324,8 +303,7 @@ class GlossaryBrowser(Client):
|
|
324
303
|
effective_time: str, [default=None], optional
|
325
304
|
Effective time of the query. If not specified will default to any time. Time format is
|
326
305
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
327
|
-
|
328
|
-
The name of the server to configure.
|
306
|
+
|
329
307
|
If not provided, the server name associated with the instance is used.
|
330
308
|
starts_with : bool, [default=False], optional
|
331
309
|
Starts with the supplied string.
|
@@ -339,7 +317,7 @@ class GlossaryBrowser(Client):
|
|
339
317
|
type_name: str, [default=None], optional
|
340
318
|
An optional parameter indicating the subtype of the glossary to filter by.
|
341
319
|
Values include 'ControlledGlossary', 'EditingGlossary', and 'StagingGlossary'
|
342
|
-
start_from: int, [default=0], optional
|
320
|
+
start_from : int, [default=0], optional
|
343
321
|
When multiple pages of results are available, the page number to start from.
|
344
322
|
page_size: int, [default=None]
|
345
323
|
The number of items to return in a single page. If not specified, the default will be taken from
|
@@ -372,7 +350,6 @@ class GlossaryBrowser(Client):
|
|
372
350
|
for_lineage,
|
373
351
|
for_duplicate_processing,
|
374
352
|
type_name,
|
375
|
-
server_name,
|
376
353
|
start_from,
|
377
354
|
page_size,
|
378
355
|
)
|
@@ -381,16 +358,13 @@ class GlossaryBrowser(Client):
|
|
381
358
|
return response
|
382
359
|
|
383
360
|
async def _async_get_glossary_by_guid(
|
384
|
-
self, glossary_guid: str,
|
361
|
+
self, glossary_guid: str, effective_time: str = None
|
385
362
|
) -> dict:
|
386
363
|
"""Retrieves information about a glossary
|
387
364
|
Parameters
|
388
365
|
----------
|
389
366
|
glossary_guid : str
|
390
367
|
Unique idetifier for the glossary
|
391
|
-
server_name : str, optional
|
392
|
-
The name of the server to get the configured access services for.
|
393
|
-
If not provided, the server name associated with the instance is used.
|
394
368
|
effective_time: str, optional
|
395
369
|
Effective time of the query. If not specified will default to any time. Time format is
|
396
370
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -410,8 +384,7 @@ class GlossaryBrowser(Client):
|
|
410
384
|
Notes
|
411
385
|
-----
|
412
386
|
"""
|
413
|
-
|
414
|
-
server_name = self.server_name
|
387
|
+
|
415
388
|
validate_guid(glossary_guid)
|
416
389
|
|
417
390
|
body = {
|
@@ -420,22 +393,25 @@ class GlossaryBrowser(Client):
|
|
420
393
|
}
|
421
394
|
|
422
395
|
url = (
|
423
|
-
f"{self.platform_url}/servers/{
|
396
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
424
397
|
f"{glossary_guid}/retrieve"
|
425
398
|
)
|
426
399
|
print(url)
|
427
400
|
response = await self._async_make_request("POST", url, payload=body)
|
428
401
|
return response.json()
|
429
402
|
|
430
|
-
def get_glossary_by_guid(
|
403
|
+
def get_glossary_by_guid(
|
404
|
+
self, glossary_guid: str, effective_time: str = None
|
405
|
+
) -> dict:
|
431
406
|
"""Retrieves information about a glossary
|
432
407
|
Parameters
|
433
408
|
----------
|
434
409
|
glossary_guid : str
|
435
410
|
Unique idetifier for the glossary
|
436
|
-
|
437
|
-
|
438
|
-
|
411
|
+
effective_time: str, optional
|
412
|
+
Effective time of the query. If not specified will default to any time. Time format is
|
413
|
+
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
414
|
+
|
439
415
|
Returns
|
440
416
|
-------
|
441
417
|
dict
|
@@ -454,7 +430,7 @@ class GlossaryBrowser(Client):
|
|
454
430
|
"""
|
455
431
|
loop = asyncio.get_event_loop()
|
456
432
|
response = loop.run_until_complete(
|
457
|
-
self._async_get_glossary_by_guid(glossary_guid,
|
433
|
+
self._async_get_glossary_by_guid(glossary_guid, effective_time)
|
458
434
|
)
|
459
435
|
return response
|
460
436
|
|
@@ -462,7 +438,6 @@ class GlossaryBrowser(Client):
|
|
462
438
|
self,
|
463
439
|
glossary_name: str,
|
464
440
|
effective_time: str = None,
|
465
|
-
server_name: str = None,
|
466
441
|
start_from: int = 0,
|
467
442
|
page_size: int = None,
|
468
443
|
) -> dict | str:
|
@@ -476,8 +451,7 @@ class GlossaryBrowser(Client):
|
|
476
451
|
effective_time: datetime, [default=None], optional
|
477
452
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
478
453
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
479
|
-
|
480
|
-
The name of the server to configure.
|
454
|
+
|
481
455
|
If not provided, the server name associated with the instance is used.
|
482
456
|
start_from: int, [default=0], optional
|
483
457
|
When multiple pages of results are available, the page number to start from.
|
@@ -502,8 +476,7 @@ class GlossaryBrowser(Client):
|
|
502
476
|
Raised when configuration parameters passed on earlier calls turn out to be
|
503
477
|
invalid or make the new call invalid.
|
504
478
|
"""
|
505
|
-
|
506
|
-
server_name = self.server_name
|
479
|
+
|
507
480
|
if page_size is None:
|
508
481
|
page_size = self.page_size
|
509
482
|
validate_name(glossary_name)
|
@@ -514,7 +487,7 @@ class GlossaryBrowser(Client):
|
|
514
487
|
body = {"name": glossary_name, "effectiveTime": effective_time}
|
515
488
|
|
516
489
|
url = (
|
517
|
-
f"{self.platform_url}/servers/{
|
490
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
518
491
|
f"by-name?startFrom={start_from}&pageSize={page_size}"
|
519
492
|
)
|
520
493
|
|
@@ -525,7 +498,6 @@ class GlossaryBrowser(Client):
|
|
525
498
|
self,
|
526
499
|
glossary_name: str,
|
527
500
|
effective_time: str = None,
|
528
|
-
server_name: str = None,
|
529
501
|
start_from: int = 0,
|
530
502
|
page_size: int = None,
|
531
503
|
) -> dict | str:
|
@@ -538,8 +510,7 @@ class GlossaryBrowser(Client):
|
|
538
510
|
Name of the glossary to be retrieved
|
539
511
|
effective_time: datetime, [default=None], optional
|
540
512
|
Effective time of the query. If not specified will default to any effective time.
|
541
|
-
|
542
|
-
The name of the server to configure.
|
513
|
+
|
543
514
|
If not provided, the server name associated with the instance is used.
|
544
515
|
start_from: int, [default=0], optional
|
545
516
|
When multiple pages of results are available, the page number to start from.
|
@@ -566,7 +537,7 @@ class GlossaryBrowser(Client):
|
|
566
537
|
loop = asyncio.get_event_loop()
|
567
538
|
response = loop.run_until_complete(
|
568
539
|
self._async_get_glossaries_by_name(
|
569
|
-
glossary_name, effective_time,
|
540
|
+
glossary_name, effective_time, start_from, page_size
|
570
541
|
)
|
571
542
|
)
|
572
543
|
return response
|
@@ -579,7 +550,6 @@ class GlossaryBrowser(Client):
|
|
579
550
|
self,
|
580
551
|
glossary_category_guid: str,
|
581
552
|
effective_time: str = None,
|
582
|
-
server_name: str = None,
|
583
553
|
) -> dict | str:
|
584
554
|
"""Retrieve the glossary metadata element for the requested category. The optional request body allows you to
|
585
555
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -591,8 +561,7 @@ class GlossaryBrowser(Client):
|
|
591
561
|
effective_time: datetime, [default=None], optional
|
592
562
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
593
563
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
594
|
-
|
595
|
-
The name of the server to configure.
|
564
|
+
|
596
565
|
If not provided, the server name associated with the instance is used.
|
597
566
|
|
598
567
|
Returns
|
@@ -612,8 +581,6 @@ class GlossaryBrowser(Client):
|
|
612
581
|
Raised when configuration parameters passed on earlier calls turn out to be
|
613
582
|
invalid or make the new call invalid.
|
614
583
|
"""
|
615
|
-
if server_name is None:
|
616
|
-
server_name = self.server_name
|
617
584
|
|
618
585
|
body = {
|
619
586
|
"class": "EffectiveTimeQueryRequestBody",
|
@@ -621,7 +588,7 @@ class GlossaryBrowser(Client):
|
|
621
588
|
}
|
622
589
|
|
623
590
|
url = (
|
624
|
-
f"{self.platform_url}/servers/{
|
591
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
625
592
|
f"for-category/{glossary_category_guid}/retrieve"
|
626
593
|
)
|
627
594
|
|
@@ -632,7 +599,6 @@ class GlossaryBrowser(Client):
|
|
632
599
|
self,
|
633
600
|
glossary_category_guid: str,
|
634
601
|
effective_time: str = None,
|
635
|
-
server_name: str = None,
|
636
602
|
) -> dict | str:
|
637
603
|
"""Retrieve the glossary metadata element for the requested category. The optional request body allows you to
|
638
604
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -644,8 +610,7 @@ class GlossaryBrowser(Client):
|
|
644
610
|
effective_time: datetime, [default=None], optional
|
645
611
|
Effective time of the query. If not specified will default to any effective time. Time format is
|
646
612
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
647
|
-
|
648
|
-
The name of the server to configure.
|
613
|
+
|
649
614
|
If not provided, the server name associated with the instance is used.
|
650
615
|
|
651
616
|
Returns
|
@@ -668,7 +633,7 @@ class GlossaryBrowser(Client):
|
|
668
633
|
loop = asyncio.get_event_loop()
|
669
634
|
response = loop.run_until_complete(
|
670
635
|
self._async_get_glossary_for_category(
|
671
|
-
glossary_category_guid, effective_time
|
636
|
+
glossary_category_guid, effective_time
|
672
637
|
)
|
673
638
|
)
|
674
639
|
return response
|
@@ -680,7 +645,6 @@ class GlossaryBrowser(Client):
|
|
680
645
|
starts_with: bool = False,
|
681
646
|
ends_with: bool = False,
|
682
647
|
ignore_case: bool = False,
|
683
|
-
server_name: str = None,
|
684
648
|
start_from: int = 0,
|
685
649
|
page_size: int = None,
|
686
650
|
) -> list | str:
|
@@ -697,8 +661,7 @@ class GlossaryBrowser(Client):
|
|
697
661
|
effective_time: str, [default=None], optional
|
698
662
|
Effective time of the query. If not specified will default to any time. Time format is
|
699
663
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
700
|
-
|
701
|
-
The name of the server to configure.
|
664
|
+
|
702
665
|
If not provided, the server name associated with the instance is used.
|
703
666
|
starts_with : bool, [default=False], optional
|
704
667
|
Starts with the supplied string.
|
@@ -728,8 +691,7 @@ class GlossaryBrowser(Client):
|
|
728
691
|
The principle specified by the user_id does not have authorization for the requested action
|
729
692
|
|
730
693
|
"""
|
731
|
-
|
732
|
-
server_name = self.server_name
|
694
|
+
|
733
695
|
if page_size is None:
|
734
696
|
page_size = self.page_size
|
735
697
|
starts_with_s = str(starts_with).lower()
|
@@ -749,7 +711,7 @@ class GlossaryBrowser(Client):
|
|
749
711
|
body = body_slimmer(body)
|
750
712
|
|
751
713
|
url = (
|
752
|
-
f"{self.platform_url}/servers/{
|
714
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
753
715
|
f"categories/by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
754
716
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}"
|
755
717
|
)
|
@@ -764,7 +726,6 @@ class GlossaryBrowser(Client):
|
|
764
726
|
starts_with: bool = False,
|
765
727
|
ends_with: bool = False,
|
766
728
|
ignore_case: bool = False,
|
767
|
-
server_name: str = None,
|
768
729
|
start_from: int = 0,
|
769
730
|
page_size: int = None,
|
770
731
|
) -> list | str:
|
@@ -781,8 +742,7 @@ class GlossaryBrowser(Client):
|
|
781
742
|
effective_time: str, [default=None], optional
|
782
743
|
Effective time of the query. If not specified will default to any time. Time format is
|
783
744
|
"YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
784
|
-
|
785
|
-
The name of the server to configure.
|
745
|
+
|
786
746
|
If not provided, the server name associated with the instance is used.
|
787
747
|
starts_with : bool, [default=False], optional
|
788
748
|
Starts with the supplied string.
|
@@ -820,7 +780,6 @@ class GlossaryBrowser(Client):
|
|
820
780
|
starts_with,
|
821
781
|
ends_with,
|
822
782
|
ignore_case,
|
823
|
-
server_name,
|
824
783
|
start_from,
|
825
784
|
page_size,
|
826
785
|
)
|
@@ -831,7 +790,6 @@ class GlossaryBrowser(Client):
|
|
831
790
|
async def _async_get_categories_for_glossary(
|
832
791
|
self,
|
833
792
|
glossary_guid: str,
|
834
|
-
server_name: str = None,
|
835
793
|
start_from: int = 0,
|
836
794
|
page_size: int = None,
|
837
795
|
) -> list | str:
|
@@ -842,8 +800,7 @@ class GlossaryBrowser(Client):
|
|
842
800
|
----------
|
843
801
|
glossary_guid: str,
|
844
802
|
Unique identity of the glossary
|
845
|
-
|
846
|
-
The name of the server to configure.
|
803
|
+
|
847
804
|
If not provided, the server name associated with the instance is used.
|
848
805
|
start_from: int, [default=0], optional
|
849
806
|
When multiple pages of results are available, the page number to start from.
|
@@ -867,13 +824,12 @@ class GlossaryBrowser(Client):
|
|
867
824
|
The principle specified by the user_id does not have authorization for the requested action
|
868
825
|
|
869
826
|
"""
|
870
|
-
|
871
|
-
server_name = self.server_name
|
827
|
+
|
872
828
|
if page_size is None:
|
873
829
|
page_size = self.page_size
|
874
830
|
|
875
831
|
url = (
|
876
|
-
f"{self.platform_url}/servers/{
|
832
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
877
833
|
f"{glossary_guid}/categories/retrieve?startFrom={start_from}&pageSize={page_size}"
|
878
834
|
)
|
879
835
|
|
@@ -883,7 +839,6 @@ class GlossaryBrowser(Client):
|
|
883
839
|
def get_categories_for_glossary(
|
884
840
|
self,
|
885
841
|
glossary_guid: str,
|
886
|
-
server_name: str = None,
|
887
842
|
start_from: int = 0,
|
888
843
|
page_size: int = None,
|
889
844
|
) -> list | str:
|
@@ -893,8 +848,7 @@ class GlossaryBrowser(Client):
|
|
893
848
|
----------
|
894
849
|
glossary_guid: str,
|
895
850
|
Unique identity of the glossary
|
896
|
-
|
897
|
-
The name of the server to configure.
|
851
|
+
|
898
852
|
If not provided, the server name associated with the instance is used.
|
899
853
|
start_from: int, [default=0], optional
|
900
854
|
When multiple pages of results are available, the page number to start from.
|
@@ -921,7 +875,7 @@ class GlossaryBrowser(Client):
|
|
921
875
|
loop = asyncio.get_event_loop()
|
922
876
|
response = loop.run_until_complete(
|
923
877
|
self._async_get_categories_for_glossary(
|
924
|
-
glossary_guid,
|
878
|
+
glossary_guid, start_from, page_size
|
925
879
|
)
|
926
880
|
)
|
927
881
|
return response
|
@@ -929,7 +883,6 @@ class GlossaryBrowser(Client):
|
|
929
883
|
async def _async_get_categories_for_term(
|
930
884
|
self,
|
931
885
|
glossary_term_guid: str,
|
932
|
-
server_name: str = None,
|
933
886
|
start_from: int = 0,
|
934
887
|
page_size: int = None,
|
935
888
|
) -> list | str:
|
@@ -940,9 +893,7 @@ class GlossaryBrowser(Client):
|
|
940
893
|
----------
|
941
894
|
glossary_term_guid: str,
|
942
895
|
Unique identity of a glossary term
|
943
|
-
|
944
|
-
The name of the server to use.
|
945
|
-
If not provided, the server name associated with the instance is used.
|
896
|
+
|
946
897
|
start_from: int, [default=0], optional
|
947
898
|
When multiple pages of results are available, the page number to start from.
|
948
899
|
page_size: int, [default=None]
|
@@ -965,13 +916,12 @@ class GlossaryBrowser(Client):
|
|
965
916
|
The principle specified by the user_id does not have authorization for the requested action
|
966
917
|
|
967
918
|
"""
|
968
|
-
|
969
|
-
server_name = self.server_name
|
919
|
+
|
970
920
|
if page_size is None:
|
971
921
|
page_size = self.page_size
|
972
922
|
|
973
923
|
url = (
|
974
|
-
f"{self.platform_url}/servers/{
|
924
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
975
925
|
f"{glossary_term_guid}/categories/retrieve?startFrom={start_from}&pageSize={page_size}"
|
976
926
|
)
|
977
927
|
|
@@ -981,7 +931,6 @@ class GlossaryBrowser(Client):
|
|
981
931
|
def get_categories_for_term(
|
982
932
|
self,
|
983
933
|
glossary_term_guid: str,
|
984
|
-
server_name: str = None,
|
985
934
|
start_from: int = 0,
|
986
935
|
page_size: int = None,
|
987
936
|
) -> list | str:
|
@@ -991,9 +940,7 @@ class GlossaryBrowser(Client):
|
|
991
940
|
----------
|
992
941
|
glossary_term_guid: str,
|
993
942
|
Unique identity of a glossary term
|
994
|
-
|
995
|
-
The name of the server to use.
|
996
|
-
If not provided, the server name associated with the instance is used.
|
943
|
+
|
997
944
|
start_from: int, [default=0], optional
|
998
945
|
When multiple pages of results are available, the page number to start from.
|
999
946
|
page_size: int, [default=None]
|
@@ -1019,7 +966,7 @@ class GlossaryBrowser(Client):
|
|
1019
966
|
loop = asyncio.get_event_loop()
|
1020
967
|
response = loop.run_until_complete(
|
1021
968
|
self._async_get_categories_for_term(
|
1022
|
-
glossary_term_guid,
|
969
|
+
glossary_term_guid, start_from, page_size
|
1023
970
|
)
|
1024
971
|
)
|
1025
972
|
return response
|
@@ -1029,7 +976,6 @@ class GlossaryBrowser(Client):
|
|
1029
976
|
name: str,
|
1030
977
|
glossary_guid: str = None,
|
1031
978
|
status: [str] = ["ACTIVE"],
|
1032
|
-
server_name: str = None,
|
1033
979
|
start_from: int = 0,
|
1034
980
|
page_size: int = None,
|
1035
981
|
) -> list | str:
|
@@ -1048,8 +994,7 @@ class GlossaryBrowser(Client):
|
|
1048
994
|
The identity of the glossary to search. If not specified, all glossaries will be searched.
|
1049
995
|
status: [str], optional
|
1050
996
|
A list of statuses to optionally restrict results. Default is Active
|
1051
|
-
|
1052
|
-
The name of the server to configure.
|
997
|
+
|
1053
998
|
If not provided, the server name associated with the instance is used.
|
1054
999
|
start_from: int, [default=0], optional
|
1055
1000
|
When multiple pages of results are available, the page number to start from.
|
@@ -1073,14 +1018,13 @@ class GlossaryBrowser(Client):
|
|
1073
1018
|
The principle specified by the user_id does not have authorization for the requested action
|
1074
1019
|
|
1075
1020
|
"""
|
1076
|
-
|
1077
|
-
server_name = self.server_name
|
1021
|
+
|
1078
1022
|
if page_size is None:
|
1079
1023
|
page_size = self.page_size
|
1080
1024
|
validate_name(name)
|
1081
1025
|
|
1082
1026
|
url = (
|
1083
|
-
f"{self.platform_url}/servers/{
|
1027
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1084
1028
|
f"by-name?startFrom={start_from}&pageSize={page_size}"
|
1085
1029
|
)
|
1086
1030
|
|
@@ -1099,7 +1043,6 @@ class GlossaryBrowser(Client):
|
|
1099
1043
|
name: str,
|
1100
1044
|
glossary_guid: str = None,
|
1101
1045
|
status: [str] = ["ACTIVE"],
|
1102
|
-
server_name: str = None,
|
1103
1046
|
start_from: int = 0,
|
1104
1047
|
page_size: int = None,
|
1105
1048
|
) -> list | str:
|
@@ -1116,8 +1059,7 @@ class GlossaryBrowser(Client):
|
|
1116
1059
|
The identity of the glossary to search. If not specified, all glossaries will be searched.
|
1117
1060
|
status: [str], optional
|
1118
1061
|
A list of statuses to optionally restrict results. Default is Active
|
1119
|
-
|
1120
|
-
The name of the server to configure.
|
1062
|
+
|
1121
1063
|
If not provided, the server name associated with the instance is used.
|
1122
1064
|
start_from: int, [default=0], optional
|
1123
1065
|
When multiple pages of results are available, the page number to start from.
|
@@ -1144,7 +1086,7 @@ class GlossaryBrowser(Client):
|
|
1144
1086
|
loop = asyncio.get_event_loop()
|
1145
1087
|
response = loop.run_until_complete(
|
1146
1088
|
self._async_get_categories_by_name(
|
1147
|
-
name, glossary_guid, status,
|
1089
|
+
name, glossary_guid, status, start_from, page_size
|
1148
1090
|
)
|
1149
1091
|
)
|
1150
1092
|
return response
|
@@ -1153,7 +1095,6 @@ class GlossaryBrowser(Client):
|
|
1153
1095
|
self,
|
1154
1096
|
glossary_category_guid: str,
|
1155
1097
|
effective_time: str = None,
|
1156
|
-
server_name: str = None,
|
1157
1098
|
) -> list | str:
|
1158
1099
|
"""Retrieve the requested glossary category metadata element. The optional request body contain an effective
|
1159
1100
|
time for the query..
|
@@ -1167,8 +1108,7 @@ class GlossaryBrowser(Client):
|
|
1167
1108
|
effective_time: str, optional
|
1168
1109
|
If specified, the category should only be returned if it was effective at the specified time.
|
1169
1110
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1170
|
-
|
1171
|
-
The name of the server to configure.
|
1111
|
+
|
1172
1112
|
If not provided, the server name associated with the instance is used.
|
1173
1113
|
|
1174
1114
|
Returns
|
@@ -1188,11 +1128,9 @@ class GlossaryBrowser(Client):
|
|
1188
1128
|
The principle specified by the user_id does not have authorization for the requested action
|
1189
1129
|
|
1190
1130
|
"""
|
1191
|
-
if server_name is None:
|
1192
|
-
server_name = self.server_name
|
1193
1131
|
|
1194
1132
|
url = (
|
1195
|
-
f"{self.platform_url}/servers/{
|
1133
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1196
1134
|
f"{glossary_category_guid}/retrieve"
|
1197
1135
|
)
|
1198
1136
|
|
@@ -1208,7 +1146,6 @@ class GlossaryBrowser(Client):
|
|
1208
1146
|
self,
|
1209
1147
|
glossary_category_guid: str,
|
1210
1148
|
effective_time: str = None,
|
1211
|
-
server_name: str = None,
|
1212
1149
|
) -> list | str:
|
1213
1150
|
"""Retrieve the requested glossary category metadata element. The optional request body contain an effective
|
1214
1151
|
time for the query..
|
@@ -1220,8 +1157,7 @@ class GlossaryBrowser(Client):
|
|
1220
1157
|
effective_time: str, optional
|
1221
1158
|
If specified, the category should only be returned if it was effective at the specified time.
|
1222
1159
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1223
|
-
|
1224
|
-
The name of the server to configure.
|
1160
|
+
|
1225
1161
|
If not provided, the server name associated with the instance is used.
|
1226
1162
|
|
1227
1163
|
Returns
|
@@ -1243,9 +1179,7 @@ class GlossaryBrowser(Client):
|
|
1243
1179
|
"""
|
1244
1180
|
loop = asyncio.get_event_loop()
|
1245
1181
|
response = loop.run_until_complete(
|
1246
|
-
self._async_get_categories_by_guid(
|
1247
|
-
glossary_category_guid, effective_time, server_name
|
1248
|
-
)
|
1182
|
+
self._async_get_categories_by_guid(glossary_category_guid, effective_time)
|
1249
1183
|
)
|
1250
1184
|
return response
|
1251
1185
|
|
@@ -1253,7 +1187,6 @@ class GlossaryBrowser(Client):
|
|
1253
1187
|
self,
|
1254
1188
|
glossary_category_guid: str,
|
1255
1189
|
effective_time: str = None,
|
1256
|
-
server_name: str = None,
|
1257
1190
|
) -> list | str:
|
1258
1191
|
"""Glossary categories can be organized in a hierarchy. Retrieve the parent glossary category metadata
|
1259
1192
|
element for the glossary category with the supplied unique identifier. If the requested category
|
@@ -1269,8 +1202,7 @@ class GlossaryBrowser(Client):
|
|
1269
1202
|
effective_time: str, optional
|
1270
1203
|
If specified, the category should only be returned if it was effective at the specified time.
|
1271
1204
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
1272
|
-
|
1273
|
-
The name of the server to configure.
|
1205
|
+
|
1274
1206
|
If not provided, the server name associated with the instance is used.
|
1275
1207
|
|
1276
1208
|
Returns
|
@@ -1290,11 +1222,9 @@ class GlossaryBrowser(Client):
|
|
1290
1222
|
The principle specified by the user_id does not have authorization for the requested action
|
1291
1223
|
|
1292
1224
|
"""
|
1293
|
-
if server_name is None:
|
1294
|
-
server_name = self.server_name
|
1295
1225
|
|
1296
1226
|
url = (
|
1297
|
-
f"{self.platform_url}/servers/{
|
1227
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/categories/"
|
1298
1228
|
f"{glossary_category_guid}/parent/retrieve"
|
1299
1229
|
)
|
1300
1230
|
|
@@ -1310,7 +1240,6 @@ class GlossaryBrowser(Client):
|
|
1310
1240
|
self,
|
1311
1241
|
glossary_category_guid: str,
|
1312
1242
|
effective_time: str = None,
|
1313
|
-
server_name: str = None,
|
1314
1243
|
) -> list | str:
|
1315
1244
|
"""Glossary categories can be organized in a hierarchy. Retrieve the parent glossary category metadata
|
1316
1245
|
element for the glossary category with the supplied unique identifier. If the requested category
|
@@ -1324,8 +1253,7 @@ class GlossaryBrowser(Client):
|
|
1324
1253
|
effective_time: str, optional
|
1325
1254
|
If specified, the category should only be returned if it was effective at the specified time.
|
1326
1255
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601).
|
1327
|
-
|
1328
|
-
The name of the server to configure.
|
1256
|
+
|
1329
1257
|
If not provided, the server name associated with the instance is used.
|
1330
1258
|
|
1331
1259
|
Returns
|
@@ -1347,9 +1275,7 @@ class GlossaryBrowser(Client):
|
|
1347
1275
|
"""
|
1348
1276
|
loop = asyncio.get_event_loop()
|
1349
1277
|
response = loop.run_until_complete(
|
1350
|
-
self._async_get_category_parent(
|
1351
|
-
glossary_category_guid, effective_time, server_name
|
1352
|
-
)
|
1278
|
+
self._async_get_category_parent(glossary_category_guid, effective_time)
|
1353
1279
|
)
|
1354
1280
|
return response
|
1355
1281
|
|
@@ -1360,7 +1286,6 @@ class GlossaryBrowser(Client):
|
|
1360
1286
|
async def _async_get_terms_for_category(
|
1361
1287
|
self,
|
1362
1288
|
glossary_category_guid: str,
|
1363
|
-
server_name: str = None,
|
1364
1289
|
effective_time: str = None,
|
1365
1290
|
start_from: int = 0,
|
1366
1291
|
page_size: int = None,
|
@@ -1374,9 +1299,7 @@ class GlossaryBrowser(Client):
|
|
1374
1299
|
----------
|
1375
1300
|
glossary_category_guid : str
|
1376
1301
|
Unique identifier for the glossary category to retrieve terms from.
|
1377
|
-
|
1378
|
-
The name of the server to get the configured access services for.
|
1379
|
-
If not provided, the server name associated with the instance is used.
|
1302
|
+
|
1380
1303
|
effective_time : str, optional
|
1381
1304
|
If specified, the terms are returned if they are active at the `effective_time
|
1382
1305
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1401,15 +1324,13 @@ class GlossaryBrowser(Client):
|
|
1401
1324
|
-----
|
1402
1325
|
"""
|
1403
1326
|
|
1404
|
-
if server_name is None:
|
1405
|
-
server_name = self.server_name
|
1406
1327
|
validate_guid(glossary_category_guid)
|
1407
1328
|
|
1408
1329
|
if page_size is None:
|
1409
1330
|
page_size = self.page_size
|
1410
1331
|
|
1411
1332
|
url = (
|
1412
|
-
f"{self.platform_url}/servers/{
|
1333
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
1413
1334
|
f"{glossary_category_guid}/terms/retrieve?startFrom={start_from}&pageSize={page_size}"
|
1414
1335
|
)
|
1415
1336
|
|
@@ -1424,7 +1345,6 @@ class GlossaryBrowser(Client):
|
|
1424
1345
|
def get_terms_for_category(
|
1425
1346
|
self,
|
1426
1347
|
glossary_category_guid: str,
|
1427
|
-
server_name: str = None,
|
1428
1348
|
effective_time: str = None,
|
1429
1349
|
start_from: int = 0,
|
1430
1350
|
page_size: int = None,
|
@@ -1438,9 +1358,7 @@ class GlossaryBrowser(Client):
|
|
1438
1358
|
----------
|
1439
1359
|
glossary_category_guid : str
|
1440
1360
|
Unique identifier for the glossary category to retrieve terms from.
|
1441
|
-
|
1442
|
-
The name of the server to get the configured access services for.
|
1443
|
-
If not provided, the server name associated with the instance is used.
|
1361
|
+
|
1444
1362
|
effective_time : str, optional
|
1445
1363
|
If specified, the terms are returned if they are active at the `effective_time.
|
1446
1364
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)`.
|
@@ -1468,7 +1386,6 @@ class GlossaryBrowser(Client):
|
|
1468
1386
|
response = loop.run_until_complete(
|
1469
1387
|
self._async_get_terms_for_category(
|
1470
1388
|
glossary_category_guid,
|
1471
|
-
server_name,
|
1472
1389
|
effective_time,
|
1473
1390
|
start_from,
|
1474
1391
|
page_size,
|
@@ -1480,7 +1397,6 @@ class GlossaryBrowser(Client):
|
|
1480
1397
|
async def _async_get_terms_for_glossary(
|
1481
1398
|
self,
|
1482
1399
|
glossary_guid: str,
|
1483
|
-
server_name: str = None,
|
1484
1400
|
effective_time: str = None,
|
1485
1401
|
start_from: int = 0,
|
1486
1402
|
page_size: int = None,
|
@@ -1491,9 +1407,7 @@ class GlossaryBrowser(Client):
|
|
1491
1407
|
----------
|
1492
1408
|
glossary_guid : str
|
1493
1409
|
Unique identifier for the glossary
|
1494
|
-
|
1495
|
-
The name of the server to get the configured access services for.
|
1496
|
-
If not provided, the server name associated with the instance is used.
|
1410
|
+
|
1497
1411
|
effective_time : str, optional
|
1498
1412
|
If specified, terms are potentially included if they are active at the`effective_time.
|
1499
1413
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)`
|
@@ -1518,15 +1432,13 @@ class GlossaryBrowser(Client):
|
|
1518
1432
|
-----
|
1519
1433
|
"""
|
1520
1434
|
|
1521
|
-
if server_name is None:
|
1522
|
-
server_name = self.server_name
|
1523
1435
|
validate_guid(glossary_guid)
|
1524
1436
|
|
1525
1437
|
if page_size is None:
|
1526
1438
|
page_size = self.page_size
|
1527
1439
|
|
1528
1440
|
url = (
|
1529
|
-
f"{self.platform_url}/servers/{
|
1441
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
1530
1442
|
f"{glossary_guid}/terms/retrieve?startFrom={start_from}&pageSize={page_size}"
|
1531
1443
|
)
|
1532
1444
|
|
@@ -1541,7 +1453,6 @@ class GlossaryBrowser(Client):
|
|
1541
1453
|
def get_terms_for_glossary(
|
1542
1454
|
self,
|
1543
1455
|
glossary_guid: str,
|
1544
|
-
server_name: str = None,
|
1545
1456
|
effective_time: str = None,
|
1546
1457
|
start_from: int = 0,
|
1547
1458
|
page_size: int = None,
|
@@ -1552,9 +1463,7 @@ class GlossaryBrowser(Client):
|
|
1552
1463
|
----------
|
1553
1464
|
glossary_guid : str
|
1554
1465
|
Unique identifier for the glossary
|
1555
|
-
|
1556
|
-
The name of the server to get the configured access services for.
|
1557
|
-
If not provided, the server name associated with the instance is used.
|
1466
|
+
|
1558
1467
|
effective_time : str, optional
|
1559
1468
|
If specified, terms are potentially returned if they are active at the `effective_time`
|
1560
1469
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1581,7 +1490,7 @@ class GlossaryBrowser(Client):
|
|
1581
1490
|
loop = asyncio.get_event_loop()
|
1582
1491
|
response = loop.run_until_complete(
|
1583
1492
|
self._async_get_terms_for_glossary(
|
1584
|
-
glossary_guid,
|
1493
|
+
glossary_guid, effective_time, start_from, page_size
|
1585
1494
|
)
|
1586
1495
|
)
|
1587
1496
|
|
@@ -1590,7 +1499,6 @@ class GlossaryBrowser(Client):
|
|
1590
1499
|
async def _async_get_term_relationships(
|
1591
1500
|
self,
|
1592
1501
|
term_guid: str,
|
1593
|
-
server_name: str = None,
|
1594
1502
|
effective_time: str = None,
|
1595
1503
|
start_from: int = 0,
|
1596
1504
|
page_size: int = None,
|
@@ -1601,9 +1509,7 @@ class GlossaryBrowser(Client):
|
|
1601
1509
|
----------
|
1602
1510
|
term_guid : str
|
1603
1511
|
Unique identifier for the glossary term
|
1604
|
-
|
1605
|
-
The name of the server to get the configured access services for.
|
1606
|
-
If not provided, the server name associated with the instance is used.
|
1512
|
+
|
1607
1513
|
effective_time : str, optional
|
1608
1514
|
If specified, term relationships are included if they are active at the `effective_time`.
|
1609
1515
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1628,15 +1534,13 @@ class GlossaryBrowser(Client):
|
|
1628
1534
|
-----
|
1629
1535
|
"""
|
1630
1536
|
|
1631
|
-
if server_name is None:
|
1632
|
-
server_name = self.server_name
|
1633
1537
|
validate_guid(term_guid)
|
1634
1538
|
|
1635
1539
|
if page_size is None:
|
1636
1540
|
page_size = self.page_size
|
1637
1541
|
|
1638
1542
|
url = (
|
1639
|
-
f"{self.platform_url}/servers/{
|
1543
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
1640
1544
|
f"{term_guid}/related-terms?startFrom={start_from}&pageSize={page_size}"
|
1641
1545
|
)
|
1642
1546
|
|
@@ -1651,7 +1555,6 @@ class GlossaryBrowser(Client):
|
|
1651
1555
|
def get_term_relationships(
|
1652
1556
|
self,
|
1653
1557
|
term_guid: str,
|
1654
|
-
server_name: str = None,
|
1655
1558
|
effective_time: str = None,
|
1656
1559
|
start_from: int = 0,
|
1657
1560
|
page_size: int = None,
|
@@ -1662,9 +1565,7 @@ class GlossaryBrowser(Client):
|
|
1662
1565
|
----------
|
1663
1566
|
term_guid : str
|
1664
1567
|
Unique identifier for the glossary term
|
1665
|
-
|
1666
|
-
The name of the server to get the configured access services for.
|
1667
|
-
If not provided, the server name associated with the instance is used.
|
1568
|
+
|
1668
1569
|
effective_time : str, optional
|
1669
1570
|
If specified, term relationships are included if they are active at the `effective_time`.
|
1670
1571
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1691,14 +1592,14 @@ class GlossaryBrowser(Client):
|
|
1691
1592
|
loop = asyncio.get_event_loop()
|
1692
1593
|
response = loop.run_until_complete(
|
1693
1594
|
self._async_get_term_relationships(
|
1694
|
-
term_guid,
|
1595
|
+
term_guid, effective_time, start_from, page_size
|
1695
1596
|
)
|
1696
1597
|
)
|
1697
1598
|
|
1698
1599
|
return response
|
1699
1600
|
|
1700
1601
|
async def _async_get_glossary_for_term(
|
1701
|
-
self, term_guid: str,
|
1602
|
+
self, term_guid: str, effective_time: str = None
|
1702
1603
|
) -> dict | str:
|
1703
1604
|
"""Retrieve the glossary metadata element for the requested term. The optional request body allows you to
|
1704
1605
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -1709,8 +1610,7 @@ class GlossaryBrowser(Client):
|
|
1709
1610
|
----------
|
1710
1611
|
term_guid : str
|
1711
1612
|
The unique identifier for the term.
|
1712
|
-
|
1713
|
-
The name of the server. If not specified, the default server name will be used.
|
1613
|
+
|
1714
1614
|
effective_time : datetime, optional
|
1715
1615
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
1716
1616
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1730,8 +1630,7 @@ class GlossaryBrowser(Client):
|
|
1730
1630
|
Notes
|
1731
1631
|
-----
|
1732
1632
|
"""
|
1733
|
-
|
1734
|
-
server_name = self.server_name
|
1633
|
+
|
1735
1634
|
validate_guid(term_guid)
|
1736
1635
|
|
1737
1636
|
body = {
|
@@ -1739,7 +1638,7 @@ class GlossaryBrowser(Client):
|
|
1739
1638
|
"effectiveTime": effective_time,
|
1740
1639
|
}
|
1741
1640
|
url = (
|
1742
|
-
f"{self.platform_url}/servers/{
|
1641
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
1743
1642
|
f"for-term/{term_guid}/retrieve"
|
1744
1643
|
)
|
1745
1644
|
|
@@ -1747,7 +1646,7 @@ class GlossaryBrowser(Client):
|
|
1747
1646
|
return response.json().get("element", "No glossary found")
|
1748
1647
|
|
1749
1648
|
def get_glossary_for_term(
|
1750
|
-
self, term_guid: str,
|
1649
|
+
self, term_guid: str, effective_time: str = None
|
1751
1650
|
) -> dict | str:
|
1752
1651
|
"""Retrieve the glossary metadata element for the requested term. The optional request body allows you to
|
1753
1652
|
specify that the glossary element should only be returned if it was effective at a particular time.
|
@@ -1758,8 +1657,7 @@ class GlossaryBrowser(Client):
|
|
1758
1657
|
----------
|
1759
1658
|
term_guid : str
|
1760
1659
|
The unique identifier for the term.
|
1761
|
-
|
1762
|
-
The name of the server. If not specified, the default server name will be used.
|
1660
|
+
|
1763
1661
|
effective_time : datetime, optional
|
1764
1662
|
TIf specified, the term information will be retrieved if it is active at the `effective_time`.
|
1765
1663
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601).
|
@@ -1781,7 +1679,7 @@ class GlossaryBrowser(Client):
|
|
1781
1679
|
"""
|
1782
1680
|
loop = asyncio.get_event_loop()
|
1783
1681
|
response = loop.run_until_complete(
|
1784
|
-
self._async_get_glossary_for_term(term_guid,
|
1682
|
+
self._async_get_glossary_for_term(term_guid, effective_time)
|
1785
1683
|
)
|
1786
1684
|
return response
|
1787
1685
|
|
@@ -1790,7 +1688,6 @@ class GlossaryBrowser(Client):
|
|
1790
1688
|
term: str,
|
1791
1689
|
glossary_guid: str = None,
|
1792
1690
|
status_filter: list = [],
|
1793
|
-
server_name: str = None,
|
1794
1691
|
effective_time: str = None,
|
1795
1692
|
for_lineage: bool = False,
|
1796
1693
|
for_duplicate_processing: bool = False,
|
@@ -1807,8 +1704,7 @@ class GlossaryBrowser(Client):
|
|
1807
1704
|
The GUID of the glossary to search in. If not provided, the search will be performed in all glossaries.
|
1808
1705
|
status_filter : list, optional
|
1809
1706
|
A list of status values to filter the search results. Default is an empty list, which means no filtering.
|
1810
|
-
|
1811
|
-
The name of the server where the glossaries reside. If not provided, it will use the default server name.
|
1707
|
+
|
1812
1708
|
effective_time : datetime, optional
|
1813
1709
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
1814
1710
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1835,8 +1731,7 @@ class GlossaryBrowser(Client):
|
|
1835
1731
|
NotAuthorizedException
|
1836
1732
|
The principle specified by the user_id does not have authorization for the requested action.
|
1837
1733
|
"""
|
1838
|
-
|
1839
|
-
server_name = self.server_name
|
1734
|
+
|
1840
1735
|
if page_size is None:
|
1841
1736
|
page_size = self.page_size
|
1842
1737
|
|
@@ -1855,7 +1750,7 @@ class GlossaryBrowser(Client):
|
|
1855
1750
|
# body = body_slimmer(body)
|
1856
1751
|
|
1857
1752
|
url = (
|
1858
|
-
f"{self.platform_url}/servers/{
|
1753
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
1859
1754
|
f"terms/by-name?startFrom={start_from}&pageSize={page_size}&"
|
1860
1755
|
f"&forLineage={for_lineage_s}&forDuplicateProcessing={for_duplicate_processing_s}"
|
1861
1756
|
)
|
@@ -1870,7 +1765,6 @@ class GlossaryBrowser(Client):
|
|
1870
1765
|
term: str,
|
1871
1766
|
glossary_guid: str = None,
|
1872
1767
|
status_filter: list = [],
|
1873
|
-
server_name: str = None,
|
1874
1768
|
effective_time: str = None,
|
1875
1769
|
for_lineage: bool = False,
|
1876
1770
|
for_duplicate_processing: bool = False,
|
@@ -1887,8 +1781,7 @@ class GlossaryBrowser(Client):
|
|
1887
1781
|
The GUID of the glossary to search in. If not provided, the search will be performed in all glossaries.
|
1888
1782
|
status_filter : list, optional
|
1889
1783
|
A list of status values to filter the search results. Default is an empty list, which means no filtering.
|
1890
|
-
|
1891
|
-
The name of the server where the glossaries reside. If not provided, it will use the default server name.
|
1784
|
+
|
1892
1785
|
effective_time : datetime, optional
|
1893
1786
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
1894
1787
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
@@ -1922,7 +1815,6 @@ class GlossaryBrowser(Client):
|
|
1922
1815
|
term,
|
1923
1816
|
glossary_guid,
|
1924
1817
|
status_filter,
|
1925
|
-
server_name,
|
1926
1818
|
effective_time,
|
1927
1819
|
for_lineage,
|
1928
1820
|
for_duplicate_processing,
|
@@ -1932,16 +1824,13 @@ class GlossaryBrowser(Client):
|
|
1932
1824
|
)
|
1933
1825
|
return response
|
1934
1826
|
|
1935
|
-
async def _async_get_terms_by_guid(
|
1936
|
-
self, term_guid: str, server_name: str = None
|
1937
|
-
) -> dict | str:
|
1827
|
+
async def _async_get_terms_by_guid(self, term_guid: str) -> dict | str:
|
1938
1828
|
"""Retrieve a term using its unique id. Async version.
|
1939
1829
|
Parameters
|
1940
1830
|
----------
|
1941
1831
|
term_guid : str
|
1942
1832
|
The GUID of the glossary term to retrieve.
|
1943
|
-
|
1944
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
1833
|
+
|
1945
1834
|
|
1946
1835
|
Returns
|
1947
1836
|
-------
|
@@ -1958,27 +1847,24 @@ class GlossaryBrowser(Client):
|
|
1958
1847
|
NotAuthorizedException
|
1959
1848
|
The principle specified by the user_id does not have authorization for the requested action.
|
1960
1849
|
"""
|
1961
|
-
if server_name is None:
|
1962
|
-
server_name = self.server_name
|
1963
1850
|
|
1964
1851
|
validate_guid(term_guid)
|
1965
1852
|
|
1966
1853
|
url = (
|
1967
|
-
f"{self.platform_url}/servers/{
|
1854
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
1968
1855
|
f"{term_guid}/retrieve"
|
1969
1856
|
)
|
1970
1857
|
|
1971
1858
|
response = await self._async_make_request("POST", url)
|
1972
1859
|
return response.json().get("element", "No term found")
|
1973
1860
|
|
1974
|
-
def get_terms_by_guid(self, term_guid: str
|
1861
|
+
def get_terms_by_guid(self, term_guid: str) -> dict | str:
|
1975
1862
|
"""Retrieve a term using its unique id. Async version.
|
1976
1863
|
Parameters
|
1977
1864
|
----------
|
1978
1865
|
term_guid : str
|
1979
1866
|
The GUID of the glossary term to retrieve.
|
1980
|
-
|
1981
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
1867
|
+
|
1982
1868
|
|
1983
1869
|
Returns
|
1984
1870
|
-------
|
@@ -1997,16 +1883,13 @@ class GlossaryBrowser(Client):
|
|
1997
1883
|
"""
|
1998
1884
|
|
1999
1885
|
loop = asyncio.get_event_loop()
|
2000
|
-
response = loop.run_until_complete(
|
2001
|
-
self._async_get_terms_by_guid(term_guid, server_name)
|
2002
|
-
)
|
1886
|
+
response = loop.run_until_complete(self._async_get_terms_by_guid(term_guid))
|
2003
1887
|
|
2004
1888
|
return response
|
2005
1889
|
|
2006
1890
|
async def _async_get_terms_versions(
|
2007
1891
|
self,
|
2008
1892
|
term_guid: str,
|
2009
|
-
server_name: str = None,
|
2010
1893
|
start_from: int = 0,
|
2011
1894
|
page_size=None,
|
2012
1895
|
) -> dict | str:
|
@@ -2015,8 +1898,7 @@ class GlossaryBrowser(Client):
|
|
2015
1898
|
----------
|
2016
1899
|
term_guid : str
|
2017
1900
|
The GUID of the glossary term to retrieve.
|
2018
|
-
|
2019
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
1901
|
+
|
2020
1902
|
start_from : int, optional
|
2021
1903
|
The index of the first term to retrieve. Default is 0.
|
2022
1904
|
page_size : int, optional
|
@@ -2036,8 +1918,6 @@ class GlossaryBrowser(Client):
|
|
2036
1918
|
NotAuthorizedException
|
2037
1919
|
The principle specified by the user_id does not have authorization for the requested action.
|
2038
1920
|
"""
|
2039
|
-
if server_name is None:
|
2040
|
-
server_name = self.server_name
|
2041
1921
|
|
2042
1922
|
if page_size is None:
|
2043
1923
|
page_size = self.page_size
|
@@ -2045,7 +1925,7 @@ class GlossaryBrowser(Client):
|
|
2045
1925
|
validate_guid(term_guid)
|
2046
1926
|
|
2047
1927
|
url = (
|
2048
|
-
f"{self.platform_url}/servers/{
|
1928
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/terms/"
|
2049
1929
|
f"{term_guid}/history?startFrom={start_from}&pageSize={page_size}"
|
2050
1930
|
)
|
2051
1931
|
|
@@ -2055,7 +1935,6 @@ class GlossaryBrowser(Client):
|
|
2055
1935
|
def get_terms_versions(
|
2056
1936
|
self,
|
2057
1937
|
term_guid: str,
|
2058
|
-
server_name: str = None,
|
2059
1938
|
start_from: int = 0,
|
2060
1939
|
page_size=None,
|
2061
1940
|
) -> dict | str:
|
@@ -2064,8 +1943,7 @@ class GlossaryBrowser(Client):
|
|
2064
1943
|
----------
|
2065
1944
|
term_guid : str
|
2066
1945
|
The GUID of the glossary term to retrieve.
|
2067
|
-
|
2068
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
1946
|
+
|
2069
1947
|
start_from : int, optional
|
2070
1948
|
The index of the first term to retrieve. Default is 0.
|
2071
1949
|
page_size : int, optional
|
@@ -2088,9 +1966,7 @@ class GlossaryBrowser(Client):
|
|
2088
1966
|
|
2089
1967
|
loop = asyncio.get_event_loop()
|
2090
1968
|
response = loop.run_until_complete(
|
2091
|
-
self._async_get_terms_versions(
|
2092
|
-
term_guid, server_name, start_from, page_size
|
2093
|
-
)
|
1969
|
+
self._async_get_terms_versions(term_guid, start_from, page_size)
|
2094
1970
|
)
|
2095
1971
|
|
2096
1972
|
return response
|
@@ -2098,7 +1974,6 @@ class GlossaryBrowser(Client):
|
|
2098
1974
|
async def _async_get_term_revision_logs(
|
2099
1975
|
self,
|
2100
1976
|
term_guid: str,
|
2101
|
-
server_name: str = None,
|
2102
1977
|
start_from: int = 0,
|
2103
1978
|
page_size=None,
|
2104
1979
|
) -> dict | str:
|
@@ -2107,8 +1982,7 @@ class GlossaryBrowser(Client):
|
|
2107
1982
|
----------
|
2108
1983
|
term_guid : str
|
2109
1984
|
The GUID of the glossary term to retrieve.
|
2110
|
-
|
2111
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
1985
|
+
|
2112
1986
|
start_from : int, optional
|
2113
1987
|
The index of the first term to retrieve. Default is 0.
|
2114
1988
|
page_size : int, optional
|
@@ -2128,8 +2002,6 @@ class GlossaryBrowser(Client):
|
|
2128
2002
|
NotAuthorizedException
|
2129
2003
|
The principle specified by the user_id does not have authorization for the requested action.
|
2130
2004
|
"""
|
2131
|
-
if server_name is None:
|
2132
|
-
server_name = self.server_name
|
2133
2005
|
|
2134
2006
|
if page_size is None:
|
2135
2007
|
page_size = self.page_size
|
@@ -2137,7 +2009,7 @@ class GlossaryBrowser(Client):
|
|
2137
2009
|
validate_guid(term_guid)
|
2138
2010
|
|
2139
2011
|
url = (
|
2140
|
-
f"{self.platform_url}/servers/{
|
2012
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/elements/"
|
2141
2013
|
f"{term_guid}/notes/retrieve?startFrom={start_from}&pageSize={page_size}"
|
2142
2014
|
)
|
2143
2015
|
|
@@ -2147,7 +2019,6 @@ class GlossaryBrowser(Client):
|
|
2147
2019
|
def get_term_revision_logs(
|
2148
2020
|
self,
|
2149
2021
|
term_guid: str,
|
2150
|
-
server_name: str = None,
|
2151
2022
|
start_from: int = 0,
|
2152
2023
|
page_size=None,
|
2153
2024
|
) -> dict | str:
|
@@ -2156,8 +2027,7 @@ class GlossaryBrowser(Client):
|
|
2156
2027
|
----------
|
2157
2028
|
term_guid : str
|
2158
2029
|
The GUID of the glossary term to retrieve.
|
2159
|
-
|
2160
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2030
|
+
|
2161
2031
|
start_from : int, optional
|
2162
2032
|
The index of the first term to retrieve. Default is 0.
|
2163
2033
|
page_size : int, optional
|
@@ -2180,9 +2050,7 @@ class GlossaryBrowser(Client):
|
|
2180
2050
|
|
2181
2051
|
loop = asyncio.get_event_loop()
|
2182
2052
|
response = loop.run_until_complete(
|
2183
|
-
self._async_get_term_revision_logs(
|
2184
|
-
term_guid, server_name, start_from, page_size
|
2185
|
-
)
|
2053
|
+
self._async_get_term_revision_logs(term_guid, start_from, page_size)
|
2186
2054
|
)
|
2187
2055
|
|
2188
2056
|
return response
|
@@ -2190,7 +2058,6 @@ class GlossaryBrowser(Client):
|
|
2190
2058
|
async def _async_get_term_revision_history(
|
2191
2059
|
self,
|
2192
2060
|
term_revision_log_guid: str,
|
2193
|
-
server_name: str = None,
|
2194
2061
|
start_from: int = 0,
|
2195
2062
|
page_size=None,
|
2196
2063
|
) -> dict | str:
|
@@ -2200,8 +2067,7 @@ class GlossaryBrowser(Client):
|
|
2200
2067
|
----------
|
2201
2068
|
term_revision_log_guid : str
|
2202
2069
|
The GUID of the glossary term revision log to retrieve.
|
2203
|
-
|
2204
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2070
|
+
|
2205
2071
|
start_from : int, optional
|
2206
2072
|
The index of the first term to retrieve. Default is 0.
|
2207
2073
|
page_size : int, optional
|
@@ -2226,8 +2092,6 @@ class GlossaryBrowser(Client):
|
|
2226
2092
|
This revision history is created automatically. The text is supplied on the update request.
|
2227
2093
|
If no text is supplied, the value "None" is show.
|
2228
2094
|
"""
|
2229
|
-
if server_name is None:
|
2230
|
-
server_name = self.server_name
|
2231
2095
|
|
2232
2096
|
if page_size is None:
|
2233
2097
|
page_size = self.page_size
|
@@ -2235,7 +2099,7 @@ class GlossaryBrowser(Client):
|
|
2235
2099
|
validate_guid(term_revision_log_guid)
|
2236
2100
|
|
2237
2101
|
url = (
|
2238
|
-
f"{self.platform_url}/servers/{
|
2102
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/note-logs/"
|
2239
2103
|
f"{term_revision_log_guid}/notes/retrieve?startFrom={start_from}&pageSize={page_size}"
|
2240
2104
|
)
|
2241
2105
|
|
@@ -2245,7 +2109,6 @@ class GlossaryBrowser(Client):
|
|
2245
2109
|
def get_term_revision_history(
|
2246
2110
|
self,
|
2247
2111
|
term_revision_log_guid: str,
|
2248
|
-
server_name: str = None,
|
2249
2112
|
start_from: int = 0,
|
2250
2113
|
page_size=None,
|
2251
2114
|
) -> dict | str:
|
@@ -2255,8 +2118,7 @@ class GlossaryBrowser(Client):
|
|
2255
2118
|
----------
|
2256
2119
|
term_revision_log_guid : str
|
2257
2120
|
The GUID of the glossary term revision log to retrieve.
|
2258
|
-
|
2259
|
-
The name of the server to connect to. If not provided, the default server name will be used.
|
2121
|
+
|
2260
2122
|
start_from : int, optional
|
2261
2123
|
The index of the first term to retrieve. Default is 0.
|
2262
2124
|
page_size : int, optional
|
@@ -2285,7 +2147,7 @@ class GlossaryBrowser(Client):
|
|
2285
2147
|
loop = asyncio.get_event_loop()
|
2286
2148
|
response = loop.run_until_complete(
|
2287
2149
|
self._async_get_term_revision_history(
|
2288
|
-
term_revision_log_guid,
|
2150
|
+
term_revision_log_guid, start_from, page_size
|
2289
2151
|
)
|
2290
2152
|
)
|
2291
2153
|
|
@@ -2302,7 +2164,6 @@ class GlossaryBrowser(Client):
|
|
2302
2164
|
ignore_case: bool = False,
|
2303
2165
|
for_lineage: bool = False,
|
2304
2166
|
for_duplicate_processing: bool = False,
|
2305
|
-
server_name: str = None,
|
2306
2167
|
start_from: int = 0,
|
2307
2168
|
page_size: int = None,
|
2308
2169
|
) -> list | str:
|
@@ -2320,8 +2181,7 @@ class GlossaryBrowser(Client):
|
|
2320
2181
|
effective_time: str, [default=None], optional
|
2321
2182
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
2322
2183
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
2323
|
-
|
2324
|
-
The name of the server to configure.
|
2184
|
+
|
2325
2185
|
If not provided, the server name associated with the instance is used.
|
2326
2186
|
starts_with : bool, [default=False], optional
|
2327
2187
|
Starts with the supplied string.
|
@@ -2360,8 +2220,7 @@ class GlossaryBrowser(Client):
|
|
2360
2220
|
The request body also supports the specification of a glossaryGUID to restrict the search to within a single
|
2361
2221
|
glossary.
|
2362
2222
|
"""
|
2363
|
-
|
2364
|
-
server_name = self.server_name
|
2223
|
+
|
2365
2224
|
if page_size is None:
|
2366
2225
|
page_size = self.page_size
|
2367
2226
|
if effective_time is None:
|
@@ -2386,7 +2245,7 @@ class GlossaryBrowser(Client):
|
|
2386
2245
|
# body = body_slimmer(body)
|
2387
2246
|
|
2388
2247
|
url = (
|
2389
|
-
f"{self.platform_url}/servers/{
|
2248
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
2390
2249
|
f"terms/by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
2391
2250
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}&forLineage={for_lineage_s}&"
|
2392
2251
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
@@ -2410,7 +2269,6 @@ class GlossaryBrowser(Client):
|
|
2410
2269
|
ignore_case: bool = False,
|
2411
2270
|
for_lineage: bool = False,
|
2412
2271
|
for_duplicate_processing: bool = False,
|
2413
|
-
server_name: str = None,
|
2414
2272
|
start_from: int = 0,
|
2415
2273
|
page_size: int = None,
|
2416
2274
|
) -> list | str:
|
@@ -2429,8 +2287,7 @@ class GlossaryBrowser(Client):
|
|
2429
2287
|
effective_time: str, [default=None], optional
|
2430
2288
|
If specified, the term information will be retrieved if it is active at the `effective_time`.
|
2431
2289
|
Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
2432
|
-
|
2433
|
-
The name of the server to configure.
|
2290
|
+
|
2434
2291
|
If not provided, the server name associated with the instance is used.
|
2435
2292
|
starts_with : bool, [default=False], optional
|
2436
2293
|
Starts with the supplied string.
|
@@ -2482,7 +2339,6 @@ class GlossaryBrowser(Client):
|
|
2482
2339
|
ignore_case,
|
2483
2340
|
for_lineage,
|
2484
2341
|
for_duplicate_processing,
|
2485
|
-
server_name,
|
2486
2342
|
start_from,
|
2487
2343
|
page_size,
|
2488
2344
|
)
|
@@ -2497,13 +2353,10 @@ class GlossaryBrowser(Client):
|
|
2497
2353
|
self,
|
2498
2354
|
commemt_guid: str,
|
2499
2355
|
effective_time: str,
|
2500
|
-
server_name: str = None,
|
2501
2356
|
for_lineage: bool = False,
|
2502
2357
|
for_duplicate_processing: bool = False,
|
2503
2358
|
) -> dict | list:
|
2504
2359
|
"""Retrieve the comment specified by the comment GUID"""
|
2505
|
-
if server_name is None:
|
2506
|
-
server_name = self.server_name
|
2507
2360
|
|
2508
2361
|
validate_guid(commemt_guid)
|
2509
2362
|
|
@@ -2516,7 +2369,7 @@ class GlossaryBrowser(Client):
|
|
2516
2369
|
body = {"effective_time": effective_time}
|
2517
2370
|
|
2518
2371
|
url = (
|
2519
|
-
f"{self.platform_url}/servers/{
|
2372
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/comments/"
|
2520
2373
|
f"{commemt_guid}?forLineage={for_lineage_s}&"
|
2521
2374
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
2522
2375
|
)
|
@@ -2532,15 +2385,11 @@ class GlossaryBrowser(Client):
|
|
2532
2385
|
is_public: bool,
|
2533
2386
|
comment_type: str,
|
2534
2387
|
comment_text: str,
|
2535
|
-
server_name: str = None,
|
2536
2388
|
for_lineage: bool = False,
|
2537
2389
|
for_duplicate_processing: bool = False,
|
2538
2390
|
) -> str:
|
2539
2391
|
"""Reply to a comment"""
|
2540
2392
|
|
2541
|
-
if server_name is None:
|
2542
|
-
server_name = self.server_name
|
2543
|
-
|
2544
2393
|
validate_guid(comment_guid)
|
2545
2394
|
validate_name(comment_type)
|
2546
2395
|
|
@@ -2556,7 +2405,7 @@ class GlossaryBrowser(Client):
|
|
2556
2405
|
}
|
2557
2406
|
|
2558
2407
|
url = (
|
2559
|
-
f"{self.platform_url}/servers/{
|
2408
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/comments/"
|
2560
2409
|
f"{comment_guid}/replies?isPublic={is_public_s}&forLineage={for_lineage_s}&"
|
2561
2410
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
2562
2411
|
)
|
@@ -2572,14 +2421,11 @@ class GlossaryBrowser(Client):
|
|
2572
2421
|
is_public: bool,
|
2573
2422
|
comment_type: str,
|
2574
2423
|
comment_text: str,
|
2575
|
-
server_name: str = None,
|
2576
2424
|
is_merge_update: bool = False,
|
2577
2425
|
for_lineage: bool = False,
|
2578
2426
|
for_duplicate_processing: bool = False,
|
2579
2427
|
) -> str:
|
2580
2428
|
"""Update the specified comment"""
|
2581
|
-
if server_name is None:
|
2582
|
-
server_name = self.server_name
|
2583
2429
|
|
2584
2430
|
validate_guid(comment_guid)
|
2585
2431
|
validate_name(comment_type)
|
@@ -2596,7 +2442,7 @@ class GlossaryBrowser(Client):
|
|
2596
2442
|
}
|
2597
2443
|
|
2598
2444
|
url = (
|
2599
|
-
f"{self.platform_url}/servers/{
|
2445
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/comments/"
|
2600
2446
|
f"{comment_guid}/replies?isPublic={is_public_s}&forLineage={for_lineage_s}&"
|
2601
2447
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|
2602
2448
|
)
|
@@ -2617,13 +2463,11 @@ class GlossaryBrowser(Client):
|
|
2617
2463
|
ignore_case: bool = False,
|
2618
2464
|
for_lineage: bool = False,
|
2619
2465
|
for_duplicate_processing: bool = False,
|
2620
|
-
server_name: str = None,
|
2621
2466
|
start_from: int = 0,
|
2622
2467
|
page_size: int = None,
|
2623
2468
|
):
|
2624
2469
|
"""Find comments by search string"""
|
2625
|
-
|
2626
|
-
server_name = self.server_name
|
2470
|
+
|
2627
2471
|
if page_size is None:
|
2628
2472
|
page_size = self.page_size
|
2629
2473
|
if effective_time is None:
|
@@ -2648,7 +2492,7 @@ class GlossaryBrowser(Client):
|
|
2648
2492
|
# body = body_slimmer(body)
|
2649
2493
|
|
2650
2494
|
url = (
|
2651
|
-
f"{self.platform_url}/servers/{
|
2495
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-browser/glossaries/"
|
2652
2496
|
f"terms/by-search-string?startFrom={start_from}&pageSize={page_size}&startsWith={starts_with_s}&"
|
2653
2497
|
f"endsWith={ends_with_s}&ignoreCase={ignore_case_s}&forLineage={for_lineage_s}&"
|
2654
2498
|
f"forDuplicateProcessing={for_duplicate_processing_s}"
|