|
10 | 10 | Type,
|
11 | 11 | TypeVar,
|
12 | 12 | Union,
|
| 13 | + overload, |
13 | 14 | )
|
14 | 15 |
|
15 | 16 | from pydantic.v1 import StrictStr, constr
|
@@ -460,8 +461,8 @@ async def save_replacing_cm(
|
460 | 461 | query_params, request = Save.prepare_request_replacing_cm(
|
461 | 462 | entity=entity,
|
462 | 463 | replace_atlan_tags=replace_atlan_tags,
|
| 464 | + client=self._async_client, |
463 | 465 | )
|
464 |
| - Save.validate_and_flush_entities(request.entities, self._async_client) |
465 | 466 | raw_json = await self._async_client._call_api(
|
466 | 467 | BULK_UPDATE, query_params, request
|
467 | 468 | )
|
@@ -929,6 +930,39 @@ async def _update_asset_by_attribute(
|
929 | 930 | # Process response using shared logic
|
930 | 931 | return UpdateAssetByAttribute.process_response(raw_json, asset_type)
|
931 | 932 |
|
| 933 | + @overload |
| 934 | + async def update_certificate( |
| 935 | + self, |
| 936 | + asset_type: Type[AtlasGlossaryTerm], |
| 937 | + qualified_name: str, |
| 938 | + name: str, |
| 939 | + certificate_status: CertificateStatus, |
| 940 | + glossary_guid: str, |
| 941 | + message: Optional[str] = None, |
| 942 | + ) -> Optional[AtlasGlossaryTerm]: ... |
| 943 | + |
| 944 | + @overload |
| 945 | + async def update_certificate( |
| 946 | + self, |
| 947 | + asset_type: Type[AtlasGlossaryCategory], |
| 948 | + qualified_name: str, |
| 949 | + name: str, |
| 950 | + certificate_status: CertificateStatus, |
| 951 | + glossary_guid: str, |
| 952 | + message: Optional[str] = None, |
| 953 | + ) -> Optional[AtlasGlossaryCategory]: ... |
| 954 | + |
| 955 | + @overload |
| 956 | + async def update_certificate( |
| 957 | + self, |
| 958 | + asset_type: Type[A], |
| 959 | + qualified_name: str, |
| 960 | + name: str, |
| 961 | + certificate_status: CertificateStatus, |
| 962 | + glossary_guid: Optional[str] = None, |
| 963 | + message: Optional[str] = None, |
| 964 | + ) -> Optional[A]: ... |
| 965 | + |
932 | 966 | async def update_certificate(
|
933 | 967 | self,
|
934 | 968 | asset_type: Type[A],
|
@@ -965,6 +999,33 @@ async def update_certificate(
|
965 | 999 | # Execute update using shared logic
|
966 | 1000 | return await self._update_asset_by_attribute(asset, asset_type, qualified_name)
|
967 | 1001 |
|
| 1002 | + @overload |
| 1003 | + async def remove_certificate( |
| 1004 | + self, |
| 1005 | + asset_type: Type[AtlasGlossaryTerm], |
| 1006 | + qualified_name: str, |
| 1007 | + name: str, |
| 1008 | + glossary_guid: str, |
| 1009 | + ) -> Optional[AtlasGlossaryTerm]: ... |
| 1010 | + |
| 1011 | + @overload |
| 1012 | + async def remove_certificate( |
| 1013 | + self, |
| 1014 | + asset_type: Type[AtlasGlossaryCategory], |
| 1015 | + qualified_name: str, |
| 1016 | + name: str, |
| 1017 | + glossary_guid: str, |
| 1018 | + ) -> Optional[AtlasGlossaryCategory]: ... |
| 1019 | + |
| 1020 | + @overload |
| 1021 | + async def remove_certificate( |
| 1022 | + self, |
| 1023 | + asset_type: Type[A], |
| 1024 | + qualified_name: str, |
| 1025 | + name: str, |
| 1026 | + glossary_guid: Optional[str] = None, |
| 1027 | + ) -> Optional[A]: ... |
| 1028 | + |
968 | 1029 | async def remove_certificate(
|
969 | 1030 | self,
|
970 | 1031 | asset_type: Type[A],
|
@@ -994,6 +1055,36 @@ async def remove_certificate(
|
994 | 1055 | # Execute update using shared logic
|
995 | 1056 | return await self._update_asset_by_attribute(asset, asset_type, qualified_name)
|
996 | 1057 |
|
| 1058 | + @overload |
| 1059 | + async def update_announcement( |
| 1060 | + self, |
| 1061 | + asset_type: Type[AtlasGlossaryTerm], |
| 1062 | + qualified_name: str, |
| 1063 | + name: str, |
| 1064 | + announcement: Announcement, |
| 1065 | + glossary_guid: str, |
| 1066 | + ) -> Optional[AtlasGlossaryTerm]: ... |
| 1067 | + |
| 1068 | + @overload |
| 1069 | + async def update_announcement( |
| 1070 | + self, |
| 1071 | + asset_type: Type[AtlasGlossaryCategory], |
| 1072 | + qualified_name: str, |
| 1073 | + name: str, |
| 1074 | + announcement: Announcement, |
| 1075 | + glossary_guid: str, |
| 1076 | + ) -> Optional[AtlasGlossaryCategory]: ... |
| 1077 | + |
| 1078 | + @overload |
| 1079 | + async def update_announcement( |
| 1080 | + self, |
| 1081 | + asset_type: Type[A], |
| 1082 | + qualified_name: str, |
| 1083 | + name: str, |
| 1084 | + announcement: Announcement, |
| 1085 | + glossary_guid: Optional[str] = None, |
| 1086 | + ) -> Optional[A]: ... |
| 1087 | + |
997 | 1088 | async def update_announcement(
|
998 | 1089 | self,
|
999 | 1090 | asset_type: Type[A],
|
@@ -1026,6 +1117,33 @@ async def update_announcement(
|
1026 | 1117 | # Execute update using shared logic
|
1027 | 1118 | return await self._update_asset_by_attribute(asset, asset_type, qualified_name)
|
1028 | 1119 |
|
| 1120 | + @overload |
| 1121 | + async def remove_announcement( |
| 1122 | + self, |
| 1123 | + asset_type: Type[AtlasGlossaryTerm], |
| 1124 | + qualified_name: str, |
| 1125 | + name: str, |
| 1126 | + glossary_guid: str, |
| 1127 | + ) -> Optional[AtlasGlossaryTerm]: ... |
| 1128 | + |
| 1129 | + @overload |
| 1130 | + async def remove_announcement( |
| 1131 | + self, |
| 1132 | + asset_type: Type[AtlasGlossaryCategory], |
| 1133 | + qualified_name: str, |
| 1134 | + name: str, |
| 1135 | + glossary_guid: str, |
| 1136 | + ) -> Optional[AtlasGlossaryCategory]: ... |
| 1137 | + |
| 1138 | + @overload |
| 1139 | + async def remove_announcement( |
| 1140 | + self, |
| 1141 | + asset_type: Type[A], |
| 1142 | + qualified_name: str, |
| 1143 | + name: str, |
| 1144 | + glossary_guid: Optional[str] = None, |
| 1145 | + ) -> Optional[A]: ... |
| 1146 | + |
1029 | 1147 | async def remove_announcement(
|
1030 | 1148 | self,
|
1031 | 1149 | asset_type: Type[A],
|
|
0 commit comments