Snapshot

The AsyncSnapshot class provides asynchronous methods for managing devbox snapshots.

Snapshot resource class for asynchronous operations.

class runloop_api_client.sdk.async_snapshot.AsyncSnapshot(client, snapshot_id)[source]

Async wrapper around snapshot operations.

property id: str

Return the snapshot identifier.

Returns:

Unique snapshot ID

Return type:

str

async get_info(**options)[source]

Retrieve the latest snapshot status.

Parameters:

options (Unpack[BaseRequestOptions]) – Optional request configuration

Returns:

Snapshot state payload

Return type:

DevboxSnapshotAsyncStatusView

async update(**params)[source]

Update snapshot metadata.

Parameters:

params (Unpack[SDKDiskSnapshotUpdateParams]) – See SDKDiskSnapshotUpdateParams for available parameters

Returns:

Updated snapshot details

Return type:

DevboxSnapshotView

async delete(**options)[source]

Delete the snapshot.

Parameters:

options (Unpack[LongRequestOptions]) – Optional long-running request configuration

Returns:

API response acknowledging deletion

Return type:

object

async await_completed(**options)[source]

Block until the snapshot operation finishes.

Parameters:

options (Unpack[PollingRequestOptions]) – Polling configuration (timeouts, intervals)

Returns:

Final snapshot status

Return type:

DevboxSnapshotAsyncStatusView

async create_devbox(**params)[source]

Create a devbox restored from this snapshot.

Parameters:

params (Unpack[SDKDevboxCreateFromImageParams]) – See SDKDevboxCreateFromImageParams for available parameters

Returns:

Wrapper bound to the running devbox

Return type:

AsyncDevbox