Class WorkbookDefinitionServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.workflow.internal.WorkbookDefinitionServiceImpl
-
- All Implemented Interfaces:
WorkbookDefinitionService,RestService
public class WorkbookDefinitionServiceImpl extends BaseOpenStackService implements WorkbookDefinitionService
Workbook 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 WorkbookDefinitionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkbookDefinitioncreate(InputStream wfText, Scope scope)Create a new workbook definition.ActionResponsedelete(String identifier)Delete workbook definition by its identifier.WorkbookDefinitionget(String identifier)Get workbook definition by its identifier.List<? extends WorkbookDefinition>list()List all workbook 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 WorkbookDefinition> list()
Description copied from interface:WorkbookDefinitionServiceList all workbook definitions with details.- Specified by:
listin interfaceWorkbookDefinitionService- Returns:
- List of workbook definitions.
-
create
public WorkbookDefinition create(InputStream wfText, Scope scope)
Description copied from interface:WorkbookDefinitionServiceCreate a new workbook definition.- Specified by:
createin interfaceWorkbookDefinitionService- Parameters:
wfText- Text in YAML format (Mistral language) with a workbook definition.scope- Scope of newly created workbook.- Returns:
- Created workbook definition.
-
get
public WorkbookDefinition get(String identifier)
Description copied from interface:WorkbookDefinitionServiceGet workbook definition by its identifier.- Specified by:
getin interfaceWorkbookDefinitionService- Parameters:
identifier- Workbook definition identifier (either ID or name).- Returns:
- Workbook definition.
-
delete
public ActionResponse delete(String identifier)
Description copied from interface:WorkbookDefinitionServiceDelete workbook definition by its identifier.- Specified by:
deletein interfaceWorkbookDefinitionService- Parameters:
identifier- Workbook definition identifier (either ID or name).- Returns:
- Action response from the server.
-
-