public class UsersTemplate extends AbstractGithubTemplate implements UsersOperations
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_EMAILS_PATH |
| Constructor and Description |
|---|
UsersTemplate(org.springframework.web.client.RestOperations restOperations) |
| Modifier and Type | Method and Description |
|---|---|
List<Email> |
addEmails(List<String> emails) |
List<Email> |
addEmails(String... emails) |
ExtPubKey |
createPublicKey(PubKeyInput pubKey) |
void |
deleteEmails(List<String> emails) |
void |
deleteEmails(String... emails) |
void |
deletePublicKey(long id) |
ExtPubKey |
getPublicKey(long id) |
List<Email> |
listEmails() |
List<ExtPubKey> |
listPublicKeys() |
List<PubKey> |
listPublicKeys(String username) |
buildUri, buildUri, buildUriString, buildUriTemplate, getRestOperations, getRestOperationspublic static final String USER_EMAILS_PATH
public UsersTemplate(org.springframework.web.client.RestOperations restOperations)
public List<Email> listEmails()
listEmails in interface UsersOperationspublic List<Email> addEmails(String... emails)
addEmails in interface UsersOperationspublic List<Email> addEmails(List<String> emails)
addEmails in interface UsersOperationspublic void deleteEmails(String... emails)
deleteEmails in interface UsersOperationspublic void deleteEmails(List<String> emails)
deleteEmails in interface UsersOperationspublic List<PubKey> listPublicKeys(String username)
listPublicKeys in interface UsersOperationspublic List<ExtPubKey> listPublicKeys()
listPublicKeys in interface UsersOperationspublic ExtPubKey getPublicKey(long id)
getPublicKey in interface UsersOperationspublic ExtPubKey createPublicKey(PubKeyInput pubKey)
createPublicKey in interface UsersOperationspublic void deletePublicKey(long id)
deletePublicKey in interface UsersOperationsCopyright © 2015–2016 Zalando SE. All rights reserved.