public class KeypairServiceImpl extends BaseComputeServices implements KeypairService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
KeypairServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Keypair |
create(String name,
String publicKey)
Generates or imports a keypair
|
ActionResponse |
delete(String name)
Deletes the keypair by name
|
Keypair |
get(String name)
Gets the keypair by name
|
List<? extends Keypair> |
list()
Lists keypairs that are associated with the account making the request
|
invokeAction, invokeActionWithResponsedelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Keypair> list()
list in interface KeypairServicepublic Keypair get(String name)
get in interface KeypairServicename - the keypair namepublic ActionResponse delete(String name)
delete in interface KeypairServicename - the keypair namepublic Keypair create(String name, @Nullable String publicKey)
create in interface KeypairServicename - the name of the keypairpublicKey - the public key (optional), Null indicates one will be generatedCopyright © 2017. All rights reserved.