Skip to content

Commit 5139f2a

Browse files
✨ feat: add get_all_app_backups to HTTPClient in http_client.py
1 parent 02c08c3 commit 5139f2a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

squarecloud/http/http_client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,15 @@ async def domain_analytics(self, app_id: str) -> Response:
647647
response: Response = await self.request(route)
648648
return response
649649

650+
async def get_all_app_backups(self, app_id: str) -> Response:
651+
"""
652+
Returns a list of all backups of the specified application
653+
:return:
654+
"""
655+
route: Router = Router(Endpoint.all_backups(), app_id=app_id)
656+
response: Response = await self.request(route)
657+
return response
658+
650659
@property
651660
def last_response(self) -> Response | None:
652661
"""

0 commit comments

Comments
 (0)