Class ServerGroupServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.compute.internal.BaseComputeServices
-
- org.openstack4j.openstack.compute.internal.ServerGroupServiceImpl
-
- All Implemented Interfaces:
ServerGroupService,RestService
public class ServerGroupServiceImpl extends BaseComputeServices implements ServerGroupService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ServerGroupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerGroupcreate(String name, String policy)Generates or imports a serverGroupActionResponsedelete(String id)Deletes the serverGroup by idServerGroupget(String id)Gets the serverGroup by idList<? extends ServerGroup>list()Lists serverGroups that are associated with the account making the request-
Methods inherited from class org.openstack4j.openstack.compute.internal.BaseComputeServices
invokeAction, invokeActionWithResponse
-
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 ServerGroup> list()
Description copied from interface:ServerGroupServiceLists serverGroups that are associated with the account making the request- Specified by:
listin interfaceServerGroupService- Returns:
- the list of serverGroups
-
get
public ServerGroup get(String id)
Description copied from interface:ServerGroupServiceGets the serverGroup by id- Specified by:
getin interfaceServerGroupService- Returns:
- the serverGroup
-
delete
public ActionResponse delete(String id)
Description copied from interface:ServerGroupServiceDeletes the serverGroup by id- Specified by:
deletein interfaceServerGroupService- Returns:
- the action response
-
create
public ServerGroup create(String name, String policy)
Description copied from interface:ServerGroupServiceGenerates or imports a serverGroup- Specified by:
createin interfaceServerGroupService- Parameters:
name- the name of the serverGroup- Returns:
- the newly created serverGroup
-
-