Class GitCredentialsAPI
- java.lang.Object
-
- com.databricks.sdk.service.workspace.GitCredentialsAPI
-
@Generated public class GitCredentialsAPI extends Object
Registers personal access token for Databricks to do operations on behalf of the user.See [more info].
[more info]: https://docs.databricks.com/repos/get-access-tokens-from-git-provider.html
-
-
Constructor Summary
Constructors Constructor Description GitCredentialsAPI(ApiClient apiClient)
Regular-use constructorGitCredentialsAPI(GitCredentialsService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCredentialsResponse
create(CreateCredentials request)
Create a credential entry.CreateCredentialsResponse
create(String gitProvider)
void
delete(long credentialId)
void
delete(DeleteGitCredentialRequest request)
Delete a credential.CredentialInfo
get(long credentialId)
CredentialInfo
get(GetGitCredentialRequest request)
Get a credential entry.GitCredentialsService
impl()
Iterable<CredentialInfo>
list()
Get Git credentials.void
update(long credentialId)
void
update(UpdateCredentials request)
Update a credential.
-
-
-
Constructor Detail
-
GitCredentialsAPI
public GitCredentialsAPI(ApiClient apiClient)
Regular-use constructor
-
GitCredentialsAPI
public GitCredentialsAPI(GitCredentialsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public CreateCredentialsResponse create(String gitProvider)
-
create
public CreateCredentialsResponse create(CreateCredentials request)
Create a credential entry.Creates a Git credential entry for the user. Only one Git credential per user is supported, so any attempts to create credentials if an entry already exists will fail. Use the PATCH endpoint to update existing credentials, or the DELETE endpoint to delete existing credentials.
-
delete
public void delete(long credentialId)
-
delete
public void delete(DeleteGitCredentialRequest request)
Delete a credential.Deletes the specified Git credential.
-
get
public CredentialInfo get(long credentialId)
-
get
public CredentialInfo get(GetGitCredentialRequest request)
Get a credential entry.Gets the Git credential with the specified credential ID.
-
list
public Iterable<CredentialInfo> list()
Get Git credentials.Lists the calling user's Git credentials. One credential per user is supported.
-
update
public void update(long credentialId)
-
update
public void update(UpdateCredentials request)
Update a credential.Updates the specified Git credential.
-
impl
public GitCredentialsService impl()
-
-