public class CredentialServiceImpl extends BaseOpenStackService implements CredentialService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
CredentialServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Credential |
create(Credential credential)
Create a new credential
|
Credential |
create(String blob,
String type,
String projectId,
String userId)
Create a new credential
|
ActionResponse |
delete(String credentialId)
Delete credential
|
Credential |
get(String credentialId)
Get details for a credential
|
List<? extends Credential> |
list()
List all credentials
|
Credential |
update(Credential credential)
Update credentials
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Credential create(Credential credential)
CredentialService
create
in interface CredentialService
credential
- the credentialpublic Credential create(String blob, String type, String projectId, String userId)
CredentialService
create
in interface CredentialService
blob
- the credential itself as serialized blobtype
- the credential type such as 'ec2', 'cert', ..projectId
- the id of the associated projectuserId
- the id of the user who owns the credentialpublic Credential get(String credentialId)
CredentialService
get
in interface CredentialService
credentialId
- the id of the credential objectpublic Credential update(Credential credential)
CredentialService
update
in interface CredentialService
credential
- the credential set to updatepublic ActionResponse delete(String credentialId)
CredentialService
delete
in interface CredentialService
credentialId
- the id of the credential objectpublic List<? extends Credential> list()
CredentialService
list
in interface CredentialService
Copyright © 2017. All rights reserved.