Class MuranoEnvironmentServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.murano.v1.internal.MuranoEnvironmentServiceImpl
-
- All Implemented Interfaces:
MuranoEnvironmentService,RestService
public class MuranoEnvironmentServiceImpl extends BaseOpenStackService implements MuranoEnvironmentService
This class implements all methods for manipulation ofMuranoEnvironmentobjects.- 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 MuranoEnvironmentServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Environmentcreate(Environment env)Creates a new environmentActionResponsedelete(String id)Deletes the specified environmentEnvironmentget(String id)Gets an environment by IDList<? extends MuranoEnvironment>list()List all environmentsEnvironmentrename(String id, String name)Renames the specified environment-
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 MuranoEnvironment> list()
List all environments- Specified by:
listin interfaceMuranoEnvironmentService- Returns:
- list of environments or empty list
-
get
public Environment get(String id)
Gets an environment by ID- Specified by:
getin interfaceMuranoEnvironmentService- Parameters:
id- the environment identifier- Returns:
- the cluster or null if not found
-
create
public Environment create(Environment env)
Creates a new environment- Specified by:
createin interfaceMuranoEnvironmentService- Parameters:
env- the environment to create- Returns:
- the created environment
-
delete
public ActionResponse delete(String id)
Deletes the specified environment- Specified by:
deletein interfaceMuranoEnvironmentService- Parameters:
id- the environment identifier- Returns:
- the action response
-
rename
public Environment rename(String id, String name)
Renames the specified environment- Specified by:
renamein interfaceMuranoEnvironmentService- Parameters:
id- the environment identifier- Returns:
- the renamed environment
-
-