databricks-cli/experimental/python/databricks/bundles/jobs/_models/source.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
654 B
Python
Raw Normal View History

from enum import Enum
from typing import Literal
class Source(Enum):
"""
Optional location type of the SQL file. When set to `WORKSPACE`, the SQL file will be retrieved\
from the local Databricks workspace. When set to `GIT`, the SQL file will be retrieved from a Git repository
defined in `git_source`. If the value is empty, the task will use `GIT` if `git_source` is defined and `WORKSPACE` otherwise.
* `WORKSPACE`: SQL file is located in Databricks workspace.
* `GIT`: SQL file is located in cloud Git provider.
"""
WORKSPACE = "WORKSPACE"
GIT = "GIT"
SourceParam = Literal["WORKSPACE", "GIT"] | Source