Skip to content
View as Markdown

Properties:

  • id string
  • name string
  • class ArtifactClass
  • kind SnapshotKind
  • rawKind string
  • availableIn string[]
  • status string
  • error? string | null
  • createdAt string
  • updatedAt string
  • memoryBytes? number
  • sandboxId? string
new Snapshot(snapshot: api.SnapshotRow): Snapshot;

Parameters:

  • snapshot api.SnapshotRow

Returns:

  • Snapshot

new SnapshotsService(http: AxiosInstance): SnapshotsService;

Parameters:

  • http AxiosInstance

Returns:

  • SnapshotsService
delete(snapshotId: string): Promise<void>;

Parameters:

  • snapshotId string

Returns:

  • Promise<void>
get(
snapshotId: string,
options: { wait?: 'ready'; timeout?: number } = {}): Promise<Snapshot>;

Parameters:

  • snapshotId string
  • options { wait?: ‘ready’; timeout?: number } = {}

Returns:

  • Promise<Snapshot>
iter(
options: { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}): AsyncIterable<Snapshot>;

Parameters:

  • options { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}

Returns:

  • AsyncIterable<Snapshot>
list(
options: { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}): Promise<ListResult<Snapshot>>;

Parameters:

  • options { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}

Returns:

  • Promise<ListResult<Snapshot>>