public class GHAsset extends GHObject
GHRelease#getAssets()created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHAsset() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete.
|
String |
getBrowserDownloadUrl()
Gets browser download url.
|
String |
getContentType()
Gets content type.
|
long |
getDownloadCount()
Gets download count.
|
URL |
getHtmlUrl()
Deprecated.
This object has no HTML URL.
|
String |
getLabel()
Gets label.
|
String |
getName()
Gets name.
|
GHRepository |
getOwner()
Gets owner.
|
GitHub |
getRoot()
Gets root.
|
long |
getSize()
Gets size.
|
String |
getState()
Gets state.
|
void |
setContentType(String contentType)
Sets content type.
|
void |
setLabel(String label)
Sets label.
|
static GHAsset[] |
wrap(GHAsset[] assets,
GHRelease release)
Wrap gh asset [ ].
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic String getContentType()
public void setContentType(String contentType) throws IOException
contentType - the content typeIOException - the io exceptionpublic long getDownloadCount()
public String getLabel()
public void setLabel(String label) throws IOException
label - the labelIOException - the io exceptionpublic String getName()
public GHRepository getOwner()
public GitHub getRoot()
public long getSize()
public String getState()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic String getBrowserDownloadUrl()
public void delete()
throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.