Class GHDeployment

    • Field Detail

      • payload

        protected Object payload
      • environment

        protected String environment
      • description

        protected String description
      • statuses_url

        protected String statuses_url
      • repository_url

        protected String repository_url
      • creator

        protected GHUser creator
      • original_environment

        protected String original_environment
      • transient_environment

        protected boolean transient_environment
      • production_environment

        protected boolean production_environment
    • Constructor Detail

      • GHDeployment

        public GHDeployment()
    • Method Detail

      • getStatusesUrl

        public URL getStatusesUrl()
        Gets statuses url.
        Returns:
        the statuses url
      • getRepositoryUrl

        public URL getRepositoryUrl()
        Gets repository url.
        Returns:
        the repository url
      • getTask

        public String getTask()
        Gets task.
        Returns:
        the task
      • getPayload

        public String getPayload()
        Gets payload. NOTE: only use this method if you can guarantee the payload will be a simple string, otherwise use getPayloadObject().
        Returns:
        the payload
      • getPayloadMap

        public Map<String,​Object> getPayloadMap()
        Gets payload. NOTE: only use this method if you can guarantee the payload will be a JSON object (Map), otherwise use getPayloadObject().
        Returns:
        the payload
      • getPayloadObject

        public Object getPayloadObject()
        Gets payload without assuming its type. It could be a String or a Map.
        Returns:
        the payload
      • getOriginalEnvironment

        @Deprecated
        @Preview(FLASH)
        public String getOriginalEnvironment()
        Deprecated.
        until preview feature has graduated to stable
        The environment defined when the deployment was first created.
        Returns:
        the original deployment environment
      • getEnvironment

        public String getEnvironment()
        Gets environment.
        Returns:
        the environment
      • isTransientEnvironment

        @Deprecated
        @Preview(ANT_MAN)
        public boolean isTransientEnvironment()
        Deprecated.
        until preview feature has graduated to stable
        Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.
        Returns:
        the environment is transient
      • isProductionEnvironment

        @Deprecated
        @Preview(ANT_MAN)
        public boolean isProductionEnvironment()
        Deprecated.
        until preview feature has graduated to stable
        Specifies if the given environment is one that end-users directly interact with.
        Returns:
        the environment is used by end-users directly
      • getRef

        public String getRef()
        Gets ref.
        Returns:
        the ref
      • getSha

        public String getSha()
        Gets sha.
        Returns:
        the sha
      • getHtmlUrl

        public URL getHtmlUrl()
        Deprecated.
        This object has no HTML URL.
        Description copied from class: GHObject
        Gets html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        URL of this object for humans, which renders some HTML.