com.databricks.sdk.service.workspace.GitCredentialsService Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.workspace;
import com.databricks.sdk.support.Generated;
/**
* 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
*
*
This is the high-level interface, that contains generated methods.
*
*
Evolving: this interface is under development. Method signatures may change.
*/
@Generated
public interface GitCredentialsService {
/**
* 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.
*/
CreateCredentialsResponse create(CreateCredentials createCredentials);
/**
* Delete a credential.
*
*
Deletes the specified Git credential.
*/
void delete(DeleteGitCredentialRequest deleteGitCredentialRequest);
/**
* Get a credential entry.
*
*
Gets the Git credential with the specified credential ID.
*/
CredentialInfo get(GetGitCredentialRequest getGitCredentialRequest);
/**
* Get Git credentials.
*
*
Lists the calling user's Git credentials. One credential per user is supported.
*/
GetCredentialsResponse list();
/**
* Update a credential.
*
*
Updates the specified Git credential.
*/
void update(UpdateCredentials updateCredentials);
}