@Generated public interface ReposService
Databricks Repos is a visual Git client in Databricks. It supports common Git operations such a cloning a repository, committing and pushing, pulling, branch management, and visual comparison of diffs when committing.
Within Repos you can develop code in notebooks or other files and follow data science and engineering code development best practices using Git for version control, collaboration, and CI/CD.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
CreateRepoResponse |
create(CreateRepoRequest createRepoRequest)
Create a repo.
|
void |
delete(DeleteRepoRequest deleteRepoRequest)
Delete a repo.
|
GetRepoResponse |
get(GetRepoRequest getRepoRequest)
Get a repo.
|
GetRepoPermissionLevelsResponse |
getPermissionLevels(GetRepoPermissionLevelsRequest getRepoPermissionLevelsRequest)
Get repo permission levels.
|
RepoPermissions |
getPermissions(GetRepoPermissionsRequest getRepoPermissionsRequest)
Get repo permissions.
|
ListReposResponse |
list(ListReposRequest listReposRequest)
Get repos.
|
RepoPermissions |
setPermissions(RepoPermissionsRequest repoPermissionsRequest)
Set repo permissions.
|
void |
update(UpdateRepoRequest updateRepoRequest)
Update a repo.
|
RepoPermissions |
updatePermissions(RepoPermissionsRequest repoPermissionsRequest)
Update repo permissions.
|
CreateRepoResponse create(CreateRepoRequest createRepoRequest)
Creates a repo in the workspace and links it to the remote Git repo specified. Note that repos created programmatically must be linked to a remote Git repo, unlike repos created in the browser.
void delete(DeleteRepoRequest deleteRepoRequest)
Deletes the specified repo.
GetRepoResponse get(GetRepoRequest getRepoRequest)
Returns the repo with the given repo ID.
GetRepoPermissionLevelsResponse getPermissionLevels(GetRepoPermissionLevelsRequest getRepoPermissionLevelsRequest)
Gets the permission levels that a user can have on an object.
RepoPermissions getPermissions(GetRepoPermissionsRequest getRepoPermissionsRequest)
Gets the permissions of a repo. Repos can inherit permissions from their root object.
ListReposResponse list(ListReposRequest listReposRequest)
Returns repos that the calling user has Manage permissions on. Use `next_page_token` to iterate through additional pages.
RepoPermissions setPermissions(RepoPermissionsRequest repoPermissionsRequest)
Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object.
void update(UpdateRepoRequest updateRepoRequest)
Updates the repo to a different branch or tag, or updates the repo to the latest commit on the same branch.
RepoPermissions updatePermissions(RepoPermissionsRequest repoPermissionsRequest)
Updates the permissions on a repo. Repos can inherit permissions from their root object.
Copyright © 2025. All rights reserved.