Class ActionDefinitionServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.workflow.internal.ActionDefinitionServiceImpl
-
- All Implemented Interfaces:
ActionDefinitionService,RestService
public class ActionDefinitionServiceImpl extends BaseOpenStackService implements ActionDefinitionService
Action definition service implementation.- Author:
- Renat Akhmerov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ActionDefinitionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends ActionDefinition>create(InputStream wfText, Scope scope)Create a new action definition.ActionResponsedelete(String identifier)Delete action definition by its identifier.ActionDefinitionget(String identifier)Get action definition by its identifier.List<? extends ActionDefinition>list()List all action definitions with details.-
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 ActionDefinition> list()
Description copied from interface:ActionDefinitionServiceList all action definitions with details.- Specified by:
listin interfaceActionDefinitionService- Returns:
- List of action definitions.
-
create
public List<? extends ActionDefinition> create(InputStream wfText, Scope scope)
Description copied from interface:ActionDefinitionServiceCreate a new action definition.- Specified by:
createin interfaceActionDefinitionService- Parameters:
wfText- Text in YAML format (Mistral language) with one or more action definitions.scope- Scope of newly created workflows.- Returns:
- Created action definition.
-
get
public ActionDefinition get(String identifier)
Description copied from interface:ActionDefinitionServiceGet action definition by its identifier.- Specified by:
getin interfaceActionDefinitionService- Parameters:
identifier- Action definition identifier (either ID or name).- Returns:
- Action definition.
-
delete
public ActionResponse delete(String identifier)
Description copied from interface:ActionDefinitionServiceDelete action definition by its identifier.- Specified by:
deletein interfaceActionDefinitionService- Parameters:
identifier- Action definition identifier (either ID or name).- Returns:
- Action response from the server.
-
-