Repo
laktory.models.resources.databricks.Repo
¤
Bases: RepoBase
Databricks Repo
Examples:
import io
from laktory import models
repo_yaml = '''
url: https://github.com/okube-ai/laktory
path: /Users/olivier.soucy@okube.ai/laktory-repo
branch: main
access_controls:
- group_name: account users
permission_level: CAN_READ
'''
repo = models.resources.databricks.Repo.model_validate_yaml(io.StringIO(repo_yaml))
References
| BASE | DESCRIPTION |
|---|---|
branch
|
name of the branch for initial checkout. If not specified, the default branch of the repository will be used. Conflicts with
TYPE:
|
commit_hash
|
Hash of the HEAD commit at time of the last executed operation. It won't change if you manually perform pull operation via UI or API
TYPE:
|
git_provider
|
case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult Repos API documentation):
TYPE:
|
path
|
path to put the checked out Git folder. If not specified, , then the Git folder will be created in the default location. If the value changes, Git folder is re-created
TYPE:
|
sparse_checkout
|
TYPE:
|
tag
|
name of the tag for initial checkout. Conflicts with
TYPE:
|
url
|
The URL of the Git Repository to clone from. If the value changes, Git folder is re-created
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
access_controls
|
List of access controls
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
additional_core_resources |
TYPE:
|
additional_core_resources
property
¤
- permissions
laktory.models.resources.databricks.repo.RepoSparseCheckout
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
patterns
|
array of paths (directories) that will be used for sparse checkout. List of patterns could be updated in-place.
Addition or removal of the
TYPE:
|