@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 |
|---|---|
RepoInfo |
create(CreateRepo request)
Create a repo.
|
RepoInfo |
create(String url,
String provider) |
void |
delete(DeleteRepoRequest request)
Delete a repo.
|
void |
delete(long repoId) |
RepoInfo |
get(GetRepoRequest request)
Get a repo.
|
RepoInfo |
get(long repoId) |
ReposService |
impl() |
Iterable<RepoInfo> |
list(ListReposRequest request)
Get repos.
|
void |
update(long repoId) |
void |
update(UpdateRepo request)
Update a repo.
|
public ReposAPI(ApiClient apiClient)
public ReposAPI(ReposService mock)
public RepoInfo create(CreateRepo request)
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.
public void delete(long repoId)
public void delete(DeleteRepoRequest request)
Deletes the specified repo.
public RepoInfo get(long repoId)
public RepoInfo get(GetRepoRequest request)
Returns the repo with the given repo ID.
public Iterable<RepoInfo> list(ListReposRequest request)
Returns repos that the calling user has Manage permissions on. Results are paginated with each page containing twenty repos.
public void update(long repoId)
public void update(UpdateRepo request)
Updates the repo to a different branch or tag, or updates the repo to the latest commit on the same branch.
public ReposService impl()
Copyright © 2023. All rights reserved.