Class MuranoApplicationServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.murano.v1.internal.MuranoApplicationServiceImpl
-
- All Implemented Interfaces:
MuranoApplicationService,RestService
public class MuranoApplicationServiceImpl extends BaseOpenStackService implements MuranoApplicationService
- Author:
- Nikolay Mahotkin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description MuranoApplicationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends Application>create(String environmentId, String sessionId, String jsonString)Applicationcreate(String environmentId, String sessionId, Map<String,Object> data)Creates a new serviceActionResponsedelete(String environmentId, String path, String sessionId)Deletes the specified serviceList<? extends Application>get(String environmentId, String path)List<? extends Application>get(String environmentId, String path, String sessionId)Gets services by environmentIdList<? extends Application>list(String environmentId)List<? extends Application>list(String environmentId, String sessionId)List all servicesList<? extends Application>update(String environmentId, String sessionId, String jsonString)Applicationupdate(String environmentId, String sessionId, Map<String,Object> data)Updates services-
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 Application> list(String environmentId, String sessionId)
List all services- Specified by:
listin interfaceMuranoApplicationService- Parameters:
environmentId- the environment identifiersessionId- the session identifier- Returns:
- list of environments or empty list
-
list
public List<? extends Application> list(String environmentId)
- Specified by:
listin interfaceMuranoApplicationService
-
get
public List<? extends Application> get(String environmentId, String path, String sessionId)
Gets services by environmentId- Specified by:
getin interfaceMuranoApplicationService- Parameters:
environmentId- the environment identifierpath- the path identifiersessionId- the session identifier- Returns:
- the list of requested services (this is a general case for services().get() )
-
get
public List<? extends Application> get(String environmentId, String path)
- Specified by:
getin interfaceMuranoApplicationService
-
create
public Application create(String environmentId, String sessionId, Map<String,Object> data)
Creates a new service- Specified by:
createin interfaceMuranoApplicationService- Parameters:
environmentId- the environment to createsessionId- session identifierdata- service data structure (object model)- Returns:
- the created service
-
create
public List<? extends Application> create(String environmentId, String sessionId, String jsonString)
- Specified by:
createin interfaceMuranoApplicationServicejsonString- raw String containing the apps configuration.- Returns:
- the list of created services.
-
update
public Application update(String environmentId, String sessionId, Map<String,Object> data)
Updates services- Specified by:
updatein interfaceMuranoApplicationService- Parameters:
environmentId- environment identifiersessionId- session identifierdata- service data structure (object model)- Returns:
- create service
-
update
public List<? extends Application> update(String environmentId, String sessionId, String jsonString)
- Specified by:
updatein interfaceMuranoApplicationService
-
delete
public ActionResponse delete(String environmentId, String path, String sessionId)
Deletes the specified service- Specified by:
deletein interfaceMuranoApplicationService- Parameters:
environmentId- the environment identifierpath- the path identifiersessionId- the session identifier- Returns:
- the action response
-
-