pyegeria 5.3.8.2__py3-none-any.whl → 5.3.8.4__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.
- pyegeria/__init__.py +3 -1
- pyegeria/_client.py +50 -0
- pyegeria/commands/cat/dr_egeria_md.py +50 -47
- pyegeria/commands/cat/glossary_actions.py +1 -1
- pyegeria/commands/cat/list_categories.py +9 -2
- pyegeria/commands/cat/list_glossaries.py +11 -1
- pyegeria/commands/cat/list_terms.py +2 -1
- pyegeria/glossary_browser_omvs.py +2643 -1972
- pyegeria/glossary_manager_omvs.py +147 -7
- pyegeria/md_processing_utils.py +456 -88
- pyegeria/project_manager_omvs.py +11 -6
- pyegeria/solution_architect_omvs.py +1749 -259
- pyegeria/template_manager_omvs.py +9 -4
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/METADATA +1 -1
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/RECORD +19 -19
- /pyegeria/{shared_state.py → dr_egeria_state.py} +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.4.dist-info}/entry_points.txt +0 -0
@@ -143,35 +143,38 @@ class GlossaryManager(GlossaryBrowser):
|
|
143
143
|
)
|
144
144
|
return response
|
145
145
|
|
146
|
-
async def _async_delete_glossary(self, glossary_guid: str) -> None:
|
146
|
+
async def _async_delete_glossary(self, glossary_guid: str, cascade:bool = False) -> None:
|
147
147
|
"""Delete glossary. Async version.
|
148
148
|
|
149
149
|
Parameters
|
150
150
|
----------
|
151
151
|
glossary_guid: str
|
152
152
|
The ID of the glossary to delete.
|
153
|
-
|
153
|
+
cascade: bool, optional, default = False
|
154
|
+
If true, then delete all terms and categories in the glossary as well.
|
154
155
|
|
155
156
|
Returns
|
156
157
|
-------
|
157
158
|
None
|
158
159
|
|
159
160
|
"""
|
160
|
-
|
161
|
+
cascade_str = str(cascade).lower()
|
161
162
|
url = (
|
162
163
|
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
163
|
-
f"{glossary_guid}/remove"
|
164
|
+
f"{glossary_guid}/remove?cascadedDelete={cascade_str}"
|
164
165
|
)
|
165
166
|
|
166
167
|
await self._async_make_request("POST", url)
|
167
168
|
|
168
|
-
def delete_glossary(self, glossary_guid: str) -> None:
|
169
|
-
"""
|
169
|
+
def delete_glossary(self, glossary_guid: str, cascade: bool = False) -> None:
|
170
|
+
"""Delete a new glossary.
|
170
171
|
|
171
172
|
Parameters
|
172
173
|
----------
|
173
174
|
glossary_guid: str
|
174
175
|
The ID of the glossary to delete.
|
176
|
+
cascade: bool, optional, default = False
|
177
|
+
If true, then delete all terms and categories in the glossary as well.
|
175
178
|
|
176
179
|
|
177
180
|
Returns
|
@@ -180,7 +183,7 @@ class GlossaryManager(GlossaryBrowser):
|
|
180
183
|
|
181
184
|
"""
|
182
185
|
loop = asyncio.get_event_loop()
|
183
|
-
loop.run_until_complete(self._async_delete_glossary(glossary_guid))
|
186
|
+
loop.run_until_complete(self._async_delete_glossary(glossary_guid, cascade))
|
184
187
|
|
185
188
|
async def _async_update_glossary(
|
186
189
|
self,
|
@@ -594,8 +597,145 @@ class GlossaryManager(GlossaryBrowser):
|
|
594
597
|
self._async_delete_category(category_guid)
|
595
598
|
)
|
596
599
|
|
600
|
+
async def _async_set_parent_category(
|
601
|
+
self,
|
602
|
+
parent_category_guid: str, child_category_guid: str) -> None:
|
603
|
+
"""Set parent category Async Version.
|
604
|
+
|
605
|
+
Parameters
|
606
|
+
----------
|
607
|
+
parent_category_guid: str,
|
608
|
+
Unique identifier for the parent category.
|
609
|
+
child_category_guid: str,
|
610
|
+
Unique identifier for the child category.
|
611
|
+
|
612
|
+
Returns
|
613
|
+
-------
|
614
|
+
None
|
615
|
+
|
616
|
+
Raises
|
617
|
+
------
|
618
|
+
|
619
|
+
InvalidParameterException
|
620
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
621
|
+
PropertyServerException
|
622
|
+
Raised by the server when an issue arises in processing a valid request
|
623
|
+
NotAuthorizedException
|
624
|
+
The principle specified by the user_id does not have authorization for the requested action
|
625
|
+
ConfigurationErrorException
|
626
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
627
|
+
invalid or make the new call invalid.
|
628
|
+
"""
|
597
629
|
|
630
|
+
url = (
|
631
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
632
|
+
f"categories/{parent_category_guid}/subcategories/{child_category_guid}"
|
633
|
+
)
|
598
634
|
|
635
|
+
await self._async_make_request("POST", url)
|
636
|
+
|
637
|
+
def set_parent_category(self, parent_category_guid: str, child_category_guid: str) -> None:
|
638
|
+
"""Set parent category
|
639
|
+
|
640
|
+
Parameters
|
641
|
+
----------
|
642
|
+
parent_category_guid: str,
|
643
|
+
Unique identifier for the parent category.
|
644
|
+
child_category_guid: str,
|
645
|
+
Unique identifier for the child category.
|
646
|
+
|
647
|
+
Returns
|
648
|
+
-------
|
649
|
+
None
|
650
|
+
|
651
|
+
Raises
|
652
|
+
------
|
653
|
+
|
654
|
+
InvalidParameterException
|
655
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
656
|
+
PropertyServerException
|
657
|
+
Raised by the server when an issue arises in processing a valid request
|
658
|
+
NotAuthorizedException
|
659
|
+
The principle specified by the user_id does not have authorization for the requested action
|
660
|
+
ConfigurationErrorException
|
661
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
662
|
+
invalid or make the new call invalid.
|
663
|
+
"""
|
664
|
+
|
665
|
+
loop = asyncio.get_event_loop()
|
666
|
+
loop.run_until_complete(
|
667
|
+
self._async_set_parent_category(parent_category_guid,child_category_guid)
|
668
|
+
)
|
669
|
+
|
670
|
+
async def _async_remove_parent_category(
|
671
|
+
self,
|
672
|
+
parent_category_guid: str, child_category_guid: str) -> None:
|
673
|
+
"""Remove parent category relationship. Async Version.
|
674
|
+
|
675
|
+
Parameters
|
676
|
+
----------
|
677
|
+
parent_category_guid: str,
|
678
|
+
Unique identifier for the parent category.
|
679
|
+
child_category_guid: str,
|
680
|
+
Unique identifier for the child category.
|
681
|
+
|
682
|
+
Returns
|
683
|
+
-------
|
684
|
+
None
|
685
|
+
|
686
|
+
Raises
|
687
|
+
------
|
688
|
+
|
689
|
+
InvalidParameterException
|
690
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
691
|
+
PropertyServerException
|
692
|
+
Raised by the server when an issue arises in processing a valid request
|
693
|
+
NotAuthorizedException
|
694
|
+
The principle specified by the user_id does not have authorization for the requested action
|
695
|
+
ConfigurationErrorException
|
696
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
697
|
+
invalid or make the new call invalid.
|
698
|
+
"""
|
699
|
+
|
700
|
+
url = (
|
701
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
702
|
+
f"categories/{parent_category_guid}/subcategories/{child_category_guid}/remove"
|
703
|
+
)
|
704
|
+
|
705
|
+
await self._async_make_request("POST", url)
|
706
|
+
|
707
|
+
def remove_parent_category(self, parent_category_guid: str, child_category_guid: str) -> None:
|
708
|
+
"""Remove parent category relationship.
|
709
|
+
|
710
|
+
Parameters
|
711
|
+
----------
|
712
|
+
parent_category_guid: str,
|
713
|
+
Unique identifier for the parent category.
|
714
|
+
child_category_guid: str,
|
715
|
+
Unique identifier for the child category.
|
716
|
+
|
717
|
+
Returns
|
718
|
+
-------
|
719
|
+
None
|
720
|
+
|
721
|
+
Raises
|
722
|
+
------
|
723
|
+
|
724
|
+
InvalidParameterException
|
725
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
726
|
+
PropertyServerException
|
727
|
+
Raised by the server when an issue arises in processing a valid request
|
728
|
+
NotAuthorizedException
|
729
|
+
The principle specified by the user_id does not have authorization for the requested action
|
730
|
+
ConfigurationErrorException
|
731
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
732
|
+
invalid or make the new call invalid.
|
733
|
+
"""
|
734
|
+
|
735
|
+
loop = asyncio.get_event_loop()
|
736
|
+
loop.run_until_complete(
|
737
|
+
self._async_remove_parent_category(parent_category_guid, child_category_guid)
|
738
|
+
)
|
599
739
|
|
600
740
|
#
|
601
741
|
# Terms
|