|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudbees.api.CBUser
public class CBUser
Represetns an user in the CloudBees platform.
A user typically represents a human that can login to the system. One user can belong to multiple accounts, and vice versa.
| Field Summary | |
|---|---|
List<CBAccount> |
accounts
|
String |
email
|
String |
first_name
|
String |
id
Unique identifier of the user. |
String |
last_name
|
String |
name
This is the login ID, a short token without any whitespace, any special characters, etc. |
PartiallyCreatedUser |
partially_created
This field is set by the server when you create an user with incomplete information, to indicate that the user was partially created and the rest of the registration needs to be completed by the user before the account becomes fully usable. |
String |
password
|
List<String> |
roles
|
List<CBSshKey> |
ssh_keys
|
| Constructor Summary | |
|---|---|
CBUser()
|
|
| Method Summary | |
|---|---|
CBUser |
createAccount(String name)
Creates an account and add this user to it. |
void |
delete()
|
CBUser |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String first_name
public String last_name
public String email
public String name
public String password
public String id
public List<String> roles
public PartiallyCreatedUser partially_created
public List<CBAccount> accounts
public List<CBSshKey> ssh_keys
| Constructor Detail |
|---|
public CBUser()
| Method Detail |
|---|
public CBUser createAccount(String name)
throws IOException
IOException
public void delete()
throws IOException
IOException
public CBUser update()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||