Skip to content

yggdrasil.databricks.cluster.service

service

Clusters

Clusters(client: Optional[DatabricksClient] = None)

Bases: DatabricksService

wheels property

wheels: 'Wheels'

Wheel registry service (shorthand for client.wheels).

environments property

environments: 'Environments'

Base-environment service (shorthand for client.environments).

tables property

tables: 'Tables'

Collection-level Unity Catalog table service (shorthand for client.tables).

views property

views: 'Tables'

Alias for :attr:tables — :class:Table covers both managed/external tables and view-shaped securables.

catalogs property

catalogs: 'Catalogs'

Collection-level Unity Catalog hierarchy service (shorthand for client.catalogs).

schemas property

schemas: 'Schemas'

Collection-level Unity Catalog schema service (shorthand for client.schemas).

volumes property

volumes: 'Volumes'

Collection-level Unity Catalog volume service (shorthand for client.volumes).

genie property

genie: 'Genie'

Genie service (shorthand for client.genie).

ai property

ai: 'DatabricksAI'

Databricks AI umbrella service (shorthand for client.ai).

default

default(*, raise_error: bool = False) -> Optional[Cluster]

The project's default all-purpose cluster — the single-user cluster named for the running client project (its capitalized display name, :attr:DatabricksClient.product_name), as provisioned by ygg databricks deploy. Resolves the existing cluster (no creation); None when it isn't deployed unless raise_error. The cluster sibling of dbc.environments.default() / warehouses.default().

default_tags

default_tags(update: bool = True) -> dict[str, str]

Return default resource tags for Databricks assets.

Returns:

Type Description
dict[str, str]

A dict of default tags.