runtime_snapshot
Snapshot services for Datalayer.
Provides runtime snapshot management and operations in Datalayer environments.
def create_snapshot(name: Optional[str], description: Optional[str]) -> Tuple[str, str]
Create snapshot name and description with defaults.
Parameters
-
name : Optional[str]
Name for the snapshot, or None for auto-generated name.
-
description : Optional[str]
Description for the snapshot, or None for auto-generated description.
Returns
-
Tuple[str, str]
Tuple of (name, description) strings.
def as_runtime_snapshots(response: dict[str, typing.Any]) -> List[ForwardRef('RuntimeSnapshotModel')]
Parse API response and create RuntimeSnapshot objects.
Parameters
-
response : dict[str, Any]
API response dictionary containing snapshots data.
Returns
-
List[RuntimeSnapshot]
List of RuntimeSnapshot objects parsed from the response.