Skip to content

Repo

laktory.models.resources.databricks.Repo ¤

Bases: BaseModel, PulumiResource, TerraformResource

Databricks Repo

ATTRIBUTE DESCRIPTION
access_controls

List of access controls

TYPE: list[AccessControl]

branch

Name of the branch for initial checkout. If not specified, the default branch of the repository will be used. Conflicts with tag. If branch is removed, and tag isn't specified, then the repository will stay at the previously checked out state.

TYPE: str

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

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): gitHub, gitHubEnterprise, bitbucketCloud, bitbucketServer, azureDevOpsServices, gitLab, gitLabEnterpriseEdition, awsCodeCommit.

TYPE: str

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

sparse_checkout

Sparse checkout feature in Databricks Git folders

TYPE: list[RepoSparseCheckout]

tag

Name of the tag for initial checkout. Conflicts with branch.

TYPE: str

url

The URL of the Git Repository to clone from. If the value changes, Git folder is re-created.

TYPE: str

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
  • permissions

TYPE: list[PulumiResource]

Attributes¤

additional_core_resources property ¤

additional_core_resources
  • permissions

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 sparse_checkout configuration block will lead to recreation of the Git folder.

TYPE: list[str]