Class ReposAPI
- java.lang.Object
-
- com.databricks.sdk.service.workspace.ReposAPI
-
@Generated public class ReposAPI extends Object
The Repos API allows users to manage their git repos. Users can use the API to access all repos that they have manage permissions on.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 Summary
Constructors Constructor Description ReposAPI(ApiClient apiClient)
Regular-use constructorReposAPI(ReposService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepoInfo
create(CreateRepo request)
Create a repo.RepoInfo
create(String url, String provider)
void
delete(long repoId)
void
delete(DeleteRepoRequest request)
Delete a repo.RepoInfo
get(long repoId)
RepoInfo
get(GetRepoRequest request)
Get a repo.ReposService
impl()
Iterable<RepoInfo>
list(ListReposRequest request)
Get repos.void
update(long repoId)
void
update(UpdateRepo request)
Update a repo.
-
-
-
Constructor Detail
-
ReposAPI
public ReposAPI(ApiClient apiClient)
Regular-use constructor
-
ReposAPI
public ReposAPI(ReposService mock)
Constructor for mocks
-
-
Method Detail
-
create
public RepoInfo create(CreateRepo request)
Create a repo.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.
-
delete
public void delete(long repoId)
-
delete
public void delete(DeleteRepoRequest request)
Delete a repo.Deletes the specified repo.
-
get
public RepoInfo get(long repoId)
-
get
public RepoInfo get(GetRepoRequest request)
Get a repo.Returns the repo with the given repo ID.
-
list
public Iterable<RepoInfo> list(ListReposRequest request)
Get repos.Returns repos that the calling user has Manage permissions on. Results are paginated with each page containing twenty repos.
-
update
public void update(long repoId)
-
update
public void update(UpdateRepo request)
Update a repo.Updates the repo to a different branch or tag, or updates the repo to the latest commit on the same branch.
-
impl
public ReposService impl()
-
-