Class ConsoleSampleGitImportSourceRepository

    • Constructor Detail

      • ConsoleSampleGitImportSourceRepository

        public ConsoleSampleGitImportSourceRepository()
        No args constructor for use in serialization
      • ConsoleSampleGitImportSourceRepository

        public ConsoleSampleGitImportSourceRepository​(String contextDir,
                                                      String revision,
                                                      String url)
    • Method Detail

      • getContextDir

        public String getContextDir()
        contextDir is used to specify a directory within the repository to build the component. Must start with `/` and have a maximum length of 256 characters. When omitted, the default value is to build from the root of the repository.
      • setContextDir

        public void setContextDir​(String contextDir)
        contextDir is used to specify a directory within the repository to build the component. Must start with `/` and have a maximum length of 256 characters. When omitted, the default value is to build from the root of the repository.
      • getRevision

        public String getRevision()
        revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA. Must be at most 256 characters in length. When omitted the repository's default branch is used.
      • setRevision

        public void setRevision​(String revision)
        revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA. Must be at most 256 characters in length. When omitted the repository's default branch is used.
      • getUrl

        public String getUrl()
        url of the Git repository that contains a HTTP service. The HTTP service must be exposed on the default port (8080) unless otherwise configured with the port field.


        Only public repositories on GitHub, GitLab and Bitbucket are currently supported:


        - https://github.com/<org>/<repository>

        - https://gitlab.com/<org>/<repository>

        - https://bitbucket.org/<org>/<repository>


        The url must have a maximum length of 256 characters.

      • setUrl

        public void setUrl​(String url)
        url of the Git repository that contains a HTTP service. The HTTP service must be exposed on the default port (8080) unless otherwise configured with the port field.


        Only public repositories on GitHub, GitLab and Bitbucket are currently supported:


        - https://github.com/<org>/<repository>

        - https://gitlab.com/<org>/<repository>

        - https://bitbucket.org/<org>/<repository>


        The url must have a maximum length of 256 characters.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)