public class GHAppInstallation extends GHObject
GHApp#listInstallations(),
GHApp#getInstallationById(long),
GHApp#getInstallationByOrganization(String),
GHApp#getInstallationByRepository(String, String),
GHApp#getInstallationByUser(String)created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHAppInstallation() |
| Modifier and Type | Method and Description |
|---|---|
GHAppCreateTokenBuilder |
createToken()
Deprecated.
|
GHAppCreateTokenBuilder |
createToken(Map<String,GHPermissionType> permissions)
Deprecated.
Use
createToken() instead. |
void |
deleteInstallation()
Deprecated.
|
String |
getAccessTokenUrl()
Gets access token url.
|
GHUser |
getAccount()
Gets account.
|
long |
getAppId()
Gets app id.
|
List<GHEvent> |
getEvents()
Gets events.
|
URL |
getHtmlUrl()
Gets html url.
|
Map<String,GHPermissionType> |
getPermissions()
Gets permissions.
|
String |
getRepositoriesUrl()
Gets repositories url.
|
GHRepositorySelection |
getRepositorySelection()
Gets repository selection.
|
GitHub |
getRoot()
Gets root.
|
String |
getSingleFileName()
Gets single file name.
|
long |
getTargetId()
Gets target id.
|
GHTargetType |
getTargetType()
Gets target type.
|
void |
setAccessTokenUrl(String accessTokenUrl)
Sets access token url.
|
void |
setAccount(GHUser account)
Sets account.
|
void |
setAppId(long appId)
Sets app id.
|
void |
setEvents(List<GHEvent> events)
Sets events.
|
void |
setPermissions(Map<String,GHPermissionType> permissions)
Sets permissions.
|
void |
setRepositoriesUrl(String repositoriesUrl)
Sets repositories url.
|
void |
setRepositorySelection(GHRepositorySelection repositorySelection)
Sets repository selection.
|
void |
setRoot(GitHub root)
Sets root.
|
void |
setSingleFileName(String singleFileName)
Sets single file name.
|
void |
setTargetId(long targetId)
Sets target id.
|
void |
setTargetType(GHTargetType targetType)
Sets target type.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic GitHub getRoot()
public void setRoot(GitHub root)
root - the rootpublic GHUser getAccount()
public void setAccount(GHUser account)
account - the accountpublic String getAccessTokenUrl()
public void setAccessTokenUrl(String accessTokenUrl)
accessTokenUrl - the access token urlpublic String getRepositoriesUrl()
public void setRepositoriesUrl(String repositoriesUrl)
repositoriesUrl - the repositories urlpublic long getAppId()
public void setAppId(long appId)
appId - the app idpublic long getTargetId()
public void setTargetId(long targetId)
targetId - the target idpublic GHTargetType getTargetType()
public void setTargetType(GHTargetType targetType)
targetType - the target typepublic Map<String,GHPermissionType> getPermissions()
public void setPermissions(Map<String,GHPermissionType> permissions)
permissions - the permissionspublic String getSingleFileName()
public void setSingleFileName(String singleFileName)
singleFileName - the single file namepublic GHRepositorySelection getRepositorySelection()
public void setRepositorySelection(GHRepositorySelection repositorySelection)
repositorySelection - the repository selection@Preview @Deprecated public void deleteInstallation() throws IOException
You must use a JWT to access this endpoint.
IOException - on error@Preview @Deprecated public GHAppCreateTokenBuilder createToken(Map<String,GHPermissionType> permissions)
createToken() instead.
You use the returned builder to set various properties, then call GHAppCreateTokenBuilder.create() to
finally create an access token.
permissions - map of permissions for the created token@Preview @Deprecated public GHAppCreateTokenBuilder createToken()
You use the returned builder to set various properties, then call GHAppCreateTokenBuilder.create() to
finally create an access token.
Copyright © 2020. All rights reserved.