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, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Keypair> list()
list
in interface KeypairService
public Keypair get(String name)
get
in interface KeypairService
name
- the keypair namepublic ActionResponse delete(String name)
delete
in interface KeypairService
name
- the keypair namepublic Keypair create(String name, @Nullable String publicKey)
create
in interface KeypairService
name
- the name of the keypairpublicKey
- the public key (optional), Null indicates one will be generatedCopyright © 2017. All rights reserved.