Skip to content

Commit 7a9e026

Browse files
[deprecate] deprecating all backups functions, since will be changed to snapshots
1 parent 8fdb42f commit 7a9e026

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

squarecloud/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from functools import wraps
44
from io import BytesIO
55
from typing import TYPE_CHECKING, Any, Callable, Coroutine, TypeVar
6+
from typing_extensions import deprecated
67

78
from squarecloud import errors
89

@@ -79,6 +80,7 @@ def logs(self) -> LogsData:
7980
return self._logs
8081

8182
@property
83+
@deprecated("this property will be removed in future versions, use the 'snapshot' property instead")
8284
def backup(self) -> Backup:
8385
"""
8486
The backup method is a property that returns the cached Backup of
@@ -459,6 +461,7 @@ async def status(self, *_args, **_kwargs) -> StatusData:
459461

460462
@_update_cache
461463
@_notify_listener(Endpoint.backup())
464+
@deprecated("this method will be removed in future versions, use the 'snapshot' method instead")
462465
async def backup(self, *_args, **_kwargs) -> Backup:
463466
"""
464467
The backup function is used to create a backup of the application.

squarecloud/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ async def restart_app(self, app_id: str, **_kwargs) -> Response:
279279

280280
@validate
281281
@_notify_listener(Endpoint.backup())
282+
@deprecated("this method will be removed in future versions, use the 'snapshot' method instead")
282283
async def backup(self, app_id: str, **_kwargs) -> Backup:
283284
"""
284285
The backup method is used to backup an application.

0 commit comments

Comments
 (0)