VolumeInfo

class baseten.sandbox.VolumeInfo(*, name, size, region, status, attached_to, labels, created_at, updated_at, created_by, updated_by)

Bases: object

A volume as last reported by the control plane.

Parameters:
  • name (str)

  • size (str | int)

  • region (str)

  • status (Literal['DEPLOYING', 'DEPLOYED', 'FAILED', 'DELETING'] | str)

  • attached_to (str | None)

  • labels (dict[str, str] | None)

  • created_at (datetime | None)

  • updated_at (datetime | None)

  • created_by (str | None)

  • updated_by (str | None)

attached_to: str | None

Name of the sandbox the volume is mounted in, None when not mounted.

created_by: str | None

Who created the volume.

labels: dict[str, str] | None

Key-value pairs for organizing and filtering.

None when not returned, since VolumeClient.list() omits them.

name: str

Unique name of the volume.

region: str

Region of the volume. Only sandboxes in the same region can mount it.

size: str | int

Capacity, as a size such as "10Gi" or a number of megabytes.

updated_by: str | None

Who last updated the volume.