pyegeria 5.3.8.2__py3-none-any.whl → 5.3.8.3__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 +2 -1
- pyegeria/_client.py +50 -0
- pyegeria/commands/cat/dr_egeria_md.py +40 -47
- pyegeria/commands/cat/list_categories.py +8 -1
- pyegeria/glossary_browser_omvs.py +882 -104
- pyegeria/glossary_manager_omvs.py +137 -0
- pyegeria/md_processing_utils.py +257 -74
- pyegeria/solution_architect_omvs.py +1749 -259
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.3.dist-info}/METADATA +1 -1
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.3.dist-info}/RECORD +14 -14
- /pyegeria/{shared_state.py → dr_egeria_state.py} +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.3.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.3.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.8.2.dist-info → pyegeria-5.3.8.3.dist-info}/entry_points.txt +0 -0
@@ -594,8 +594,145 @@ class GlossaryManager(GlossaryBrowser):
|
|
594
594
|
self._async_delete_category(category_guid)
|
595
595
|
)
|
596
596
|
|
597
|
+
async def _async_set_parent_category(
|
598
|
+
self,
|
599
|
+
parent_category_guid: str, child_category_guid: str) -> None:
|
600
|
+
"""Set parent category Async Version.
|
601
|
+
|
602
|
+
Parameters
|
603
|
+
----------
|
604
|
+
parent_category_guid: str,
|
605
|
+
Unique identifier for the parent category.
|
606
|
+
child_category_guid: str,
|
607
|
+
Unique identifier for the child category.
|
608
|
+
|
609
|
+
Returns
|
610
|
+
-------
|
611
|
+
None
|
612
|
+
|
613
|
+
Raises
|
614
|
+
------
|
615
|
+
|
616
|
+
InvalidParameterException
|
617
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
618
|
+
PropertyServerException
|
619
|
+
Raised by the server when an issue arises in processing a valid request
|
620
|
+
NotAuthorizedException
|
621
|
+
The principle specified by the user_id does not have authorization for the requested action
|
622
|
+
ConfigurationErrorException
|
623
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
624
|
+
invalid or make the new call invalid.
|
625
|
+
"""
|
626
|
+
|
627
|
+
url = (
|
628
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
629
|
+
f"categories/{parent_category_guid}/subcategories/{child_category_guid}"
|
630
|
+
)
|
631
|
+
|
632
|
+
await self._async_make_request("POST", url)
|
633
|
+
|
634
|
+
def set_parent_category(self, parent_category_guid: str, child_category_guid: str) -> None:
|
635
|
+
"""Set parent category
|
636
|
+
|
637
|
+
Parameters
|
638
|
+
----------
|
639
|
+
parent_category_guid: str,
|
640
|
+
Unique identifier for the parent category.
|
641
|
+
child_category_guid: str,
|
642
|
+
Unique identifier for the child category.
|
643
|
+
|
644
|
+
Returns
|
645
|
+
-------
|
646
|
+
None
|
647
|
+
|
648
|
+
Raises
|
649
|
+
------
|
650
|
+
|
651
|
+
InvalidParameterException
|
652
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
653
|
+
PropertyServerException
|
654
|
+
Raised by the server when an issue arises in processing a valid request
|
655
|
+
NotAuthorizedException
|
656
|
+
The principle specified by the user_id does not have authorization for the requested action
|
657
|
+
ConfigurationErrorException
|
658
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
659
|
+
invalid or make the new call invalid.
|
660
|
+
"""
|
661
|
+
|
662
|
+
loop = asyncio.get_event_loop()
|
663
|
+
loop.run_until_complete(
|
664
|
+
self._async_set_parent_category(parent_category_guid,child_category_guid)
|
665
|
+
)
|
666
|
+
|
667
|
+
async def _async_remove_parent_category(
|
668
|
+
self,
|
669
|
+
parent_category_guid: str, child_category_guid: str) -> None:
|
670
|
+
"""Remove parent category relationship. Async Version.
|
671
|
+
|
672
|
+
Parameters
|
673
|
+
----------
|
674
|
+
parent_category_guid: str,
|
675
|
+
Unique identifier for the parent category.
|
676
|
+
child_category_guid: str,
|
677
|
+
Unique identifier for the child category.
|
678
|
+
|
679
|
+
Returns
|
680
|
+
-------
|
681
|
+
None
|
597
682
|
|
683
|
+
Raises
|
684
|
+
------
|
598
685
|
|
686
|
+
InvalidParameterException
|
687
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
688
|
+
PropertyServerException
|
689
|
+
Raised by the server when an issue arises in processing a valid request
|
690
|
+
NotAuthorizedException
|
691
|
+
The principle specified by the user_id does not have authorization for the requested action
|
692
|
+
ConfigurationErrorException
|
693
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
694
|
+
invalid or make the new call invalid.
|
695
|
+
"""
|
696
|
+
|
697
|
+
url = (
|
698
|
+
f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
|
699
|
+
f"categories/{parent_category_guid}/subcategories/{child_category_guid}/remove"
|
700
|
+
)
|
701
|
+
|
702
|
+
await self._async_make_request("POST", url)
|
703
|
+
|
704
|
+
def remove_parent_category(self, parent_category_guid: str, child_category_guid: str) -> None:
|
705
|
+
"""Remove parent category relationship.
|
706
|
+
|
707
|
+
Parameters
|
708
|
+
----------
|
709
|
+
parent_category_guid: str,
|
710
|
+
Unique identifier for the parent category.
|
711
|
+
child_category_guid: str,
|
712
|
+
Unique identifier for the child category.
|
713
|
+
|
714
|
+
Returns
|
715
|
+
-------
|
716
|
+
None
|
717
|
+
|
718
|
+
Raises
|
719
|
+
------
|
720
|
+
|
721
|
+
InvalidParameterException
|
722
|
+
If the client passes incorrect parameters on the request - such as bad URLs or invalid values
|
723
|
+
PropertyServerException
|
724
|
+
Raised by the server when an issue arises in processing a valid request
|
725
|
+
NotAuthorizedException
|
726
|
+
The principle specified by the user_id does not have authorization for the requested action
|
727
|
+
ConfigurationErrorException
|
728
|
+
Raised when configuration parameters passed on earlier calls turn out to be
|
729
|
+
invalid or make the new call invalid.
|
730
|
+
"""
|
731
|
+
|
732
|
+
loop = asyncio.get_event_loop()
|
733
|
+
loop.run_until_complete(
|
734
|
+
self._async_remove_parent_category(parent_category_guid, child_category_guid)
|
735
|
+
)
|
599
736
|
|
600
737
|
#
|
601
738
|
# Terms
|