Class ClusterTemplateServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.ClusterTemplateServiceImpl
-
- All Implemented Interfaces:
ClusterTemplateService,RestService
public class ClusterTemplateServiceImpl extends BaseSaharaServices implements ClusterTemplateService
Sahara Data Processing Operations- Author:
- Ekasit Kijsipongse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ClusterTemplateServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterTemplatecreate(ClusterTemplate template)Create a new cluster templateActionResponsedelete(String templateId)Delete the specified cluster templateClusterTemplateget(String templateId)Get a cluster template by IDList<? extends ClusterTemplate>list()List all cluster templates-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends ClusterTemplate> list()
List all cluster templates- Specified by:
listin interfaceClusterTemplateService- Returns:
- list of cluster templates or empty
-
get
public ClusterTemplate get(String templateId)
Get a cluster template by ID- Specified by:
getin interfaceClusterTemplateService- Parameters:
templateId- the template identifier- Returns:
- the cluster template or null if not found
-
create
public ClusterTemplate create(ClusterTemplate template)
Create a new cluster template- Specified by:
createin interfaceClusterTemplateService- Parameters:
template- the cluster template to create- Returns:
- the created cluster template
-
delete
public ActionResponse delete(String templateId)
Delete the specified cluster template- Specified by:
deletein interfaceClusterTemplateService- Parameters:
templateId- the template identifier- Returns:
- the action response
-
-