Package org.kohsuke.github
Class GHAppInstallation
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHAppInstallation
-
public class GHAppInstallation extends GHObject
A Github App Installation.- Author:
- Paulo Miguel Almeida
- See Also:
GHApp#listInstallations(),GHApp#getInstallationById(long),GHApp#getInstallationByOrganization(String),GHApp#getInstallationByRepository(String, String),GHApp#getInstallationByUser(String)
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHAppInstallation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GHAppCreateTokenBuildercreateToken(Map<String,GHPermissionType> permissions)Deprecated.voiddeleteInstallation()Deprecated.StringgetAccessTokenUrl()Gets access token url.GHUsergetAccount()Gets account.longgetAppId()Gets app id.List<GHEvent>getEvents()Gets events.URLgetHtmlUrl()Gets html url.Map<String,GHPermissionType>getPermissions()Gets permissions.StringgetRepositoriesUrl()Gets repositories url.GHRepositorySelectiongetRepositorySelection()Gets repository selection.GitHubgetRoot()Gets root.StringgetSingleFileName()Gets single file name.longgetTargetId()Gets target id.GHTargetTypegetTargetType()Gets target type.voidsetAccessTokenUrl(String accessTokenUrl)Sets access token url.voidsetAccount(GHUser account)Sets account.voidsetAppId(long appId)Sets app id.voidsetEvents(List<GHEvent> events)Sets events.voidsetPermissions(Map<String,GHPermissionType> permissions)Sets permissions.voidsetRepositoriesUrl(String repositoriesUrl)Sets repositories url.voidsetRepositorySelection(GHRepositorySelection repositorySelection)Sets repository selection.voidsetRoot(GitHub root)Sets root.voidsetSingleFileName(String singleFileName)Sets single file name.voidsetTargetId(long targetId)Sets target id.voidsetTargetType(GHTargetType targetType)Sets target type.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Method Detail
-
getHtmlUrl
public URL getHtmlUrl()
Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getRoot
public GitHub getRoot()
Gets root.- Returns:
- the root
-
setRoot
public void setRoot(GitHub root)
Sets root.- Parameters:
root- the root
-
getAccount
public GHUser getAccount()
Gets account.- Returns:
- the account
-
setAccount
public void setAccount(GHUser account)
Sets account.- Parameters:
account- the account
-
getAccessTokenUrl
public String getAccessTokenUrl()
Gets access token url.- Returns:
- the access token url
-
setAccessTokenUrl
public void setAccessTokenUrl(String accessTokenUrl)
Sets access token url.- Parameters:
accessTokenUrl- the access token url
-
getRepositoriesUrl
public String getRepositoriesUrl()
Gets repositories url.- Returns:
- the repositories url
-
setRepositoriesUrl
public void setRepositoriesUrl(String repositoriesUrl)
Sets repositories url.- Parameters:
repositoriesUrl- the repositories url
-
getAppId
public long getAppId()
Gets app id.- Returns:
- the app id
-
setAppId
public void setAppId(long appId)
Sets app id.- Parameters:
appId- the app id
-
getTargetId
public long getTargetId()
Gets target id.- Returns:
- the target id
-
setTargetId
public void setTargetId(long targetId)
Sets target id.- Parameters:
targetId- the target id
-
getTargetType
public GHTargetType getTargetType()
Gets target type.- Returns:
- the target type
-
setTargetType
public void setTargetType(GHTargetType targetType)
Sets target type.- Parameters:
targetType- the target type
-
getPermissions
public Map<String,GHPermissionType> getPermissions()
Gets permissions.- Returns:
- the permissions
-
setPermissions
public void setPermissions(Map<String,GHPermissionType> permissions)
Sets permissions.- Parameters:
permissions- the permissions
-
getSingleFileName
public String getSingleFileName()
Gets single file name.- Returns:
- the single file name
-
setSingleFileName
public void setSingleFileName(String singleFileName)
Sets single file name.- Parameters:
singleFileName- the single file name
-
getRepositorySelection
public GHRepositorySelection getRepositorySelection()
Gets repository selection.- Returns:
- the repository selection
-
setRepositorySelection
public void setRepositorySelection(GHRepositorySelection repositorySelection)
Sets repository selection.- Parameters:
repositorySelection- the repository selection
-
deleteInstallation
@Preview @Deprecated public void deleteInstallation() throws IOException
Deprecated.Delete a Github App installationYou must use a JWT to access this endpoint.
- Throws:
IOException- on error- See Also:
- Delete an installation
-
createToken
@Preview @Deprecated public GHAppCreateTokenBuilder createToken(Map<String,GHPermissionType> permissions)
Deprecated.Starts a builder that creates a new App Installation Token.You use the returned builder to set various properties, then call
GHAppCreateTokenBuilder.create()to finally create an access token.- Parameters:
permissions- map of permissions for the created token- Returns:
- a GHAppCreateTokenBuilder on error
-
-