import squarecloud as square
client = square.Client(api_key='API_KEY')
async def example():
# Restore an application snapshot
response = await client.restore_snapshot(
application_type='app',
app_id='application_id',
snapshot_id='snapshot_id',
version_id='version_id'
)
print(f"Snapshot restored: {response.status}")
# Restore a database snapshot
response = await client.restore_snapshot(
application_type='database',
app_id='database_id',
snapshot_id='snapshot_id',
version_id='version_id'
)
print(f"Database snapshot restored: {response.status}")