@@ -52,7 +52,7 @@ async def restart_addon(self, addon: str) -> None:
5252 """Restart an addon."""
5353 await self ._client .post (f"addons/{ addon } /restart" )
5454
55- async def addon_options (self , addon : str , options : AddonsOptions ) -> None :
55+ async def set_addon_options (self , addon : str , options : AddonsOptions ) -> None :
5656 """Set options for addon."""
5757 await self ._client .post (f"addons/{ addon } /options" , json = options .to_dict ())
5858
@@ -78,11 +78,13 @@ async def rebuild_addon(self, addon: str) -> None:
7878 """Rebuild an addon (only available for local addons built from source)."""
7979 await self ._client .post (f"addons/{ addon } /rebuild" )
8080
81- async def addon_stdin (self , addon : str , stdin : bytes ) -> None :
81+ async def write_addon_stdin (self , addon : str , stdin : bytes ) -> None :
8282 """Write to stdin of an addon (if supported by addon)."""
8383 await self ._client .post (f"addons/{ addon } /stdin" , data = stdin )
8484
85- async def addon_security (self , addon : str , options : AddonsSecurityOptions ) -> None :
85+ async def set_addon_security (
86+ self , addon : str , options : AddonsSecurityOptions
87+ ) -> None :
8688 """Set security options for addon."""
8789 await self ._client .post (f"addons/{ addon } /security" , json = options .to_dict ())
8890
@@ -91,9 +93,4 @@ async def addon_stats(self, addon: str) -> AddonsStats:
9193 result = await self ._client .get (f"addons/{ addon } /stats" )
9294 return AddonsStats .from_dict (result .data )
9395
94- # Aliases for clarity
95- set_addon_options = addon_options
96- write_addon_stdin = addon_stdin
97- set_addon_security = addon_security
98-
9996 # Omitted for now - Log endpoints
0 commit comments