Package org.openstack4j.api.workflow
Interface ActionDefinitionService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ActionDefinitionServiceImpl
public interface ActionDefinitionService extends RestService
Service that provides CRUD operations for action definitions.- Author:
- Renat Akhmerov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends ActionDefinition>create(InputStream actionText, 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.
-
-
-
Method Detail
-
list
List<? extends ActionDefinition> list()
List all action definitions with details.- Returns:
- List of action definitions.
-
create
List<? extends ActionDefinition> create(InputStream actionText, Scope scope)
Create a new action definition.- Parameters:
actionText- Text in YAML format (Mistral language) with one or more action definitions.scope- Scope of newly created workflows.- Returns:
- Created action definition.
-
get
ActionDefinition get(String identifier)
Get action definition by its identifier.- Parameters:
identifier- Action definition identifier (either ID or name).- Returns:
- Action definition.
-
delete
ActionResponse delete(String identifier)
Delete action definition by its identifier.- Parameters:
identifier- Action definition identifier (either ID or name).- Returns:
- Action response from the server.
-
-