Skip to content

Commit 02c08c3

Browse files
✨ feat: implement all_app_backups method in Client in client.py
1 parent b5acda3 commit 02c08c3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

squarecloud/client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
from typing_extensions import deprecated
99

1010
from .app import Application
11-
from .data import ( # BackupInfo,
11+
from .data import (
1212
AppData,
1313
Backup,
14+
BackupInfo,
1415
DeployData,
1516
DomainAnalytics,
1617
FileInfo,
@@ -737,3 +738,10 @@ async def domain_analytics(
737738
app_id=app_id,
738739
)
739740
return DomainAnalytics(**response.response)
741+
742+
@_notify_listener(Endpoint.all_backups())
743+
async def all_app_backups(self, app_id: str, **_kwargs):
744+
response: Response = await self._http.get_all_app_backups(
745+
app_id=app_id
746+
)
747+
return [BackupInfo(**backup_data) for backup_data in response.response]

0 commit comments

Comments
 (0)