public class DeployKeyService extends GitHubService
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_RAW, ACCEPT_TEXT, client| Constructor and Description |
|---|
DeployKeyService()
Create deploy key service
|
DeployKeyService(GitHubClient client)
Create deploy key service
|
| Modifier and Type | Method and Description |
|---|---|
Key |
createKey(IRepositoryIdProvider repository,
Key key)
Create deploy key to be associated with given repository
|
void |
deleteKey(IRepositoryIdProvider repository,
int id)
Deploy deploy key with given id from given repository
|
Key |
editKey(IRepositoryIdProvider repository,
Key key)
Edit given deploy key
|
Key |
getKey(IRepositoryIdProvider repository,
int id)
Get deploy key with given id from given repository
|
java.util.List<Key> |
getKeys(IRepositoryIdProvider repository)
Get all deploys keys associated with the given repository
|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepositorypublic DeployKeyService()
public DeployKeyService(GitHubClient client)
client - public java.util.List<Key> getKeys(IRepositoryIdProvider repository) throws java.io.IOException
repository - java.io.IOExceptionpublic Key getKey(IRepositoryIdProvider repository, int id) throws java.io.IOException
repository - id - java.io.IOExceptionpublic Key createKey(IRepositoryIdProvider repository, Key key) throws java.io.IOException
repository - key - java.io.IOExceptionpublic Key editKey(IRepositoryIdProvider repository, Key key) throws java.io.IOException
repository - key - java.io.IOExceptionpublic void deleteKey(IRepositoryIdProvider repository, int id) throws java.io.IOException
repository - id - java.io.IOException