@Generated public class ReposAPI extends Object
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.
| Constructor and Description |
|---|
ReposAPI(ApiClient apiClient)
Regular-use constructor
|
ReposAPI(ReposService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CreateRepoResponse |
create(CreateRepoRequest request)
Creates a repo in the workspace and links it to the remote Git repo specified.
|
void |
delete(DeleteRepoRequest request)
Deletes the specified repo.
|
void |
delete(long repoId) |
GetRepoResponse |
get(GetRepoRequest request)
Returns the repo with the given repo ID.
|
GetRepoResponse |
get(long repoId) |
GetRepoPermissionLevelsResponse |
getPermissionLevels(GetRepoPermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
|
GetRepoPermissionLevelsResponse |
getPermissionLevels(String repoId) |
RepoPermissions |
getPermissions(GetRepoPermissionsRequest request)
Gets the permissions of a repo.
|
RepoPermissions |
getPermissions(String repoId) |
ReposService |
impl() |
Iterable<RepoInfo> |
list(ListReposRequest request)
Returns repos that the calling user has Manage permissions on.
|
RepoPermissions |
setPermissions(RepoPermissionsRequest request)
Sets permissions on an object, replacing existing permissions if they exist.
|
void |
update(UpdateRepoRequest request)
Updates the repo to a different branch or tag, or updates the repo to the latest commit on the
same branch.
|
RepoPermissions |
updatePermissions(RepoPermissionsRequest request)
Updates the permissions on a repo.
|
public ReposAPI(ApiClient apiClient)
public ReposAPI(ReposService mock)
public CreateRepoResponse create(CreateRepoRequest request)
public void delete(long repoId)
public void delete(DeleteRepoRequest request)
public GetRepoResponse get(long repoId)
public GetRepoResponse get(GetRepoRequest request)
public GetRepoPermissionLevelsResponse getPermissionLevels(String repoId)
public GetRepoPermissionLevelsResponse getPermissionLevels(GetRepoPermissionLevelsRequest request)
public RepoPermissions getPermissions(String repoId)
public RepoPermissions getPermissions(GetRepoPermissionsRequest request)
public Iterable<RepoInfo> list(ListReposRequest request)
public RepoPermissions setPermissions(RepoPermissionsRequest request)
public void update(UpdateRepoRequest request)
public RepoPermissions updatePermissions(RepoPermissionsRequest request)
public ReposService impl()
Copyright © 2026. All rights reserved.