unitycatalog.catalogs¶
The classes of the catalogs API.
Classes
| Name | Description |
|---|---|
CatalogClient |
The requests on one CatalogInfo. |
CatalogInfo |
A catalog: the first layer of the three-level namespace. It holds schemas. |
ListCatalogsResponse |
class unitycatalog.catalogs.CatalogClient¶
The requests on one CatalogInfo.
delete(*, force: bool | None = None) → None¶
Delete a catalog.
Parameters
- force (bool | None, optional) – Delete the schemas, tables and volumes of the catalog too.
Async: delete_async(…) → Future[None]
get(*, include_browse: bool | None = None) → CatalogInfo¶
Get a catalog.
Parameters
- include_browse (bool | None, optional) – Also answer a caller who sees the catalog through the
BROWSEprivilege only, with its discovery fields andbrowse_onlyset.
Returns
- CatalogInfo – A catalog: the first layer of the three-level namespace. It holds schemas.
Async: get_async(…) → Future[CatalogInfo]
update(*,comment: str | None = None,properties: dict[str, str] | None = None,new_name: str | None = None,) → CatalogInfo¶
Change a catalog.
Parameters
- comment (str | None, optional) – User-provided free-form text description.
- properties (dict[str, str] | None, optional) – Key-value properties of the catalog. They replace the properties of the catalog.
- new_name (str | None, optional) – New name of the catalog.
Returns
- CatalogInfo – A catalog: the first layer of the three-level namespace. It holds schemas.
Async: update_async(…) → Future[CatalogInfo]
class unitycatalog.catalogs.CatalogInfo¶
A catalog: the first layer of the three-level namespace. It holds schemas.
Attributes
- browse_only (bool | None) – True when the catalog has only the discovery fields that the
BROWSEprivilege allows. - comment (str | None) – User-provided free-form text description.
- created_at (int) – Time at which the catalog was created, in epoch milliseconds.
- created_by (str | None) – Username of the creator of the catalog.
- id (str) – Unique identifier of the catalog.
- name (str) – Name of the catalog.
- owner (str | None) – Username of the owner of the catalog.
- properties (dict[str, str]) – Key-value properties of the catalog.
- storage_location (str | None) – Storage location URL (full path) of the managed storage of the catalog.
- storage_root (str | None) – Storage root URL for the managed storage of the catalog, such as
s3://bucket/ucroot. - updated_at (int) – Time at which the catalog was last changed, in epoch milliseconds.
- updated_by (str | None) – Username of the user who last changed the catalog.
class unitycatalog.catalogs.ListCatalogsResponse¶
Attributes
- catalogs (list[CatalogInfo]) – The catalogs.
- next_page_token (str | None) – Opaque token of the next page. Absent on the last page.