Genie Spaces

Package: databricks.bundles.genie_spaces

Classes

class GenieSpace
description: str | None = None

Description of the Genie space shown alongside the title in the Databricks UI.

etag: str | None = None
file_path: str | None = None

Local path to a .geniespace.json file holding the serialized Genie space definition. The contents are inlined into serialized_space at deploy time. Mutually exclusive with an inline serialized_space.

lifecycle: Lifecycle | None = None

Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.

parent_path: str | None = None

Workspace folder under which to create the Genie space. Immutable: changing this field recreates the resource.

permissions: list[Permission]

The permissions to apply to this resource.

serialized_space: Any | None = None

Serialized Genie space body. May be provided inline as a JSON string (or YAML that will be marshalled to JSON) or referenced via file_path. To round-trip an existing space into a bundle, use databricks bundle generate genie-space.

title: str | None = None

Title of the Genie space shown in the Databricks UI.

warehouse_id: str | None = None

ID of the SQL warehouse used to run queries for this Genie space.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class Lifecycle
prevent_destroy: bool | None = None

Lifecycle setting to prevent the resource from being destroyed.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class Permission
level: PermissionLevel

The permission level to apply. The allowed levels depend on the resource type.

group_name: str | None = None

The name of the group granted the permission level.

service_principal_name: str | None = None

The name of the service principal granted the permission level.

user_name: str | None = None

The name of the user granted the permission level.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class PermissionLevel

Permission level

CAN_MANAGE = 'CAN_MANAGE'
CAN_RESTART = 'CAN_RESTART'
CAN_ATTACH_TO = 'CAN_ATTACH_TO'
IS_OWNER = 'IS_OWNER'
CAN_MANAGE_RUN = 'CAN_MANAGE_RUN'
CAN_VIEW = 'CAN_VIEW'
CAN_READ = 'CAN_READ'
CAN_RUN = 'CAN_RUN'
CAN_EDIT = 'CAN_EDIT'
CAN_USE = 'CAN_USE'
CAN_MANAGE_STAGING_VERSIONS = 'CAN_MANAGE_STAGING_VERSIONS'
CAN_MANAGE_PRODUCTION_VERSIONS = 'CAN_MANAGE_PRODUCTION_VERSIONS'
CAN_EDIT_METADATA = 'CAN_EDIT_METADATA'
CAN_VIEW_METADATA = 'CAN_VIEW_METADATA'
CAN_BIND = 'CAN_BIND'
CAN_QUERY = 'CAN_QUERY'
CAN_MONITOR = 'CAN_MONITOR'
CAN_CREATE = 'CAN_CREATE'
CAN_MONITOR_ONLY = 'CAN_MONITOR_ONLY'
CAN_CREATE_APP = 'CAN_CREATE_APP'