Package org.openstack4j.api.senlin
Interface SenlinClusterService
-
- All Known Implementing Classes:
SenlinClusterServiceImpl
public interface SenlinClusterServiceThis interface defines all methods for the manipulation of Cluster- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionIDaction(String clusterID, ClusterActionCreate newClusterAction)Service implementation which provides methods for manipulation of actionClustercreate(ClusterCreate newCluster)POST /v1/clustersActionResponsedelete(String clusterID)Deletes the specifiedClusterfrom the server.Clusterget(String clusterID)returns details of aCluster.List<? extends Cluster>list()Gets a list of currently existingClusters.Clusterupdate(String clusterID, ClusterCreate newCluster)PATCH /v1/clusters/{cluster_id}
-
-
-
Method Detail
-
list
List<? extends Cluster> list()
Gets a list of currently existingClusters.- Returns:
- the list of
Clusters
-
get
Cluster get(String clusterID)
returns details of aCluster.- Parameters:
clusterID- Id ofCluster- Returns:
- Cluster
-
create
Cluster create(ClusterCreate newCluster)
- Parameters:
newCluster-ClusterCreateobject out of which cluster is to be created- Returns:
- new
Clusteras returned from the server
-
delete
ActionResponse delete(String clusterID)
Deletes the specifiedClusterfrom the server.- Parameters:
clusterID- Id ofCluster- Returns:
- the action response
-
update
Cluster update(String clusterID, ClusterCreate newCluster)
- Parameters:
clusterID- Id ofClusternewCluster-ClusterCreateobject out of which stack is to be update- Returns:
- new
Clusteras returned from the server
-
action
ActionID action(String clusterID, ClusterActionCreate newClusterAction)
Service implementation which provides methods for manipulation of action- Returns:
- Action
-
-