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 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
-
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
-