@Generated public class GitCredentialsAPI extends Object
See [more info].
[more info]: https://docs.databricks.com/repos/get-access-tokens-from-git-provider.html
Constructor and Description |
---|
GitCredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
GitCredentialsAPI(GitCredentialsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
CreateCredentialsResponse |
create(CreateCredentials request)
Create a credential entry.
|
CreateCredentialsResponse |
create(String gitProvider) |
void |
delete(DeleteGitCredentialRequest request)
Delete a credential.
|
void |
delete(long credentialId) |
CredentialInfo |
get(GetGitCredentialRequest request)
Get a credential entry.
|
CredentialInfo |
get(long credentialId) |
GitCredentialsService |
impl() |
Iterable<CredentialInfo> |
list()
Get Git credentials.
|
void |
update(long credentialId) |
void |
update(UpdateCredentials request)
Update a credential.
|
public GitCredentialsAPI(ApiClient apiClient)
public GitCredentialsAPI(GitCredentialsService mock)
public CreateCredentialsResponse create(String gitProvider)
public CreateCredentialsResponse create(CreateCredentials request)
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.
public void delete(long credentialId)
public void delete(DeleteGitCredentialRequest request)
Deletes the specified Git credential.
public CredentialInfo get(long credentialId)
public CredentialInfo get(GetGitCredentialRequest request)
Gets the Git credential with the specified credential ID.
public Iterable<CredentialInfo> list()
Lists the calling user's Git credentials. One credential per user is supported.
public void update(long credentialId)
public void update(UpdateCredentials request)
Updates the specified Git credential.
public GitCredentialsService impl()
Copyright © 2024. All rights reserved.