Models

Package: databricks.bundles.models

Classes

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 MlflowModel
name: str

Register models under this name

description: str | None = None

Optional description for registered model.

lifecycle: Lifecycle | None = None

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

permissions: list[MlflowModelPermission]

The permissions to apply to this resource.

tags: list[ModelTag]

Additional metadata for registered model.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class MlflowModelPermission
level: RegisteredModelPermissionLevel

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 ModelTag

Tag for a registered model

key: str | None = None

The tag key.

value: str | None = None

The tag value.

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

Permission level

CAN_MANAGE = 'CAN_MANAGE'
CAN_MANAGE_PRODUCTION_VERSIONS = 'CAN_MANAGE_PRODUCTION_VERSIONS'
CAN_MANAGE_STAGING_VERSIONS = 'CAN_MANAGE_STAGING_VERSIONS'
CAN_EDIT = 'CAN_EDIT'
CAN_READ = 'CAN_READ'