public class UserResource extends AbstractOpenShiftResource implements IUser
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest| Constructor and Description |
|---|
UserResource(APIResource api,
UserResourceDTO dto,
String password) |
getCreationLog, getLink, getMessages, hasCreationLog, setLinksclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreationLog, getMessages, hasCreationLogpublic UserResource(APIResource api, UserResourceDTO dto, String password)
public IOpenShiftConnection getConnection()
getConnection in interface IUserpublic String getRhlogin()
getRhlogin in interface IUserpublic String getPassword()
getPassword in interface IUserpublic int getMaxGears()
getMaxGears in interface IUserpublic int getConsumedGears()
getConsumedGears in interface IUserpublic IDomain createDomain(String id) throws OpenShiftException
createDomain in interface IUserOpenShiftExceptionpublic List<IDomain> getDomains() throws OpenShiftException
getDomains in interface IUserOpenShiftExceptionpublic IDomain getDefaultDomain() throws OpenShiftException
getDefaultDomain in interface IUserOpenShiftExceptionpublic IDomain getDomain(String id) throws OpenShiftException
getDomain in interface IUserOpenShiftExceptionpublic boolean hasDomain()
throws OpenShiftException
hasDomain in interface IUserOpenShiftExceptionpublic boolean hasDomain(String id) throws OpenShiftException
hasDomain in interface IUserOpenShiftExceptionpublic IAuthorization createAuthorization(String note, String scopes) throws OpenShiftException
IUsercreateAuthorization in interface IUsernote - A reminder description of what the authorization is for.scopes - Scope of the authorization token to determine type of access.OpenShiftExceptionpublic IAuthorization createAuthorization(String note, String scopes, int expiresIn) throws OpenShiftException
IUsercreateAuthorization in interface IUsernote - A reminder description of what the authorization is for.scopes - Scope of the authorization token to determine type of access.expiresIn - The number of seconds before this authorization expires.OpenShiftExceptionpublic IAuthorization getAuthorization() throws OpenShiftException
IUsergetAuthorization in interface IUserOpenShiftExceptionpublic IAuthorization getAuthorization(String id) throws OpenShiftException
IUsergetAuthorization in interface IUserid - authorization token or idOpenShiftExceptionpublic Collection<IAuthorization> getAuthorizations() throws OpenShiftException
IUsergetAuthorizations in interface IUserOpenShiftExceptionpublic boolean removeAuthorization(String id)
IUserremoveAuthorization in interface IUserid - authorization token or idpublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionpublic List<IOpenShiftSSHKey> getSSHKeys() throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeys in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic boolean removeSSHKey(String name)
removeSSHKey in interface IUser@Deprecated public void deleteKey(String name)
public IOpenShiftSSHKey getSSHKeyByName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByName in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic boolean hasSSHKeyName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHKeyName in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic boolean hasSSHPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException
IUserIUser.addSSHKey(String, ISSHPublicKey)putSSHKey in interface IUsername - key name to usekey - the key to put/addOpenShiftExceptionpublic IOpenShiftSSHKey addSSHKey(String name, ISSHPublicKey key) throws OpenShiftException
IUseraddSSHKey in interface IUsername - the name to identify the keykey - the key to addOpenShiftExceptionprotected void removeSSHKey(SSHKeyResource key)
Copyright © 2016 JBoss by Red Hat. All rights reserved.