Class RepositorySubmodulesApi

  • All Implemented Interfaces:
    Constants

    public class RepositorySubmodulesApi
    extends AbstractApi

    This class provides an entry point to all the GitLab API repository submodules calls. For more information on the repository APIs see:

    See Also:
    Repository Submodules API
    • Constructor Detail

      • RepositorySubmodulesApi

        public RepositorySubmodulesApi​(GitLabApi gitLabApi)
    • Method Detail

      • updateExistingSubmoduleReference

        public Commit updateExistingSubmoduleReference​(java.lang.Object projectIdOrPath,
                                                       java.lang.String submodule,
                                                       java.lang.String branch,
                                                       java.lang.String commitSha,
                                                       java.lang.String commitMessage)
                                                throws GitLabApiException
        Update existing submodule reference in repository.
        GitLab Endpoint: PUT /projects/:id/repository/submodules/:submodule
        Parameters:
        projectIdOrPath - the project in the form of an Long(ID), String(path), or Project instance
        submodule - full path to the submodule
        branch - name of the branch to commit into
        commitSha - full commit SHA to update the submodule to
        commitMessage - commit message (optional). If no message is provided, a default is set
        Returns:
        the created commit
        Throws:
        GitLabApiException - if any exception occurs