Class GHAsset

    • Constructor Detail

      • GHAsset

        public GHAsset()
    • Method Detail

      • getContentType

        public String getContentType()
        Gets content type.
        Returns:
        the content type
      • setContentType

        public void setContentType​(String contentType)
                            throws IOException
        Sets content type.
        Parameters:
        contentType - the content type
        Throws:
        IOException - the io exception
      • getDownloadCount

        public long getDownloadCount()
        Gets download count.
        Returns:
        the download count
      • getLabel

        public String getLabel()
        Gets label.
        Returns:
        the label
      • setLabel

        public void setLabel​(String label)
                      throws IOException
        Sets label.
        Parameters:
        label - the label
        Throws:
        IOException - the io exception
      • getName

        public String getName()
        Gets name.
        Returns:
        the name
      • getOwner

        public GHRepository getOwner()
        Gets owner.
        Returns:
        the owner
      • getRoot

        public GitHub getRoot()
        Gets root.
        Returns:
        the root
      • getSize

        public long getSize()
        Gets size.
        Returns:
        the size
      • getState

        public String getState()
        Gets state.
        Returns:
        the state
      • 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.
      • getBrowserDownloadUrl

        public String getBrowserDownloadUrl()
        Gets browser download url.
        Returns:
        the browser download url
      • wrap

        public static GHAsset[] wrap​(GHAsset[] assets,
                                     GHRelease release)
        Wrap gh asset [ ].
        Parameters:
        assets - the assets
        release - the release
        Returns:
        the gh asset [ ]