Skip to content

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 tag. If branch is removed, and tag isn't specified, then the repository will stay at the previously checked out state

TYPE: str | None | VariableType DEFAULT: None

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 | None | VariableType DEFAULT: None

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 | None | VariableType DEFAULT: None

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 | None | VariableType DEFAULT: None

sparse_checkout

TYPE: RepoSparseCheckout | None | VariableType DEFAULT: None

tag

name of the tag for initial checkout. Conflicts with branch

TYPE: str | None | VariableType DEFAULT: None

url

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

TYPE: str | VariableType

LAKTORY DESCRIPTION
access_controls

List of access controls

TYPE: list[AccessControl | VariableType] | VariableType DEFAULT: []

ATTRIBUTE DESCRIPTION
additional_core_resources
  • permissions

TYPE: list

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

TYPE: list[str | VariableType] | VariableType