@Generated public interface CatalogsService
In Unity Catalog, admins and data stewards manage users and their access to data centrally across all of the workspaces in a Databricks account. Users in different workspaces can share access to the same data, depending on privileges granted centrally in Unity Catalog.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
Modifier and Type | Method and Description |
---|---|
CatalogInfo |
create(CreateCatalog createCatalog)
Create a catalog.
|
void |
delete(DeleteCatalogRequest deleteCatalogRequest)
Delete a catalog.
|
CatalogInfo |
get(GetCatalogRequest getCatalogRequest)
Get a catalog.
|
ListCatalogsResponse |
list()
List catalogs.
|
CatalogInfo |
update(UpdateCatalog updateCatalog)
Update a catalog.
|
CatalogInfo create(CreateCatalog createCatalog)
Creates a new catalog instance in the parent metastore if the caller is a metastore admin or has the **CREATE_CATALOG** privilege.
void delete(DeleteCatalogRequest deleteCatalogRequest)
Deletes the catalog that matches the supplied name. The caller must be a metastore admin or the owner of the catalog.
CatalogInfo get(GetCatalogRequest getCatalogRequest)
Gets the specified catalog in a metastore. The caller must be a metastore admin, the owner of the catalog, or a user that has the **USE_CATALOG** privilege set for their account.
ListCatalogsResponse list()
Gets an array of catalogs in the metastore. If the caller is the metastore admin, all catalogs will be retrieved. Otherwise, only catalogs owned by the caller (or for which the caller has the **USE_CATALOG** privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in the array.
CatalogInfo update(UpdateCatalog updateCatalog)
Updates the catalog that matches the supplied name. The caller must be either the owner of the catalog, or a metastore admin (when changing the owner field of the catalog).
Copyright © 2023. All rights reserved.