public class MagnumServiceImpl extends BaseOpenStackService implements MagnumService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
MagnumServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Bay |
createBay(Bay bay)
Creates a new bay
|
Baymodel |
createBaymodel(Baymodel baymodel)
Creates a new baymodel
|
Cluster |
createCluster(Cluster cluster)
Create new cluster based on cluster template
|
Clustertemplate |
createClustertemplate(Clustertemplate template)
Create new cluster template
|
Container |
createContainer(Container container)
Creates a new Container
|
Pod |
createPod(Pod pod)
Create a pod
|
ActionResponse |
deleteBay(String id)
Deletes a bay
|
ActionResponse |
deleteBaymodel(String id)
Deletes a baymodel
|
ActionResponse |
deleteCluster(String id)
Delete a cluster.
|
ActionResponse |
deleteClustertemplate(String id)
Delete a cluster template
|
ActionResponse |
deleteContainer(String uuid)
Deletes a Container
|
ActionResponse |
deletePod(String bayUuid,
String id)
Delete a pod
|
String |
execCmdInContainer(String id,
String cmd)
Execute command in a Container
|
Certificate |
getCertificate(String uuid)
Gets certificate
|
String |
getContainerLogs(String id)
Get logs of a Container
|
List<? extends Baymodel> |
listBaymodels()
Lists all Baymodels
|
List<? extends Bay> |
listBays()
Lists all Bays/clusters
|
List<? extends Cluster> |
listClusters()
List all clusters
|
List<? extends Clustertemplate> |
listClustertemplate()
List all cluster templates
|
List<? extends Container> |
listContainers()
Lists all Containers
|
List<? extends Mservice> |
listMservices()
Lists Magnum Services
|
List<? extends Pod> |
listPods(String bayUuid)
List all pods
|
Container |
pauseContainer(String id)
Pause a Container
|
Container |
rebootContainer(String id)
Reboot a Container
|
ActionResponse |
rotateCertificate(String uuid)
Rotate the CA certificate for a bay/cluster and
invalidate all user certificates.
|
Bay |
showBay(String id)
Show a bay
|
Baymodel |
showBaymodel(String id)
Gets all information of a baymodel
|
Cluster |
showCluster(String id)
Get all information of a cluster in Magnum
|
Container |
showContainer(String id)
Show a Container
|
Pod |
showPod(String bayUuid,
String id)
Show a pod
|
Certificate |
signCertificate(Carequest ca)
Generates certificate
|
Container |
startContainer(String id)
Start a Container
|
Container |
stopContainer(String id)
Stop a Container
|
Container |
unpauseContainer(String id)
Unpause a Container
|
Bay |
updateBay(String id,
String operations)
Update bay
|
Baymodel |
updateBaymodel(String id,
String operations)
Updates baymodel attributes
|
Cluster |
updateCluster(String id,
String operations)
Update information of one cluster attributes using operations
including: ``add``, ``replace`` or ``remove``.
|
Clustertemplate |
updateClustertemplate(String id,
String operations)
Update information of one cluster template attributes using operations
including: ``add``, ``replace`` or ``remove``.
|
Container |
updateContainer(String id,
String operations)
Update a container
|
Pod |
updatePod(String bayUuid,
String id,
String operations)
Update a pod
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Mservice> listMservices()
listMservices
in interface MagnumService
public List<? extends Baymodel> listBaymodels()
MagnumService
listBaymodels
in interface MagnumService
public Baymodel createBaymodel(Baymodel baymodel)
MagnumService
createBaymodel
in interface MagnumService
public ActionResponse deleteBaymodel(String id)
MagnumService
deleteBaymodel
in interface MagnumService
public Baymodel showBaymodel(String id)
MagnumService
showBaymodel
in interface MagnumService
public Baymodel updateBaymodel(String id, String operations)
MagnumService
updateBaymodel
in interface MagnumService
public List<? extends Bay> listBays()
MagnumService
listBays
in interface MagnumService
public Bay createBay(Bay bay)
MagnumService
createBay
in interface MagnumService
public ActionResponse deleteBay(String id)
MagnumService
deleteBay
in interface MagnumService
public Bay showBay(String id)
MagnumService
showBay
in interface MagnumService
public Bay updateBay(String id, String operations)
MagnumService
updateBay
in interface MagnumService
public List<? extends Container> listContainers()
MagnumService
listContainers
in interface MagnumService
public Container createContainer(Container container)
MagnumService
createContainer
in interface MagnumService
public ActionResponse deleteContainer(String uuid)
MagnumService
deleteContainer
in interface MagnumService
public String execCmdInContainer(String id, String cmd)
MagnumService
execCmdInContainer
in interface MagnumService
public String getContainerLogs(String id)
MagnumService
getContainerLogs
in interface MagnumService
public Container pauseContainer(String id)
MagnumService
pauseContainer
in interface MagnumService
public Container unpauseContainer(String id)
MagnumService
unpauseContainer
in interface MagnumService
public Container rebootContainer(String id)
MagnumService
rebootContainer
in interface MagnumService
public Container startContainer(String id)
MagnumService
startContainer
in interface MagnumService
public Container stopContainer(String id)
MagnumService
stopContainer
in interface MagnumService
public Container showContainer(String id)
MagnumService
showContainer
in interface MagnumService
public Container updateContainer(String id, String operations)
MagnumService
updateContainer
in interface MagnumService
public Certificate getCertificate(String uuid)
MagnumService
getCertificate
in interface MagnumService
uuid
- of a bay or clusterpublic Certificate signCertificate(Carequest ca)
MagnumService
signCertificate
in interface MagnumService
ca
- requestpublic ActionResponse rotateCertificate(String uuid)
MagnumService
rotateCertificate
in interface MagnumService
uuid
- of a bay or clusterpublic Cluster createCluster(Cluster cluster)
MagnumService
createCluster
in interface MagnumService
public List<? extends Cluster> listClusters()
MagnumService
listClusters
in interface MagnumService
public Cluster showCluster(String id)
MagnumService
showCluster
in interface MagnumService
id
- of the clusterpublic ActionResponse deleteCluster(String id)
MagnumService
deleteCluster
in interface MagnumService
id
- of the clusterpublic Cluster updateCluster(String id, String operations)
MagnumService
updateCluster
in interface MagnumService
public Clustertemplate createClustertemplate(Clustertemplate template)
MagnumService
createClustertemplate
in interface MagnumService
public List<? extends Clustertemplate> listClustertemplate()
MagnumService
listClustertemplate
in interface MagnumService
public ActionResponse deleteClustertemplate(String id)
MagnumService
deleteClustertemplate
in interface MagnumService
id
- of the clustertemplatepublic Clustertemplate updateClustertemplate(String id, String operations)
MagnumService
updateClustertemplate
in interface MagnumService
public List<? extends Pod> listPods(String bayUuid)
MagnumService
listPods
in interface MagnumService
public Pod createPod(Pod pod)
MagnumService
createPod
in interface MagnumService
public ActionResponse deletePod(String bayUuid, String id)
MagnumService
deletePod
in interface MagnumService
public Pod showPod(String bayUuid, String id)
MagnumService
showPod
in interface MagnumService
public Pod updatePod(String bayUuid, String id, String operations)
MagnumService
updatePod
in interface MagnumService
Copyright © 2017. All rights reserved.