Module bus.gitlab

Class GitLabCiYamlApi

java.lang.Object
org.miaixz.bus.gitlab.AbstractApi
org.miaixz.bus.gitlab.GitLabCiYamlApi
All Implemented Interfaces:
Constants

public class GitLabCiYamlApi extends AbstractApi
This class provides an entry point to all the GitLab CI YAML API calls.
See Also:
  • Constructor Details

    • GitLabCiYamlApi

      public GitLabCiYamlApi(GitLabApi gitLabApi)
  • Method Details

    • getAllGitLabCiYamlTemplates

      public List<GitLabCiTemplateElement> getAllGitLabCiYamlTemplates() throws GitLabApiException
      Get all GitLab CI/CD YAML templates.
       GitLab Endpoint: GET /templates/gitlab_ci_ymls
       
      Returns:
      a list of Gitlab CI YAML Templates
      Throws:
      GitLabApiException - if any exception occurs
    • getSingleGitLabCiYamlTemplate

      public GitLabCiTemplate getSingleGitLabCiYamlTemplate(String key) throws GitLabApiException
      Get a single GitLab CI/CD YAML template.
       GitLab Endpoint: GET /templates/gitlab_ci_ymls/:key
       
      Parameters:
      key - The key of the GitLab CI YAML template
      Returns:
      an Gitlab CI YAML Template
      Throws:
      GitLabApiException - if any exception occurs