public class GHApp extends GHObject
GitHub#getApp()created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHApp() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets description.
|
List<GHEvent> |
getEvents()
Gets events.
|
String |
getExternalUrl()
Gets external url.
|
URL |
getHtmlUrl()
Gets html url.
|
GHAppInstallation |
getInstallationById(long id)
Deprecated.
|
GHAppInstallation |
getInstallationByOrganization(String name)
Deprecated.
|
GHAppInstallation |
getInstallationByRepository(String ownerName,
String repositoryName)
Deprecated.
|
GHAppInstallation |
getInstallationByUser(String name)
Deprecated.
|
long |
getInstallationsCount()
Gets installations count.
|
String |
getName()
Gets name.
|
GHUser |
getOwner()
Gets owner.
|
Map<String,String> |
getPermissions()
Gets permissions.
|
PagedIterable<GHAppInstallation> |
listInstallations()
Deprecated.
|
void |
setDescription(String description)
Sets description.
|
void |
setEvents(List<GHEvent> events)
Sets events.
|
void |
setExternalUrl(String externalUrl)
Sets external url.
|
void |
setInstallationsCount(long installationsCount)
Sets installations count.
|
void |
setName(String name)
Sets name.
|
void |
setOwner(GHUser owner)
Sets owner.
|
void |
setPermissions(Map<String,String> permissions)
Sets permissions.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic GHUser getOwner()
public void setOwner(GHUser owner)
owner - the ownerpublic String getName()
public void setName(String name)
name - the namepublic String getDescription()
public void setDescription(String description)
description - the descriptionpublic String getExternalUrl()
public void setExternalUrl(String externalUrl)
externalUrl - the external urlpublic long getInstallationsCount()
public void setInstallationsCount(long installationsCount)
installationsCount - the installations countpublic URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic Map<String,String> getPermissions()
public void setPermissions(Map<String,String> permissions)
permissions - the permissions@Preview @Deprecated public PagedIterable<GHAppInstallation> listInstallations()
You must use a JWT to access this endpoint.
@Preview @Deprecated public GHAppInstallation getInstallationById(long id) throws IOException
You must use a JWT to access this endpoint.
id - Installation IdIOException - on error@Preview @Deprecated public GHAppInstallation getInstallationByOrganization(String name) throws IOException
You must use a JWT to access this endpoint.
name - Organization nameIOException - on error@Preview @Deprecated public GHAppInstallation getInstallationByRepository(String ownerName, String repositoryName) throws IOException
You must use a JWT to access this endpoint.
ownerName - Organization or user namerepositoryName - Repository nameIOException - on error@Preview @Deprecated public GHAppInstallation getInstallationByUser(String name) throws IOException
You must use a JWT to access this endpoint.
name - user nameIOException - on errorCopyright © 2020. All rights reserved.