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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Delete.Gets browser download url.Gets content type.long
Gets download count.getLabel()
Gets label.getName()
Gets name.getOwner()
Gets owner.long
getSize()
Gets size.getState()
Gets state.void
setContentType
(String contentType) Sets content type.void
Sets 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
-
getContentType
Gets content type.- Returns:
- the content type
-
setContentType
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
Gets label.- Returns:
- the label
-
setLabel
Sets label.- Parameters:
label
- the label- Throws:
IOException
- the io exception
-
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
-
getBrowserDownloadUrl
Gets browser download url.- Returns:
- the browser download url
-
delete
Delete.- Throws:
IOException
- the io exception
-
wrap
Wrap gh asset [ ].- Parameters:
assets
- the assetsrelease
- the release- Returns:
- the gh asset [ ]
-