Class TriggerSourceProperties

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class TriggerSourceProperties
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Properties of the source, which define the URL of the repository and a branch or pattern.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBranch()
      Gets the branch.
      java.lang.String getHookId()
      Gets the hookId.
      java.lang.String getPattern()
      Gets the pattern.
      Tool getTool()
      Gets the tool.
      java.lang.String getUrl()
      Gets the url.
      java.lang.Boolean isBlindConnection()
      Gets the blindConnection.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Gets the url. URL of the repository to which the trigger is listening.
        Returns:
        the url
      • getBranch

        public java.lang.String getBranch()
        Gets the branch. Name of a branch from the repo. One of branch or pattern must be specified, but only one or the other.
        Returns:
        the branch
      • getPattern

        public java.lang.String getPattern()
        Gets the pattern. The pattern of Git branch or tag to which to listen. You can specify a glob pattern such as '!test' or '*master' to match against multiple tags/branches in the repository. The glob pattern used must conform to Bash 4.3 specifications, see bash documentation for more info: https://www.gnu.org/software/bash/manual/bash.html#Pattern-Matching. One of branch or pattern must be specified, but only one or the other.
        Returns:
        the pattern
      • isBlindConnection

        public java.lang.Boolean isBlindConnection()
        Gets the blindConnection. True if the repository server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide.
        Returns:
        the blindConnection
      • getHookId

        public java.lang.String getHookId()
        Gets the hookId. ID of the webhook from the repo. Computed upon creation of the trigger.
        Returns:
        the hookId
      • getTool

        public Tool getTool()
        Gets the tool. Reference to the repository tool in the parent toolchain.
        Returns:
        the tool