Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = 'squarecloud-api'
version = '3.7.2'
version = '3.7.4'
description = 'SquareCloud API wrapper'
authors = ['Robert Nogueira <robertlucasnogueira@gmail.com>']
repository = 'https://github.com/squarecloudofc/wrapper-api-py'
Expand Down
2 changes: 1 addition & 1 deletion squarecloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
'utils',
]

__version__ = '3.7.2'
__version__ = '3.7.4'
8 changes: 4 additions & 4 deletions squarecloud/http/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class Endpoint:
'APP_DATA': {'METHOD': 'GET', 'PATH': '/apps/{app_id}'},
'APP_STATUS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/status'},
'ALL_APPS_STATUS': {'METHOD': 'GET', 'PATH': '/apps/status'},
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/backups'},
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/snapshots'},
'LOGS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/logs'},
'START': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/start'},
'STOP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/stop'},
'RESTART': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/restart'},
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/backups'},
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/snapshots'},
'COMMIT': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/commit'},
'DELETE_APP': {'METHOD': 'DELETE', 'PATH': '/apps/{app_id}'},
'UPLOAD_APP': {'METHOD': 'POST', 'PATH': '/apps'},
Expand Down Expand Up @@ -148,7 +148,7 @@ def restart(cls) -> Endpoint:
def backup(cls) -> Endpoint:
"""
Returns an Endpoint object that represents the
/apps/{app_id}/backups endpoint.
/apps/{app_id}/snapshots endpoint.
"""
return cls('BACKUP')

Expand Down Expand Up @@ -244,7 +244,7 @@ def custom_domain(cls) -> Endpoint:
def all_backups(cls) -> Endpoint:
"""
Returns an Endpoint object that represents the
/apps/{app_id}/backups endpoint.
/apps/{app_id}/snapshots endpoint.
"""
return cls('ALL_BACKUPS')

Expand Down
2 changes: 1 addition & 1 deletion squarecloud/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def request(self, route: Router, **kwargs: Any) -> Response:
"""
headers = {
'Authorization': self.api_key,
'User-Agent': 'squarecloud-api/3.5.1',
'User-Agent': 'squarecloud-sdk-py/3.7.4',
}
extra_error_kwargs: dict[str, Any] = {}

Expand Down