Skip to content

Commit aae6dda

Browse files
✨ feat(app): add DNSRecord and move_file methods
- Introduced DNSRecord class to handle DNS records. - Added move_file method in Application class for moving files. - Updated all_backups method to return a list of BackupInfo.
1 parent 82b21b2 commit aae6dda

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

squarecloud/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
Backup,
1414
BackupInfo,
1515
DeployData,
16+
DNSRecord,
1617
DomainAnalytics,
1718
FileInfo,
1819
LogsData,
@@ -652,3 +653,10 @@ async def set_custom_domain(self, custom_domain: str):
652653
async def all_backups(self):
653654
backups: list[BackupInfo] = await self.client.all_app_backups(self.id)
654655
return backups
656+
657+
async def move_file(self, origin: str, dest: str):
658+
return await self.client.move_app_file(self.id, origin, dest)
659+
660+
@_notify_listener(Endpoint.dns_records())
661+
async def dns_records(self) -> list[DNSRecord]:
662+
return await self.client.dns_records(self.id)

0 commit comments

Comments
 (0)