Package org.kohsuke.github
Class GHAsset
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHAsset
-
public class GHAsset extends GHObject
Asset in a release.- See Also:
GHRelease#getAssets()
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHAsset()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()Delete.StringgetBrowserDownloadUrl()Gets browser download url.StringgetContentType()Gets content type.longgetDownloadCount()Gets download count.URLgetHtmlUrl()Deprecated.This object has no HTML URL.StringgetLabel()Gets label.StringgetName()Gets name.GHRepositorygetOwner()Gets owner.GitHubgetRoot()Deprecated.This method should be used internally only.longgetSize()Gets size.StringgetState()Gets state.voidsetContentType(String contentType)Sets content type.voidsetLabel(String label)Sets label.static GHAsset[]wrap(GHAsset[] assets, GHRelease release)Wrap gh asset [ ].-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
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
@Deprecated public GitHub getRoot()
Deprecated.This method should be used internally only.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:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getBrowserDownloadUrl
public String getBrowserDownloadUrl()
Gets browser download url.- Returns:
- the browser download url
-
delete
public void delete() throws IOExceptionDelete.- Throws:
IOException- the io exception
-
-