Class ShareInstanceServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareInstanceServiceImpl
-
- All Implemented Interfaces:
ShareInstanceService,RestService
public class ShareInstanceServiceImpl extends BaseShareServices implements ShareInstanceService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareInstanceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseforceDelete(String shareInstanceId)Administrator only.ShareInstanceget(String shareInstanceId)Shows details for a share instance.List<? extends ShareInstance>list()Lists all share instances.ActionResponseresetState(String shareInstanceId, ShareInstance.Status status)Administrator only.-
Methods inherited from class org.openstack4j.openstack.manila.internal.BaseShareServices
getApiVersionHeader
-
Methods inherited from class org.openstack4j.openstack.internal.MicroVersionedOpenStackService
delete, deleteWithResponse, get, head, patch, post, put, request
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, patchWithResponse, postWithResponse, putWithResponse, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends ShareInstance> list()
Description copied from interface:ShareInstanceServiceLists all share instances.- Specified by:
listin interfaceShareInstanceService- Returns:
- a list of all share instances
-
get
public ShareInstance get(String shareInstanceId)
Description copied from interface:ShareInstanceServiceShows details for a share instance.- Specified by:
getin interfaceShareInstanceService- Parameters:
shareInstanceId- the share instance ID- Returns:
- the share instance or null if not found
-
resetState
public ActionResponse resetState(String shareInstanceId, ShareInstance.Status status)
Description copied from interface:ShareInstanceServiceAdministrator only. Explicitly updates the state of a share instance.- Specified by:
resetStatein interfaceShareInstanceService- Parameters:
shareInstanceId- the share instance IDstatus- the status to set- Returns:
- the action response
-
forceDelete
public ActionResponse forceDelete(String shareInstanceId)
Description copied from interface:ShareInstanceServiceAdministrator only. Force-deletes a share instance.- Specified by:
forceDeletein interfaceShareInstanceService- Parameters:
shareInstanceId- the share instance ID- Returns:
- the action response
-
-