Class 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 Detail

      • GitCredentialsAPI

        public GitCredentialsAPI​(ApiClient apiClient)
        Regular-use constructor
    • Method Detail

      • 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)
      • 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.