ImageLibraryVolume

class baseten.sandbox.ImageLibraryVolume(*, name, mount_path, type, size_mb, read_only)

Bases: object

A volume attachment a built-in image suggests, in ImageLibraryInfo.

Parameters:
  • name (str)

  • mount_path (str)

  • type (str | None)

  • size_mb (int | None)

  • read_only (bool)

mount_path: str

Absolute path the volume is mounted at.

name: str

Volume name, or an internal identifier for an ephemeral volume.

read_only: bool

Whether the volume is mounted read-only.

size_mb: int | None

Storage capacity in megabytes of an ephemeral volume.

type: str | None

Volume type, persistent when empty or None.