Snapshot¶
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:
- 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:
- 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:
Snapshot resource class for synchronous operations.
- class runloop_api_client.sdk.snapshot.Snapshot(client, snapshot_id)[source]¶
Wrapper around synchronous snapshot operations.
- get_info(**options)[source]¶
Retrieve the latest snapshot status.
- Parameters:
options (
Unpack[BaseRequestOptions]) – Optional request configuration- Returns:
Snapshot state payload
- Return type:
- update(**params)[source]¶
Update snapshot metadata.
- Parameters:
params (
Unpack[SDKDiskSnapshotUpdateParams]) – SeeSDKDiskSnapshotUpdateParamsfor available parameters- Returns:
Updated snapshot details
- Return type:
- delete(**options)[source]¶
Delete the snapshot.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type:
- await_completed(**options)[source]¶
Block until the snapshot operation finishes.
- Parameters:
options (
Unpack[PollingRequestOptions]) – Polling configuration (timeouts, intervals)- Returns:
Final snapshot status
- Return type:
- 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: