java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHAsset
Asset in a release.
- See Also:
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete.Gets browser download url.Gets content type.longGets download count.getLabel()Gets label.getName()Gets name.getOwner()Gets owner.longgetSize()Gets size.getState()Gets state.voidsetContentType(String contentType) Sets content type.voidSets label.static GHAsset[]Wrap gh asset [ ].Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHAsset
public GHAsset()Create default GHAsset instance
-
-
Method Details
-
wrap
Wrap gh asset [ ].- Parameters:
assets- the assetsrelease- the release- Returns:
- the gh asset [ ]
-
delete
Delete.- Throws:
IOException- the io exception
-
getBrowserDownloadUrl
Gets browser download url.- Returns:
- the browser download url
-
getContentType
Gets content type.- Returns:
- the content type
-
getDownloadCount
public long getDownloadCount()Gets download count.- Returns:
- the download count
-
getLabel
Gets label.- Returns:
- the label
-
getName
Gets name.- Returns:
- the name
-
getOwner
Gets owner.- Returns:
- the owner
-
getSize
public long getSize()Gets size.- Returns:
- the size
-
getState
Gets state.- Returns:
- the state
-
setContentType
Sets content type.- Parameters:
contentType- the content type- Throws:
IOException- the io exception
-
setLabel
Sets label.- Parameters:
label- the label- Throws:
IOException- the io exception
-