RegisteredModel
laktory.models.resources.databricks.RegisteredModel
¤
Bases: UnityCatalogMixin, RegisteredModelBase
Databricks Unity Catalog registered model
Examples:
import io
from laktory import models
registered_model_yaml = '''
name: my-model
catalog_name: main
schema_name: default
comment: "Registered model for my project"
grants:
- principal: account users
privileges:
- EXECUTE
'''
registered_model = models.resources.databricks.RegisteredModel.model_validate_yaml(
io.StringIO(registered_model_yaml)
)
print(registered_model.full_name)
# > main.default.my-model
References
| BASE | DESCRIPTION |
|---|---|
aliases
|
TYPE:
|
browse_only
|
TYPE:
|
catalog_name
|
The name of the catalog where the schema and the registered model reside. Change of this parameter forces recreation of the resource.
TYPE:
|
comment
|
The comment attached to the registered model
TYPE:
|
created_at
|
TYPE:
|
created_by
|
TYPE:
|
metastore_id
|
TYPE:
|
name
|
The name of the registered model. Change of this parameter forces recreation of the resource.
TYPE:
|
owner
|
Name of the registered model owner
TYPE:
|
schema_name
|
The name of the schema where the registered model resides. Change of this parameter forces recreation of the resource.
TYPE:
|
storage_location
|
The storage location under which model version data files are stored. If the URL contains special characters, such as space,
TYPE:
|
updated_at
|
TYPE:
|
updated_by
|
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
grant
|
Non-destructive grant for specific principal(s). Adds or updates privileges for the listed principal(s) and leaves
grants for all other principals untouched. Use when access is managed from multiple sources (Laktory, Databricks
UI, etc.). Mutually exclusive with
TYPE:
|
grants
|
Authoritative grant list for all principals. Replaces every existing grant on this Registered Model - including
those set outside Laktory - with only the entries listed here. Use only when Laktory owns all access management
for this resource. Mutually exclusive with
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
additional_core_resources |
TYPE:
|
full_name |
Registered model full name
TYPE:
|
parent_full_name |
Parent namespace in the UC three-level hierarchy
TYPE:
|
laktory.models.resources.databricks.registeredmodel.RegisteredModelAliases
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
alias_name
|
TYPE:
|
catalog_name
|
The name of the catalog where the schema and the registered model reside. Change of this parameter forces recreation of the resource.
TYPE:
|
id
|
Equal to the full name of the model (
TYPE:
|
model_name
|
TYPE:
|
schema_name
|
The name of the schema where the registered model resides. Change of this parameter forces recreation of the resource.
TYPE:
|
version_num
|
TYPE:
|
laktory.models.resources.databricks.registeredmodel.RegisteredModelLookup
¤
Bases: ResourceLookup
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Full name of the registered model:
TYPE:
|