@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
|
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 GetRepoPermissionLevelsResponse getPermissionLevels(String repoId)
public GetRepoPermissionLevelsResponse getPermissionLevels(GetRepoPermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
public RepoPermissions getPermissions(String repoId)
public RepoPermissions getPermissions(GetRepoPermissionsRequest request)
Gets the permissions of a repo. Repos can inherit permissions from their root object.
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 RepoPermissions setPermissions(String repoId)
public RepoPermissions setPermissions(RepoPermissionsRequest request)
Sets permissions on a repo. Repos can inherit permissions from their root object.
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 RepoPermissions updatePermissions(String repoId)
public RepoPermissions updatePermissions(RepoPermissionsRequest request)
Updates the permissions on a repo. Repos can inherit permissions from their root object.
public ReposService impl()
Copyright © 2024. All rights reserved.