Class NodeGroupTemplateServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.NodeGroupTemplateServiceImpl
-
- All Implemented Interfaces:
NodeGroupTemplateService
,RestService
public class NodeGroupTemplateServiceImpl extends BaseSaharaServices implements NodeGroupTemplateService
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 NodeGroupTemplateServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeGroupTemplate
create(NodeGroupTemplate template)
Create a new node group templateActionResponse
delete(String templateId)
Delete the specified node group templateNodeGroupTemplate
get(String templateId)
Get a node group template by IDList<? extends NodeGroupTemplate>
list()
List all node group 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 NodeGroupTemplate> list()
List all node group templates- Specified by:
list
in interfaceNodeGroupTemplateService
- Returns:
- list of node group templates or empty
-
get
public NodeGroupTemplate get(String templateId)
Get a node group template by ID- Specified by:
get
in interfaceNodeGroupTemplateService
- Parameters:
templateId
- the template identifier- Returns:
- the node group template or null if not found
-
create
public NodeGroupTemplate create(NodeGroupTemplate template)
Create a new node group template- Specified by:
create
in interfaceNodeGroupTemplateService
- Parameters:
template
- the node group template to create- Returns:
- the created node group template
-
delete
public ActionResponse delete(String templateId)
Delete the specified node group template- Specified by:
delete
in interfaceNodeGroupTemplateService
- Parameters:
templateId
- the template identifier- Returns:
- the action response
-
-