Repo
laktory.models.resources.databricks.Repo
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
Databricks Repo
ATTRIBUTE | DESCRIPTION |
---|---|
access_controls |
List of access controls
TYPE:
|
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 |
Sparse checkout feature in Databricks Git folders
TYPE:
|
tag |
Name of the tag for initial checkout. Conflicts with branch.
TYPE:
|
url |
The URL of the Git Repository to clone from. If the value changes, Git folder is re-created.
TYPE:
|
Examples:
from laktory import models
repo = models.resources.databricks.Repo(
url="https://github.com/okube-ai/laktory",
path="/Users/olivier.soucy@okube.ai/laktory-repo",
branch="main",
access_controls=[
{"permission_level": "CAN_READ", "group_name": "account users"}
],
)
References
ATTRIBUTE | DESCRIPTION |
---|---|
additional_core_resources |
TYPE:
|
laktory.models.resources.databricks.repo.RepoSparseCheckout
¤
Bases: BaseModel
Repo Sparse Checkout specifications
ATTRIBUTE | 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
|