Grant
laktory.models.resources.databricks.Grant
ยค
Bases: GrantBase
Databricks Grant
Authoritative for a specific principal. Updates the grants of a securable to a single principal. Other principals within the grants for the securables are preserved.
Examples:
import io
from laktory import models
grant_yaml = '''
catalog: dev
principal: metastore-admins
privileges:
- CREATE_SCHEMA
'''
grant = models.resources.databricks.Grant.model_validate_yaml(
io.StringIO(grant_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
catalog
|
TYPE:
|
credential
|
TYPE:
|
external_location
|
TYPE:
|
foreign_connection
|
TYPE:
|
function
|
TYPE:
|
metastore
|
TYPE:
|
model
|
TYPE:
|
pipeline
|
TYPE:
|
principal
|
TYPE:
|
privileges
|
TYPE:
|
recipient
|
TYPE:
|
schema_
|
TYPE:
|
share
|
TYPE:
|
storage_credential
|
TYPE:
|
table
|
TYPE:
|
volume
|
TYPE:
|