Class TagsApi

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gitlab4j.models.Constants

        org.gitlab4j.models.Constants.ActionType, org.gitlab4j.models.Constants.ApplicationScope, org.gitlab4j.models.Constants.ArchiveFormat, org.gitlab4j.models.Constants.AutoDevopsDeployStrategy, org.gitlab4j.models.Constants.BuildGitStrategy, org.gitlab4j.models.Constants.CommitBuildState, org.gitlab4j.models.Constants.ContributorOrderBy, org.gitlab4j.models.Constants.DefaultBranchProtectionLevel, org.gitlab4j.models.Constants.DeploymentOrderBy, org.gitlab4j.models.Constants.DeploymentStatus, org.gitlab4j.models.Constants.DeployTokenScope, org.gitlab4j.models.Constants.Encoding, org.gitlab4j.models.Constants.EpicOrderBy, org.gitlab4j.models.Constants.EventScope, org.gitlab4j.models.Constants.GroupOrderBy, org.gitlab4j.models.Constants.GroupSearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.ImpersonationState, org.gitlab4j.models.Constants.IssueOrderBy, org.gitlab4j.models.Constants.IssueScope, org.gitlab4j.models.Constants.IssueState, org.gitlab4j.models.Constants.JobScope, org.gitlab4j.models.Constants.LineType, org.gitlab4j.models.Constants.MergeRequestOrderBy, org.gitlab4j.models.Constants.MergeRequestScope, org.gitlab4j.models.Constants.MergeRequestSearchIn, org.gitlab4j.models.Constants.MergeRequestState, org.gitlab4j.models.Constants.MilestoneState, org.gitlab4j.models.Constants.PackageOrderBy, org.gitlab4j.models.Constants.PackageStatus, org.gitlab4j.models.Constants.PipelineOrderBy, org.gitlab4j.models.Constants.PipelineScope, org.gitlab4j.models.Constants.PipelineSource, org.gitlab4j.models.Constants.ProjectAccessTokenScope, org.gitlab4j.models.Constants.ProjectCreationLevel, org.gitlab4j.models.Constants.ProjectOrderBy, org.gitlab4j.models.Constants.ProjectSearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.SearchScope<T extends java.lang.Object>, org.gitlab4j.models.Constants.SortOrder, org.gitlab4j.models.Constants.SquashOption, org.gitlab4j.models.Constants.StateEvent, org.gitlab4j.models.Constants.SubgroupCreationLevel, org.gitlab4j.models.Constants.TagOrderBy, org.gitlab4j.models.Constants.TargetType, org.gitlab4j.models.Constants.TodoAction, org.gitlab4j.models.Constants.TodoState, org.gitlab4j.models.Constants.TodoType, org.gitlab4j.models.Constants.TokenType
    • Field Summary

      • Fields inherited from interface org.gitlab4j.models.Constants

        NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
    • Constructor Summary

      Constructors 
      Constructor Description
      TagsApi​(GitLabApi gitLabApi)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.gitlab4j.api.models.Release createRelease​(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.String releaseNotes)
      Add release notes to the existing git tag.
      org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.String ref)
      Creates a tag on a particular ref of the given project.
      org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.String ref, java.lang.String message, java.io.File releaseNotesFile)
      Creates a tag on a particular ref of a given project.
      org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.String ref, java.lang.String message, java.lang.String releaseNotes)
      Creates a tag on a particular ref of the given project with optional message and release notes.
      void deleteTag​(java.lang.Object projectIdOrPath, java.lang.String tagName)
      Deletes the tag from a project with the specified tag name.
      java.util.Optional<org.gitlab4j.api.models.ProtectedTag> getOptionalProtectedTag​(java.lang.Object projectIdOrPath, java.lang.String name)
      Get an Optional instance holding a protected tag or wildcard protected tag.
      java.util.Optional<org.gitlab4j.api.models.Tag> getOptionalTag​(java.lang.Object projectIdOrPath, java.lang.String tagName)
      Get an Optional instance holding a Tag instance of a specific repository tag determined by its name.
      org.gitlab4j.api.models.ProtectedTag getProtectedTag​(java.lang.Object projectIdOrPath, java.lang.String name)
      Gets a single protected tag or wildcard protected tag
      java.util.List<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath)
      Gets a list of protected tags from a project.
      Pager<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath, int itemsPerPage)
      Get a Pager of protected tags for a project.
      java.util.List<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath, int page, int perPage)
      Gets a list of protected tags from a project and in the specified page range.
      java.util.stream.Stream<org.gitlab4j.api.models.ProtectedTag> getProtectedTagsStream​(java.lang.Object projectIdOrPath)
      Get a Stream of protected tags for a project.
      org.gitlab4j.api.models.Tag getTag​(java.lang.Object projectIdOrPath, java.lang.String tagName)
      Get a specific repository tag determined by its name.
      java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
      Pager<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath, int itemsPerPage)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
      java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath, int page, int perPage)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
      java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.TagOrderBy orderBy, org.gitlab4j.models.Constants.SortOrder sortOrder, java.lang.String search)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
      Pager<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.TagOrderBy orderBy, org.gitlab4j.models.Constants.SortOrder sortOrder, java.lang.String search, int itemsPerPage)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
      java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.TagOrderBy orderBy, org.gitlab4j.models.Constants.SortOrder sortOrder, java.lang.String search, int page, int perPage)
      Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
      java.util.stream.Stream<org.gitlab4j.api.models.Tag> getTagsStream​(java.lang.Object projectIdOrPath)
      Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
      java.util.stream.Stream<org.gitlab4j.api.models.Tag> getTagsStream​(java.lang.Object projectIdOrPath, org.gitlab4j.models.Constants.TagOrderBy orderBy, org.gitlab4j.models.Constants.SortOrder sortOrder, java.lang.String search)
      Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
      org.gitlab4j.api.models.ProtectedTag protectTag​(java.lang.Object projectIdOrPath, java.lang.String name, org.gitlab4j.api.models.AccessLevel createAccessLevel)
      Protects a single repository tag or several project repository tags using a wildcard protected tag.
      void unprotectTag​(java.lang.Object projectIdOrPath, java.lang.String name)
      Unprotects the given protected tag or wildcard protected tag.
      org.gitlab4j.api.models.Release updateRelease​(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.String releaseNotes)
      Updates the release notes of a given release.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TagsApi

        public TagsApi​(GitLabApi gitLabApi)
    • Method Detail

      • getTags

        public java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath)
                                                            throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        Returns:
        the list of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getTags

        public java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath,
                                                                   int page,
                                                                   int perPage)
                                                            throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        page - the page to get
        perPage - the number of Tag instances per page
        Returns:
        the list of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getTags

        public Pager<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath,
                                                          int itemsPerPage)
                                                   throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        itemsPerPage - the number of Project instances that will be fetched per page
        Returns:
        the Pager of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getTagsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Tag> getTagsStream​(java.lang.Object projectIdOrPath)
                                                                           throws GitLabApiException
        Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        Returns:
        a Stream of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getTags

        public java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath,
                                                                   org.gitlab4j.models.Constants.TagOrderBy orderBy,
                                                                   org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                   java.lang.String search)
                                                            throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        orderBy - return tags ordered by name or updated fields. Default is updated
        sortOrder - return tags sorted in asc or desc order. Default is desc
        search - return list of tags matching the search criteria
        Returns:
        the list of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
        Since:
        GitLab 11.8
      • getTags

        public java.util.List<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath,
                                                                   org.gitlab4j.models.Constants.TagOrderBy orderBy,
                                                                   org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                   java.lang.String search,
                                                                   int page,
                                                                   int perPage)
                                                            throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        orderBy - return tags ordered by name or updated fields. Default is updated
        sortOrder - return tags sorted in asc or desc order. Default is desc
        search - return list of tags matching the search criteria
        page - the page to get
        perPage - the number of Tag instances per page
        Returns:
        the list of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
        Since:
        GitLab 11.8
      • getTags

        public Pager<org.gitlab4j.api.models.Tag> getTags​(java.lang.Object projectIdOrPath,
                                                          org.gitlab4j.models.Constants.TagOrderBy orderBy,
                                                          org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                          java.lang.String search,
                                                          int itemsPerPage)
                                                   throws GitLabApiException
        Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        orderBy - return tags ordered by name or updated fields. Default is updated
        sortOrder - return tags sorted in asc or desc order. Default is desc
        search - return list of tags matching the search criteria
        itemsPerPage - the number of Project instances that will be fetched per page
        Returns:
        the Pager of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
        Since:
        GitLab 11.8
      • getTagsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.Tag> getTagsStream​(java.lang.Object projectIdOrPath,
                                                                                  org.gitlab4j.models.Constants.TagOrderBy orderBy,
                                                                                  org.gitlab4j.models.Constants.SortOrder sortOrder,
                                                                                  java.lang.String search)
                                                                           throws GitLabApiException
        Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
        GitLab Endpoint: GET /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        orderBy - return tags ordered by name or updated fields. Default is updated
        sortOrder - return tags sorted in asc or desc order. Default is desc
        search - return list of tags matching the search criteria
        Returns:
        a Stream of tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
        Since:
        GitLab 11.8
      • getTag

        public org.gitlab4j.api.models.Tag getTag​(java.lang.Object projectIdOrPath,
                                                  java.lang.String tagName)
                                           throws GitLabApiException
        Get a specific repository tag determined by its name.
        GitLab Endpoint: GET /projects/:id/repository/tags/:tagName
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - the name of the tag to fetch the info for
        Returns:
        a Tag instance with info on the specified tag
        Throws:
        GitLabApiException - if any exception occurs
      • getOptionalTag

        public java.util.Optional<org.gitlab4j.api.models.Tag> getOptionalTag​(java.lang.Object projectIdOrPath,
                                                                              java.lang.String tagName)
                                                                       throws GitLabApiException
        Get an Optional instance holding a Tag instance of a specific repository tag determined by its name.
        GitLab Endpoint: GET /projects/:id/repository/tags/:tagName
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - the name of the tag to fetch the info for
        Returns:
        an Optional instance with the specified project tag as the value
        Throws:
        GitLabApiException - if any exception occurs
      • createTag

        public org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath,
                                                     java.lang.String tagName,
                                                     java.lang.String ref)
                                              throws GitLabApiException
        Creates a tag on a particular ref of the given project.
        GitLab Endpoint: POST /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - The name of the tag Must be unique for the project
        ref - the git ref to place the tag on
        Returns:
        a Tag instance containing info on the newly created tag
        Throws:
        GitLabApiException - if any exception occurs
      • createTag

        public org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath,
                                                     java.lang.String tagName,
                                                     java.lang.String ref,
                                                     java.lang.String message,
                                                     java.lang.String releaseNotes)
                                              throws GitLabApiException
        Creates a tag on a particular ref of the given project with optional message and release notes.
        GitLab Endpoint: POST /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - The name of the tag Must be unique for the project
        ref - the git ref to place the tag on
        message - the message to included with the tag (optional)
        releaseNotes - the release notes for the tag (optional)
        Returns:
        a Tag instance containing info on the newly created tag
        Throws:
        GitLabApiException - if any exception occurs
      • createTag

        public org.gitlab4j.api.models.Tag createTag​(java.lang.Object projectIdOrPath,
                                                     java.lang.String tagName,
                                                     java.lang.String ref,
                                                     java.lang.String message,
                                                     java.io.File releaseNotesFile)
                                              throws GitLabApiException
        Creates a tag on a particular ref of a given project. A message and a File instance containing the release notes are optional. This method is the same as createTag(Object, String, String, String, String), but instead allows the release notes to be supplied in a file.
        GitLab Endpoint: POST /projects/:id/repository/tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - the name of the tag, must be unique for the project
        ref - the git ref to place the tag on
        message - the message to included with the tag (optional)
        releaseNotesFile - a whose contents are the release notes (optional)
        Returns:
        a Tag instance containing info on the newly created tag
        Throws:
        GitLabApiException - if any exception occurs
      • deleteTag

        public void deleteTag​(java.lang.Object projectIdOrPath,
                              java.lang.String tagName)
                       throws GitLabApiException
        Deletes the tag from a project with the specified tag name.
        GitLab Endpoint: DELETE /projects/:id/repository/tags/:tag_name
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - The name of the tag to delete
        Throws:
        GitLabApiException - if any exception occurs
      • createRelease

        public org.gitlab4j.api.models.Release createRelease​(java.lang.Object projectIdOrPath,
                                                             java.lang.String tagName,
                                                             java.lang.String releaseNotes)
                                                      throws GitLabApiException
        Add release notes to the existing git tag.
        GitLab Endpoint: POST /projects/:id/repository/tags/:tagName/release
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - the name of a tag
        releaseNotes - release notes with markdown support
        Returns:
        a Tag instance containing info on the newly created tag
        Throws:
        GitLabApiException - if any exception occurs
      • updateRelease

        public org.gitlab4j.api.models.Release updateRelease​(java.lang.Object projectIdOrPath,
                                                             java.lang.String tagName,
                                                             java.lang.String releaseNotes)
                                                      throws GitLabApiException
        Updates the release notes of a given release.
        GitLab Endpoint: PUT /projects/:id/repository/tags/:tagName/release
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        tagName - the name of a tag
        releaseNotes - release notes with markdown support
        Returns:
        a Tag instance containing info on the newly created tag
        Throws:
        GitLabApiException - if any exception occurs
      • getProtectedTags

        public java.util.List<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath)
                                                                              throws GitLabApiException
        Gets a list of protected tags from a project.
        GitLab Endpoint: GET /projects/:id/protected_tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        Returns:
        a List of protected tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getProtectedTags

        public java.util.List<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath,
                                                                                     int page,
                                                                                     int perPage)
                                                                              throws GitLabApiException
        Gets a list of protected tags from a project and in the specified page range.
        GitLab Endpoint: GET /projects/:id/protected_tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        page - the page to get
        perPage - the number of Tag instances per page
        Returns:
        a List of tags for the specified project ID and page range
        Throws:
        GitLabApiException - if any exception occurs
      • getProtectedTags

        public Pager<org.gitlab4j.api.models.ProtectedTag> getProtectedTags​(java.lang.Object projectIdOrPath,
                                                                            int itemsPerPage)
                                                                     throws GitLabApiException
        Get a Pager of protected tags for a project.
        GitLab Endpoint: GET /projects/:id/protected_tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        itemsPerPage - the number of Project instances that will be fetched per page
        Returns:
        the Pager of protected tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getProtectedTagsStream

        public java.util.stream.Stream<org.gitlab4j.api.models.ProtectedTag> getProtectedTagsStream​(java.lang.Object projectIdOrPath)
                                                                                             throws GitLabApiException
        Get a Stream of protected tags for a project.
        GitLab Endpoint: GET /projects/:id/protected_tags/:name
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        Returns:
        a Stream of protected tags for the specified project ID
        Throws:
        GitLabApiException - if any exception occurs
      • getProtectedTag

        public org.gitlab4j.api.models.ProtectedTag getProtectedTag​(java.lang.Object projectIdOrPath,
                                                                    java.lang.String name)
                                                             throws GitLabApiException
        Gets a single protected tag or wildcard protected tag
        GitLab Endpoint: GET /projects/:id/protected_tags/:name
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        name - the name of the tag or wildcard
        Returns:
        a ProtectedTag instance with info on the specified protected tag
        Throws:
        GitLabApiException - if any exception occurs
      • getOptionalProtectedTag

        public java.util.Optional<org.gitlab4j.api.models.ProtectedTag> getOptionalProtectedTag​(java.lang.Object projectIdOrPath,
                                                                                                java.lang.String name)
                                                                                         throws GitLabApiException
        Get an Optional instance holding a protected tag or wildcard protected tag.
        GitLab Endpoint: GET /projects/:id/protected_tags/:name
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        name - the name of the tag or wildcard
        Returns:
        an Optional instance with the specified protected tag as the value
        Throws:
        GitLabApiException - if any exception occurs
      • protectTag

        public org.gitlab4j.api.models.ProtectedTag protectTag​(java.lang.Object projectIdOrPath,
                                                               java.lang.String name,
                                                               org.gitlab4j.api.models.AccessLevel createAccessLevel)
                                                        throws GitLabApiException
        Protects a single repository tag or several project repository tags using a wildcard protected tag.
        GitLab Endpoint: POST /projects/:id/protected_tags
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        name - the name of the tag or wildcard
        createAccessLevel - the access level allowed to create
        Returns:
        a ProtectedTag instance
        Throws:
        GitLabApiException - if any exception occurs
      • unprotectTag

        public void unprotectTag​(java.lang.Object projectIdOrPath,
                                 java.lang.String name)
                          throws GitLabApiException
        Unprotects the given protected tag or wildcard protected tag.
        GitLab Endpoint: GET /projects/:id/protected_tags/:name
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        name - the name of the tag or wildcard
        Throws:
        GitLabApiException - if any exception occurs