Skip to content

unitycatalog.volumes

The classes of the volumes API.

Classes

Name Description
ListVolumesResponseContent  
VolumeClient The requests on one VolumeInfo.
VolumeInfo A volume: files in the third layer of the three-level namespace, below a schema.

Enums

Name Description
VolumeType The type of a volume.

class unitycatalog.volumes.ListVolumesResponseContent

Attributes

  • next_page_token (str | None) – Opaque token of the next page. Absent on the last page.
  • volumes (list[VolumeInfo]) – The volumes.

class unitycatalog.volumes.VolumeClient

The requests on one VolumeInfo.

delete() → None

Delete a volume.

Async: delete_async(…) → Future[None]

get(*, include_browse: bool | None = None) → VolumeInfo

Get a volume.

Parameters

  • include_browse (bool | None, optional) – Also answer a caller who sees the volume through the BROWSE privilege only, with its discovery fields and browse_only set.

Returns

  • VolumeInfo – A volume: files in the third layer of the three-level namespace, below a schema.

Async: get_async(…) → Future[VolumeInfo]

update(*,comment: str | None = None,new_name: str | None = None,) → VolumeInfo

Change a volume.

Parameters

  • comment (str | None, optional) – User-provided free-form text description.
  • new_name (str | None, optional) – New name of the volume, relative to the parent schema.

Returns

  • VolumeInfo – A volume: files in the third layer of the three-level namespace, below a schema.

Async: update_async(…) → Future[VolumeInfo]

class unitycatalog.volumes.VolumeInfo

A volume: files in the third layer of the three-level namespace, below a schema.

Attributes

  • browse_only (bool | None) – True when the volume has only the discovery fields that the BROWSE privilege allows.
  • catalog_name (str) – Name of the parent catalog.
  • comment (str | None) – User-provided free-form text description.
  • created_at (int) – Time at which the volume was created, in epoch milliseconds.
  • created_by (str | None) – Username of the creator of the volume.
  • full_name (str) – Full name of the volume, in the form <catalog>.<schema>.<volume>.
  • name (str) – Name of the volume, relative to the parent schema.
  • owner (str | None) – Username of the owner of the volume.
  • schema_name (str) – Name of the parent schema.
  • storage_location (str) – Storage location URL of the volume.
  • updated_at (int) – Time at which the volume was last changed, in epoch milliseconds.
  • updated_by (str | None) – Username of the user who last changed the volume.
  • volume_id (str) – Unique identifier of the volume.
  • volume_type (VolumeType | None) – Type of the volume.

class unitycatalog.volumes.VolumeType

The type of a volume.

Members

  • MANAGED – A volume whose files Unity Catalog manages, below the managed storage of its schema or catalog.
  • EXTERNAL – A volume whose files are at a storage location that the user gives.