Skip to content

Commit 85c7f3c

Browse files
authored
Merge pull request squarecloudofc#14 from Jhonatan-Jeferson/main
Fixing backup routes, changing user-agent and changing version to the new patch
2 parents 9f03107 + 63ee3ab commit 85c7f3c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = 'squarecloud-api'
3-
version = '3.7.2'
3+
version = '3.7.4'
44
description = 'SquareCloud API wrapper'
55
authors = ['Robert Nogueira <[email protected]>']
66
repository = 'https://github.com/squarecloudofc/wrapper-api-py'

squarecloud/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
'utils',
4646
]
4747

48-
__version__ = '3.7.2'
48+
__version__ = '3.7.4'

squarecloud/http/endpoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class Endpoint:
99
'APP_DATA': {'METHOD': 'GET', 'PATH': '/apps/{app_id}'},
1010
'APP_STATUS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/status'},
1111
'ALL_APPS_STATUS': {'METHOD': 'GET', 'PATH': '/apps/status'},
12-
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/backups'},
12+
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/snapshots'},
1313
'LOGS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/logs'},
1414
'START': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/start'},
1515
'STOP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/stop'},
1616
'RESTART': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/restart'},
17-
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/backups'},
17+
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/snapshots'},
1818
'COMMIT': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/commit'},
1919
'DELETE_APP': {'METHOD': 'DELETE', 'PATH': '/apps/{app_id}'},
2020
'UPLOAD_APP': {'METHOD': 'POST', 'PATH': '/apps'},
@@ -148,7 +148,7 @@ def restart(cls) -> Endpoint:
148148
def backup(cls) -> Endpoint:
149149
"""
150150
Returns an Endpoint object that represents the
151-
/apps/{app_id}/backups endpoint.
151+
/apps/{app_id}/snapshots endpoint.
152152
"""
153153
return cls('BACKUP')
154154

@@ -244,7 +244,7 @@ def custom_domain(cls) -> Endpoint:
244244
def all_backups(cls) -> Endpoint:
245245
"""
246246
Returns an Endpoint object that represents the
247-
/apps/{app_id}/backups endpoint.
247+
/apps/{app_id}/snapshots endpoint.
248248
"""
249249
return cls('ALL_BACKUPS')
250250

squarecloud/http/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async def request(self, route: Router, **kwargs: Any) -> Response:
163163
"""
164164
headers = {
165165
'Authorization': self.api_key,
166-
'User-Agent': 'squarecloud-api/3.5.1',
166+
'User-Agent': 'squarecloud-sdk-py/3.7.4',
167167
}
168168
extra_error_kwargs: dict[str, Any] = {}
169169

0 commit comments

Comments
 (0)