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.
- 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]) – SeeSDKDiskSnapshotUpdateParamsfor available parameters- Returns:
Updated snapshot details
- Return type:
- async delete(**options)[source]¶
Delete the snapshot.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type:
- 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]) – SeeSDKDevboxCreateFromImageParamsfor available parameters- Returns:
Wrapper bound to the running devbox
- Return type: